beta-0.89.2
[luatex.git] / source / libs / luajit / configure
blob37ea9fb1708bc74e75464a4c5c65a77ab98eedb5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for luajit for TeX Live 2.1.0-beta1.
5 # Report bugs to <tex-k@tug.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 tex-k@tug.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: 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='luajit for TeX Live'
592 PACKAGE_TARNAME='luajit-for-tex-live'
593 PACKAGE_VERSION='2.1.0-beta1'
594 PACKAGE_STRING='luajit for TeX Live 2.1.0-beta1'
595 PACKAGE_BUGREPORT='tex-k@tug.org'
596 PACKAGE_URL=''
598 ac_unique_file="LuaJIT-src/src/luajit.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 subdirs
641 LUAJIT_TREE
642 build_FALSE
643 build_TRUE
644 LIBLUAJIT_LDEXTRA
645 LJVM_MODE
646 LJHOST
647 LUAJIT_CFLAGS
648 PEOBJ_FALSE
649 PEOBJ_TRUE
650 DASM_ARCH
651 LJARCH
652 LUAJIT_LDEXTRA
653 LUAJIT_DEFINES
655 LT_SYS_LIBRARY_PATH
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 ac_ct_AR
665 ac_ct_DUMPBIN
666 DUMPBIN
668 FGREP
669 EGREP
670 GREP
672 LIBTOOL
673 OBJDUMP
674 DLLTOOL
676 LUAJIT_LT_VERSINFO
677 LUAJITVERSION
678 LN_S
679 RANLIB
680 am__fastdepCCAS_FALSE
681 am__fastdepCCAS_TRUE
682 CCASDEPMODE
683 CCASFLAGS
684 CCAS
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 WARNING_CFLAGS
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_silent_rules
783 enable_maintainer_mode
784 enable_dependency_tracking
785 enable_compiler_warnings
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_aix_soname
791 with_gnu_ld
792 with_sysroot
793 enable_libtool_lock
794 enable_largefile
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 CCAS
805 CCASFLAGS
806 LT_SYS_LIBRARY_PATH
807 CPP'
808 ac_subdirs_all='native'
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
858 ac_prev=
859 ac_dashdash=
860 for ac_option
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
869 case $ac_option in
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *=) ac_optarg= ;;
872 *) ac_optarg=yes ;;
873 esac
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
879 ac_dashdash=yes ;;
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
898 --config-cache | -C)
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 esac
1216 done
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271 test "$silent" = yes && exec 6>/dev/null
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1300 /^X\(\/\/\)$/{
1301 s//\1/
1304 /^X\(\/\).*/{
1305 s//\1/
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1313 else
1314 ac_srcdir_defaulted=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures luajit for TeX Live 2.1.0-beta1 to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root
1397 [DATAROOTDIR/doc/luajit-for-tex-live]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1404 cat <<\_ACEOF
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of luajit for TeX Live 2.1.0-beta1:";;
1420 esac
1421 cat <<\_ACEOF
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-silent-rules less verbose build output (undo: "make V=1")
1428 --disable-silent-rules verbose build output (undo: "make V=0")
1429 --enable-maintainer-mode
1430 enable make rules and dependencies not useful (and
1431 sometimes confusing) to the casual installer
1432 --enable-dependency-tracking
1433 do not reject slow dependency extractors
1434 --disable-dependency-tracking
1435 speeds up one-time build
1436 --enable-compiler-warnings=[no|min|yes|max|all]
1437 Turn on compiler warnings [default: yes if
1438 maintainer-mode, min otherwise]
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --disable-largefile omit support for large files
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1450 both]
1451 --with-aix-soname=aix|svr4|both
1452 shared library versioning (aka "SONAME") variant to
1453 provide on AIX, [default=aix].
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1456 compiler's sysroot if not specified).
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CCAS assembler compiler command (defaults to CC)
1467 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1468 LT_SYS_LIBRARY_PATH
1469 User-defined run-time library search path.
1470 CPP C preprocessor
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <tex-k@tug.org>.
1476 _ACEOF
1477 ac_status=$?
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 luajit for TeX Live configure 2.1.0-beta1
1539 generated by GNU Autoconf 2.69
1541 Copyright (C) 2012 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1583 ac_retval=1
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1588 } # ac_fn_c_try_compile
1590 # ac_fn_c_try_link LINENO
1591 # -----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_link ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 test -x conftest$ac_exeext
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=1
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1634 } # ac_fn_c_try_link
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655 else
1656 eval "$3=no"
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 } # ac_fn_c_check_header_compile
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_cpp ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } > conftest.i && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1697 ac_retval=1
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1702 } # ac_fn_c_try_cpp
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1708 ac_fn_c_try_run ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=$ac_status
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_run
1746 # ac_fn_c_check_func LINENO FUNC VAR
1747 # ----------------------------------
1748 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1749 ac_fn_c_check_func ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761 #define $2 innocuous_$2
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (); below.
1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766 <limits.h> exists even on freestanding compilers. */
1768 #ifdef __STDC__
1769 # include <limits.h>
1770 #else
1771 # include <assert.h>
1772 #endif
1774 #undef $2
1776 /* Override any GCC internal prototype to avoid an error.
1777 Use char because int might match the return type of a GCC
1778 builtin and then its argument prototype would still apply. */
1779 #ifdef __cplusplus
1780 extern "C"
1781 #endif
1782 char $2 ();
1783 /* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786 #if defined __stub_$2 || defined __stub___$2
1787 choke me
1788 #endif
1791 main ()
1793 return $2 ();
1795 return 0;
1797 _ACEOF
1798 if ac_fn_c_try_link "$LINENO"; then :
1799 eval "$3=yes"
1800 else
1801 eval "$3=no"
1803 rm -f core conftest.err conftest.$ac_objext \
1804 conftest$ac_exeext conftest.$ac_ext
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 } # ac_fn_c_check_func
1813 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1814 # --------------------------------------------
1815 # Tries to find the compile-time value of EXPR in a program that includes
1816 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1817 # computed
1818 ac_fn_c_compute_int ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if test "$cross_compiling" = yes; then
1822 # Depending upon the size, compute the lo and hi bounds.
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1827 main ()
1829 static int test_array [1 - 2 * !(($2) >= 0)];
1830 test_array [0] = 0;
1831 return test_array [0];
1834 return 0;
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"; then :
1838 ac_lo=0 ac_mid=0
1839 while :; do
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1844 main ()
1846 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1847 test_array [0] = 0;
1848 return test_array [0];
1851 return 0;
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 ac_hi=$ac_mid; break
1856 else
1857 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1858 if test $ac_lo -le $ac_mid; then
1859 ac_lo= ac_hi=
1860 break
1862 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 done
1866 else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1871 main ()
1873 static int test_array [1 - 2 * !(($2) < 0)];
1874 test_array [0] = 0;
1875 return test_array [0];
1878 return 0;
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882 ac_hi=-1 ac_mid=-1
1883 while :; do
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1888 main ()
1890 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1891 test_array [0] = 0;
1892 return test_array [0];
1895 return 0;
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899 ac_lo=$ac_mid; break
1900 else
1901 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1902 if test $ac_mid -le $ac_hi; then
1903 ac_lo= ac_hi=
1904 break
1906 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 done
1910 else
1911 ac_lo= ac_hi=
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 # Binary search between lo and hi bounds.
1917 while test "x$ac_lo" != "x$ac_hi"; do
1918 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1923 main ()
1925 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1926 test_array [0] = 0;
1927 return test_array [0];
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_hi=$ac_mid
1935 else
1936 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 done
1940 case $ac_lo in #((
1941 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1942 '') ac_retval=1 ;;
1943 esac
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1948 static long int longval () { return $2; }
1949 static unsigned long int ulongval () { return $2; }
1950 #include <stdio.h>
1951 #include <stdlib.h>
1953 main ()
1956 FILE *f = fopen ("conftest.val", "w");
1957 if (! f)
1958 return 1;
1959 if (($2) < 0)
1961 long int i = longval ();
1962 if (i != ($2))
1963 return 1;
1964 fprintf (f, "%ld", i);
1966 else
1968 unsigned long int i = ulongval ();
1969 if (i != ($2))
1970 return 1;
1971 fprintf (f, "%lu", i);
1973 /* Do not output a trailing newline, as this causes \r\n confusion
1974 on some platforms. */
1975 return ferror (f) || fclose (f) != 0;
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_run "$LINENO"; then :
1982 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1983 else
1984 ac_retval=1
1986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1987 conftest.$ac_objext conftest.beam conftest.$ac_ext
1988 rm -f conftest.val
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 as_fn_set_status $ac_retval
1994 } # ac_fn_c_compute_int
1995 cat >config.log <<_ACEOF
1996 This file contains any messages produced by compilers while
1997 running configure, to aid debugging if configure makes a mistake.
1999 It was created by luajit for TeX Live $as_me 2.1.0-beta1, which was
2000 generated by GNU Autoconf 2.69. Invocation command line was
2002 $ $0 $@
2004 _ACEOF
2005 exec 5>>config.log
2007 cat <<_ASUNAME
2008 ## --------- ##
2009 ## Platform. ##
2010 ## --------- ##
2012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2019 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2021 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2022 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2024 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2025 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2026 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2027 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2029 _ASUNAME
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 $as_echo "PATH: $as_dir"
2037 done
2038 IFS=$as_save_IFS
2040 } >&5
2042 cat >&5 <<_ACEOF
2045 ## ----------- ##
2046 ## Core tests. ##
2047 ## ----------- ##
2049 _ACEOF
2052 # Keep a trace of the command line.
2053 # Strip out --no-create and --no-recursion so they do not pile up.
2054 # Strip out --silent because we don't want to record it for future runs.
2055 # Also quote any args containing shell meta-characters.
2056 # Make two passes to allow for proper duplicate-argument suppression.
2057 ac_configure_args=
2058 ac_configure_args0=
2059 ac_configure_args1=
2060 ac_must_keep_next=false
2061 for ac_pass in 1 2
2063 for ac_arg
2065 case $ac_arg in
2066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068 | -silent | --silent | --silen | --sile | --sil)
2069 continue ;;
2070 *\'*)
2071 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2072 esac
2073 case $ac_pass in
2074 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2076 as_fn_append ac_configure_args1 " '$ac_arg'"
2077 if test $ac_must_keep_next = true; then
2078 ac_must_keep_next=false # Got value, back to normal.
2079 else
2080 case $ac_arg in
2081 *=* | --config-cache | -C | -disable-* | --disable-* \
2082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084 | -with-* | --with-* | -without-* | --without-* | --x)
2085 case "$ac_configure_args0 " in
2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2087 esac
2089 -* ) ac_must_keep_next=true ;;
2090 esac
2092 as_fn_append ac_configure_args " '$ac_arg'"
2094 esac
2095 done
2096 done
2097 { ac_configure_args0=; unset ac_configure_args0;}
2098 { ac_configure_args1=; unset ac_configure_args1;}
2100 # When interrupted or exit'd, cleanup temporary files, and complete
2101 # config.log. We remove comments because anyway the quotes in there
2102 # would cause problems or look ugly.
2103 # WARNING: Use '\'' to represent an apostrophe within the trap.
2104 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105 trap 'exit_status=$?
2106 # Save into config.log some information that might help in debugging.
2108 echo
2110 $as_echo "## ---------------- ##
2111 ## Cache variables. ##
2112 ## ---------------- ##"
2113 echo
2114 # The following way of writing the cache mishandles newlines in values,
2116 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2117 eval ac_val=\$$ac_var
2118 case $ac_val in #(
2119 *${as_nl}*)
2120 case $ac_var in #(
2121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2123 esac
2124 case $ac_var in #(
2125 _ | IFS | as_nl) ;; #(
2126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2127 *) { eval $ac_var=; unset $ac_var;} ;;
2128 esac ;;
2129 esac
2130 done
2131 (set) 2>&1 |
2132 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2133 *${as_nl}ac_space=\ *)
2134 sed -n \
2135 "s/'\''/'\''\\\\'\'''\''/g;
2136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2137 ;; #(
2139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2141 esac |
2142 sort
2144 echo
2146 $as_echo "## ----------------- ##
2147 ## Output variables. ##
2148 ## ----------------- ##"
2149 echo
2150 for ac_var in $ac_subst_vars
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2160 if test -n "$ac_subst_files"; then
2161 $as_echo "## ------------------- ##
2162 ## File substitutions. ##
2163 ## ------------------- ##"
2164 echo
2165 for ac_var in $ac_subst_files
2167 eval ac_val=\$$ac_var
2168 case $ac_val in
2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 esac
2171 $as_echo "$ac_var='\''$ac_val'\''"
2172 done | sort
2173 echo
2176 if test -s confdefs.h; then
2177 $as_echo "## ----------- ##
2178 ## confdefs.h. ##
2179 ## ----------- ##"
2180 echo
2181 cat confdefs.h
2182 echo
2184 test "$ac_signal" != 0 &&
2185 $as_echo "$as_me: caught signal $ac_signal"
2186 $as_echo "$as_me: exit $exit_status"
2187 } >&5
2188 rm -f core *.core core.conftest.* &&
2189 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2190 exit $exit_status
2192 for ac_signal in 1 2 13 15; do
2193 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2194 done
2195 ac_signal=0
2197 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2198 rm -f -r conftest* confdefs.h
2200 $as_echo "/* confdefs.h */" > confdefs.h
2202 # Predefined preprocessor variables.
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_NAME "$PACKAGE_NAME"
2206 _ACEOF
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2210 _ACEOF
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2214 _ACEOF
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_STRING "$PACKAGE_STRING"
2218 _ACEOF
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2222 _ACEOF
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_URL "$PACKAGE_URL"
2226 _ACEOF
2229 # Let the site file select an alternate cache file if it wants to.
2230 # Prefer an explicitly selected file to automatically selected ones.
2231 ac_site_file1=NONE
2232 ac_site_file2=NONE
2233 if test -n "$CONFIG_SITE"; then
2234 # We do not want a PATH search for config.site.
2235 case $CONFIG_SITE in #((
2236 -*) ac_site_file1=./$CONFIG_SITE;;
2237 */*) ac_site_file1=$CONFIG_SITE;;
2238 *) ac_site_file1=./$CONFIG_SITE;;
2239 esac
2240 elif test "x$prefix" != xNONE; then
2241 ac_site_file1=$prefix/share/config.site
2242 ac_site_file2=$prefix/etc/config.site
2243 else
2244 ac_site_file1=$ac_default_prefix/share/config.site
2245 ac_site_file2=$ac_default_prefix/etc/config.site
2247 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2249 test "x$ac_site_file" = xNONE && continue
2250 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2252 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2253 sed 's/^/| /' "$ac_site_file" >&5
2254 . "$ac_site_file" \
2255 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 as_fn_error $? "failed to load site script $ac_site_file
2258 See \`config.log' for more details" "$LINENO" 5; }
2260 done
2262 if test -r "$cache_file"; then
2263 # Some versions of bash will fail to source /dev/null (special files
2264 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2265 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2267 $as_echo "$as_me: loading cache $cache_file" >&6;}
2268 case $cache_file in
2269 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2270 *) . "./$cache_file";;
2271 esac
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2275 $as_echo "$as_me: creating cache $cache_file" >&6;}
2276 >$cache_file
2279 # Check that the precious variables saved in the cache have kept the same
2280 # value.
2281 ac_cache_corrupted=false
2282 for ac_var in $ac_precious_vars; do
2283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2284 eval ac_new_set=\$ac_env_${ac_var}_set
2285 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2286 eval ac_new_val=\$ac_env_${ac_var}_value
2287 case $ac_old_set,$ac_new_set in
2288 set,)
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2290 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2291 ac_cache_corrupted=: ;;
2292 ,set)
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2294 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2295 ac_cache_corrupted=: ;;
2296 ,);;
2298 if test "x$ac_old_val" != "x$ac_new_val"; then
2299 # differences in whitespace do not lead to failure.
2300 ac_old_val_w=`echo x $ac_old_val`
2301 ac_new_val_w=`echo x $ac_new_val`
2302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2304 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2305 ac_cache_corrupted=:
2306 else
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2308 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2309 eval $ac_var=\$ac_old_val
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2312 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2314 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2315 fi;;
2316 esac
2317 # Pass precious variables to config.status.
2318 if test "$ac_new_set" = set; then
2319 case $ac_new_val in
2320 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 *) ac_arg=$ac_var=$ac_new_val ;;
2322 esac
2323 case " $ac_configure_args " in
2324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2325 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2326 esac
2328 done
2329 if $ac_cache_corrupted; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2333 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2334 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2336 ## -------------------- ##
2337 ## Main body of script. ##
2338 ## -------------------- ##
2340 ac_ext=c
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349 ac_aux_dir=
2350 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2351 if test -f "$ac_dir/install-sh"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/install-sh -c"
2354 break
2355 elif test -f "$ac_dir/install.sh"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/install.sh -c"
2358 break
2359 elif test -f "$ac_dir/shtool"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/shtool install -c"
2362 break
2364 done
2365 if test -z "$ac_aux_dir"; then
2366 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2369 # These three variables are undocumented and unsupported,
2370 # and are intended to be withdrawn in a future Autoconf release.
2371 # They can cause serious problems if a builder's source tree is in a directory
2372 # whose full name contains unusual characters.
2373 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2374 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2375 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2380 am__api_version='1.15'
2382 # Find a good install program. We prefer a C program (faster),
2383 # so one script is as good as another. But avoid the broken or
2384 # incompatible versions:
2385 # SysV /etc/install, /usr/sbin/install
2386 # SunOS /usr/etc/install
2387 # IRIX /sbin/install
2388 # AIX /bin/install
2389 # AmigaOS /C/install, which installs bootblocks on floppy discs
2390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2393 # OS/2's system install, which has a completely different semantic
2394 # ./install, which can be erroneously created by make from ./install.sh.
2395 # Reject install programs that cannot install multiple files.
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2397 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2398 if test -z "$INSTALL"; then
2399 if ${ac_cv_path_install+:} false; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 # Account for people who put trailing slashes in PATH elements.
2408 case $as_dir/ in #((
2409 ./ | .// | /[cC]/* | \
2410 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2411 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2412 /usr/ucb/* ) ;;
2414 # OSF1 and SCO ODT 3.0 have their own names for install.
2415 # Don't use installbsd from OSF since it installs stuff as root
2416 # by default.
2417 for ac_prog in ginstall scoinst install; do
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2420 if test $ac_prog = install &&
2421 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422 # AIX install. It has an incompatible calling convention.
2424 elif test $ac_prog = install &&
2425 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2426 # program-specific install script used by HP pwplus--don't use.
2428 else
2429 rm -rf conftest.one conftest.two conftest.dir
2430 echo one > conftest.one
2431 echo two > conftest.two
2432 mkdir conftest.dir
2433 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2434 test -s conftest.one && test -s conftest.two &&
2435 test -s conftest.dir/conftest.one &&
2436 test -s conftest.dir/conftest.two
2437 then
2438 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2439 break 3
2443 done
2444 done
2446 esac
2448 done
2449 IFS=$as_save_IFS
2451 rm -rf conftest.one conftest.two conftest.dir
2454 if test "${ac_cv_path_install+set}" = set; then
2455 INSTALL=$ac_cv_path_install
2456 else
2457 # As a last resort, use the slow shell script. Don't cache a
2458 # value for INSTALL within a source directory, because that will
2459 # break other packages using the cache if that directory is
2460 # removed, or if the value is a relative name.
2461 INSTALL=$ac_install_sh
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2465 $as_echo "$INSTALL" >&6; }
2467 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2468 # It thinks the first close brace ends the variable substitution.
2469 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2476 $as_echo_n "checking whether build environment is sane... " >&6; }
2477 # Reject unsafe characters in $srcdir or the absolute working directory
2478 # name. Accept space and tab only in the latter.
2479 am_lf='
2481 case `pwd` in
2482 *[\\\"\#\$\&\'\`$am_lf]*)
2483 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2484 esac
2485 case $srcdir in
2486 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2487 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2488 esac
2490 # Do 'set' in a subshell so we don't clobber the current shell's
2491 # arguments. Must try -L first in case configure is actually a
2492 # symlink; some systems play weird games with the mod time of symlinks
2493 # (eg FreeBSD returns the mod time of the symlink's containing
2494 # directory).
2495 if (
2496 am_has_slept=no
2497 for am_try in 1 2; do
2498 echo "timestamp, slept: $am_has_slept" > conftest.file
2499 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2500 if test "$*" = "X"; then
2501 # -L didn't work.
2502 set X `ls -t "$srcdir/configure" conftest.file`
2504 if test "$*" != "X $srcdir/configure conftest.file" \
2505 && test "$*" != "X conftest.file $srcdir/configure"; then
2507 # If neither matched, then we have a broken ls. This can happen
2508 # if, for instance, CONFIG_SHELL is bash and it inherits a
2509 # broken ls alias from the environment. This has actually
2510 # happened. Such a system could not be considered "sane".
2511 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2512 alias in your environment" "$LINENO" 5
2514 if test "$2" = conftest.file || test $am_try -eq 2; then
2515 break
2517 # Just in case.
2518 sleep 1
2519 am_has_slept=yes
2520 done
2521 test "$2" = conftest.file
2523 then
2524 # Ok.
2526 else
2527 as_fn_error $? "newly created file is older than distributed files!
2528 Check your system clock" "$LINENO" 5
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2531 $as_echo "yes" >&6; }
2532 # If we didn't sleep, we still need to ensure time stamps of config.status and
2533 # generated files are strictly newer.
2534 am_sleep_pid=
2535 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2536 ( sleep 1 ) &
2537 am_sleep_pid=$!
2540 rm -f conftest.file
2542 test "$program_prefix" != NONE &&
2543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2544 # Use a double $ so make ignores it.
2545 test "$program_suffix" != NONE &&
2546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2547 # Double any \ or $.
2548 # By default was `s,x,x', remove it if useless.
2549 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552 # Expand $ac_aux_dir to an absolute path.
2553 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2555 if test x"${MISSING+set}" != xset; then
2556 case $am_aux_dir in
2557 *\ * | *\ *)
2558 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2560 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2561 esac
2563 # Use eval to expand $SHELL
2564 if eval "$MISSING --is-lightweight"; then
2565 am_missing_run="$MISSING "
2566 else
2567 am_missing_run=
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2569 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2572 if test x"${install_sh+set}" != xset; then
2573 case $am_aux_dir in
2574 *\ * | *\ *)
2575 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2577 install_sh="\${SHELL} $am_aux_dir/install-sh"
2578 esac
2581 # Installed binaries are usually stripped using 'strip' when the user
2582 # run "make install-strip". However 'strip' might not be the right
2583 # tool to use in cross-compilation environments, therefore Automake
2584 # will honor the 'STRIP' environment variable to overrule this program.
2585 if test "$cross_compiling" != no; then
2586 if test -n "$ac_tool_prefix"; then
2587 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2588 set dummy ${ac_tool_prefix}strip; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_STRIP+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$STRIP"; then
2595 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2608 done
2609 done
2610 IFS=$as_save_IFS
2614 STRIP=$ac_cv_prog_STRIP
2615 if test -n "$STRIP"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2617 $as_echo "$STRIP" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2625 if test -z "$ac_cv_prog_STRIP"; then
2626 ac_ct_STRIP=$STRIP
2627 # Extract the first word of "strip", so it can be a program name with args.
2628 set dummy strip; ac_word=$2
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test -n "$ac_ct_STRIP"; then
2635 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_ac_ct_STRIP="strip"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2648 done
2649 done
2650 IFS=$as_save_IFS
2654 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2655 if test -n "$ac_ct_STRIP"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2657 $as_echo "$ac_ct_STRIP" >&6; }
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 $as_echo "no" >&6; }
2663 if test "x$ac_ct_STRIP" = x; then
2664 STRIP=":"
2665 else
2666 case $cross_compiling:$ac_tool_warned in
2667 yes:)
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672 STRIP=$ac_ct_STRIP
2674 else
2675 STRIP="$ac_cv_prog_STRIP"
2679 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2682 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2683 if test -z "$MKDIR_P"; then
2684 if ${ac_cv_path_mkdir+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_prog in mkdir gmkdir; do
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2695 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2696 'mkdir (GNU coreutils) '* | \
2697 'mkdir (coreutils) '* | \
2698 'mkdir (fileutils) '4.1*)
2699 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2700 break 3;;
2701 esac
2702 done
2703 done
2704 done
2705 IFS=$as_save_IFS
2709 test -d ./--version && rmdir ./--version
2710 if test "${ac_cv_path_mkdir+set}" = set; then
2711 MKDIR_P="$ac_cv_path_mkdir -p"
2712 else
2713 # As a last resort, use the slow shell script. Don't cache a
2714 # value for MKDIR_P within a source directory, because that will
2715 # break other packages using the cache if that directory is
2716 # removed, or if the value is a relative name.
2717 MKDIR_P="$ac_install_sh -d"
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2721 $as_echo "$MKDIR_P" >&6; }
2723 for ac_prog in gawk mawk nawk awk
2725 # Extract the first word of "$ac_prog", so it can be a program name with args.
2726 set dummy $ac_prog; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_AWK+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$AWK"; then
2733 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_AWK="$ac_prog"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2746 done
2747 done
2748 IFS=$as_save_IFS
2752 AWK=$ac_cv_prog_AWK
2753 if test -n "$AWK"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2755 $as_echo "$AWK" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2762 test -n "$AWK" && break
2763 done
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2766 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2767 set x ${MAKE-make}
2768 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2769 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 cat >conftest.make <<\_ACEOF
2773 SHELL = /bin/sh
2774 all:
2775 @echo '@@@%%%=$(MAKE)=@@@%%%'
2776 _ACEOF
2777 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2778 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2779 *@@@%%%=?*=@@@%%%*)
2780 eval ac_cv_prog_make_${ac_make}_set=yes;;
2782 eval ac_cv_prog_make_${ac_make}_set=no;;
2783 esac
2784 rm -f conftest.make
2786 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2788 $as_echo "yes" >&6; }
2789 SET_MAKE=
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 SET_MAKE="MAKE=${MAKE-make}"
2796 rm -rf .tst 2>/dev/null
2797 mkdir .tst 2>/dev/null
2798 if test -d .tst; then
2799 am__leading_dot=.
2800 else
2801 am__leading_dot=_
2803 rmdir .tst 2>/dev/null
2805 # Check whether --enable-silent-rules was given.
2806 if test "${enable_silent_rules+set}" = set; then :
2807 enableval=$enable_silent_rules;
2810 case $enable_silent_rules in # (((
2811 yes) AM_DEFAULT_VERBOSITY=0;;
2812 no) AM_DEFAULT_VERBOSITY=1;;
2813 *) AM_DEFAULT_VERBOSITY=1;;
2814 esac
2815 am_make=${MAKE-make}
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2817 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2818 if ${am_cv_make_support_nested_variables+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if $as_echo 'TRUE=$(BAR$(V))
2822 BAR0=false
2823 BAR1=true
2825 am__doit:
2826 @$(TRUE)
2827 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2828 am_cv_make_support_nested_variables=yes
2829 else
2830 am_cv_make_support_nested_variables=no
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2834 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2835 if test $am_cv_make_support_nested_variables = yes; then
2836 AM_V='$(V)'
2837 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2838 else
2839 AM_V=$AM_DEFAULT_VERBOSITY
2840 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2842 AM_BACKSLASH='\'
2844 DEPDIR="${am__leading_dot}deps"
2846 ac_config_commands="$ac_config_commands depfiles"
2849 am_make=${MAKE-make}
2850 cat > confinc << 'END'
2851 am__doit:
2852 @echo this is the am__doit target
2853 .PHONY: am__doit
2855 # If we don't find an include directive, just comment out the code.
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2857 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2858 am__include="#"
2859 am__quote=
2860 _am_result=none
2861 # First try GNU make style include.
2862 echo "include confinc" > confmf
2863 # Ignore all kinds of additional output from 'make'.
2864 case `$am_make -s -f confmf 2> /dev/null` in #(
2865 *the\ am__doit\ target*)
2866 am__include=include
2867 am__quote=
2868 _am_result=GNU
2870 esac
2871 # Now try BSD make style include.
2872 if test "$am__include" = "#"; then
2873 echo '.include "confinc"' > confmf
2874 case `$am_make -s -f confmf 2> /dev/null` in #(
2875 *the\ am__doit\ target*)
2876 am__include=.include
2877 am__quote="\""
2878 _am_result=BSD
2880 esac
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2885 $as_echo "$_am_result" >&6; }
2886 rm -f confinc confmf
2888 # Check whether --enable-dependency-tracking was given.
2889 if test "${enable_dependency_tracking+set}" = set; then :
2890 enableval=$enable_dependency_tracking;
2893 if test "x$enable_dependency_tracking" != xno; then
2894 am_depcomp="$ac_aux_dir/depcomp"
2895 AMDEPBACKSLASH='\'
2896 am__nodep='_no'
2898 if test "x$enable_dependency_tracking" != xno; then
2899 AMDEP_TRUE=
2900 AMDEP_FALSE='#'
2901 else
2902 AMDEP_TRUE='#'
2903 AMDEP_FALSE=
2907 ac_ext=c
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 if test -n "$ac_tool_prefix"; then
2913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_CC+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2934 done
2935 done
2936 IFS=$as_save_IFS
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 "$ac_cv_prog_CC"; then
2952 ac_ct_CC=$CC
2953 # Extract the first word of "gcc", so it can be a program name with args.
2954 set dummy gcc; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_CC="gcc"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2974 done
2975 done
2976 IFS=$as_save_IFS
2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2981 if test -n "$ac_ct_CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2983 $as_echo "$ac_ct_CC" >&6; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2989 if test "x$ac_ct_CC" = x; then
2990 CC=""
2991 else
2992 case $cross_compiling:$ac_tool_warned in
2993 yes:)
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996 ac_tool_warned=yes ;;
2997 esac
2998 CC=$ac_ct_CC
3000 else
3001 CC="$ac_cv_prog_CC"
3004 if test -z "$CC"; then
3005 if test -n "$ac_tool_prefix"; then
3006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}cc; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_CC+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_CC="${ac_tool_prefix}cc"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3027 done
3028 done
3029 IFS=$as_save_IFS
3033 CC=$ac_cv_prog_CC
3034 if test -n "$CC"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3036 $as_echo "$CC" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3045 if test -z "$CC"; then
3046 # Extract the first word of "cc", so it can be a program name with args.
3047 set dummy cc; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_CC+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056 ac_prog_rejected=no
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3065 ac_prog_rejected=yes
3066 continue
3068 ac_cv_prog_CC="cc"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3072 done
3073 done
3074 IFS=$as_save_IFS
3076 if test $ac_prog_rejected = yes; then
3077 # We found a bogon in the path, so make sure we never use it.
3078 set dummy $ac_cv_prog_CC
3079 shift
3080 if test $# != 0; then
3081 # We chose a different compiler from the bogus one.
3082 # However, it has the same basename, so the bogon will be chosen
3083 # first if we set CC to just the basename; use the full file name.
3084 shift
3085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3094 else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3101 if test -z "$CC"; then
3102 if test -n "$ac_tool_prefix"; then
3103 for ac_prog in cl.exe
3105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$CC"; then
3113 ac_cv_prog_CC="$CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3128 IFS=$as_save_IFS
3132 CC=$ac_cv_prog_CC
3133 if test -n "$CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135 $as_echo "$CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3142 test -n "$CC" && break
3143 done
3145 if test -z "$CC"; then
3146 ac_ct_CC=$CC
3147 for ac_prog in cl.exe
3149 # Extract the first word of "$ac_prog", so it can be a program name with args.
3150 set dummy $ac_prog; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test -n "$ac_ct_CC"; then
3157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_ac_ct_CC="$ac_prog"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3170 done
3171 done
3172 IFS=$as_save_IFS
3176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177 if test -n "$ac_ct_CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3179 $as_echo "$ac_ct_CC" >&6; }
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3186 test -n "$ac_ct_CC" && break
3187 done
3189 if test "x$ac_ct_CC" = x; then
3190 CC=""
3191 else
3192 case $cross_compiling:$ac_tool_warned in
3193 yes:)
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3196 ac_tool_warned=yes ;;
3197 esac
3198 CC=$ac_ct_CC
3205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error $? "no acceptable C compiler found in \$PATH
3208 See \`config.log' for more details" "$LINENO" 5; }
3210 # Provide some information about the compiler.
3211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3212 set X $ac_compile
3213 ac_compiler=$2
3214 for ac_option in --version -v -V -qversion; do
3215 { { ac_try="$ac_compiler $ac_option >&5"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3223 ac_status=$?
3224 if test -s conftest.err; then
3225 sed '10a\
3226 ... rest of stderr output deleted ...
3227 10q' conftest.err >conftest.er1
3228 cat conftest.er1 >&5
3230 rm -f conftest.er1 conftest.err
3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232 test $ac_status = 0; }
3233 done
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3239 main ()
3243 return 0;
3245 _ACEOF
3246 ac_clean_files_save=$ac_clean_files
3247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3248 # Try to create an executable without -o first, disregard a.out.
3249 # It will help us diagnose broken compilers, and finding out an intuition
3250 # of exeext.
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3252 $as_echo_n "checking whether the C compiler works... " >&6; }
3253 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3255 # The possible output files:
3256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3258 ac_rmfiles=
3259 for ac_file in $ac_files
3261 case $ac_file in
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3263 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3264 esac
3265 done
3266 rm -f $ac_rmfiles
3268 if { { ac_try="$ac_link_default"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_link_default") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }; then :
3279 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3280 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3281 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3282 # so that the user can short-circuit this test for compilers unknown to
3283 # Autoconf.
3284 for ac_file in $ac_files ''
3286 test -f "$ac_file" || continue
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3290 [ab].out )
3291 # We found the default executable, but exeext='' is most
3292 # certainly right.
3293 break;;
3294 *.* )
3295 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3296 then :; else
3297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3299 # We set ac_cv_exeext here because the later test for it is not
3300 # safe: cross compilers may not add the suffix if given an `-o'
3301 # argument, so we may need to know it at that point already.
3302 # Even if this section looks crufty: it has the advantage of
3303 # actually working.
3304 break;;
3306 break;;
3307 esac
3308 done
3309 test "$ac_cv_exeext" = no && ac_cv_exeext=
3311 else
3312 ac_file=''
3314 if test -z "$ac_file"; then :
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error 77 "C compiler cannot create executables
3323 See \`config.log' for more details" "$LINENO" 5; }
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3329 $as_echo_n "checking for C compiler default output file name... " >&6; }
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3331 $as_echo "$ac_file" >&6; }
3332 ac_exeext=$ac_cv_exeext
3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3335 ac_clean_files=$ac_clean_files_save
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3337 $as_echo_n "checking for suffix of executables... " >&6; }
3338 if { { ac_try="$ac_link"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_link") 2>&5
3346 ac_status=$?
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }; then :
3349 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3350 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3351 # work properly (i.e., refer to `conftest.exe'), while it won't with
3352 # `rm'.
3353 for ac_file in conftest.exe conftest conftest.*; do
3354 test -f "$ac_file" || continue
3355 case $ac_file in
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3358 break;;
3359 * ) break;;
3360 esac
3361 done
3362 else
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 rm -f conftest conftest$ac_cv_exeext
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3370 $as_echo "$ac_cv_exeext" >&6; }
3372 rm -f conftest.$ac_ext
3373 EXEEXT=$ac_cv_exeext
3374 ac_exeext=$EXEEXT
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377 #include <stdio.h>
3379 main ()
3381 FILE *f = fopen ("conftest.out", "w");
3382 return ferror (f) || fclose (f) != 0;
3385 return 0;
3387 _ACEOF
3388 ac_clean_files="$ac_clean_files conftest.out"
3389 # Check that the compiler produces executables we can run. If not, either
3390 # the compiler is broken, or we cross compile.
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3392 $as_echo_n "checking whether we are cross compiling... " >&6; }
3393 if test "$cross_compiling" != yes; then
3394 { { ac_try="$ac_link"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_link") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }
3405 if { ac_try='./conftest$ac_cv_exeext'
3406 { { case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_try") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; }; then
3416 cross_compiling=no
3417 else
3418 if test "$cross_compiling" = maybe; then
3419 cross_compiling=yes
3420 else
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error $? "cannot run C compiled programs.
3424 If you meant to cross compile, use \`--host'.
3425 See \`config.log' for more details" "$LINENO" 5; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3430 $as_echo "$cross_compiling" >&6; }
3432 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3433 ac_clean_files=$ac_clean_files_save
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3435 $as_echo_n "checking for suffix of object files... " >&6; }
3436 if ${ac_cv_objext+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3443 main ()
3447 return 0;
3449 _ACEOF
3450 rm -f conftest.o conftest.obj
3451 if { { ac_try="$ac_compile"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_compile") 2>&5
3459 ac_status=$?
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; then :
3462 for ac_file in conftest.o conftest.obj conftest.*; do
3463 test -f "$ac_file" || continue;
3464 case $ac_file in
3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3467 break;;
3468 esac
3469 done
3470 else
3471 $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error $? "cannot compute suffix of object files: cannot compile
3477 See \`config.log' for more details" "$LINENO" 5; }
3479 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3482 $as_echo "$ac_cv_objext" >&6; }
3483 OBJEXT=$ac_cv_objext
3484 ac_objext=$OBJEXT
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3486 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3487 if ${ac_cv_c_compiler_gnu+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3494 main ()
3496 #ifndef __GNUC__
3497 choke me
3498 #endif
3501 return 0;
3503 _ACEOF
3504 if ac_fn_c_try_compile "$LINENO"; then :
3505 ac_compiler_gnu=yes
3506 else
3507 ac_compiler_gnu=no
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3514 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3515 if test $ac_compiler_gnu = yes; then
3516 GCC=yes
3517 else
3518 GCC=
3520 ac_test_CFLAGS=${CFLAGS+set}
3521 ac_save_CFLAGS=$CFLAGS
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3523 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3524 if ${ac_cv_prog_cc_g+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 ac_save_c_werror_flag=$ac_c_werror_flag
3528 ac_c_werror_flag=yes
3529 ac_cv_prog_cc_g=no
3530 CFLAGS="-g"
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3535 main ()
3539 return 0;
3541 _ACEOF
3542 if ac_fn_c_try_compile "$LINENO"; then :
3543 ac_cv_prog_cc_g=yes
3544 else
3545 CFLAGS=""
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3550 main ()
3554 return 0;
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3559 else
3560 ac_c_werror_flag=$ac_save_c_werror_flag
3561 CFLAGS="-g"
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3566 main ()
3570 return 0;
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574 ac_cv_prog_cc_g=yes
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_c_werror_flag=$ac_save_c_werror_flag
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3584 $as_echo "$ac_cv_prog_cc_g" >&6; }
3585 if test "$ac_test_CFLAGS" = set; then
3586 CFLAGS=$ac_save_CFLAGS
3587 elif test $ac_cv_prog_cc_g = yes; then
3588 if test "$GCC" = yes; then
3589 CFLAGS="-g -O2"
3590 else
3591 CFLAGS="-g"
3593 else
3594 if test "$GCC" = yes; then
3595 CFLAGS="-O2"
3596 else
3597 CFLAGS=
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3602 if ${ac_cv_prog_cc_c89+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 ac_cv_prog_cc_c89=no
3606 ac_save_CC=$CC
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609 #include <stdarg.h>
3610 #include <stdio.h>
3611 struct stat;
3612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3613 struct buf { int x; };
3614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3615 static char *e (p, i)
3616 char **p;
3617 int i;
3619 return p[i];
3621 static char *f (char * (*g) (char **, int), char **p, ...)
3623 char *s;
3624 va_list v;
3625 va_start (v,p);
3626 s = g (p, va_arg (v,int));
3627 va_end (v);
3628 return s;
3631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3632 function prototypes and stuff, but not '\xHH' hex character constants.
3633 These don't provoke an error unfortunately, instead are silently treated
3634 as 'x'. The following induces an error, until -std is added to get
3635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3636 array size at least. It's necessary to write '\x00'==0 to get something
3637 that's true only with -std. */
3638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3641 inside strings and character constants. */
3642 #define FOO(x) 'x'
3643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3645 int test (int i, double x);
3646 struct s1 {int (*f) (int a);};
3647 struct s2 {int (*f) (double a);};
3648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3649 int argc;
3650 char **argv;
3652 main ()
3654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3656 return 0;
3658 _ACEOF
3659 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3660 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3662 CC="$ac_save_CC $ac_arg"
3663 if ac_fn_c_try_compile "$LINENO"; then :
3664 ac_cv_prog_cc_c89=$ac_arg
3666 rm -f core conftest.err conftest.$ac_objext
3667 test "x$ac_cv_prog_cc_c89" != "xno" && break
3668 done
3669 rm -f conftest.$ac_ext
3670 CC=$ac_save_CC
3673 # AC_CACHE_VAL
3674 case "x$ac_cv_prog_cc_c89" in
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3677 $as_echo "none needed" >&6; } ;;
3678 xno)
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3680 $as_echo "unsupported" >&6; } ;;
3682 CC="$CC $ac_cv_prog_cc_c89"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3684 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3685 esac
3686 if test "x$ac_cv_prog_cc_c89" != xno; then :
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3702 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3703 if ${am_cv_prog_cc_c_o+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3710 main ()
3714 return 0;
3716 _ACEOF
3717 # Make sure it works both with $CC and with simple cc.
3718 # Following AC_PROG_CC_C_O, we do the test twice because some
3719 # compilers refuse to overwrite an existing .o file with -o,
3720 # though they will create one.
3721 am_cv_prog_cc_c_o=yes
3722 for am_i in 1 2; do
3723 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3724 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } \
3728 && test -f conftest2.$ac_objext; then
3729 : OK
3730 else
3731 am_cv_prog_cc_c_o=no
3732 break
3734 done
3735 rm -f core conftest*
3736 unset am_i
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3739 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3740 if test "$am_cv_prog_cc_c_o" != yes; then
3741 # Losing compiler, so override with the script.
3742 # FIXME: It is wrong to rewrite CC.
3743 # But if we don't then we get into trouble of one sort or another.
3744 # A longer-term fix would be to have automake use am__CC in this case,
3745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3746 CC="$am_aux_dir/compile $CC"
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 depcc="$CC" am_compiler_list=
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3758 $as_echo_n "checking dependency style of $depcc... " >&6; }
3759 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763 # We make a subdir and do the tests there. Otherwise we can end up
3764 # making bogus files that we don't know about and never remove. For
3765 # instance it was reported that on HP-UX the gcc test will end up
3766 # making a dummy file named 'D' -- because '-MD' means "put the output
3767 # in D".
3768 rm -rf conftest.dir
3769 mkdir conftest.dir
3770 # Copy depcomp to subdir because otherwise we won't find it if we're
3771 # using a relative directory.
3772 cp "$am_depcomp" conftest.dir
3773 cd conftest.dir
3774 # We will build objects and dependencies in a subdirectory because
3775 # it helps to detect inapplicable dependency modes. For instance
3776 # both Tru64's cc and ICC support -MD to output dependencies as a
3777 # side effect of compilation, but ICC will put the dependencies in
3778 # the current directory while Tru64 will put them in the object
3779 # directory.
3780 mkdir sub
3782 am_cv_CC_dependencies_compiler_type=none
3783 if test "$am_compiler_list" = ""; then
3784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3786 am__universal=false
3787 case " $depcc " in #(
3788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3789 esac
3791 for depmode in $am_compiler_list; do
3792 # Setup a source with many dependencies, because some compilers
3793 # like to wrap large dependency lists on column 80 (with \), and
3794 # we should not choose a depcomp mode which is confused by this.
3796 # We need to recreate these files for each test, as the compiler may
3797 # overwrite some of them when testing with obscure command lines.
3798 # This happens at least with the AIX C compiler.
3799 : > sub/conftest.c
3800 for i in 1 2 3 4 5 6; do
3801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3802 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3803 # Solaris 10 /bin/sh.
3804 echo '/* dummy */' > sub/conftst$i.h
3805 done
3806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3808 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3809 # mode. It turns out that the SunPro C++ compiler does not properly
3810 # handle '-M -o', and we need to detect this. Also, some Intel
3811 # versions had trouble with output in subdirs.
3812 am__obj=sub/conftest.${OBJEXT-o}
3813 am__minus_obj="-o $am__obj"
3814 case $depmode in
3815 gcc)
3816 # This depmode causes a compiler race in universal mode.
3817 test "$am__universal" = false || continue
3819 nosideeffect)
3820 # After this tag, mechanisms are not by side-effect, so they'll
3821 # only be used when explicitly requested.
3822 if test "x$enable_dependency_tracking" = xyes; then
3823 continue
3824 else
3825 break
3828 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3829 # This compiler won't grok '-c -o', but also, the minuso test has
3830 # not run yet. These depmodes are late enough in the game, and
3831 # so weak that their functioning should not be impacted.
3832 am__obj=conftest.${OBJEXT-o}
3833 am__minus_obj=
3835 none) break ;;
3836 esac
3837 if depmode=$depmode \
3838 source=sub/conftest.c object=$am__obj \
3839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3841 >/dev/null 2>conftest.err &&
3842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3846 # icc doesn't choke on unknown options, it will just issue warnings
3847 # or remarks (even with -Werror). So we grep stderr for any message
3848 # that says an option was ignored or not supported.
3849 # When given -MP, icc 7.0 and 7.1 complain thusly:
3850 # icc: Command line warning: ignoring option '-M'; no argument required
3851 # The diagnosis changed in icc 8.0:
3852 # icc: Command line remark: option '-MP' not supported
3853 if (grep 'ignoring option' conftest.err ||
3854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3855 am_cv_CC_dependencies_compiler_type=$depmode
3856 break
3859 done
3861 cd ..
3862 rm -rf conftest.dir
3863 else
3864 am_cv_CC_dependencies_compiler_type=none
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3869 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3870 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3873 test "x$enable_dependency_tracking" != xno \
3874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3875 am__fastdepCC_TRUE=
3876 am__fastdepCC_FALSE='#'
3877 else
3878 am__fastdepCC_TRUE='#'
3879 am__fastdepCC_FALSE=
3884 # Check whether --enable-compiler-warnings was given.
3885 if test "${enable_compiler_warnings+set}" = set; then :
3886 enableval=$enable_compiler_warnings;
3888 case $enable_compiler_warnings in #(
3889 no | min | yes | max | all) :
3890 ;; #(
3891 *) :
3892 if test "x$enable_maintainer_mode" = xyes; then :
3893 enable_compiler_warnings=yes
3894 else
3895 enable_compiler_warnings=min
3896 fi ;;
3897 esac
3900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3901 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3902 # is not polluted with repeated "-I."
3903 am__isrc=' -I$(srcdir)'
3904 # test to see if srcdir already configured
3905 if test -f $srcdir/config.status; then
3906 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3910 # test whether we have cygpath
3911 if test -z "$CYGPATH_W"; then
3912 if (cygpath --version) >/dev/null 2>/dev/null; then
3913 CYGPATH_W='cygpath -w'
3914 else
3915 CYGPATH_W=echo
3920 # Define the identity of the package.
3921 PACKAGE='luajit-for-tex-live'
3922 VERSION='2.1.0-beta1'
3925 cat >>confdefs.h <<_ACEOF
3926 #define PACKAGE "$PACKAGE"
3927 _ACEOF
3930 cat >>confdefs.h <<_ACEOF
3931 #define VERSION "$VERSION"
3932 _ACEOF
3934 # Some tools Automake needs.
3936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3950 # For better backward compatibility. To be removed once Automake 1.9.x
3951 # dies out for good. For more background, see:
3952 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3953 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3954 mkdir_p='$(MKDIR_P)'
3956 # We need awk for the "check" target (and possibly the TAP driver). The
3957 # system "awk" is bad on some platforms.
3958 # Always define AMTAR for backward compatibility. Yes, it's still used
3959 # in the wild :-( We should find a proper way to deprecate it ...
3960 AMTAR='$${TAR-tar}'
3963 # We'll loop over all known methods to create a tar archive until one works.
3964 _am_tools='gnutar pax cpio none'
3966 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3973 # POSIX will say in a future version that running "rm -f" with no argument
3974 # is OK; and we want to be able to make that assumption in our Makefile
3975 # recipes. So use an aggressive probe to check that the usage we want is
3976 # actually supported "in the wild" to an acceptable degree.
3977 # See automake bug#10828.
3978 # To make any issue more visible, cause the running configure to be aborted
3979 # by default if the 'rm' program in use doesn't match our expectations; the
3980 # user can still override this though.
3981 if rm -f && rm -fr && rm -rf; then : OK; else
3982 cat >&2 <<'END'
3983 Oops!
3985 Your 'rm' program seems unable to run without file operands specified
3986 on the command line, even when the '-f' option is present. This is contrary
3987 to the behaviour of most rm programs out there, and not conforming with
3988 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3990 Please tell bug-automake@gnu.org about your system, including the value
3991 of your $PATH and any error possibly output before this message. This
3992 can help us improve future automake versions.
3995 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3996 echo 'Configuration will proceed anyway, since you have set the' >&2
3997 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3998 echo >&2
3999 else
4000 cat >&2 <<'END'
4001 Aborting the configuration process, to ensure you take notice of the issue.
4003 You can download and install GNU coreutils to get an 'rm' implementation
4004 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4006 If you want to complete the configuration process using your problematic
4007 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4008 to "yes", and re-run configure.
4011 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4017 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4018 # Check whether --enable-maintainer-mode was given.
4019 if test "${enable_maintainer_mode+set}" = set; then :
4020 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4021 else
4022 USE_MAINTAINER_MODE=no
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4026 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4027 if test $USE_MAINTAINER_MODE = yes; then
4028 MAINTAINER_MODE_TRUE=
4029 MAINTAINER_MODE_FALSE='#'
4030 else
4031 MAINTAINER_MODE_TRUE='#'
4032 MAINTAINER_MODE_FALSE=
4035 MAINT=$MAINTAINER_MODE_TRUE
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
4039 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
4040 if ${kb_cv_c_prototypes+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 #include <stdarg.h>
4047 main ()
4049 extern void foo(int i,...);
4051 return 0;
4053 _ACEOF
4054 if ac_fn_c_try_link "$LINENO"; then :
4055 kb_cv_c_prototypes=yes
4056 else
4057 kb_cv_c_prototypes=no
4059 rm -f core conftest.err conftest.$ac_objext \
4060 conftest$ac_exeext conftest.$ac_ext
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
4063 $as_echo "$kb_cv_c_prototypes" >&6; }
4064 if test "x$kb_cv_c_prototypes" = xno; then
4065 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
4068 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
4069 if ${kpse_cv_warning_cflags+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if test "x$GCC" = xyes; then
4073 kpse_cv_warning_cflags=
4074 if test "x$enable_compiler_warnings" != xno; then
4075 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
4076 case `$CC -dumpversion` in #(
4077 3.4.* | 4.* | 5.*) :
4078 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
4079 *) :
4081 esac
4082 case `$CC -dumpversion` in #(
4083 3.[234].* | 4.* | 5.*) :
4084 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
4085 *) :
4087 esac
4088 if test "x$enable_compiler_warnings" != xmin; then
4089 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
4090 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
4091 if test "x$enable_compiler_warnings" != xyes; then
4092 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
4093 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
4094 case `$CC -dumpversion` in #(
4095 3.4.* | 4.* | 5.*) :
4096 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
4097 *) :
4099 esac
4100 if test "x$enable_compiler_warnings" != xmax; then
4101 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
4106 elif test "x$enable_compiler_warnings" = xno; then
4107 kpse_cv_warning_cflags=
4108 else
4109 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
4113 $as_echo "$kpse_cv_warning_cflags" >&6; }
4114 WARNING_CFLAGS=$kpse_cv_warning_cflags
4123 # Make sure we can run config.sub.
4124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4125 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4128 $as_echo_n "checking build system type... " >&6; }
4129 if ${ac_cv_build+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 ac_build_alias=$build_alias
4133 test "x$ac_build_alias" = x &&
4134 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4135 test "x$ac_build_alias" = x &&
4136 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4137 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4138 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4142 $as_echo "$ac_cv_build" >&6; }
4143 case $ac_cv_build in
4144 *-*-*) ;;
4145 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4146 esac
4147 build=$ac_cv_build
4148 ac_save_IFS=$IFS; IFS='-'
4149 set x $ac_cv_build
4150 shift
4151 build_cpu=$1
4152 build_vendor=$2
4153 shift; shift
4154 # Remember, the first character of IFS is used to create $*,
4155 # except with old shells:
4156 build_os=$*
4157 IFS=$ac_save_IFS
4158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4162 $as_echo_n "checking host system type... " >&6; }
4163 if ${ac_cv_host+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test "x$host_alias" = x; then
4167 ac_cv_host=$ac_cv_build
4168 else
4169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4170 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4175 $as_echo "$ac_cv_host" >&6; }
4176 case $ac_cv_host in
4177 *-*-*) ;;
4178 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4179 esac
4180 host=$ac_cv_host
4181 ac_save_IFS=$IFS; IFS='-'
4182 set x $ac_cv_host
4183 shift
4184 host_cpu=$1
4185 host_vendor=$2
4186 shift; shift
4187 # Remember, the first character of IFS is used to create $*,
4188 # except with old shells:
4189 host_os=$*
4190 IFS=$ac_save_IFS
4191 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4194 if test "x$host_alias" != x && test "x$build_alias" = x; then :
4195 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
4197 eval kpse_build_alias=\${build_alias-$build}
4200 ac_ext=c
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 if test -n "$ac_tool_prefix"; then
4206 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4207 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if ${ac_cv_prog_CC+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -n "$CC"; then
4214 ac_cv_prog_CC="$CC" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 CC=$ac_cv_prog_CC
4234 if test -n "$CC"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4236 $as_echo "$CC" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4244 if test -z "$ac_cv_prog_CC"; then
4245 ac_ct_CC=$CC
4246 # Extract the first word of "gcc", so it can be a program name with args.
4247 set dummy gcc; ac_word=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if test -n "$ac_ct_CC"; then
4254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263 ac_cv_prog_ac_ct_CC="gcc"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4267 done
4268 done
4269 IFS=$as_save_IFS
4273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4274 if test -n "$ac_ct_CC"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4276 $as_echo "$ac_ct_CC" >&6; }
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4282 if test "x$ac_ct_CC" = x; then
4283 CC=""
4284 else
4285 case $cross_compiling:$ac_tool_warned in
4286 yes:)
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289 ac_tool_warned=yes ;;
4290 esac
4291 CC=$ac_ct_CC
4293 else
4294 CC="$ac_cv_prog_CC"
4297 if test -z "$CC"; then
4298 if test -n "$ac_tool_prefix"; then
4299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4300 set dummy ${ac_tool_prefix}cc; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_prog_CC+:} false; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if test -n "$CC"; then
4307 ac_cv_prog_CC="$CC" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_CC="${ac_tool_prefix}cc"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4322 IFS=$as_save_IFS
4326 CC=$ac_cv_prog_CC
4327 if test -n "$CC"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4329 $as_echo "$CC" >&6; }
4330 else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4338 if test -z "$CC"; then
4339 # Extract the first word of "cc", so it can be a program name with args.
4340 set dummy cc; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_prog_CC+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -n "$CC"; then
4347 ac_cv_prog_CC="$CC" # Let the user override the test.
4348 else
4349 ac_prog_rejected=no
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4358 ac_prog_rejected=yes
4359 continue
4361 ac_cv_prog_CC="cc"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4365 done
4366 done
4367 IFS=$as_save_IFS
4369 if test $ac_prog_rejected = yes; then
4370 # We found a bogon in the path, so make sure we never use it.
4371 set dummy $ac_cv_prog_CC
4372 shift
4373 if test $# != 0; then
4374 # We chose a different compiler from the bogus one.
4375 # However, it has the same basename, so the bogon will be chosen
4376 # first if we set CC to just the basename; use the full file name.
4377 shift
4378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4383 CC=$ac_cv_prog_CC
4384 if test -n "$CC"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4386 $as_echo "$CC" >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4394 if test -z "$CC"; then
4395 if test -n "$ac_tool_prefix"; then
4396 for ac_prog in cl.exe
4398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_CC+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$CC"; then
4406 ac_cv_prog_CC="$CC" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4425 CC=$ac_cv_prog_CC
4426 if test -n "$CC"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4428 $as_echo "$CC" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$CC" && break
4436 done
4438 if test -z "$CC"; then
4439 ac_ct_CC=$CC
4440 for ac_prog in cl.exe
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$ac_ct_CC"; then
4450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_ac_ct_CC="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4470 if test -n "$ac_ct_CC"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4472 $as_echo "$ac_ct_CC" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$ac_ct_CC" && break
4480 done
4482 if test "x$ac_ct_CC" = x; then
4483 CC=""
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486 yes:)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4490 esac
4491 CC=$ac_ct_CC
4498 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4500 as_fn_error $? "no acceptable C compiler found in \$PATH
4501 See \`config.log' for more details" "$LINENO" 5; }
4503 # Provide some information about the compiler.
4504 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4505 set X $ac_compile
4506 ac_compiler=$2
4507 for ac_option in --version -v -V -qversion; do
4508 { { ac_try="$ac_compiler $ac_option >&5"
4509 case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4512 esac
4513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514 $as_echo "$ac_try_echo"; } >&5
4515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4516 ac_status=$?
4517 if test -s conftest.err; then
4518 sed '10a\
4519 ... rest of stderr output deleted ...
4520 10q' conftest.err >conftest.er1
4521 cat conftest.er1 >&5
4523 rm -f conftest.er1 conftest.err
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }
4526 done
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4530 if ${ac_cv_c_compiler_gnu+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4537 main ()
4539 #ifndef __GNUC__
4540 choke me
4541 #endif
4544 return 0;
4546 _ACEOF
4547 if ac_fn_c_try_compile "$LINENO"; then :
4548 ac_compiler_gnu=yes
4549 else
4550 ac_compiler_gnu=no
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4558 if test $ac_compiler_gnu = yes; then
4559 GCC=yes
4560 else
4561 GCC=
4563 ac_test_CFLAGS=${CFLAGS+set}
4564 ac_save_CFLAGS=$CFLAGS
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4567 if ${ac_cv_prog_cc_g+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 ac_save_c_werror_flag=$ac_c_werror_flag
4571 ac_c_werror_flag=yes
4572 ac_cv_prog_cc_g=no
4573 CFLAGS="-g"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 main ()
4582 return 0;
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_prog_cc_g=yes
4587 else
4588 CFLAGS=""
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4593 main ()
4597 return 0;
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4602 else
4603 ac_c_werror_flag=$ac_save_c_werror_flag
4604 CFLAGS="-g"
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4609 main ()
4613 return 0;
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617 ac_cv_prog_cc_g=yes
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_c_werror_flag=$ac_save_c_werror_flag
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4627 $as_echo "$ac_cv_prog_cc_g" >&6; }
4628 if test "$ac_test_CFLAGS" = set; then
4629 CFLAGS=$ac_save_CFLAGS
4630 elif test $ac_cv_prog_cc_g = yes; then
4631 if test "$GCC" = yes; then
4632 CFLAGS="-g -O2"
4633 else
4634 CFLAGS="-g"
4636 else
4637 if test "$GCC" = yes; then
4638 CFLAGS="-O2"
4639 else
4640 CFLAGS=
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4645 if ${ac_cv_prog_cc_c89+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_cv_prog_cc_c89=no
4649 ac_save_CC=$CC
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <stdarg.h>
4653 #include <stdio.h>
4654 struct stat;
4655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4656 struct buf { int x; };
4657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4658 static char *e (p, i)
4659 char **p;
4660 int i;
4662 return p[i];
4664 static char *f (char * (*g) (char **, int), char **p, ...)
4666 char *s;
4667 va_list v;
4668 va_start (v,p);
4669 s = g (p, va_arg (v,int));
4670 va_end (v);
4671 return s;
4674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4675 function prototypes and stuff, but not '\xHH' hex character constants.
4676 These don't provoke an error unfortunately, instead are silently treated
4677 as 'x'. The following induces an error, until -std is added to get
4678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4679 array size at least. It's necessary to write '\x00'==0 to get something
4680 that's true only with -std. */
4681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4684 inside strings and character constants. */
4685 #define FOO(x) 'x'
4686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4688 int test (int i, double x);
4689 struct s1 {int (*f) (int a);};
4690 struct s2 {int (*f) (double a);};
4691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4692 int argc;
4693 char **argv;
4695 main ()
4697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4699 return 0;
4701 _ACEOF
4702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4705 CC="$ac_save_CC $ac_arg"
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_prog_cc_c89=$ac_arg
4709 rm -f core conftest.err conftest.$ac_objext
4710 test "x$ac_cv_prog_cc_c89" != "xno" && break
4711 done
4712 rm -f conftest.$ac_ext
4713 CC=$ac_save_CC
4716 # AC_CACHE_VAL
4717 case "x$ac_cv_prog_cc_c89" in
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4720 $as_echo "none needed" >&6; } ;;
4721 xno)
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4723 $as_echo "unsupported" >&6; } ;;
4725 CC="$CC $ac_cv_prog_cc_c89"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4728 esac
4729 if test "x$ac_cv_prog_cc_c89" != xno; then :
4733 ac_ext=c
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739 ac_ext=c
4740 ac_cpp='$CPP $CPPFLAGS'
4741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4745 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4746 if ${am_cv_prog_cc_c_o+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4753 main ()
4757 return 0;
4759 _ACEOF
4760 # Make sure it works both with $CC and with simple cc.
4761 # Following AC_PROG_CC_C_O, we do the test twice because some
4762 # compilers refuse to overwrite an existing .o file with -o,
4763 # though they will create one.
4764 am_cv_prog_cc_c_o=yes
4765 for am_i in 1 2; do
4766 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4767 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } \
4771 && test -f conftest2.$ac_objext; then
4772 : OK
4773 else
4774 am_cv_prog_cc_c_o=no
4775 break
4777 done
4778 rm -f core conftest*
4779 unset am_i
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4782 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4783 if test "$am_cv_prog_cc_c_o" != yes; then
4784 # Losing compiler, so override with the script.
4785 # FIXME: It is wrong to rewrite CC.
4786 # But if we don't then we get into trouble of one sort or another.
4787 # A longer-term fix would be to have automake use am__CC in this case,
4788 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4789 CC="$am_aux_dir/compile $CC"
4791 ac_ext=c
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798 depcc="$CC" am_compiler_list=
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4801 $as_echo_n "checking dependency style of $depcc... " >&6; }
4802 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4806 # We make a subdir and do the tests there. Otherwise we can end up
4807 # making bogus files that we don't know about and never remove. For
4808 # instance it was reported that on HP-UX the gcc test will end up
4809 # making a dummy file named 'D' -- because '-MD' means "put the output
4810 # in D".
4811 rm -rf conftest.dir
4812 mkdir conftest.dir
4813 # Copy depcomp to subdir because otherwise we won't find it if we're
4814 # using a relative directory.
4815 cp "$am_depcomp" conftest.dir
4816 cd conftest.dir
4817 # We will build objects and dependencies in a subdirectory because
4818 # it helps to detect inapplicable dependency modes. For instance
4819 # both Tru64's cc and ICC support -MD to output dependencies as a
4820 # side effect of compilation, but ICC will put the dependencies in
4821 # the current directory while Tru64 will put them in the object
4822 # directory.
4823 mkdir sub
4825 am_cv_CC_dependencies_compiler_type=none
4826 if test "$am_compiler_list" = ""; then
4827 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4829 am__universal=false
4830 case " $depcc " in #(
4831 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4832 esac
4834 for depmode in $am_compiler_list; do
4835 # Setup a source with many dependencies, because some compilers
4836 # like to wrap large dependency lists on column 80 (with \), and
4837 # we should not choose a depcomp mode which is confused by this.
4839 # We need to recreate these files for each test, as the compiler may
4840 # overwrite some of them when testing with obscure command lines.
4841 # This happens at least with the AIX C compiler.
4842 : > sub/conftest.c
4843 for i in 1 2 3 4 5 6; do
4844 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4845 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4846 # Solaris 10 /bin/sh.
4847 echo '/* dummy */' > sub/conftst$i.h
4848 done
4849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4851 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4852 # mode. It turns out that the SunPro C++ compiler does not properly
4853 # handle '-M -o', and we need to detect this. Also, some Intel
4854 # versions had trouble with output in subdirs.
4855 am__obj=sub/conftest.${OBJEXT-o}
4856 am__minus_obj="-o $am__obj"
4857 case $depmode in
4858 gcc)
4859 # This depmode causes a compiler race in universal mode.
4860 test "$am__universal" = false || continue
4862 nosideeffect)
4863 # After this tag, mechanisms are not by side-effect, so they'll
4864 # only be used when explicitly requested.
4865 if test "x$enable_dependency_tracking" = xyes; then
4866 continue
4867 else
4868 break
4871 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4872 # This compiler won't grok '-c -o', but also, the minuso test has
4873 # not run yet. These depmodes are late enough in the game, and
4874 # so weak that their functioning should not be impacted.
4875 am__obj=conftest.${OBJEXT-o}
4876 am__minus_obj=
4878 none) break ;;
4879 esac
4880 if depmode=$depmode \
4881 source=sub/conftest.c object=$am__obj \
4882 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4883 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4884 >/dev/null 2>conftest.err &&
4885 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4886 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4887 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4888 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4889 # icc doesn't choke on unknown options, it will just issue warnings
4890 # or remarks (even with -Werror). So we grep stderr for any message
4891 # that says an option was ignored or not supported.
4892 # When given -MP, icc 7.0 and 7.1 complain thusly:
4893 # icc: Command line warning: ignoring option '-M'; no argument required
4894 # The diagnosis changed in icc 8.0:
4895 # icc: Command line remark: option '-MP' not supported
4896 if (grep 'ignoring option' conftest.err ||
4897 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4898 am_cv_CC_dependencies_compiler_type=$depmode
4899 break
4902 done
4904 cd ..
4905 rm -rf conftest.dir
4906 else
4907 am_cv_CC_dependencies_compiler_type=none
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4912 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4913 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4916 test "x$enable_dependency_tracking" != xno \
4917 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4918 am__fastdepCC_TRUE=
4919 am__fastdepCC_FALSE='#'
4920 else
4921 am__fastdepCC_TRUE='#'
4922 am__fastdepCC_FALSE=
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4927 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4928 if ${ac_cv_prog_cc_c99+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 ac_cv_prog_cc_c99=no
4932 ac_save_CC=$CC
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935 #include <stdarg.h>
4936 #include <stdbool.h>
4937 #include <stdlib.h>
4938 #include <wchar.h>
4939 #include <stdio.h>
4941 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4942 #define debug(...) fprintf (stderr, __VA_ARGS__)
4943 #define showlist(...) puts (#__VA_ARGS__)
4944 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4945 static void
4946 test_varargs_macros (void)
4948 int x = 1234;
4949 int y = 5678;
4950 debug ("Flag");
4951 debug ("X = %d\n", x);
4952 showlist (The first, second, and third items.);
4953 report (x>y, "x is %d but y is %d", x, y);
4956 // Check long long types.
4957 #define BIG64 18446744073709551615ull
4958 #define BIG32 4294967295ul
4959 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4960 #if !BIG_OK
4961 your preprocessor is broken;
4962 #endif
4963 #if BIG_OK
4964 #else
4965 your preprocessor is broken;
4966 #endif
4967 static long long int bignum = -9223372036854775807LL;
4968 static unsigned long long int ubignum = BIG64;
4970 struct incomplete_array
4972 int datasize;
4973 double data[];
4976 struct named_init {
4977 int number;
4978 const wchar_t *name;
4979 double average;
4982 typedef const char *ccp;
4984 static inline int
4985 test_restrict (ccp restrict text)
4987 // See if C++-style comments work.
4988 // Iterate through items via the restricted pointer.
4989 // Also check for declarations in for loops.
4990 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4991 continue;
4992 return 0;
4995 // Check varargs and va_copy.
4996 static void
4997 test_varargs (const char *format, ...)
4999 va_list args;
5000 va_start (args, format);
5001 va_list args_copy;
5002 va_copy (args_copy, args);
5004 const char *str;
5005 int number;
5006 float fnumber;
5008 while (*format)
5010 switch (*format++)
5012 case 's': // string
5013 str = va_arg (args_copy, const char *);
5014 break;
5015 case 'd': // int
5016 number = va_arg (args_copy, int);
5017 break;
5018 case 'f': // float
5019 fnumber = va_arg (args_copy, double);
5020 break;
5021 default:
5022 break;
5025 va_end (args_copy);
5026 va_end (args);
5030 main ()
5033 // Check bool.
5034 _Bool success = false;
5036 // Check restrict.
5037 if (test_restrict ("String literal") == 0)
5038 success = true;
5039 char *restrict newvar = "Another string";
5041 // Check varargs.
5042 test_varargs ("s, d' f .", "string", 65, 34.234);
5043 test_varargs_macros ();
5045 // Check flexible array members.
5046 struct incomplete_array *ia =
5047 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5048 ia->datasize = 10;
5049 for (int i = 0; i < ia->datasize; ++i)
5050 ia->data[i] = i * 1.234;
5052 // Check named initializers.
5053 struct named_init ni = {
5054 .number = 34,
5055 .name = L"Test wide string",
5056 .average = 543.34343,
5059 ni.number = 58;
5061 int dynamic_array[ni.number];
5062 dynamic_array[ni.number - 1] = 543;
5064 // work around unused variable warnings
5065 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5066 || dynamic_array[ni.number - 1] != 543);
5069 return 0;
5071 _ACEOF
5072 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5074 CC="$ac_save_CC $ac_arg"
5075 if ac_fn_c_try_compile "$LINENO"; then :
5076 ac_cv_prog_cc_c99=$ac_arg
5078 rm -f core conftest.err conftest.$ac_objext
5079 test "x$ac_cv_prog_cc_c99" != "xno" && break
5080 done
5081 rm -f conftest.$ac_ext
5082 CC=$ac_save_CC
5085 # AC_CACHE_VAL
5086 case "x$ac_cv_prog_cc_c99" in
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5089 $as_echo "none needed" >&6; } ;;
5090 xno)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5092 $as_echo "unsupported" >&6; } ;;
5094 CC="$CC $ac_cv_prog_cc_c99"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5096 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5097 esac
5098 if test "x$ac_cv_prog_cc_c99" != xno; then :
5103 # By default we simply use the C compiler to build assembly code.
5105 test "${CCAS+set}" = set || CCAS=$CC
5106 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5110 depcc="$CCAS" am_compiler_list=
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5113 $as_echo_n "checking dependency style of $depcc... " >&6; }
5114 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5118 # We make a subdir and do the tests there. Otherwise we can end up
5119 # making bogus files that we don't know about and never remove. For
5120 # instance it was reported that on HP-UX the gcc test will end up
5121 # making a dummy file named 'D' -- because '-MD' means "put the output
5122 # in D".
5123 rm -rf conftest.dir
5124 mkdir conftest.dir
5125 # Copy depcomp to subdir because otherwise we won't find it if we're
5126 # using a relative directory.
5127 cp "$am_depcomp" conftest.dir
5128 cd conftest.dir
5129 # We will build objects and dependencies in a subdirectory because
5130 # it helps to detect inapplicable dependency modes. For instance
5131 # both Tru64's cc and ICC support -MD to output dependencies as a
5132 # side effect of compilation, but ICC will put the dependencies in
5133 # the current directory while Tru64 will put them in the object
5134 # directory.
5135 mkdir sub
5137 am_cv_CCAS_dependencies_compiler_type=none
5138 if test "$am_compiler_list" = ""; then
5139 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5141 am__universal=false
5144 for depmode in $am_compiler_list; do
5145 # Setup a source with many dependencies, because some compilers
5146 # like to wrap large dependency lists on column 80 (with \), and
5147 # we should not choose a depcomp mode which is confused by this.
5149 # We need to recreate these files for each test, as the compiler may
5150 # overwrite some of them when testing with obscure command lines.
5151 # This happens at least with the AIX C compiler.
5152 : > sub/conftest.c
5153 for i in 1 2 3 4 5 6; do
5154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5155 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5156 # Solaris 10 /bin/sh.
5157 echo '/* dummy */' > sub/conftst$i.h
5158 done
5159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5161 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5162 # mode. It turns out that the SunPro C++ compiler does not properly
5163 # handle '-M -o', and we need to detect this. Also, some Intel
5164 # versions had trouble with output in subdirs.
5165 am__obj=sub/conftest.${OBJEXT-o}
5166 am__minus_obj="-o $am__obj"
5167 case $depmode in
5168 gcc)
5169 # This depmode causes a compiler race in universal mode.
5170 test "$am__universal" = false || continue
5172 nosideeffect)
5173 # After this tag, mechanisms are not by side-effect, so they'll
5174 # only be used when explicitly requested.
5175 if test "x$enable_dependency_tracking" = xyes; then
5176 continue
5177 else
5178 break
5181 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5182 # This compiler won't grok '-c -o', but also, the minuso test has
5183 # not run yet. These depmodes are late enough in the game, and
5184 # so weak that their functioning should not be impacted.
5185 am__obj=conftest.${OBJEXT-o}
5186 am__minus_obj=
5188 none) break ;;
5189 esac
5190 if depmode=$depmode \
5191 source=sub/conftest.c object=$am__obj \
5192 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5193 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5194 >/dev/null 2>conftest.err &&
5195 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5197 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5199 # icc doesn't choke on unknown options, it will just issue warnings
5200 # or remarks (even with -Werror). So we grep stderr for any message
5201 # that says an option was ignored or not supported.
5202 # When given -MP, icc 7.0 and 7.1 complain thusly:
5203 # icc: Command line warning: ignoring option '-M'; no argument required
5204 # The diagnosis changed in icc 8.0:
5205 # icc: Command line remark: option '-MP' not supported
5206 if (grep 'ignoring option' conftest.err ||
5207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5208 am_cv_CCAS_dependencies_compiler_type=$depmode
5209 break
5212 done
5214 cd ..
5215 rm -rf conftest.dir
5216 else
5217 am_cv_CCAS_dependencies_compiler_type=none
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5222 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5223 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5226 test "x$enable_dependency_tracking" != xno \
5227 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5228 am__fastdepCCAS_TRUE=
5229 am__fastdepCCAS_FALSE='#'
5230 else
5231 am__fastdepCCAS_TRUE='#'
5232 am__fastdepCCAS_FALSE=
5236 if test -n "$ac_tool_prefix"; then
5237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5238 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if ${ac_cv_prog_RANLIB+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 if test -n "$RANLIB"; then
5245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5258 done
5259 done
5260 IFS=$as_save_IFS
5264 RANLIB=$ac_cv_prog_RANLIB
5265 if test -n "$RANLIB"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5267 $as_echo "$RANLIB" >&6; }
5268 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5275 if test -z "$ac_cv_prog_RANLIB"; then
5276 ac_ct_RANLIB=$RANLIB
5277 # Extract the first word of "ranlib", so it can be a program name with args.
5278 set dummy ranlib; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 if test -n "$ac_ct_RANLIB"; then
5285 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_ac_ct_RANLIB="ranlib"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5300 IFS=$as_save_IFS
5304 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5305 if test -n "$ac_ct_RANLIB"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5307 $as_echo "$ac_ct_RANLIB" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5313 if test "x$ac_ct_RANLIB" = x; then
5314 RANLIB=":"
5315 else
5316 case $cross_compiling:$ac_tool_warned in
5317 yes:)
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5320 ac_tool_warned=yes ;;
5321 esac
5322 RANLIB=$ac_ct_RANLIB
5324 else
5325 RANLIB="$ac_cv_prog_RANLIB"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5329 $as_echo_n "checking whether ln -s works... " >&6; }
5330 LN_S=$as_ln_s
5331 if test "$LN_S" = "ln -s"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5333 $as_echo "yes" >&6; }
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5336 $as_echo "no, using $LN_S" >&6; }
5340 LUAJITVERSION=2.1.0-beta1
5343 LUAJIT_LT_VERSINFO=3:0:1
5346 case `pwd` in
5347 *\ * | *\ *)
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5349 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5350 esac
5354 macro_version='2.4.6'
5355 macro_revision='2.4.6'
5369 ltmain=$ac_aux_dir/ltmain.sh
5371 # Backslashify metacharacters that are still active within
5372 # double-quoted strings.
5373 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5375 # Same as above, but do not quote variable references.
5376 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5378 # Sed substitution to delay expansion of an escaped shell variable in a
5379 # double_quote_subst'ed string.
5380 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5382 # Sed substitution to delay expansion of an escaped single quote.
5383 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5385 # Sed substitution to avoid accidental globbing in evaled expressions
5386 no_glob_subst='s/\*/\\\*/g'
5388 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5389 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5390 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5393 $as_echo_n "checking how to print strings... " >&6; }
5394 # Test print first, because it will be a builtin if present.
5395 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5396 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5397 ECHO='print -r --'
5398 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5399 ECHO='printf %s\n'
5400 else
5401 # Use this function as a fallback that always works.
5402 func_fallback_echo ()
5404 eval 'cat <<_LTECHO_EOF
5406 _LTECHO_EOF'
5408 ECHO='func_fallback_echo'
5411 # func_echo_all arg...
5412 # Invoke $ECHO with all args, space-separated.
5413 func_echo_all ()
5415 $ECHO ""
5418 case $ECHO in
5419 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5420 $as_echo "printf" >&6; } ;;
5421 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5422 $as_echo "print -r" >&6; } ;;
5423 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5424 $as_echo "cat" >&6; } ;;
5425 esac
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5441 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5442 if ${ac_cv_path_SED+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5446 for ac_i in 1 2 3 4 5 6 7; do
5447 ac_script="$ac_script$as_nl$ac_script"
5448 done
5449 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5450 { ac_script=; unset ac_script;}
5451 if test -z "$SED"; then
5452 ac_path_SED_found=false
5453 # Loop through the user's path and test for each of PROGNAME-LIST
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_prog in sed gsed; do
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5462 as_fn_executable_p "$ac_path_SED" || continue
5463 # Check for GNU ac_path_SED and select it if it is found.
5464 # Check for GNU $ac_path_SED
5465 case `"$ac_path_SED" --version 2>&1` in
5466 *GNU*)
5467 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5469 ac_count=0
5470 $as_echo_n 0123456789 >"conftest.in"
5471 while :
5473 cat "conftest.in" "conftest.in" >"conftest.tmp"
5474 mv "conftest.tmp" "conftest.in"
5475 cp "conftest.in" "conftest.nl"
5476 $as_echo '' >> "conftest.nl"
5477 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5479 as_fn_arith $ac_count + 1 && ac_count=$as_val
5480 if test $ac_count -gt ${ac_path_SED_max-0}; then
5481 # Best one so far, save it but keep looking for a better one
5482 ac_cv_path_SED="$ac_path_SED"
5483 ac_path_SED_max=$ac_count
5485 # 10*(2^10) chars as input seems more than enough
5486 test $ac_count -gt 10 && break
5487 done
5488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5489 esac
5491 $ac_path_SED_found && break 3
5492 done
5493 done
5494 done
5495 IFS=$as_save_IFS
5496 if test -z "$ac_cv_path_SED"; then
5497 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5499 else
5500 ac_cv_path_SED=$SED
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5505 $as_echo "$ac_cv_path_SED" >&6; }
5506 SED="$ac_cv_path_SED"
5507 rm -f conftest.sed
5509 test -z "$SED" && SED=sed
5510 Xsed="$SED -e 1s/^X//"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5523 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5524 if ${ac_cv_path_GREP+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 if test -z "$GREP"; then
5528 ac_path_GREP_found=false
5529 # Loop through the user's path and test for each of PROGNAME-LIST
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 for ac_prog in grep ggrep; do
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5538 as_fn_executable_p "$ac_path_GREP" || continue
5539 # Check for GNU ac_path_GREP and select it if it is found.
5540 # Check for GNU $ac_path_GREP
5541 case `"$ac_path_GREP" --version 2>&1` in
5542 *GNU*)
5543 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5545 ac_count=0
5546 $as_echo_n 0123456789 >"conftest.in"
5547 while :
5549 cat "conftest.in" "conftest.in" >"conftest.tmp"
5550 mv "conftest.tmp" "conftest.in"
5551 cp "conftest.in" "conftest.nl"
5552 $as_echo 'GREP' >> "conftest.nl"
5553 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555 as_fn_arith $ac_count + 1 && ac_count=$as_val
5556 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5557 # Best one so far, save it but keep looking for a better one
5558 ac_cv_path_GREP="$ac_path_GREP"
5559 ac_path_GREP_max=$ac_count
5561 # 10*(2^10) chars as input seems more than enough
5562 test $ac_count -gt 10 && break
5563 done
5564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5565 esac
5567 $ac_path_GREP_found && break 3
5568 done
5569 done
5570 done
5571 IFS=$as_save_IFS
5572 if test -z "$ac_cv_path_GREP"; then
5573 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5575 else
5576 ac_cv_path_GREP=$GREP
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5581 $as_echo "$ac_cv_path_GREP" >&6; }
5582 GREP="$ac_cv_path_GREP"
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5586 $as_echo_n "checking for egrep... " >&6; }
5587 if ${ac_cv_path_EGREP+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5591 then ac_cv_path_EGREP="$GREP -E"
5592 else
5593 if test -z "$EGREP"; then
5594 ac_path_EGREP_found=false
5595 # Loop through the user's path and test for each of PROGNAME-LIST
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_prog in egrep; do
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5604 as_fn_executable_p "$ac_path_EGREP" || continue
5605 # Check for GNU ac_path_EGREP and select it if it is found.
5606 # Check for GNU $ac_path_EGREP
5607 case `"$ac_path_EGREP" --version 2>&1` in
5608 *GNU*)
5609 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5611 ac_count=0
5612 $as_echo_n 0123456789 >"conftest.in"
5613 while :
5615 cat "conftest.in" "conftest.in" >"conftest.tmp"
5616 mv "conftest.tmp" "conftest.in"
5617 cp "conftest.in" "conftest.nl"
5618 $as_echo 'EGREP' >> "conftest.nl"
5619 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5621 as_fn_arith $ac_count + 1 && ac_count=$as_val
5622 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5623 # Best one so far, save it but keep looking for a better one
5624 ac_cv_path_EGREP="$ac_path_EGREP"
5625 ac_path_EGREP_max=$ac_count
5627 # 10*(2^10) chars as input seems more than enough
5628 test $ac_count -gt 10 && break
5629 done
5630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5631 esac
5633 $ac_path_EGREP_found && break 3
5634 done
5635 done
5636 done
5637 IFS=$as_save_IFS
5638 if test -z "$ac_cv_path_EGREP"; then
5639 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5641 else
5642 ac_cv_path_EGREP=$EGREP
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5648 $as_echo "$ac_cv_path_EGREP" >&6; }
5649 EGREP="$ac_cv_path_EGREP"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5653 $as_echo_n "checking for fgrep... " >&6; }
5654 if ${ac_cv_path_FGREP+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5658 then ac_cv_path_FGREP="$GREP -F"
5659 else
5660 if test -z "$FGREP"; then
5661 ac_path_FGREP_found=false
5662 # Loop through the user's path and test for each of PROGNAME-LIST
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_prog in fgrep; do
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5671 as_fn_executable_p "$ac_path_FGREP" || continue
5672 # Check for GNU ac_path_FGREP and select it if it is found.
5673 # Check for GNU $ac_path_FGREP
5674 case `"$ac_path_FGREP" --version 2>&1` in
5675 *GNU*)
5676 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5678 ac_count=0
5679 $as_echo_n 0123456789 >"conftest.in"
5680 while :
5682 cat "conftest.in" "conftest.in" >"conftest.tmp"
5683 mv "conftest.tmp" "conftest.in"
5684 cp "conftest.in" "conftest.nl"
5685 $as_echo 'FGREP' >> "conftest.nl"
5686 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5688 as_fn_arith $ac_count + 1 && ac_count=$as_val
5689 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5690 # Best one so far, save it but keep looking for a better one
5691 ac_cv_path_FGREP="$ac_path_FGREP"
5692 ac_path_FGREP_max=$ac_count
5694 # 10*(2^10) chars as input seems more than enough
5695 test $ac_count -gt 10 && break
5696 done
5697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5698 esac
5700 $ac_path_FGREP_found && break 3
5701 done
5702 done
5703 done
5704 IFS=$as_save_IFS
5705 if test -z "$ac_cv_path_FGREP"; then
5706 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5708 else
5709 ac_cv_path_FGREP=$FGREP
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5715 $as_echo "$ac_cv_path_FGREP" >&6; }
5716 FGREP="$ac_cv_path_FGREP"
5719 test -z "$GREP" && GREP=grep
5739 # Check whether --with-gnu-ld was given.
5740 if test "${with_gnu_ld+set}" = set; then :
5741 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5742 else
5743 with_gnu_ld=no
5746 ac_prog=ld
5747 if test yes = "$GCC"; then
5748 # Check if gcc -print-prog-name=ld gives a path.
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5750 $as_echo_n "checking for ld used by $CC... " >&6; }
5751 case $host in
5752 *-*-mingw*)
5753 # gcc leaves a trailing carriage return, which upsets mingw
5754 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5756 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5757 esac
5758 case $ac_prog in
5759 # Accept absolute paths.
5760 [\\/]* | ?:[\\/]*)
5761 re_direlt='/[^/][^/]*/\.\./'
5762 # Canonicalize the pathname of ld
5763 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5764 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5765 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5766 done
5767 test -z "$LD" && LD=$ac_prog
5770 # If it fails, then pretend we aren't using GCC.
5771 ac_prog=ld
5774 # If it is relative, then search for the first ld in PATH.
5775 with_gnu_ld=unknown
5777 esac
5778 elif test yes = "$with_gnu_ld"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5780 $as_echo_n "checking for GNU ld... " >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5783 $as_echo_n "checking for non-GNU ld... " >&6; }
5785 if ${lt_cv_path_LD+:} false; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 if test -z "$LD"; then
5789 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5790 for ac_dir in $PATH; do
5791 IFS=$lt_save_ifs
5792 test -z "$ac_dir" && ac_dir=.
5793 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5794 lt_cv_path_LD=$ac_dir/$ac_prog
5795 # Check to see if the program is GNU ld. I'd rather use --version,
5796 # but apparently some variants of GNU ld only accept -v.
5797 # Break only if it was the GNU/non-GNU ld that we prefer.
5798 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5799 *GNU* | *'with BFD'*)
5800 test no != "$with_gnu_ld" && break
5803 test yes != "$with_gnu_ld" && break
5805 esac
5807 done
5808 IFS=$lt_save_ifs
5809 else
5810 lt_cv_path_LD=$LD # Let the user override the test with a path.
5814 LD=$lt_cv_path_LD
5815 if test -n "$LD"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5817 $as_echo "$LD" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5822 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5824 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5825 if ${lt_cv_prog_gnu_ld+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5829 case `$LD -v 2>&1 </dev/null` in
5830 *GNU* | *'with BFD'*)
5831 lt_cv_prog_gnu_ld=yes
5834 lt_cv_prog_gnu_ld=no
5836 esac
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5839 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5840 with_gnu_ld=$lt_cv_prog_gnu_ld
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5851 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5852 if ${lt_cv_path_NM+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -n "$NM"; then
5856 # Let the user override the test.
5857 lt_cv_path_NM=$NM
5858 else
5859 lt_nm_to_check=${ac_tool_prefix}nm
5860 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5861 lt_nm_to_check="$lt_nm_to_check nm"
5863 for lt_tmp_nm in $lt_nm_to_check; do
5864 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5865 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5866 IFS=$lt_save_ifs
5867 test -z "$ac_dir" && ac_dir=.
5868 tmp_nm=$ac_dir/$lt_tmp_nm
5869 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5870 # Check to see if the nm accepts a BSD-compat flag.
5871 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5872 # nm: unknown option "B" ignored
5873 # Tru64's nm complains that /dev/null is an invalid object file
5874 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5875 case $build_os in
5876 mingw*) lt_bad_file=conftest.nm/nofile ;;
5877 *) lt_bad_file=/dev/null ;;
5878 esac
5879 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5880 *$lt_bad_file* | *'Invalid file or object type'*)
5881 lt_cv_path_NM="$tmp_nm -B"
5882 break 2
5885 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5886 */dev/null*)
5887 lt_cv_path_NM="$tmp_nm -p"
5888 break 2
5891 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5892 continue # so that we can try to find one that supports BSD flags
5894 esac
5896 esac
5898 done
5899 IFS=$lt_save_ifs
5900 done
5901 : ${lt_cv_path_NM=no}
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5905 $as_echo "$lt_cv_path_NM" >&6; }
5906 if test no != "$lt_cv_path_NM"; then
5907 NM=$lt_cv_path_NM
5908 else
5909 # Didn't find any BSD compatible name lister, look for dumpbin.
5910 if test -n "$DUMPBIN"; then :
5911 # Let the user override the test.
5912 else
5913 if test -n "$ac_tool_prefix"; then
5914 for ac_prog in dumpbin "link -dump"
5916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_DUMPBIN+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$DUMPBIN"; then
5924 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5937 done
5938 done
5939 IFS=$as_save_IFS
5943 DUMPBIN=$ac_cv_prog_DUMPBIN
5944 if test -n "$DUMPBIN"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5946 $as_echo "$DUMPBIN" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5953 test -n "$DUMPBIN" && break
5954 done
5956 if test -z "$DUMPBIN"; then
5957 ac_ct_DUMPBIN=$DUMPBIN
5958 for ac_prog in dumpbin "link -dump"
5960 # Extract the first word of "$ac_prog", so it can be a program name with args.
5961 set dummy $ac_prog; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$ac_ct_DUMPBIN"; then
5968 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5981 done
5982 done
5983 IFS=$as_save_IFS
5987 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5988 if test -n "$ac_ct_DUMPBIN"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5990 $as_echo "$ac_ct_DUMPBIN" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5997 test -n "$ac_ct_DUMPBIN" && break
5998 done
6000 if test "x$ac_ct_DUMPBIN" = x; then
6001 DUMPBIN=":"
6002 else
6003 case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6008 esac
6009 DUMPBIN=$ac_ct_DUMPBIN
6013 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6014 *COFF*)
6015 DUMPBIN="$DUMPBIN -symbols -headers"
6018 DUMPBIN=:
6020 esac
6023 if test : != "$DUMPBIN"; then
6024 NM=$DUMPBIN
6027 test -z "$NM" && NM=nm
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6035 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6036 if ${lt_cv_nm_interface+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 lt_cv_nm_interface="BSD nm"
6040 echo "int some_variable = 0;" > conftest.$ac_ext
6041 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6042 (eval "$ac_compile" 2>conftest.err)
6043 cat conftest.err >&5
6044 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6045 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6046 cat conftest.err >&5
6047 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6048 cat conftest.out >&5
6049 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6050 lt_cv_nm_interface="MS dumpbin"
6052 rm -f conftest*
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6055 $as_echo "$lt_cv_nm_interface" >&6; }
6057 # find the maximum length of command line arguments
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6059 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6060 if ${lt_cv_sys_max_cmd_len+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6064 teststring=ABCD
6066 case $build_os in
6067 msdosdjgpp*)
6068 # On DJGPP, this test can blow up pretty badly due to problems in libc
6069 # (any single argument exceeding 2000 bytes causes a buffer overrun
6070 # during glob expansion). Even if it were fixed, the result of this
6071 # check would be larger than it should be.
6072 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6075 gnu*)
6076 # Under GNU Hurd, this test is not required because there is
6077 # no limit to the length of command line arguments.
6078 # Libtool will interpret -1 as no limit whatsoever
6079 lt_cv_sys_max_cmd_len=-1;
6082 cygwin* | mingw* | cegcc*)
6083 # On Win9x/ME, this test blows up -- it succeeds, but takes
6084 # about 5 minutes as the teststring grows exponentially.
6085 # Worse, since 9x/ME are not pre-emptively multitasking,
6086 # you end up with a "frozen" computer, even though with patience
6087 # the test eventually succeeds (with a max line length of 256k).
6088 # Instead, let's just punt: use the minimum linelength reported by
6089 # all of the supported platforms: 8192 (on NT/2K/XP).
6090 lt_cv_sys_max_cmd_len=8192;
6093 mint*)
6094 # On MiNT this can take a long time and run out of memory.
6095 lt_cv_sys_max_cmd_len=8192;
6098 amigaos*)
6099 # On AmigaOS with pdksh, this test takes hours, literally.
6100 # So we just punt and use a minimum line length of 8192.
6101 lt_cv_sys_max_cmd_len=8192;
6104 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6105 # This has been around since 386BSD, at least. Likely further.
6106 if test -x /sbin/sysctl; then
6107 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6108 elif test -x /usr/sbin/sysctl; then
6109 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6110 else
6111 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6113 # And add a safety zone
6114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6118 interix*)
6119 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6120 lt_cv_sys_max_cmd_len=196608
6123 os2*)
6124 # The test takes a long time on OS/2.
6125 lt_cv_sys_max_cmd_len=8192
6128 osf*)
6129 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6130 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6131 # nice to cause kernel panics so lets avoid the loop below.
6132 # First set a reasonable default.
6133 lt_cv_sys_max_cmd_len=16384
6135 if test -x /sbin/sysconfig; then
6136 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6137 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6138 esac
6141 sco3.2v5*)
6142 lt_cv_sys_max_cmd_len=102400
6144 sysv5* | sco5v6* | sysv4.2uw2*)
6145 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6146 if test -n "$kargmax"; then
6147 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6148 else
6149 lt_cv_sys_max_cmd_len=32768
6153 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6154 if test -n "$lt_cv_sys_max_cmd_len" && \
6155 test undefined != "$lt_cv_sys_max_cmd_len"; then
6156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6158 else
6159 # Make teststring a little bigger before we do anything with it.
6160 # a 1K string should be a reasonable start.
6161 for i in 1 2 3 4 5 6 7 8; do
6162 teststring=$teststring$teststring
6163 done
6164 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6165 # If test is not a shell built-in, we'll probably end up computing a
6166 # maximum length that is only half of the actual maximum length, but
6167 # we can't tell.
6168 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6169 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6170 test 17 != "$i" # 1/2 MB should be enough
6172 i=`expr $i + 1`
6173 teststring=$teststring$teststring
6174 done
6175 # Only check the string length outside the loop.
6176 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6177 teststring=
6178 # Add a significant safety factor because C++ compilers can tack on
6179 # massive amounts of additional arguments before passing them to the
6180 # linker. It appears as though 1/2 is a usable value.
6181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6184 esac
6188 if test -n "$lt_cv_sys_max_cmd_len"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6190 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6193 $as_echo "none" >&6; }
6195 max_cmd_len=$lt_cv_sys_max_cmd_len
6202 : ${CP="cp -f"}
6203 : ${MV="mv -f"}
6204 : ${RM="rm -f"}
6206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6207 lt_unset=unset
6208 else
6209 lt_unset=false
6216 # test EBCDIC or ASCII
6217 case `echo X|tr X '\101'` in
6218 A) # ASCII based system
6219 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6220 lt_SP2NL='tr \040 \012'
6221 lt_NL2SP='tr \015\012 \040\040'
6223 *) # EBCDIC based system
6224 lt_SP2NL='tr \100 \n'
6225 lt_NL2SP='tr \r\n \100\100'
6227 esac
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6238 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6239 if ${lt_cv_to_host_file_cmd+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 case $host in
6243 *-*-mingw* )
6244 case $build in
6245 *-*-mingw* ) # actually msys
6246 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6248 *-*-cygwin* )
6249 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6251 * ) # otherwise, assume *nix
6252 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6254 esac
6256 *-*-cygwin* )
6257 case $build in
6258 *-*-mingw* ) # actually msys
6259 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6261 *-*-cygwin* )
6262 lt_cv_to_host_file_cmd=func_convert_file_noop
6264 * ) # otherwise, assume *nix
6265 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6267 esac
6269 * ) # unhandled hosts (and "normal" native builds)
6270 lt_cv_to_host_file_cmd=func_convert_file_noop
6272 esac
6276 to_host_file_cmd=$lt_cv_to_host_file_cmd
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6278 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6285 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6286 if ${lt_cv_to_tool_file_cmd+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 #assume ordinary cross tools, or native build.
6290 lt_cv_to_tool_file_cmd=func_convert_file_noop
6291 case $host in
6292 *-*-mingw* )
6293 case $build in
6294 *-*-mingw* ) # actually msys
6295 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6297 esac
6299 esac
6303 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6305 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6312 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6313 if ${lt_cv_ld_reload_flag+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 lt_cv_ld_reload_flag='-r'
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6319 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6320 reload_flag=$lt_cv_ld_reload_flag
6321 case $reload_flag in
6322 "" | " "*) ;;
6323 *) reload_flag=" $reload_flag" ;;
6324 esac
6325 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6326 case $host_os in
6327 cygwin* | mingw* | pw32* | cegcc*)
6328 if test yes != "$GCC"; then
6329 reload_cmds=false
6332 darwin*)
6333 if test yes = "$GCC"; then
6334 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6335 else
6336 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6339 esac
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_OBJDUMP+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if test -n "$OBJDUMP"; then
6358 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6371 done
6372 done
6373 IFS=$as_save_IFS
6377 OBJDUMP=$ac_cv_prog_OBJDUMP
6378 if test -n "$OBJDUMP"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6380 $as_echo "$OBJDUMP" >&6; }
6381 else
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6388 if test -z "$ac_cv_prog_OBJDUMP"; then
6389 ac_ct_OBJDUMP=$OBJDUMP
6390 # Extract the first word of "objdump", so it can be a program name with args.
6391 set dummy objdump; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 if test -n "$ac_ct_OBJDUMP"; then
6398 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 break 2
6411 done
6412 done
6413 IFS=$as_save_IFS
6417 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6418 if test -n "$ac_ct_OBJDUMP"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6420 $as_echo "$ac_ct_OBJDUMP" >&6; }
6421 else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6426 if test "x$ac_ct_OBJDUMP" = x; then
6427 OBJDUMP="false"
6428 else
6429 case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435 OBJDUMP=$ac_ct_OBJDUMP
6437 else
6438 OBJDUMP="$ac_cv_prog_OBJDUMP"
6441 test -z "$OBJDUMP" && OBJDUMP=objdump
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6449 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6450 if ${lt_cv_deplibs_check_method+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 lt_cv_file_magic_cmd='$MAGIC_CMD'
6454 lt_cv_file_magic_test_file=
6455 lt_cv_deplibs_check_method='unknown'
6456 # Need to set the preceding variable on all platforms that support
6457 # interlibrary dependencies.
6458 # 'none' -- dependencies not supported.
6459 # 'unknown' -- same as none, but documents that we really don't know.
6460 # 'pass_all' -- all dependencies passed with no checks.
6461 # 'test_compile' -- check by making test program.
6462 # 'file_magic [[regex]]' -- check by looking for files in library path
6463 # that responds to the $file_magic_cmd with a given extended regex.
6464 # If you have 'file' or equivalent on your system and you're not sure
6465 # whether 'pass_all' will *always* work, you probably want this one.
6467 case $host_os in
6468 aix[4-9]*)
6469 lt_cv_deplibs_check_method=pass_all
6472 beos*)
6473 lt_cv_deplibs_check_method=pass_all
6476 bsdi[45]*)
6477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6478 lt_cv_file_magic_cmd='/usr/bin/file -L'
6479 lt_cv_file_magic_test_file=/shlib/libc.so
6482 cygwin*)
6483 # func_win32_libid is a shell function defined in ltmain.sh
6484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6485 lt_cv_file_magic_cmd='func_win32_libid'
6488 mingw* | pw32*)
6489 # Base MSYS/MinGW do not provide the 'file' command needed by
6490 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6491 # unless we find 'file', for example because we are cross-compiling.
6492 if ( file / ) >/dev/null 2>&1; then
6493 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6494 lt_cv_file_magic_cmd='func_win32_libid'
6495 else
6496 # Keep this pattern in sync with the one in func_win32_libid.
6497 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6498 lt_cv_file_magic_cmd='$OBJDUMP -f'
6502 cegcc*)
6503 # use the weaker test based on 'objdump'. See mingw*.
6504 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6505 lt_cv_file_magic_cmd='$OBJDUMP -f'
6508 darwin* | rhapsody*)
6509 lt_cv_deplibs_check_method=pass_all
6512 freebsd* | dragonfly*)
6513 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6514 case $host_cpu in
6515 i*86 )
6516 # Not sure whether the presence of OpenBSD here was a mistake.
6517 # Let's accept both of them until this is cleared up.
6518 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6519 lt_cv_file_magic_cmd=/usr/bin/file
6520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6522 esac
6523 else
6524 lt_cv_deplibs_check_method=pass_all
6528 haiku*)
6529 lt_cv_deplibs_check_method=pass_all
6532 hpux10.20* | hpux11*)
6533 lt_cv_file_magic_cmd=/usr/bin/file
6534 case $host_cpu in
6535 ia64*)
6536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6537 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6539 hppa*64*)
6540 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]'
6541 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6547 esac
6550 interix[3-9]*)
6551 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6555 irix5* | irix6* | nonstopux*)
6556 case $LD in
6557 *-32|*"-32 ") libmagic=32-bit;;
6558 *-n32|*"-n32 ") libmagic=N32;;
6559 *-64|*"-64 ") libmagic=64-bit;;
6560 *) libmagic=never-match;;
6561 esac
6562 lt_cv_deplibs_check_method=pass_all
6565 # This must be glibc/ELF.
6566 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6567 lt_cv_deplibs_check_method=pass_all
6570 netbsd*)
6571 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6573 else
6574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6578 newos6*)
6579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6580 lt_cv_file_magic_cmd=/usr/bin/file
6581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6584 *nto* | *qnx*)
6585 lt_cv_deplibs_check_method=pass_all
6588 openbsd* | bitrig*)
6589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6591 else
6592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6596 osf3* | osf4* | osf5*)
6597 lt_cv_deplibs_check_method=pass_all
6600 rdos*)
6601 lt_cv_deplibs_check_method=pass_all
6604 solaris*)
6605 lt_cv_deplibs_check_method=pass_all
6608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6609 lt_cv_deplibs_check_method=pass_all
6612 sysv4 | sysv4.3*)
6613 case $host_vendor in
6614 motorola)
6615 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]'
6616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6618 ncr)
6619 lt_cv_deplibs_check_method=pass_all
6621 sequent)
6622 lt_cv_file_magic_cmd='/bin/file'
6623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6625 sni)
6626 lt_cv_file_magic_cmd='/bin/file'
6627 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6628 lt_cv_file_magic_test_file=/lib/libc.so
6630 siemens)
6631 lt_cv_deplibs_check_method=pass_all
6634 lt_cv_deplibs_check_method=pass_all
6636 esac
6639 tpf*)
6640 lt_cv_deplibs_check_method=pass_all
6642 os2*)
6643 lt_cv_deplibs_check_method=pass_all
6645 esac
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6649 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6651 file_magic_glob=
6652 want_nocaseglob=no
6653 if test "$build" = "$host"; then
6654 case $host_os in
6655 mingw* | pw32*)
6656 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6657 want_nocaseglob=yes
6658 else
6659 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6662 esac
6665 file_magic_cmd=$lt_cv_file_magic_cmd
6666 deplibs_check_method=$lt_cv_deplibs_check_method
6667 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6690 if test -n "$ac_tool_prefix"; then
6691 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_DLLTOOL+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test -n "$DLLTOOL"; then
6699 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6712 done
6713 done
6714 IFS=$as_save_IFS
6718 DLLTOOL=$ac_cv_prog_DLLTOOL
6719 if test -n "$DLLTOOL"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6721 $as_echo "$DLLTOOL" >&6; }
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6729 if test -z "$ac_cv_prog_DLLTOOL"; then
6730 ac_ct_DLLTOOL=$DLLTOOL
6731 # Extract the first word of "dlltool", so it can be a program name with args.
6732 set dummy dlltool; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 if test -n "$ac_ct_DLLTOOL"; then
6739 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6752 done
6753 done
6754 IFS=$as_save_IFS
6758 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6759 if test -n "$ac_ct_DLLTOOL"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6761 $as_echo "$ac_ct_DLLTOOL" >&6; }
6762 else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6767 if test "x$ac_ct_DLLTOOL" = x; then
6768 DLLTOOL="false"
6769 else
6770 case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6775 esac
6776 DLLTOOL=$ac_ct_DLLTOOL
6778 else
6779 DLLTOOL="$ac_cv_prog_DLLTOOL"
6782 test -z "$DLLTOOL" && DLLTOOL=dlltool
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6791 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6792 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 lt_cv_sharedlib_from_linklib_cmd='unknown'
6797 case $host_os in
6798 cygwin* | mingw* | pw32* | cegcc*)
6799 # two different shell functions defined in ltmain.sh;
6800 # decide which one to use based on capabilities of $DLLTOOL
6801 case `$DLLTOOL --help 2>&1` in
6802 *--identify-strict*)
6803 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6806 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6808 esac
6811 # fallback: assume linklib IS sharedlib
6812 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6814 esac
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6818 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6819 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6820 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6828 if test -n "$ac_tool_prefix"; then
6829 for ac_prog in ar
6831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_AR+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$AR"; then
6839 ac_cv_prog_AR="$AR" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6858 AR=$ac_cv_prog_AR
6859 if test -n "$AR"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6861 $as_echo "$AR" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6868 test -n "$AR" && break
6869 done
6871 if test -z "$AR"; then
6872 ac_ct_AR=$AR
6873 for ac_prog in ar
6875 # Extract the first word of "$ac_prog", so it can be a program name with args.
6876 set dummy $ac_prog; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 if test -n "$ac_ct_AR"; then
6883 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_ac_ct_AR="$ac_prog"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6896 done
6897 done
6898 IFS=$as_save_IFS
6902 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6903 if test -n "$ac_ct_AR"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6905 $as_echo "$ac_ct_AR" >&6; }
6906 else
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6912 test -n "$ac_ct_AR" && break
6913 done
6915 if test "x$ac_ct_AR" = x; then
6916 AR="false"
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924 AR=$ac_ct_AR
6928 : ${AR=ar}
6929 : ${AR_FLAGS=cru}
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6942 $as_echo_n "checking for archiver @FILE support... " >&6; }
6943 if ${lt_cv_ar_at_file+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 lt_cv_ar_at_file=no
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6951 main ()
6955 return 0;
6957 _ACEOF
6958 if ac_fn_c_try_compile "$LINENO"; then :
6959 echo conftest.$ac_objext > conftest.lst
6960 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6962 (eval $lt_ar_try) 2>&5
6963 ac_status=$?
6964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965 test $ac_status = 0; }
6966 if test 0 -eq "$ac_status"; then
6967 # Ensure the archiver fails upon bogus file names.
6968 rm -f conftest.$ac_objext libconftest.a
6969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6970 (eval $lt_ar_try) 2>&5
6971 ac_status=$?
6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973 test $ac_status = 0; }
6974 if test 0 -ne "$ac_status"; then
6975 lt_cv_ar_at_file=@
6978 rm -f conftest.* libconftest.a
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6985 $as_echo "$lt_cv_ar_at_file" >&6; }
6987 if test no = "$lt_cv_ar_at_file"; then
6988 archiver_list_spec=
6989 else
6990 archiver_list_spec=$lt_cv_ar_at_file
6999 if test -n "$ac_tool_prefix"; then
7000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7001 set dummy ${ac_tool_prefix}strip; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_STRIP+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$STRIP"; then
7008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7027 STRIP=$ac_cv_prog_STRIP
7028 if test -n "$STRIP"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7030 $as_echo "$STRIP" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7038 if test -z "$ac_cv_prog_STRIP"; then
7039 ac_ct_STRIP=$STRIP
7040 # Extract the first word of "strip", so it can be a program name with args.
7041 set dummy strip; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 if test -n "$ac_ct_STRIP"; then
7048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_ac_ct_STRIP="strip"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7061 done
7062 done
7063 IFS=$as_save_IFS
7067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7068 if test -n "$ac_ct_STRIP"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7070 $as_echo "$ac_ct_STRIP" >&6; }
7071 else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7076 if test "x$ac_ct_STRIP" = x; then
7077 STRIP=":"
7078 else
7079 case $cross_compiling:$ac_tool_warned in
7080 yes:)
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083 ac_tool_warned=yes ;;
7084 esac
7085 STRIP=$ac_ct_STRIP
7087 else
7088 STRIP="$ac_cv_prog_STRIP"
7091 test -z "$STRIP" && STRIP=:
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_prog_RANLIB+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 if test -n "$RANLIB"; then
7107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7120 done
7121 done
7122 IFS=$as_save_IFS
7126 RANLIB=$ac_cv_prog_RANLIB
7127 if test -n "$RANLIB"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7129 $as_echo "$RANLIB" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7137 if test -z "$ac_cv_prog_RANLIB"; then
7138 ac_ct_RANLIB=$RANLIB
7139 # Extract the first word of "ranlib", so it can be a program name with args.
7140 set dummy ranlib; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$ac_ct_RANLIB"; then
7147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_ac_ct_RANLIB="ranlib"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7160 done
7161 done
7162 IFS=$as_save_IFS
7166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7167 if test -n "$ac_ct_RANLIB"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7169 $as_echo "$ac_ct_RANLIB" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7175 if test "x$ac_ct_RANLIB" = x; then
7176 RANLIB=":"
7177 else
7178 case $cross_compiling:$ac_tool_warned in
7179 yes:)
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned=yes ;;
7183 esac
7184 RANLIB=$ac_ct_RANLIB
7186 else
7187 RANLIB="$ac_cv_prog_RANLIB"
7190 test -z "$RANLIB" && RANLIB=:
7197 # Determine commands to create old-style static archives.
7198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7199 old_postinstall_cmds='chmod 644 $oldlib'
7200 old_postuninstall_cmds=
7202 if test -n "$RANLIB"; then
7203 case $host_os in
7204 bitrig* | openbsd*)
7205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7210 esac
7211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7214 case $host_os in
7215 darwin*)
7216 lock_old_archive_extraction=yes ;;
7218 lock_old_archive_extraction=no ;;
7219 esac
7259 # If no C compiler was specified, use CC.
7260 LTCC=${LTCC-"$CC"}
7262 # If no C compiler flags were specified, use CFLAGS.
7263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7265 # Allow CC to be a program name with arguments.
7266 compiler=$CC
7269 # Check for command to grab the raw symbol name followed by C symbol from nm.
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7271 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7272 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7276 # These are sane defaults that work on at least a few old systems.
7277 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7279 # Character class describing NM global symbol codes.
7280 symcode='[BCDEGRST]'
7282 # Regexp to match symbols that can be accessed directly from C.
7283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7285 # Define system-specific variables.
7286 case $host_os in
7287 aix*)
7288 symcode='[BCDT]'
7290 cygwin* | mingw* | pw32* | cegcc*)
7291 symcode='[ABCDGISTW]'
7293 hpux*)
7294 if test ia64 = "$host_cpu"; then
7295 symcode='[ABCDEGRST]'
7298 irix* | nonstopux*)
7299 symcode='[BCDEGRST]'
7301 osf*)
7302 symcode='[BCDEGQRST]'
7304 solaris*)
7305 symcode='[BDRT]'
7307 sco3.2v5*)
7308 symcode='[DT]'
7310 sysv4.2uw2*)
7311 symcode='[DT]'
7313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7314 symcode='[ABDT]'
7316 sysv4)
7317 symcode='[DFNSTU]'
7319 esac
7321 # If we're using GNU nm, then use its standard symbol codes.
7322 case `$NM -V 2>&1` in
7323 *GNU* | *'with BFD'*)
7324 symcode='[ABCDGIRSTW]' ;;
7325 esac
7327 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7328 # Gets list of data symbols to import.
7329 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7330 # Adjust the below global symbol transforms to fixup imported variables.
7331 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7332 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7333 lt_c_name_lib_hook="\
7334 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7335 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7336 else
7337 # Disable hooks by default.
7338 lt_cv_sys_global_symbol_to_import=
7339 lt_cdecl_hook=
7340 lt_c_name_hook=
7341 lt_c_name_lib_hook=
7344 # Transform an extracted symbol line into a proper C declaration.
7345 # Some systems (esp. on ia64) link data and code symbols differently,
7346 # so use this general approach.
7347 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7348 $lt_cdecl_hook\
7349 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7350 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7352 # Transform an extracted symbol line into symbol name and symbol address
7353 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7354 $lt_c_name_hook\
7355 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7356 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7358 # Transform an extracted symbol line into symbol name with lib prefix and
7359 # symbol address.
7360 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7361 $lt_c_name_lib_hook\
7362 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7363 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7364 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7366 # Handle CRLF in mingw tool chain
7367 opt_cr=
7368 case $build_os in
7369 mingw*)
7370 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7372 esac
7374 # Try without a prefix underscore, then with it.
7375 for ac_symprfx in "" "_"; do
7377 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7378 symxfrm="\\1 $ac_symprfx\\2 \\2"
7380 # Write the raw and C identifiers.
7381 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7382 # Fake it for dumpbin and say T for any non-static function,
7383 # D for any global variable and I for any imported variable.
7384 # Also find C++ and __fastcall symbols from MSVC++,
7385 # which start with @ or ?.
7386 lt_cv_sys_global_symbol_pipe="$AWK '"\
7387 " {last_section=section; section=\$ 3};"\
7388 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7389 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7390 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7391 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7392 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7393 " \$ 0!~/External *\|/{next};"\
7394 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7395 " {if(hide[section]) next};"\
7396 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7397 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7398 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7399 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7400 " ' prfx=^$ac_symprfx"
7401 else
7402 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7404 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7406 # Check to see that the pipe works correctly.
7407 pipe_works=no
7409 rm -f conftest*
7410 cat > conftest.$ac_ext <<_LT_EOF
7411 #ifdef __cplusplus
7412 extern "C" {
7413 #endif
7414 char nm_test_var;
7415 void nm_test_func(void);
7416 void nm_test_func(void){}
7417 #ifdef __cplusplus
7419 #endif
7420 int main(){nm_test_var='a';nm_test_func();return(0);}
7421 _LT_EOF
7423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7424 (eval $ac_compile) 2>&5
7425 ac_status=$?
7426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7427 test $ac_status = 0; }; then
7428 # Now try to grab the symbols.
7429 nlist=conftest.nm
7430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7431 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7432 ac_status=$?
7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434 test $ac_status = 0; } && test -s "$nlist"; then
7435 # Try sorting and uniquifying the output.
7436 if sort "$nlist" | uniq > "$nlist"T; then
7437 mv -f "$nlist"T "$nlist"
7438 else
7439 rm -f "$nlist"T
7442 # Make sure that we snagged all the symbols we need.
7443 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7444 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7445 cat <<_LT_EOF > conftest.$ac_ext
7446 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7447 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7448 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7449 relocations are performed -- see ld's documentation on pseudo-relocs. */
7450 # define LT_DLSYM_CONST
7451 #elif defined __osf__
7452 /* This system does not cope well with relocations in const data. */
7453 # define LT_DLSYM_CONST
7454 #else
7455 # define LT_DLSYM_CONST const
7456 #endif
7458 #ifdef __cplusplus
7459 extern "C" {
7460 #endif
7462 _LT_EOF
7463 # Now generate the symbol file.
7464 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7466 cat <<_LT_EOF >> conftest.$ac_ext
7468 /* The mapping between symbol names and symbols. */
7469 LT_DLSYM_CONST struct {
7470 const char *name;
7471 void *address;
7473 lt__PROGRAM__LTX_preloaded_symbols[] =
7475 { "@PROGRAM@", (void *) 0 },
7476 _LT_EOF
7477 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7478 cat <<\_LT_EOF >> conftest.$ac_ext
7479 {0, (void *) 0}
7482 /* This works around a problem in FreeBSD linker */
7483 #ifdef FREEBSD_WORKAROUND
7484 static const void *lt_preloaded_setup() {
7485 return lt__PROGRAM__LTX_preloaded_symbols;
7487 #endif
7489 #ifdef __cplusplus
7491 #endif
7492 _LT_EOF
7493 # Now try linking the two files.
7494 mv conftest.$ac_objext conftstm.$ac_objext
7495 lt_globsym_save_LIBS=$LIBS
7496 lt_globsym_save_CFLAGS=$CFLAGS
7497 LIBS=conftstm.$ac_objext
7498 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7500 (eval $ac_link) 2>&5
7501 ac_status=$?
7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7504 pipe_works=yes
7506 LIBS=$lt_globsym_save_LIBS
7507 CFLAGS=$lt_globsym_save_CFLAGS
7508 else
7509 echo "cannot find nm_test_func in $nlist" >&5
7511 else
7512 echo "cannot find nm_test_var in $nlist" >&5
7514 else
7515 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7517 else
7518 echo "$progname: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7521 rm -rf conftest* conftst*
7523 # Do not use the global_symbol_pipe unless it works.
7524 if test yes = "$pipe_works"; then
7525 break
7526 else
7527 lt_cv_sys_global_symbol_pipe=
7529 done
7533 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7534 lt_cv_sys_global_symbol_to_cdecl=
7536 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7538 $as_echo "failed" >&6; }
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7541 $as_echo "ok" >&6; }
7544 # Response file support.
7545 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7546 nm_file_list_spec='@'
7547 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7548 nm_file_list_spec='@'
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7588 $as_echo_n "checking for sysroot... " >&6; }
7590 # Check whether --with-sysroot was given.
7591 if test "${with_sysroot+set}" = set; then :
7592 withval=$with_sysroot;
7593 else
7594 with_sysroot=no
7598 lt_sysroot=
7599 case $with_sysroot in #(
7600 yes)
7601 if test yes = "$GCC"; then
7602 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7604 ;; #(
7606 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7607 ;; #(
7608 no|'')
7609 ;; #(
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7612 $as_echo "$with_sysroot" >&6; }
7613 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7615 esac
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7618 $as_echo "${lt_sysroot:-no}" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7625 $as_echo_n "checking for a working dd... " >&6; }
7626 if ${ac_cv_path_lt_DD+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 printf 0123456789abcdef0123456789abcdef >conftest.i
7630 cat conftest.i conftest.i >conftest2.i
7631 : ${lt_DD:=$DD}
7632 if test -z "$lt_DD"; then
7633 ac_path_lt_DD_found=false
7634 # Loop through the user's path and test for each of PROGNAME-LIST
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_prog in dd; do
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7643 as_fn_executable_p "$ac_path_lt_DD" || continue
7644 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7645 cmp -s conftest.i conftest.out \
7646 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7648 $ac_path_lt_DD_found && break 3
7649 done
7650 done
7651 done
7652 IFS=$as_save_IFS
7653 if test -z "$ac_cv_path_lt_DD"; then
7656 else
7657 ac_cv_path_lt_DD=$lt_DD
7660 rm -f conftest.i conftest2.i conftest.out
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7663 $as_echo "$ac_cv_path_lt_DD" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7667 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7668 if ${lt_cv_truncate_bin+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 printf 0123456789abcdef0123456789abcdef >conftest.i
7672 cat conftest.i conftest.i >conftest2.i
7673 lt_cv_truncate_bin=
7674 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7675 cmp -s conftest.i conftest.out \
7676 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7678 rm -f conftest.i conftest2.i conftest.out
7679 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7682 $as_echo "$lt_cv_truncate_bin" >&6; }
7690 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7691 func_cc_basename ()
7693 for cc_temp in $*""; do
7694 case $cc_temp in
7695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7697 \-*) ;;
7698 *) break;;
7699 esac
7700 done
7701 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7704 # Check whether --enable-libtool-lock was given.
7705 if test "${enable_libtool_lock+set}" = set; then :
7706 enableval=$enable_libtool_lock;
7709 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7711 # Some flags need to be propagated to the compiler or linker for good
7712 # libtool support.
7713 case $host in
7714 ia64-*-hpux*)
7715 # Find out what ABI is being produced by ac_compile, and set mode
7716 # options accordingly.
7717 echo 'int i;' > conftest.$ac_ext
7718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7719 (eval $ac_compile) 2>&5
7720 ac_status=$?
7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722 test $ac_status = 0; }; then
7723 case `/usr/bin/file conftest.$ac_objext` in
7724 *ELF-32*)
7725 HPUX_IA64_MODE=32
7727 *ELF-64*)
7728 HPUX_IA64_MODE=64
7730 esac
7732 rm -rf conftest*
7734 *-*-irix6*)
7735 # Find out what ABI is being produced by ac_compile, and set linker
7736 # options accordingly.
7737 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7739 (eval $ac_compile) 2>&5
7740 ac_status=$?
7741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742 test $ac_status = 0; }; then
7743 if test yes = "$lt_cv_prog_gnu_ld"; then
7744 case `/usr/bin/file conftest.$ac_objext` in
7745 *32-bit*)
7746 LD="${LD-ld} -melf32bsmip"
7748 *N32*)
7749 LD="${LD-ld} -melf32bmipn32"
7751 *64-bit*)
7752 LD="${LD-ld} -melf64bmip"
7754 esac
7755 else
7756 case `/usr/bin/file conftest.$ac_objext` in
7757 *32-bit*)
7758 LD="${LD-ld} -32"
7760 *N32*)
7761 LD="${LD-ld} -n32"
7763 *64-bit*)
7764 LD="${LD-ld} -64"
7766 esac
7769 rm -rf conftest*
7772 mips64*-*linux*)
7773 # Find out what ABI is being produced by ac_compile, and set linker
7774 # options accordingly.
7775 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7777 (eval $ac_compile) 2>&5
7778 ac_status=$?
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; then
7781 emul=elf
7782 case `/usr/bin/file conftest.$ac_objext` in
7783 *32-bit*)
7784 emul="${emul}32"
7786 *64-bit*)
7787 emul="${emul}64"
7789 esac
7790 case `/usr/bin/file conftest.$ac_objext` in
7791 *MSB*)
7792 emul="${emul}btsmip"
7794 *LSB*)
7795 emul="${emul}ltsmip"
7797 esac
7798 case `/usr/bin/file conftest.$ac_objext` in
7799 *N32*)
7800 emul="${emul}n32"
7802 esac
7803 LD="${LD-ld} -m $emul"
7805 rm -rf conftest*
7808 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7809 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7810 # Find out what ABI is being produced by ac_compile, and set linker
7811 # options accordingly. Note that the listed cases only cover the
7812 # situations where additional linker options are needed (such as when
7813 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7814 # vice versa); the common cases where no linker options are needed do
7815 # not appear in the list.
7816 echo 'int i;' > conftest.$ac_ext
7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818 (eval $ac_compile) 2>&5
7819 ac_status=$?
7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }; then
7822 case `/usr/bin/file conftest.o` in
7823 *32-bit*)
7824 case $host in
7825 x86_64-*kfreebsd*-gnu)
7826 LD="${LD-ld} -m elf_i386_fbsd"
7828 x86_64-*linux*)
7829 case `/usr/bin/file conftest.o` in
7830 *x86-64*)
7831 LD="${LD-ld} -m elf32_x86_64"
7834 LD="${LD-ld} -m elf_i386"
7836 esac
7838 powerpc64le-*linux*)
7839 LD="${LD-ld} -m elf32lppclinux"
7841 powerpc64-*linux*)
7842 LD="${LD-ld} -m elf32ppclinux"
7844 s390x-*linux*)
7845 LD="${LD-ld} -m elf_s390"
7847 sparc64-*linux*)
7848 LD="${LD-ld} -m elf32_sparc"
7850 esac
7852 *64-bit*)
7853 case $host in
7854 x86_64-*kfreebsd*-gnu)
7855 LD="${LD-ld} -m elf_x86_64_fbsd"
7857 x86_64-*linux*)
7858 LD="${LD-ld} -m elf_x86_64"
7860 powerpcle-*linux*)
7861 LD="${LD-ld} -m elf64lppc"
7863 powerpc-*linux*)
7864 LD="${LD-ld} -m elf64ppc"
7866 s390*-*linux*|s390*-*tpf*)
7867 LD="${LD-ld} -m elf64_s390"
7869 sparc*-*linux*)
7870 LD="${LD-ld} -m elf64_sparc"
7872 esac
7874 esac
7876 rm -rf conftest*
7879 *-*-sco3.2v5*)
7880 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7881 SAVE_CFLAGS=$CFLAGS
7882 CFLAGS="$CFLAGS -belf"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7884 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7885 if ${lt_cv_cc_needs_belf+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7898 main ()
7902 return 0;
7904 _ACEOF
7905 if ac_fn_c_try_link "$LINENO"; then :
7906 lt_cv_cc_needs_belf=yes
7907 else
7908 lt_cv_cc_needs_belf=no
7910 rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 ac_ext=c
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7920 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7921 if test yes != "$lt_cv_cc_needs_belf"; then
7922 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7923 CFLAGS=$SAVE_CFLAGS
7926 *-*solaris*)
7927 # Find out what ABI is being produced by ac_compile, and set linker
7928 # options accordingly.
7929 echo 'int i;' > conftest.$ac_ext
7930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7931 (eval $ac_compile) 2>&5
7932 ac_status=$?
7933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7934 test $ac_status = 0; }; then
7935 case `/usr/bin/file conftest.o` in
7936 *64-bit*)
7937 case $lt_cv_prog_gnu_ld in
7938 yes*)
7939 case $host in
7940 i?86-*-solaris*|x86_64-*-solaris*)
7941 LD="${LD-ld} -m elf_x86_64"
7943 sparc*-*-solaris*)
7944 LD="${LD-ld} -m elf64_sparc"
7946 esac
7947 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7948 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7949 LD=${LD-ld}_sol2
7953 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7954 LD="${LD-ld} -64"
7957 esac
7959 esac
7961 rm -rf conftest*
7963 esac
7965 need_locks=$enable_libtool_lock
7967 if test -n "$ac_tool_prefix"; then
7968 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7969 set dummy ${ac_tool_prefix}mt; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$MANIFEST_TOOL"; then
7976 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7989 done
7990 done
7991 IFS=$as_save_IFS
7995 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7996 if test -n "$MANIFEST_TOOL"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7998 $as_echo "$MANIFEST_TOOL" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8006 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8007 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8008 # Extract the first word of "mt", so it can be a program name with args.
8009 set dummy mt; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 if test -n "$ac_ct_MANIFEST_TOOL"; then
8016 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8029 done
8030 done
8031 IFS=$as_save_IFS
8035 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8036 if test -n "$ac_ct_MANIFEST_TOOL"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8038 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8039 else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8044 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8045 MANIFEST_TOOL=":"
8046 else
8047 case $cross_compiling:$ac_tool_warned in
8048 yes:)
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned=yes ;;
8052 esac
8053 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8055 else
8056 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8061 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8062 if ${lt_cv_path_mainfest_tool+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 lt_cv_path_mainfest_tool=no
8066 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8067 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8068 cat conftest.err >&5
8069 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8070 lt_cv_path_mainfest_tool=yes
8072 rm -f conftest*
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8075 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8076 if test yes != "$lt_cv_path_mainfest_tool"; then
8077 MANIFEST_TOOL=:
8085 case $host_os in
8086 rhapsody* | darwin*)
8087 if test -n "$ac_tool_prefix"; then
8088 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8089 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 if test -n "$DSYMUTIL"; then
8096 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8109 done
8110 done
8111 IFS=$as_save_IFS
8115 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8116 if test -n "$DSYMUTIL"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8118 $as_echo "$DSYMUTIL" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8126 if test -z "$ac_cv_prog_DSYMUTIL"; then
8127 ac_ct_DSYMUTIL=$DSYMUTIL
8128 # Extract the first word of "dsymutil", so it can be a program name with args.
8129 set dummy dsymutil; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 if test -n "$ac_ct_DSYMUTIL"; then
8136 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8145 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8149 done
8150 done
8151 IFS=$as_save_IFS
8155 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8156 if test -n "$ac_ct_DSYMUTIL"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8158 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8159 else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8164 if test "x$ac_ct_DSYMUTIL" = x; then
8165 DSYMUTIL=":"
8166 else
8167 case $cross_compiling:$ac_tool_warned in
8168 yes:)
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8171 ac_tool_warned=yes ;;
8172 esac
8173 DSYMUTIL=$ac_ct_DSYMUTIL
8175 else
8176 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8179 if test -n "$ac_tool_prefix"; then
8180 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8181 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183 $as_echo_n "checking for $ac_word... " >&6; }
8184 if ${ac_cv_prog_NMEDIT+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 if test -n "$NMEDIT"; then
8188 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8189 else
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8201 done
8202 done
8203 IFS=$as_save_IFS
8207 NMEDIT=$ac_cv_prog_NMEDIT
8208 if test -n "$NMEDIT"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8210 $as_echo "$NMEDIT" >&6; }
8211 else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8218 if test -z "$ac_cv_prog_NMEDIT"; then
8219 ac_ct_NMEDIT=$NMEDIT
8220 # Extract the first word of "nmedit", so it can be a program name with args.
8221 set dummy nmedit; ac_word=$2
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 if test -n "$ac_ct_NMEDIT"; then
8228 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8237 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 break 2
8241 done
8242 done
8243 IFS=$as_save_IFS
8247 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8248 if test -n "$ac_ct_NMEDIT"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8250 $as_echo "$ac_ct_NMEDIT" >&6; }
8251 else
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }
8256 if test "x$ac_ct_NMEDIT" = x; then
8257 NMEDIT=":"
8258 else
8259 case $cross_compiling:$ac_tool_warned in
8260 yes:)
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8263 ac_tool_warned=yes ;;
8264 esac
8265 NMEDIT=$ac_ct_NMEDIT
8267 else
8268 NMEDIT="$ac_cv_prog_NMEDIT"
8271 if test -n "$ac_tool_prefix"; then
8272 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8273 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if ${ac_cv_prog_LIPO+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 if test -n "$LIPO"; then
8280 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8293 done
8294 done
8295 IFS=$as_save_IFS
8299 LIPO=$ac_cv_prog_LIPO
8300 if test -n "$LIPO"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8302 $as_echo "$LIPO" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8310 if test -z "$ac_cv_prog_LIPO"; then
8311 ac_ct_LIPO=$LIPO
8312 # Extract the first word of "lipo", so it can be a program name with args.
8313 set dummy lipo; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 if test -n "$ac_ct_LIPO"; then
8320 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8329 ac_cv_prog_ac_ct_LIPO="lipo"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8333 done
8334 done
8335 IFS=$as_save_IFS
8339 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8340 if test -n "$ac_ct_LIPO"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8342 $as_echo "$ac_ct_LIPO" >&6; }
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8348 if test "x$ac_ct_LIPO" = x; then
8349 LIPO=":"
8350 else
8351 case $cross_compiling:$ac_tool_warned in
8352 yes:)
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8355 ac_tool_warned=yes ;;
8356 esac
8357 LIPO=$ac_ct_LIPO
8359 else
8360 LIPO="$ac_cv_prog_LIPO"
8363 if test -n "$ac_tool_prefix"; then
8364 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8365 set dummy ${ac_tool_prefix}otool; ac_word=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if ${ac_cv_prog_OTOOL+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 if test -n "$OTOOL"; then
8372 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8385 done
8386 done
8387 IFS=$as_save_IFS
8391 OTOOL=$ac_cv_prog_OTOOL
8392 if test -n "$OTOOL"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8394 $as_echo "$OTOOL" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8402 if test -z "$ac_cv_prog_OTOOL"; then
8403 ac_ct_OTOOL=$OTOOL
8404 # Extract the first word of "otool", so it can be a program name with args.
8405 set dummy otool; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 if test -n "$ac_ct_OTOOL"; then
8412 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421 ac_cv_prog_ac_ct_OTOOL="otool"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8425 done
8426 done
8427 IFS=$as_save_IFS
8431 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8432 if test -n "$ac_ct_OTOOL"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8434 $as_echo "$ac_ct_OTOOL" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8440 if test "x$ac_ct_OTOOL" = x; then
8441 OTOOL=":"
8442 else
8443 case $cross_compiling:$ac_tool_warned in
8444 yes:)
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8447 ac_tool_warned=yes ;;
8448 esac
8449 OTOOL=$ac_ct_OTOOL
8451 else
8452 OTOOL="$ac_cv_prog_OTOOL"
8455 if test -n "$ac_tool_prefix"; then
8456 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8457 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459 $as_echo_n "checking for $ac_word... " >&6; }
8460 if ${ac_cv_prog_OTOOL64+:} false; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463 if test -n "$OTOOL64"; then
8464 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8465 else
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 for as_dir in $PATH
8469 IFS=$as_save_IFS
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8473 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 break 2
8477 done
8478 done
8479 IFS=$as_save_IFS
8483 OTOOL64=$ac_cv_prog_OTOOL64
8484 if test -n "$OTOOL64"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8486 $as_echo "$OTOOL64" >&6; }
8487 else
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 $as_echo "no" >&6; }
8494 if test -z "$ac_cv_prog_OTOOL64"; then
8495 ac_ct_OTOOL64=$OTOOL64
8496 # Extract the first word of "otool64", so it can be a program name with args.
8497 set dummy otool64; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 if test -n "$ac_ct_OTOOL64"; then
8504 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8505 else
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513 ac_cv_prog_ac_ct_OTOOL64="otool64"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8517 done
8518 done
8519 IFS=$as_save_IFS
8523 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8524 if test -n "$ac_ct_OTOOL64"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8526 $as_echo "$ac_ct_OTOOL64" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8532 if test "x$ac_ct_OTOOL64" = x; then
8533 OTOOL64=":"
8534 else
8535 case $cross_compiling:$ac_tool_warned in
8536 yes:)
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8539 ac_tool_warned=yes ;;
8540 esac
8541 OTOOL64=$ac_ct_OTOOL64
8543 else
8544 OTOOL64="$ac_cv_prog_OTOOL64"
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8574 $as_echo_n "checking for -single_module linker flag... " >&6; }
8575 if ${lt_cv_apple_cc_single_mod+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 lt_cv_apple_cc_single_mod=no
8579 if test -z "$LT_MULTI_MODULE"; then
8580 # By default we will add the -single_module flag. You can override
8581 # by either setting the environment variable LT_MULTI_MODULE
8582 # non-empty at configure time, or by adding -multi_module to the
8583 # link flags.
8584 rm -rf libconftest.dylib*
8585 echo "int foo(void){return 1;}" > conftest.c
8586 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8587 -dynamiclib -Wl,-single_module conftest.c" >&5
8588 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8589 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8590 _lt_result=$?
8591 # If there is a non-empty error log, and "single_module"
8592 # appears in it, assume the flag caused a linker warning
8593 if test -s conftest.err && $GREP single_module conftest.err; then
8594 cat conftest.err >&5
8595 # Otherwise, if the output was created with a 0 exit code from
8596 # the compiler, it worked.
8597 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8598 lt_cv_apple_cc_single_mod=yes
8599 else
8600 cat conftest.err >&5
8602 rm -rf libconftest.dylib*
8603 rm -f conftest.*
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8607 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8610 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8611 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 lt_cv_ld_exported_symbols_list=no
8615 save_LDFLAGS=$LDFLAGS
8616 echo "_main" > conftest.sym
8617 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8622 main ()
8626 return 0;
8628 _ACEOF
8629 if ac_fn_c_try_link "$LINENO"; then :
8630 lt_cv_ld_exported_symbols_list=yes
8631 else
8632 lt_cv_ld_exported_symbols_list=no
8634 rm -f core conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 LDFLAGS=$save_LDFLAGS
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8640 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8643 $as_echo_n "checking for -force_load linker flag... " >&6; }
8644 if ${lt_cv_ld_force_load+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 lt_cv_ld_force_load=no
8648 cat > conftest.c << _LT_EOF
8649 int forced_loaded() { return 2;}
8650 _LT_EOF
8651 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8652 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8653 echo "$AR cru libconftest.a conftest.o" >&5
8654 $AR cru libconftest.a conftest.o 2>&5
8655 echo "$RANLIB libconftest.a" >&5
8656 $RANLIB libconftest.a 2>&5
8657 cat > conftest.c << _LT_EOF
8658 int main() { return 0;}
8659 _LT_EOF
8660 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8661 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8662 _lt_result=$?
8663 if test -s conftest.err && $GREP force_load conftest.err; then
8664 cat conftest.err >&5
8665 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8666 lt_cv_ld_force_load=yes
8667 else
8668 cat conftest.err >&5
8670 rm -f conftest.err libconftest.a conftest conftest.c
8671 rm -rf conftest.dSYM
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8675 $as_echo "$lt_cv_ld_force_load" >&6; }
8676 case $host_os in
8677 rhapsody* | darwin1.[012])
8678 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8679 darwin1.*)
8680 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8681 darwin*) # darwin 5.x on
8682 # if running on 10.5 or later, the deployment target defaults
8683 # to the OS version, if on x86, and 10.4, the deployment
8684 # target defaults to 10.4. Don't you love it?
8685 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8686 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8687 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8688 10.[012][,.]*)
8689 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8690 10.*)
8691 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8692 esac
8694 esac
8695 if test yes = "$lt_cv_apple_cc_single_mod"; then
8696 _lt_dar_single_mod='$single_module'
8698 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8699 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8700 else
8701 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8703 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8704 _lt_dsymutil='~$DSYMUTIL $lib || :'
8705 else
8706 _lt_dsymutil=
8709 esac
8711 # func_munge_path_list VARIABLE PATH
8712 # -----------------------------------
8713 # VARIABLE is name of variable containing _space_ separated list of
8714 # directories to be munged by the contents of PATH, which is string
8715 # having a format:
8716 # "DIR[:DIR]:"
8717 # string "DIR[ DIR]" will be prepended to VARIABLE
8718 # ":DIR[:DIR]"
8719 # string "DIR[ DIR]" will be appended to VARIABLE
8720 # "DIRP[:DIRP]::[DIRA:]DIRA"
8721 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8722 # "DIRA[ DIRA]" will be appended to VARIABLE
8723 # "DIR[:DIR]"
8724 # VARIABLE will be replaced by "DIR[ DIR]"
8725 func_munge_path_list ()
8727 case x$2 in
8731 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8733 x:*)
8734 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8736 *::*)
8737 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8738 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8741 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8743 esac
8746 ac_ext=c
8747 ac_cpp='$CPP $CPPFLAGS'
8748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8752 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8753 # On Suns, sometimes $CPP names a directory.
8754 if test -n "$CPP" && test -d "$CPP"; then
8755 CPP=
8757 if test -z "$CPP"; then
8758 if ${ac_cv_prog_CPP+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 # Double quotes because CPP needs to be expanded
8762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8764 ac_preproc_ok=false
8765 for ac_c_preproc_warn_flag in '' yes
8767 # Use a header file that comes with gcc, so configuring glibc
8768 # with a fresh cross-compiler works.
8769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8770 # <limits.h> exists even on freestanding compilers.
8771 # On the NeXT, cc -E runs the code through the compiler's parser,
8772 # not just through cpp. "Syntax error" is here to catch this case.
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 #ifdef __STDC__
8776 # include <limits.h>
8777 #else
8778 # include <assert.h>
8779 #endif
8780 Syntax error
8781 _ACEOF
8782 if ac_fn_c_try_cpp "$LINENO"; then :
8784 else
8785 # Broken: fails on valid input.
8786 continue
8788 rm -f conftest.err conftest.i conftest.$ac_ext
8790 # OK, works on sane cases. Now check whether nonexistent headers
8791 # can be detected and how.
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 #include <ac_nonexistent.h>
8795 _ACEOF
8796 if ac_fn_c_try_cpp "$LINENO"; then :
8797 # Broken: success on invalid input.
8798 continue
8799 else
8800 # Passes both tests.
8801 ac_preproc_ok=:
8802 break
8804 rm -f conftest.err conftest.i conftest.$ac_ext
8806 done
8807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8808 rm -f conftest.i conftest.err conftest.$ac_ext
8809 if $ac_preproc_ok; then :
8810 break
8813 done
8814 ac_cv_prog_CPP=$CPP
8817 CPP=$ac_cv_prog_CPP
8818 else
8819 ac_cv_prog_CPP=$CPP
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8822 $as_echo "$CPP" >&6; }
8823 ac_preproc_ok=false
8824 for ac_c_preproc_warn_flag in '' yes
8826 # Use a header file that comes with gcc, so configuring glibc
8827 # with a fresh cross-compiler works.
8828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8829 # <limits.h> exists even on freestanding compilers.
8830 # On the NeXT, cc -E runs the code through the compiler's parser,
8831 # not just through cpp. "Syntax error" is here to catch this case.
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #ifdef __STDC__
8835 # include <limits.h>
8836 #else
8837 # include <assert.h>
8838 #endif
8839 Syntax error
8840 _ACEOF
8841 if ac_fn_c_try_cpp "$LINENO"; then :
8843 else
8844 # Broken: fails on valid input.
8845 continue
8847 rm -f conftest.err conftest.i conftest.$ac_ext
8849 # OK, works on sane cases. Now check whether nonexistent headers
8850 # can be detected and how.
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 #include <ac_nonexistent.h>
8854 _ACEOF
8855 if ac_fn_c_try_cpp "$LINENO"; then :
8856 # Broken: success on invalid input.
8857 continue
8858 else
8859 # Passes both tests.
8860 ac_preproc_ok=:
8861 break
8863 rm -f conftest.err conftest.i conftest.$ac_ext
8865 done
8866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8867 rm -f conftest.i conftest.err conftest.$ac_ext
8868 if $ac_preproc_ok; then :
8870 else
8871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8873 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8874 See \`config.log' for more details" "$LINENO" 5; }
8877 ac_ext=c
8878 ac_cpp='$CPP $CPPFLAGS'
8879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8885 $as_echo_n "checking for ANSI C header files... " >&6; }
8886 if ${ac_cv_header_stdc+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 #include <stdlib.h>
8892 #include <stdarg.h>
8893 #include <string.h>
8894 #include <float.h>
8897 main ()
8901 return 0;
8903 _ACEOF
8904 if ac_fn_c_try_compile "$LINENO"; then :
8905 ac_cv_header_stdc=yes
8906 else
8907 ac_cv_header_stdc=no
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 if test $ac_cv_header_stdc = yes; then
8912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #include <string.h>
8917 _ACEOF
8918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8919 $EGREP "memchr" >/dev/null 2>&1; then :
8921 else
8922 ac_cv_header_stdc=no
8924 rm -f conftest*
8928 if test $ac_cv_header_stdc = yes; then
8929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <stdlib.h>
8934 _ACEOF
8935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8936 $EGREP "free" >/dev/null 2>&1; then :
8938 else
8939 ac_cv_header_stdc=no
8941 rm -f conftest*
8945 if test $ac_cv_header_stdc = yes; then
8946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8947 if test "$cross_compiling" = yes; then :
8949 else
8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8952 #include <ctype.h>
8953 #include <stdlib.h>
8954 #if ((' ' & 0x0FF) == 0x020)
8955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8957 #else
8958 # define ISLOWER(c) \
8959 (('a' <= (c) && (c) <= 'i') \
8960 || ('j' <= (c) && (c) <= 'r') \
8961 || ('s' <= (c) && (c) <= 'z'))
8962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8963 #endif
8965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8967 main ()
8969 int i;
8970 for (i = 0; i < 256; i++)
8971 if (XOR (islower (i), ISLOWER (i))
8972 || toupper (i) != TOUPPER (i))
8973 return 2;
8974 return 0;
8976 _ACEOF
8977 if ac_fn_c_try_run "$LINENO"; then :
8979 else
8980 ac_cv_header_stdc=no
8982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8983 conftest.$ac_objext conftest.beam conftest.$ac_ext
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8989 $as_echo "$ac_cv_header_stdc" >&6; }
8990 if test $ac_cv_header_stdc = yes; then
8992 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8996 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8998 inttypes.h stdint.h unistd.h
8999 do :
9000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9001 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9003 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9004 cat >>confdefs.h <<_ACEOF
9005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9006 _ACEOF
9010 done
9013 for ac_header in dlfcn.h
9014 do :
9015 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9017 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9018 cat >>confdefs.h <<_ACEOF
9019 #define HAVE_DLFCN_H 1
9020 _ACEOF
9024 done
9030 # Set options
9031 enable_win32_dll=yes
9033 case $host in
9034 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9035 if test -n "$ac_tool_prefix"; then
9036 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9037 set dummy ${ac_tool_prefix}as; ac_word=$2
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039 $as_echo_n "checking for $ac_word... " >&6; }
9040 if ${ac_cv_prog_AS+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 if test -n "$AS"; then
9044 ac_cv_prog_AS="$AS" # Let the user override the test.
9045 else
9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047 for as_dir in $PATH
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9053 ac_cv_prog_AS="${ac_tool_prefix}as"
9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 break 2
9057 done
9058 done
9059 IFS=$as_save_IFS
9063 AS=$ac_cv_prog_AS
9064 if test -n "$AS"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9066 $as_echo "$AS" >&6; }
9067 else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9074 if test -z "$ac_cv_prog_AS"; then
9075 ac_ct_AS=$AS
9076 # Extract the first word of "as", so it can be a program name with args.
9077 set dummy as; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 if test -n "$ac_ct_AS"; then
9084 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_prog_ac_ct_AS="as"
9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9097 done
9098 done
9099 IFS=$as_save_IFS
9103 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9104 if test -n "$ac_ct_AS"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9106 $as_echo "$ac_ct_AS" >&6; }
9107 else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9112 if test "x$ac_ct_AS" = x; then
9113 AS="false"
9114 else
9115 case $cross_compiling:$ac_tool_warned in
9116 yes:)
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9119 ac_tool_warned=yes ;;
9120 esac
9121 AS=$ac_ct_AS
9123 else
9124 AS="$ac_cv_prog_AS"
9127 if test -n "$ac_tool_prefix"; then
9128 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9129 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 $as_echo_n "checking for $ac_word... " >&6; }
9132 if ${ac_cv_prog_DLLTOOL+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 if test -n "$DLLTOOL"; then
9136 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9137 else
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9141 IFS=$as_save_IFS
9142 test -z "$as_dir" && as_dir=.
9143 for ac_exec_ext in '' $ac_executable_extensions; do
9144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9145 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 break 2
9149 done
9150 done
9151 IFS=$as_save_IFS
9155 DLLTOOL=$ac_cv_prog_DLLTOOL
9156 if test -n "$DLLTOOL"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9158 $as_echo "$DLLTOOL" >&6; }
9159 else
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9166 if test -z "$ac_cv_prog_DLLTOOL"; then
9167 ac_ct_DLLTOOL=$DLLTOOL
9168 # Extract the first word of "dlltool", so it can be a program name with args.
9169 set dummy dlltool; ac_word=$2
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171 $as_echo_n "checking for $ac_word... " >&6; }
9172 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 if test -n "$ac_ct_DLLTOOL"; then
9176 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9177 else
9178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 for as_dir in $PATH
9181 IFS=$as_save_IFS
9182 test -z "$as_dir" && as_dir=.
9183 for ac_exec_ext in '' $ac_executable_extensions; do
9184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9185 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9187 break 2
9189 done
9190 done
9191 IFS=$as_save_IFS
9195 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9196 if test -n "$ac_ct_DLLTOOL"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9198 $as_echo "$ac_ct_DLLTOOL" >&6; }
9199 else
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9204 if test "x$ac_ct_DLLTOOL" = x; then
9205 DLLTOOL="false"
9206 else
9207 case $cross_compiling:$ac_tool_warned in
9208 yes:)
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9211 ac_tool_warned=yes ;;
9212 esac
9213 DLLTOOL=$ac_ct_DLLTOOL
9215 else
9216 DLLTOOL="$ac_cv_prog_DLLTOOL"
9219 if test -n "$ac_tool_prefix"; then
9220 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9221 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223 $as_echo_n "checking for $ac_word... " >&6; }
9224 if ${ac_cv_prog_OBJDUMP+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 if test -n "$OBJDUMP"; then
9228 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9229 else
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9237 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9241 done
9242 done
9243 IFS=$as_save_IFS
9247 OBJDUMP=$ac_cv_prog_OBJDUMP
9248 if test -n "$OBJDUMP"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9250 $as_echo "$OBJDUMP" >&6; }
9251 else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9258 if test -z "$ac_cv_prog_OBJDUMP"; then
9259 ac_ct_OBJDUMP=$OBJDUMP
9260 # Extract the first word of "objdump", so it can be a program name with args.
9261 set dummy objdump; ac_word=$2
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 $as_echo_n "checking for $ac_word... " >&6; }
9264 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 if test -n "$ac_ct_OBJDUMP"; then
9268 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9269 else
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9281 done
9282 done
9283 IFS=$as_save_IFS
9287 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9288 if test -n "$ac_ct_OBJDUMP"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9290 $as_echo "$ac_ct_OBJDUMP" >&6; }
9291 else
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9296 if test "x$ac_ct_OBJDUMP" = x; then
9297 OBJDUMP="false"
9298 else
9299 case $cross_compiling:$ac_tool_warned in
9300 yes:)
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9303 ac_tool_warned=yes ;;
9304 esac
9305 OBJDUMP=$ac_ct_OBJDUMP
9307 else
9308 OBJDUMP="$ac_cv_prog_OBJDUMP"
9312 esac
9314 test -z "$AS" && AS=as
9320 test -z "$DLLTOOL" && DLLTOOL=dlltool
9326 test -z "$OBJDUMP" && OBJDUMP=objdump
9334 enable_dlopen=no
9338 # Check whether --enable-shared was given.
9339 if test "${enable_shared+set}" = set; then :
9340 enableval=$enable_shared; p=${PACKAGE-default}
9341 case $enableval in
9342 yes) enable_shared=yes ;;
9343 no) enable_shared=no ;;
9345 enable_shared=no
9346 # Look at the argument we got. We use all the common list separators.
9347 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9348 for pkg in $enableval; do
9349 IFS=$lt_save_ifs
9350 if test "X$pkg" = "X$p"; then
9351 enable_shared=yes
9353 done
9354 IFS=$lt_save_ifs
9356 esac
9357 else
9358 enable_shared=yes
9369 # Check whether --enable-static was given.
9370 if test "${enable_static+set}" = set; then :
9371 enableval=$enable_static; p=${PACKAGE-default}
9372 case $enableval in
9373 yes) enable_static=yes ;;
9374 no) enable_static=no ;;
9376 enable_static=no
9377 # Look at the argument we got. We use all the common list separators.
9378 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9379 for pkg in $enableval; do
9380 IFS=$lt_save_ifs
9381 if test "X$pkg" = "X$p"; then
9382 enable_static=yes
9384 done
9385 IFS=$lt_save_ifs
9387 esac
9388 else
9389 enable_static=yes
9401 # Check whether --with-pic was given.
9402 if test "${with_pic+set}" = set; then :
9403 withval=$with_pic; lt_p=${PACKAGE-default}
9404 case $withval in
9405 yes|no) pic_mode=$withval ;;
9407 pic_mode=default
9408 # Look at the argument we got. We use all the common list separators.
9409 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9410 for lt_pkg in $withval; do
9411 IFS=$lt_save_ifs
9412 if test "X$lt_pkg" = "X$lt_p"; then
9413 pic_mode=yes
9415 done
9416 IFS=$lt_save_ifs
9418 esac
9419 else
9420 pic_mode=default
9430 # Check whether --enable-fast-install was given.
9431 if test "${enable_fast_install+set}" = set; then :
9432 enableval=$enable_fast_install; p=${PACKAGE-default}
9433 case $enableval in
9434 yes) enable_fast_install=yes ;;
9435 no) enable_fast_install=no ;;
9437 enable_fast_install=no
9438 # Look at the argument we got. We use all the common list separators.
9439 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9440 for pkg in $enableval; do
9441 IFS=$lt_save_ifs
9442 if test "X$pkg" = "X$p"; then
9443 enable_fast_install=yes
9445 done
9446 IFS=$lt_save_ifs
9448 esac
9449 else
9450 enable_fast_install=yes
9460 shared_archive_member_spec=
9461 case $host,$enable_shared in
9462 power*-*-aix[5-9]*,yes)
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9464 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9466 # Check whether --with-aix-soname was given.
9467 if test "${with_aix_soname+set}" = set; then :
9468 withval=$with_aix_soname; case $withval in
9469 aix|svr4|both)
9472 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9474 esac
9475 lt_cv_with_aix_soname=$with_aix_soname
9476 else
9477 if ${lt_cv_with_aix_soname+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 lt_cv_with_aix_soname=aix
9483 with_aix_soname=$lt_cv_with_aix_soname
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9487 $as_echo "$with_aix_soname" >&6; }
9488 if test aix != "$with_aix_soname"; then
9489 # For the AIX way of multilib, we name the shared archive member
9490 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9491 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9492 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9493 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9494 if test 64 = "${OBJECT_MODE-32}"; then
9495 shared_archive_member_spec=shr_64
9496 else
9497 shared_archive_member_spec=shr
9502 with_aix_soname=aix
9504 esac
9515 # This can be used to rebuild libtool when needed
9516 LIBTOOL_DEPS=$ltmain
9518 # Always use our own libtool.
9519 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9550 test -z "$LN_S" && LN_S="ln -s"
9565 if test -n "${ZSH_VERSION+set}"; then
9566 setopt NO_GLOB_SUBST
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9570 $as_echo_n "checking for objdir... " >&6; }
9571 if ${lt_cv_objdir+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 rm -f .libs 2>/dev/null
9575 mkdir .libs 2>/dev/null
9576 if test -d .libs; then
9577 lt_cv_objdir=.libs
9578 else
9579 # MS-DOS does not allow filenames that begin with a dot.
9580 lt_cv_objdir=_libs
9582 rmdir .libs 2>/dev/null
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9585 $as_echo "$lt_cv_objdir" >&6; }
9586 objdir=$lt_cv_objdir
9592 cat >>confdefs.h <<_ACEOF
9593 #define LT_OBJDIR "$lt_cv_objdir/"
9594 _ACEOF
9599 case $host_os in
9600 aix3*)
9601 # AIX sometimes has problems with the GCC collect2 program. For some
9602 # reason, if we set the COLLECT_NAMES environment variable, the problems
9603 # vanish in a puff of smoke.
9604 if test set != "${COLLECT_NAMES+set}"; then
9605 COLLECT_NAMES=
9606 export COLLECT_NAMES
9609 esac
9611 # Global variables:
9612 ofile=libtool
9613 can_build_shared=yes
9615 # All known linkers require a '.a' archive for static linking (except MSVC,
9616 # which needs '.lib').
9617 libext=a
9619 with_gnu_ld=$lt_cv_prog_gnu_ld
9621 old_CC=$CC
9622 old_CFLAGS=$CFLAGS
9624 # Set sane defaults for various variables
9625 test -z "$CC" && CC=cc
9626 test -z "$LTCC" && LTCC=$CC
9627 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9628 test -z "$LD" && LD=ld
9629 test -z "$ac_objext" && ac_objext=o
9631 func_cc_basename $compiler
9632 cc_basename=$func_cc_basename_result
9635 # Only perform the check for file, if the check method requires it
9636 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9637 case $deplibs_check_method in
9638 file_magic*)
9639 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9641 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9642 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 case $MAGIC_CMD in
9646 [\\/*] | ?:[\\/]*)
9647 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9650 lt_save_MAGIC_CMD=$MAGIC_CMD
9651 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9652 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9653 for ac_dir in $ac_dummy; do
9654 IFS=$lt_save_ifs
9655 test -z "$ac_dir" && ac_dir=.
9656 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9657 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9658 if test -n "$file_magic_test_file"; then
9659 case $deplibs_check_method in
9660 "file_magic "*)
9661 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9662 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9663 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9664 $EGREP "$file_magic_regex" > /dev/null; then
9666 else
9667 cat <<_LT_EOF 1>&2
9669 *** Warning: the command libtool uses to detect shared libraries,
9670 *** $file_magic_cmd, produces output that libtool cannot recognize.
9671 *** The result is that libtool may fail to recognize shared libraries
9672 *** as such. This will affect the creation of libtool libraries that
9673 *** depend on shared libraries, but programs linked with such libtool
9674 *** libraries will work regardless of this problem. Nevertheless, you
9675 *** may want to report the problem to your system manager and/or to
9676 *** bug-libtool@gnu.org
9678 _LT_EOF
9679 fi ;;
9680 esac
9682 break
9684 done
9685 IFS=$lt_save_ifs
9686 MAGIC_CMD=$lt_save_MAGIC_CMD
9688 esac
9691 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9692 if test -n "$MAGIC_CMD"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9694 $as_echo "$MAGIC_CMD" >&6; }
9695 else
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 $as_echo "no" >&6; }
9704 if test -z "$lt_cv_path_MAGIC_CMD"; then
9705 if test -n "$ac_tool_prefix"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9707 $as_echo_n "checking for file... " >&6; }
9708 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 case $MAGIC_CMD in
9712 [\\/*] | ?:[\\/]*)
9713 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9716 lt_save_MAGIC_CMD=$MAGIC_CMD
9717 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9718 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9719 for ac_dir in $ac_dummy; do
9720 IFS=$lt_save_ifs
9721 test -z "$ac_dir" && ac_dir=.
9722 if test -f "$ac_dir/file"; then
9723 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9724 if test -n "$file_magic_test_file"; then
9725 case $deplibs_check_method in
9726 "file_magic "*)
9727 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9728 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9730 $EGREP "$file_magic_regex" > /dev/null; then
9732 else
9733 cat <<_LT_EOF 1>&2
9735 *** Warning: the command libtool uses to detect shared libraries,
9736 *** $file_magic_cmd, produces output that libtool cannot recognize.
9737 *** The result is that libtool may fail to recognize shared libraries
9738 *** as such. This will affect the creation of libtool libraries that
9739 *** depend on shared libraries, but programs linked with such libtool
9740 *** libraries will work regardless of this problem. Nevertheless, you
9741 *** may want to report the problem to your system manager and/or to
9742 *** bug-libtool@gnu.org
9744 _LT_EOF
9745 fi ;;
9746 esac
9748 break
9750 done
9751 IFS=$lt_save_ifs
9752 MAGIC_CMD=$lt_save_MAGIC_CMD
9754 esac
9757 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9758 if test -n "$MAGIC_CMD"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9760 $as_echo "$MAGIC_CMD" >&6; }
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9767 else
9768 MAGIC_CMD=:
9774 esac
9776 # Use C for the default configuration in the libtool script
9778 lt_save_CC=$CC
9779 ac_ext=c
9780 ac_cpp='$CPP $CPPFLAGS'
9781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9786 # Source file extension for C test sources.
9787 ac_ext=c
9789 # Object file extension for compiled C test sources.
9790 objext=o
9791 objext=$objext
9793 # Code to be used in simple compile tests
9794 lt_simple_compile_test_code="int some_variable = 0;"
9796 # Code to be used in simple link tests
9797 lt_simple_link_test_code='int main(){return(0);}'
9805 # If no C compiler was specified, use CC.
9806 LTCC=${LTCC-"$CC"}
9808 # If no C compiler flags were specified, use CFLAGS.
9809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9811 # Allow CC to be a program name with arguments.
9812 compiler=$CC
9814 # Save the default compiler, since it gets overwritten when the other
9815 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9816 compiler_DEFAULT=$CC
9818 # save warnings/boilerplate of simple test code
9819 ac_outfile=conftest.$ac_objext
9820 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9821 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9822 _lt_compiler_boilerplate=`cat conftest.err`
9823 $RM conftest*
9825 ac_outfile=conftest.$ac_objext
9826 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9828 _lt_linker_boilerplate=`cat conftest.err`
9829 $RM -r conftest*
9832 ## CAVEAT EMPTOR:
9833 ## There is no encapsulation within the following macros, do not change
9834 ## the running order or otherwise move them around unless you know exactly
9835 ## what you are doing...
9836 if test -n "$compiler"; then
9838 lt_prog_compiler_no_builtin_flag=
9840 if test yes = "$GCC"; then
9841 case $cc_basename in
9842 nvcc*)
9843 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9845 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9846 esac
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9849 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9850 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 lt_cv_prog_compiler_rtti_exceptions=no
9854 ac_outfile=conftest.$ac_objext
9855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9856 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9857 # Insert the option either (1) after the last *FLAGS variable, or
9858 # (2) before a word containing "conftest.", or (3) at the end.
9859 # Note that $ac_compile itself does not contain backslashes and begins
9860 # with a dollar sign (not a hyphen), so the echo should work correctly.
9861 # The option is referenced via a variable to avoid confusing sed.
9862 lt_compile=`echo "$ac_compile" | $SED \
9863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9865 -e 's:$: $lt_compiler_flag:'`
9866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9867 (eval "$lt_compile" 2>conftest.err)
9868 ac_status=$?
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 if (exit $ac_status) && test -s "$ac_outfile"; then
9872 # The compiler can only warn and ignore the option if not recognized
9873 # So say no if there are warnings other than the usual output.
9874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9877 lt_cv_prog_compiler_rtti_exceptions=yes
9880 $RM conftest*
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9884 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9886 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9887 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9888 else
9899 lt_prog_compiler_wl=
9900 lt_prog_compiler_pic=
9901 lt_prog_compiler_static=
9904 if test yes = "$GCC"; then
9905 lt_prog_compiler_wl='-Wl,'
9906 lt_prog_compiler_static='-static'
9908 case $host_os in
9909 aix*)
9910 # All AIX code is PIC.
9911 if test ia64 = "$host_cpu"; then
9912 # AIX 5 now supports IA64 processor
9913 lt_prog_compiler_static='-Bstatic'
9915 lt_prog_compiler_pic='-fPIC'
9918 amigaos*)
9919 case $host_cpu in
9920 powerpc)
9921 # see comment about AmigaOS4 .so support
9922 lt_prog_compiler_pic='-fPIC'
9924 m68k)
9925 # FIXME: we need at least 68020 code to build shared libraries, but
9926 # adding the '-m68020' flag to GCC prevents building anything better,
9927 # like '-m68040'.
9928 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9930 esac
9933 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9934 # PIC is the default for these OSes.
9937 mingw* | cygwin* | pw32* | os2* | cegcc*)
9938 # This hack is so that the source file can tell whether it is being
9939 # built for inclusion in a dll (and should export symbols for example).
9940 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9941 # (--disable-auto-import) libraries
9942 lt_prog_compiler_pic='-DDLL_EXPORT'
9943 case $host_os in
9944 os2*)
9945 lt_prog_compiler_static='$wl-static'
9947 esac
9950 darwin* | rhapsody*)
9951 # PIC is the default on this platform
9952 # Common symbols not allowed in MH_DYLIB files
9953 lt_prog_compiler_pic='-fno-common'
9956 haiku*)
9957 # PIC is the default for Haiku.
9958 # The "-static" flag exists, but is broken.
9959 lt_prog_compiler_static=
9962 hpux*)
9963 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9964 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9965 # sets the default TLS model and affects inlining.
9966 case $host_cpu in
9967 hppa*64*)
9968 # +Z the default
9971 lt_prog_compiler_pic='-fPIC'
9973 esac
9976 interix[3-9]*)
9977 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9978 # Instead, we relocate shared libraries at runtime.
9981 msdosdjgpp*)
9982 # Just because we use GCC doesn't mean we suddenly get shared libraries
9983 # on systems that don't support them.
9984 lt_prog_compiler_can_build_shared=no
9985 enable_shared=no
9988 *nto* | *qnx*)
9989 # QNX uses GNU C++, but need to define -shared option too, otherwise
9990 # it will coredump.
9991 lt_prog_compiler_pic='-fPIC -shared'
9994 sysv4*MP*)
9995 if test -d /usr/nec; then
9996 lt_prog_compiler_pic=-Kconform_pic
10001 lt_prog_compiler_pic='-fPIC'
10003 esac
10005 case $cc_basename in
10006 nvcc*) # Cuda Compiler Driver 2.2
10007 lt_prog_compiler_wl='-Xlinker '
10008 if test -n "$lt_prog_compiler_pic"; then
10009 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10012 esac
10013 else
10014 # PORTME Check for flag to pass linker flags through the system compiler.
10015 case $host_os in
10016 aix*)
10017 lt_prog_compiler_wl='-Wl,'
10018 if test ia64 = "$host_cpu"; then
10019 # AIX 5 now supports IA64 processor
10020 lt_prog_compiler_static='-Bstatic'
10021 else
10022 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10026 darwin* | rhapsody*)
10027 # PIC is the default on this platform
10028 # Common symbols not allowed in MH_DYLIB files
10029 lt_prog_compiler_pic='-fno-common'
10030 case $cc_basename in
10031 nagfor*)
10032 # NAG Fortran compiler
10033 lt_prog_compiler_wl='-Wl,-Wl,,'
10034 lt_prog_compiler_pic='-PIC'
10035 lt_prog_compiler_static='-Bstatic'
10037 esac
10040 mingw* | cygwin* | pw32* | os2* | cegcc*)
10041 # This hack is so that the source file can tell whether it is being
10042 # built for inclusion in a dll (and should export symbols for example).
10043 lt_prog_compiler_pic='-DDLL_EXPORT'
10044 case $host_os in
10045 os2*)
10046 lt_prog_compiler_static='$wl-static'
10048 esac
10051 hpux9* | hpux10* | hpux11*)
10052 lt_prog_compiler_wl='-Wl,'
10053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10054 # not for PA HP-UX.
10055 case $host_cpu in
10056 hppa*64*|ia64*)
10057 # +Z the default
10060 lt_prog_compiler_pic='+Z'
10062 esac
10063 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10064 lt_prog_compiler_static='$wl-a ${wl}archive'
10067 irix5* | irix6* | nonstopux*)
10068 lt_prog_compiler_wl='-Wl,'
10069 # PIC (with -KPIC) is the default.
10070 lt_prog_compiler_static='-non_shared'
10073 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10074 case $cc_basename in
10075 # old Intel for x86_64, which still supported -KPIC.
10076 ecc*)
10077 lt_prog_compiler_wl='-Wl,'
10078 lt_prog_compiler_pic='-KPIC'
10079 lt_prog_compiler_static='-static'
10081 # icc used to be incompatible with GCC.
10082 # ICC 10 doesn't accept -KPIC any more.
10083 icc* | ifort*)
10084 lt_prog_compiler_wl='-Wl,'
10085 lt_prog_compiler_pic='-fPIC'
10086 lt_prog_compiler_static='-static'
10088 # Lahey Fortran 8.1.
10089 lf95*)
10090 lt_prog_compiler_wl='-Wl,'
10091 lt_prog_compiler_pic='--shared'
10092 lt_prog_compiler_static='--static'
10094 nagfor*)
10095 # NAG Fortran compiler
10096 lt_prog_compiler_wl='-Wl,-Wl,,'
10097 lt_prog_compiler_pic='-PIC'
10098 lt_prog_compiler_static='-Bstatic'
10100 tcc*)
10101 # Fabrice Bellard et al's Tiny C Compiler
10102 lt_prog_compiler_wl='-Wl,'
10103 lt_prog_compiler_pic='-fPIC'
10104 lt_prog_compiler_static='-static'
10106 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10107 # Portland Group compilers (*not* the Pentium gcc compiler,
10108 # which looks to be a dead project)
10109 lt_prog_compiler_wl='-Wl,'
10110 lt_prog_compiler_pic='-fpic'
10111 lt_prog_compiler_static='-Bstatic'
10113 ccc*)
10114 lt_prog_compiler_wl='-Wl,'
10115 # All Alpha code is PIC.
10116 lt_prog_compiler_static='-non_shared'
10118 xl* | bgxl* | bgf* | mpixl*)
10119 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10120 lt_prog_compiler_wl='-Wl,'
10121 lt_prog_compiler_pic='-qpic'
10122 lt_prog_compiler_static='-qstaticlink'
10125 case `$CC -V 2>&1 | sed 5q` in
10126 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10127 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10128 lt_prog_compiler_pic='-KPIC'
10129 lt_prog_compiler_static='-Bstatic'
10130 lt_prog_compiler_wl=''
10132 *Sun\ F* | *Sun*Fortran*)
10133 lt_prog_compiler_pic='-KPIC'
10134 lt_prog_compiler_static='-Bstatic'
10135 lt_prog_compiler_wl='-Qoption ld '
10137 *Sun\ C*)
10138 # Sun C 5.9
10139 lt_prog_compiler_pic='-KPIC'
10140 lt_prog_compiler_static='-Bstatic'
10141 lt_prog_compiler_wl='-Wl,'
10143 *Intel*\ [CF]*Compiler*)
10144 lt_prog_compiler_wl='-Wl,'
10145 lt_prog_compiler_pic='-fPIC'
10146 lt_prog_compiler_static='-static'
10148 *Portland\ Group*)
10149 lt_prog_compiler_wl='-Wl,'
10150 lt_prog_compiler_pic='-fpic'
10151 lt_prog_compiler_static='-Bstatic'
10153 esac
10155 esac
10158 newsos6)
10159 lt_prog_compiler_pic='-KPIC'
10160 lt_prog_compiler_static='-Bstatic'
10163 *nto* | *qnx*)
10164 # QNX uses GNU C++, but need to define -shared option too, otherwise
10165 # it will coredump.
10166 lt_prog_compiler_pic='-fPIC -shared'
10169 osf3* | osf4* | osf5*)
10170 lt_prog_compiler_wl='-Wl,'
10171 # All OSF/1 code is PIC.
10172 lt_prog_compiler_static='-non_shared'
10175 rdos*)
10176 lt_prog_compiler_static='-non_shared'
10179 solaris*)
10180 lt_prog_compiler_pic='-KPIC'
10181 lt_prog_compiler_static='-Bstatic'
10182 case $cc_basename in
10183 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10184 lt_prog_compiler_wl='-Qoption ld ';;
10186 lt_prog_compiler_wl='-Wl,';;
10187 esac
10190 sunos4*)
10191 lt_prog_compiler_wl='-Qoption ld '
10192 lt_prog_compiler_pic='-PIC'
10193 lt_prog_compiler_static='-Bstatic'
10196 sysv4 | sysv4.2uw2* | sysv4.3*)
10197 lt_prog_compiler_wl='-Wl,'
10198 lt_prog_compiler_pic='-KPIC'
10199 lt_prog_compiler_static='-Bstatic'
10202 sysv4*MP*)
10203 if test -d /usr/nec; then
10204 lt_prog_compiler_pic='-Kconform_pic'
10205 lt_prog_compiler_static='-Bstatic'
10209 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10210 lt_prog_compiler_wl='-Wl,'
10211 lt_prog_compiler_pic='-KPIC'
10212 lt_prog_compiler_static='-Bstatic'
10215 unicos*)
10216 lt_prog_compiler_wl='-Wl,'
10217 lt_prog_compiler_can_build_shared=no
10220 uts4*)
10221 lt_prog_compiler_pic='-pic'
10222 lt_prog_compiler_static='-Bstatic'
10226 lt_prog_compiler_can_build_shared=no
10228 esac
10231 case $host_os in
10232 # For platforms that do not support PIC, -DPIC is meaningless:
10233 *djgpp*)
10234 lt_prog_compiler_pic=
10237 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10239 esac
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10242 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10243 if ${lt_cv_prog_compiler_pic+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10249 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10250 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10253 # Check to make sure the PIC flag actually works.
10255 if test -n "$lt_prog_compiler_pic"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10257 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10258 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 lt_cv_prog_compiler_pic_works=no
10262 ac_outfile=conftest.$ac_objext
10263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10264 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10265 # Insert the option either (1) after the last *FLAGS variable, or
10266 # (2) before a word containing "conftest.", or (3) at the end.
10267 # Note that $ac_compile itself does not contain backslashes and begins
10268 # with a dollar sign (not a hyphen), so the echo should work correctly.
10269 # The option is referenced via a variable to avoid confusing sed.
10270 lt_compile=`echo "$ac_compile" | $SED \
10271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10273 -e 's:$: $lt_compiler_flag:'`
10274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10275 (eval "$lt_compile" 2>conftest.err)
10276 ac_status=$?
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 if (exit $ac_status) && test -s "$ac_outfile"; then
10280 # The compiler can only warn and ignore the option if not recognized
10281 # So say no if there are warnings other than the usual output.
10282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10285 lt_cv_prog_compiler_pic_works=yes
10288 $RM conftest*
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10292 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10294 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10295 case $lt_prog_compiler_pic in
10296 "" | " "*) ;;
10297 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10298 esac
10299 else
10300 lt_prog_compiler_pic=
10301 lt_prog_compiler_can_build_shared=no
10317 # Check to make sure the static flag actually works.
10319 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10321 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10322 if ${lt_cv_prog_compiler_static_works+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 lt_cv_prog_compiler_static_works=no
10326 save_LDFLAGS=$LDFLAGS
10327 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10328 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10330 # The linker can only warn and ignore the option if not recognized
10331 # So say no if there are warnings
10332 if test -s conftest.err; then
10333 # Append any errors to the config.log.
10334 cat conftest.err 1>&5
10335 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10337 if diff conftest.exp conftest.er2 >/dev/null; then
10338 lt_cv_prog_compiler_static_works=yes
10340 else
10341 lt_cv_prog_compiler_static_works=yes
10344 $RM -r conftest*
10345 LDFLAGS=$save_LDFLAGS
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10349 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10351 if test yes = "$lt_cv_prog_compiler_static_works"; then
10353 else
10354 lt_prog_compiler_static=
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10365 if ${lt_cv_prog_compiler_c_o+:} false; then :
10366 $as_echo_n "(cached) " >&6
10367 else
10368 lt_cv_prog_compiler_c_o=no
10369 $RM -r conftest 2>/dev/null
10370 mkdir conftest
10371 cd conftest
10372 mkdir out
10373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10375 lt_compiler_flag="-o out/conftest2.$ac_objext"
10376 # Insert the option either (1) after the last *FLAGS variable, or
10377 # (2) before a word containing "conftest.", or (3) at the end.
10378 # Note that $ac_compile itself does not contain backslashes and begins
10379 # with a dollar sign (not a hyphen), so the echo should work correctly.
10380 lt_compile=`echo "$ac_compile" | $SED \
10381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10383 -e 's:$: $lt_compiler_flag:'`
10384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10385 (eval "$lt_compile" 2>out/conftest.err)
10386 ac_status=$?
10387 cat out/conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10390 then
10391 # The compiler can only warn and ignore the option if not recognized
10392 # So say no if there are warnings
10393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10396 lt_cv_prog_compiler_c_o=yes
10399 chmod u+w . 2>&5
10400 $RM conftest*
10401 # SGI C++ compiler will create directory out/ii_files/ for
10402 # template instantiation
10403 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10404 $RM out/* && rmdir out
10405 cd ..
10406 $RM -r conftest
10407 $RM conftest*
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10419 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10420 if ${lt_cv_prog_compiler_c_o+:} false; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 lt_cv_prog_compiler_c_o=no
10424 $RM -r conftest 2>/dev/null
10425 mkdir conftest
10426 cd conftest
10427 mkdir out
10428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10430 lt_compiler_flag="-o out/conftest2.$ac_objext"
10431 # Insert the option either (1) after the last *FLAGS variable, or
10432 # (2) before a word containing "conftest.", or (3) at the end.
10433 # Note that $ac_compile itself does not contain backslashes and begins
10434 # with a dollar sign (not a hyphen), so the echo should work correctly.
10435 lt_compile=`echo "$ac_compile" | $SED \
10436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10438 -e 's:$: $lt_compiler_flag:'`
10439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10440 (eval "$lt_compile" 2>out/conftest.err)
10441 ac_status=$?
10442 cat out/conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10445 then
10446 # The compiler can only warn and ignore the option if not recognized
10447 # So say no if there are warnings
10448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10449 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10450 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10451 lt_cv_prog_compiler_c_o=yes
10454 chmod u+w . 2>&5
10455 $RM conftest*
10456 # SGI C++ compiler will create directory out/ii_files/ for
10457 # template instantiation
10458 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10459 $RM out/* && rmdir out
10460 cd ..
10461 $RM -r conftest
10462 $RM conftest*
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10466 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10471 hard_links=nottested
10472 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10473 # do not overwrite the value of need_locks provided by the user
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10475 $as_echo_n "checking if we can lock with hard links... " >&6; }
10476 hard_links=yes
10477 $RM conftest*
10478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10479 touch conftest.a
10480 ln conftest.a conftest.b 2>&5 || hard_links=no
10481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10483 $as_echo "$hard_links" >&6; }
10484 if test no = "$hard_links"; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10486 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10487 need_locks=warn
10489 else
10490 need_locks=no
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10499 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10501 runpath_var=
10502 allow_undefined_flag=
10503 always_export_symbols=no
10504 archive_cmds=
10505 archive_expsym_cmds=
10506 compiler_needs_object=no
10507 enable_shared_with_static_runtimes=no
10508 export_dynamic_flag_spec=
10509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10510 hardcode_automatic=no
10511 hardcode_direct=no
10512 hardcode_direct_absolute=no
10513 hardcode_libdir_flag_spec=
10514 hardcode_libdir_separator=
10515 hardcode_minus_L=no
10516 hardcode_shlibpath_var=unsupported
10517 inherit_rpath=no
10518 link_all_deplibs=unknown
10519 module_cmds=
10520 module_expsym_cmds=
10521 old_archive_from_new_cmds=
10522 old_archive_from_expsyms_cmds=
10523 thread_safe_flag_spec=
10524 whole_archive_flag_spec=
10525 # include_expsyms should be a list of space-separated symbols to be *always*
10526 # included in the symbol list
10527 include_expsyms=
10528 # exclude_expsyms can be an extended regexp of symbols to exclude
10529 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10530 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10531 # as well as any symbol that contains 'd'.
10532 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10533 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10534 # platforms (ab)use it in PIC code, but their linkers get confused if
10535 # the symbol is explicitly referenced. Since portable code cannot
10536 # rely on this symbol name, it's probably fine to never include it in
10537 # preloaded symbol tables.
10538 # Exclude shared library initialization/finalization symbols.
10539 extract_expsyms_cmds=
10541 case $host_os in
10542 cygwin* | mingw* | pw32* | cegcc*)
10543 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10544 # When not using gcc, we currently assume that we are using
10545 # Microsoft Visual C++.
10546 if test yes != "$GCC"; then
10547 with_gnu_ld=no
10550 interix*)
10551 # we just hope/assume this is gcc and not c89 (= MSVC++)
10552 with_gnu_ld=yes
10554 openbsd* | bitrig*)
10555 with_gnu_ld=no
10557 esac
10559 ld_shlibs=yes
10561 # On some targets, GNU ld is compatible enough with the native linker
10562 # that we're better off using the native interface for both.
10563 lt_use_gnu_ld_interface=no
10564 if test yes = "$with_gnu_ld"; then
10565 case $host_os in
10566 aix*)
10567 # The AIX port of GNU ld has always aspired to compatibility
10568 # with the native linker. However, as the warning in the GNU ld
10569 # block says, versions before 2.19.5* couldn't really create working
10570 # shared libraries, regardless of the interface used.
10571 case `$LD -v 2>&1` in
10572 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10573 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10574 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10576 lt_use_gnu_ld_interface=yes
10578 esac
10581 lt_use_gnu_ld_interface=yes
10583 esac
10586 if test yes = "$lt_use_gnu_ld_interface"; then
10587 # If archive_cmds runs LD, not CC, wlarc should be empty
10588 wlarc='$wl'
10590 # Set some defaults for GNU ld with shared library support. These
10591 # are reset later if shared libraries are not supported. Putting them
10592 # here allows them to be overridden if necessary.
10593 runpath_var=LD_RUN_PATH
10594 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10595 export_dynamic_flag_spec='$wl--export-dynamic'
10596 # ancient GNU ld didn't support --whole-archive et. al.
10597 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10598 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10599 else
10600 whole_archive_flag_spec=
10602 supports_anon_versioning=no
10603 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10604 *GNU\ gold*) supports_anon_versioning=yes ;;
10605 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10606 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10607 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10608 *\ 2.11.*) ;; # other 2.11 versions
10609 *) supports_anon_versioning=yes ;;
10610 esac
10612 # See if GNU ld supports shared libraries.
10613 case $host_os in
10614 aix[3-9]*)
10615 # On AIX/PPC, the GNU linker is very broken
10616 if test ia64 != "$host_cpu"; then
10617 ld_shlibs=no
10618 cat <<_LT_EOF 1>&2
10620 *** Warning: the GNU linker, at least up to release 2.19, is reported
10621 *** to be unable to reliably create shared libraries on AIX.
10622 *** Therefore, libtool is disabling shared libraries support. If you
10623 *** really care for shared libraries, you may want to install binutils
10624 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10625 *** You will then need to restart the configuration process.
10627 _LT_EOF
10631 amigaos*)
10632 case $host_cpu in
10633 powerpc)
10634 # see comment about AmigaOS4 .so support
10635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10636 archive_expsym_cmds=''
10638 m68k)
10639 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)'
10640 hardcode_libdir_flag_spec='-L$libdir'
10641 hardcode_minus_L=yes
10643 esac
10646 beos*)
10647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10648 allow_undefined_flag=unsupported
10649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10650 # support --undefined. This deserves some investigation. FIXME
10651 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10652 else
10653 ld_shlibs=no
10657 cygwin* | mingw* | pw32* | cegcc*)
10658 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10659 # as there is no search path for DLLs.
10660 hardcode_libdir_flag_spec='-L$libdir'
10661 export_dynamic_flag_spec='$wl--export-all-symbols'
10662 allow_undefined_flag=unsupported
10663 always_export_symbols=no
10664 enable_shared_with_static_runtimes=yes
10665 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'
10666 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10668 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10670 # If the export-symbols file already is a .def file, use it as
10671 # is; otherwise, prepend EXPORTS...
10672 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10673 cp $export_symbols $output_objdir/$soname.def;
10674 else
10675 echo EXPORTS > $output_objdir/$soname.def;
10676 cat $export_symbols >> $output_objdir/$soname.def;
10678 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10679 else
10680 ld_shlibs=no
10684 haiku*)
10685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10686 link_all_deplibs=yes
10689 os2*)
10690 hardcode_libdir_flag_spec='-L$libdir'
10691 hardcode_minus_L=yes
10692 allow_undefined_flag=unsupported
10693 shrext_cmds=.dll
10694 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10695 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10696 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10697 $ECHO EXPORTS >> $output_objdir/$libname.def~
10698 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10699 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10700 emximp -o $lib $output_objdir/$libname.def'
10701 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10702 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10703 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10704 $ECHO EXPORTS >> $output_objdir/$libname.def~
10705 prefix_cmds="$SED"~
10706 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10707 prefix_cmds="$prefix_cmds -e 1d";
10709 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10710 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10711 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10712 emximp -o $lib $output_objdir/$libname.def'
10713 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10714 enable_shared_with_static_runtimes=yes
10717 interix[3-9]*)
10718 hardcode_direct=no
10719 hardcode_shlibpath_var=no
10720 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10721 export_dynamic_flag_spec='$wl-E'
10722 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10723 # Instead, shared libraries are loaded at an image base (0x10000000 by
10724 # default) and relocated if they conflict, which is a slow very memory
10725 # consuming and fragmenting process. To avoid this, we pick a random,
10726 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10727 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10728 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10729 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'
10732 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10733 tmp_diet=no
10734 if test linux-dietlibc = "$host_os"; then
10735 case $cc_basename in
10736 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10737 esac
10739 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10740 && test no = "$tmp_diet"
10741 then
10742 tmp_addflag=' $pic_flag'
10743 tmp_sharedflag='-shared'
10744 case $cc_basename,$host_cpu in
10745 pgcc*) # Portland Group C compiler
10746 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'
10747 tmp_addflag=' $pic_flag'
10749 pgf77* | pgf90* | pgf95* | pgfortran*)
10750 # Portland Group f77 and f90 compilers
10751 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'
10752 tmp_addflag=' $pic_flag -Mnomain' ;;
10753 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10754 tmp_addflag=' -i_dynamic' ;;
10755 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10756 tmp_addflag=' -i_dynamic -nofor_main' ;;
10757 ifc* | ifort*) # Intel Fortran compiler
10758 tmp_addflag=' -nofor_main' ;;
10759 lf95*) # Lahey Fortran 8.1
10760 whole_archive_flag_spec=
10761 tmp_sharedflag='--shared' ;;
10762 nagfor*) # NAGFOR 5.3
10763 tmp_sharedflag='-Wl,-shared' ;;
10764 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10765 tmp_sharedflag='-qmkshrobj'
10766 tmp_addflag= ;;
10767 nvcc*) # Cuda Compiler Driver 2.2
10768 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'
10769 compiler_needs_object=yes
10771 esac
10772 case `$CC -V 2>&1 | sed 5q` in
10773 *Sun\ C*) # Sun C 5.9
10774 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'
10775 compiler_needs_object=yes
10776 tmp_sharedflag='-G' ;;
10777 *Sun\ F*) # Sun Fortran 8.3
10778 tmp_sharedflag='-G' ;;
10779 esac
10780 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10782 if test yes = "$supports_anon_versioning"; then
10783 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10785 echo "local: *; };" >> $output_objdir/$libname.ver~
10786 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10789 case $cc_basename in
10790 tcc*)
10791 export_dynamic_flag_spec='-rdynamic'
10793 xlf* | bgf* | bgxlf* | mpixlf*)
10794 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10795 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10796 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10797 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10798 if test yes = "$supports_anon_versioning"; then
10799 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10801 echo "local: *; };" >> $output_objdir/$libname.ver~
10802 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10805 esac
10806 else
10807 ld_shlibs=no
10811 netbsd*)
10812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10814 wlarc=
10815 else
10816 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10817 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10821 solaris*)
10822 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10823 ld_shlibs=no
10824 cat <<_LT_EOF 1>&2
10826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10827 *** create shared libraries on Solaris systems. Therefore, libtool
10828 *** is disabling shared libraries support. We urge you to upgrade GNU
10829 *** binutils to release 2.9.1 or newer. Another option is to modify
10830 *** your PATH or compiler configuration so that the native linker is
10831 *** used, and then restart.
10833 _LT_EOF
10834 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10836 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10837 else
10838 ld_shlibs=no
10842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10843 case `$LD -v 2>&1` in
10844 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10845 ld_shlibs=no
10846 cat <<_LT_EOF 1>&2
10848 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10849 *** reliably create shared libraries on SCO systems. Therefore, libtool
10850 *** is disabling shared libraries support. We urge you to upgrade GNU
10851 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10852 *** your PATH or compiler configuration so that the native linker is
10853 *** used, and then restart.
10855 _LT_EOF
10858 # For security reasons, it is highly recommended that you always
10859 # use absolute paths for naming shared libraries, and exclude the
10860 # DT_RUNPATH tag from executables and libraries. But doing so
10861 # requires that you compile everything twice, which is a pain.
10862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10863 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10866 else
10867 ld_shlibs=no
10870 esac
10873 sunos4*)
10874 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10875 wlarc=
10876 hardcode_direct=yes
10877 hardcode_shlibpath_var=no
10881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10882 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10883 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10884 else
10885 ld_shlibs=no
10888 esac
10890 if test no = "$ld_shlibs"; then
10891 runpath_var=
10892 hardcode_libdir_flag_spec=
10893 export_dynamic_flag_spec=
10894 whole_archive_flag_spec=
10896 else
10897 # PORTME fill in a description of your system's linker (not GNU ld)
10898 case $host_os in
10899 aix3*)
10900 allow_undefined_flag=unsupported
10901 always_export_symbols=yes
10902 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'
10903 # Note: this linker hardcodes the directories in LIBPATH if there
10904 # are no directories specified by -L.
10905 hardcode_minus_L=yes
10906 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10907 # Neither direct hardcoding nor static linking is supported with a
10908 # broken collect2.
10909 hardcode_direct=unsupported
10913 aix[4-9]*)
10914 if test ia64 = "$host_cpu"; then
10915 # On IA64, the linker does run time linking by default, so we don't
10916 # have to do anything special.
10917 aix_use_runtimelinking=no
10918 exp_sym_flag='-Bexport'
10919 no_entry_flag=
10920 else
10921 # If we're using GNU nm, then we don't want the "-C" option.
10922 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10923 # Without the "-l" option, or with the "-B" option, AIX nm treats
10924 # weak defined symbols like other global defined symbols, whereas
10925 # GNU nm marks them as "W".
10926 # While the 'weak' keyword is ignored in the Export File, we need
10927 # it in the Import File for the 'aix-soname' feature, so we have
10928 # to replace the "-B" option with "-P" for AIX nm.
10929 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10930 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10931 else
10932 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10934 aix_use_runtimelinking=no
10936 # Test if we are trying to use run time linking or normal
10937 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10938 # have runtime linking enabled, and use it for executables.
10939 # For shared libraries, we enable/disable runtime linking
10940 # depending on the kind of the shared library created -
10941 # when "with_aix_soname,aix_use_runtimelinking" is:
10942 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10943 # "aix,yes" lib.so shared, rtl:yes, for executables
10944 # lib.a static archive
10945 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10946 # lib.a(lib.so.V) shared, rtl:no, for executables
10947 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10948 # lib.a(lib.so.V) shared, rtl:no
10949 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10950 # lib.a static archive
10951 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10952 for ld_flag in $LDFLAGS; do
10953 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10954 aix_use_runtimelinking=yes
10955 break
10957 done
10958 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10959 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10960 # so we don't have lib.a shared libs to link our executables.
10961 # We have to force runtime linking in this case.
10962 aix_use_runtimelinking=yes
10963 LDFLAGS="$LDFLAGS -Wl,-brtl"
10966 esac
10968 exp_sym_flag='-bexport'
10969 no_entry_flag='-bnoentry'
10972 # When large executables or shared objects are built, AIX ld can
10973 # have problems creating the table of contents. If linking a library
10974 # or program results in "error TOC overflow" add -mminimal-toc to
10975 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10976 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10978 archive_cmds=''
10979 hardcode_direct=yes
10980 hardcode_direct_absolute=yes
10981 hardcode_libdir_separator=':'
10982 link_all_deplibs=yes
10983 file_list_spec='$wl-f,'
10984 case $with_aix_soname,$aix_use_runtimelinking in
10985 aix,*) ;; # traditional, no import file
10986 svr4,* | *,yes) # use import file
10987 # The Import File defines what to hardcode.
10988 hardcode_direct=no
10989 hardcode_direct_absolute=no
10991 esac
10993 if test yes = "$GCC"; then
10994 case $host_os in aix4.[012]|aix4.[012].*)
10995 # We only want to do this on AIX 4.2 and lower, the check
10996 # below for broken collect2 doesn't work under 4.3+
10997 collect2name=`$CC -print-prog-name=collect2`
10998 if test -f "$collect2name" &&
10999 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11000 then
11001 # We have reworked collect2
11003 else
11004 # We have old collect2
11005 hardcode_direct=unsupported
11006 # It fails to find uninstalled libraries when the uninstalled
11007 # path is not listed in the libpath. Setting hardcode_minus_L
11008 # to unsupported forces relinking
11009 hardcode_minus_L=yes
11010 hardcode_libdir_flag_spec='-L$libdir'
11011 hardcode_libdir_separator=
11014 esac
11015 shared_flag='-shared'
11016 if test yes = "$aix_use_runtimelinking"; then
11017 shared_flag="$shared_flag "'$wl-G'
11019 # Need to ensure runtime linking is disabled for the traditional
11020 # shared library, or the linker may eventually find shared libraries
11021 # /with/ Import File - we do not want to mix them.
11022 shared_flag_aix='-shared'
11023 shared_flag_svr4='-shared $wl-G'
11024 else
11025 # not using gcc
11026 if test ia64 = "$host_cpu"; then
11027 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11028 # chokes on -Wl,-G. The following line is correct:
11029 shared_flag='-G'
11030 else
11031 if test yes = "$aix_use_runtimelinking"; then
11032 shared_flag='$wl-G'
11033 else
11034 shared_flag='$wl-bM:SRE'
11036 shared_flag_aix='$wl-bM:SRE'
11037 shared_flag_svr4='$wl-G'
11041 export_dynamic_flag_spec='$wl-bexpall'
11042 # It seems that -bexpall does not export symbols beginning with
11043 # underscore (_), so it is better to generate a list of symbols to export.
11044 always_export_symbols=yes
11045 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11046 # Warning - without using the other runtime loading flags (-brtl),
11047 # -berok will link without error, but may produce a broken library.
11048 allow_undefined_flag='-berok'
11049 # Determine the default libpath from the value encoded in an
11050 # empty executable.
11051 if test set = "${lt_cv_aix_libpath+set}"; then
11052 aix_libpath=$lt_cv_aix_libpath
11053 else
11054 if ${lt_cv_aix_libpath_+:} false; then :
11055 $as_echo_n "(cached) " >&6
11056 else
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11061 main ()
11065 return 0;
11067 _ACEOF
11068 if ac_fn_c_try_link "$LINENO"; then :
11070 lt_aix_libpath_sed='
11071 /Import File Strings/,/^$/ {
11072 /^0/ {
11073 s/^0 *\([^ ]*\) *$/\1/
11077 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11078 # Check for a 64-bit object if we didn't find anything.
11079 if test -z "$lt_cv_aix_libpath_"; then
11080 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 if test -z "$lt_cv_aix_libpath_"; then
11086 lt_cv_aix_libpath_=/usr/lib:/lib
11091 aix_libpath=$lt_cv_aix_libpath_
11094 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11095 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11096 else
11097 if test ia64 = "$host_cpu"; then
11098 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11099 allow_undefined_flag="-z nodefs"
11100 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"
11101 else
11102 # Determine the default libpath from the value encoded in an
11103 # empty executable.
11104 if test set = "${lt_cv_aix_libpath+set}"; then
11105 aix_libpath=$lt_cv_aix_libpath
11106 else
11107 if ${lt_cv_aix_libpath_+:} false; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11114 main ()
11118 return 0;
11120 _ACEOF
11121 if ac_fn_c_try_link "$LINENO"; then :
11123 lt_aix_libpath_sed='
11124 /Import File Strings/,/^$/ {
11125 /^0/ {
11126 s/^0 *\([^ ]*\) *$/\1/
11130 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11131 # Check for a 64-bit object if we didn't find anything.
11132 if test -z "$lt_cv_aix_libpath_"; then
11133 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11136 rm -f core conftest.err conftest.$ac_objext \
11137 conftest$ac_exeext conftest.$ac_ext
11138 if test -z "$lt_cv_aix_libpath_"; then
11139 lt_cv_aix_libpath_=/usr/lib:/lib
11144 aix_libpath=$lt_cv_aix_libpath_
11147 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11148 # Warning - without using the other run time loading flags,
11149 # -berok will link without error, but may produce a broken library.
11150 no_undefined_flag=' $wl-bernotok'
11151 allow_undefined_flag=' $wl-berok'
11152 if test yes = "$with_gnu_ld"; then
11153 # We only use this code for GNU lds that support --whole-archive.
11154 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11155 else
11156 # Exported symbols can be pulled into shared objects from archives
11157 whole_archive_flag_spec='$convenience'
11159 archive_cmds_need_lc=yes
11160 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11161 # -brtl affects multiple linker settings, -berok does not and is overridden later
11162 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11163 if test svr4 != "$with_aix_soname"; then
11164 # This is similar to how AIX traditionally builds its shared libraries.
11165 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11167 if test aix != "$with_aix_soname"; then
11168 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11169 else
11170 # used by -dlpreopen to get the symbols
11171 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11173 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11178 amigaos*)
11179 case $host_cpu in
11180 powerpc)
11181 # see comment about AmigaOS4 .so support
11182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11183 archive_expsym_cmds=''
11185 m68k)
11186 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)'
11187 hardcode_libdir_flag_spec='-L$libdir'
11188 hardcode_minus_L=yes
11190 esac
11193 bsdi[45]*)
11194 export_dynamic_flag_spec=-rdynamic
11197 cygwin* | mingw* | pw32* | cegcc*)
11198 # When not using gcc, we currently assume that we are using
11199 # Microsoft Visual C++.
11200 # hardcode_libdir_flag_spec is actually meaningless, as there is
11201 # no search path for DLLs.
11202 case $cc_basename in
11203 cl*)
11204 # Native MSVC
11205 hardcode_libdir_flag_spec=' '
11206 allow_undefined_flag=unsupported
11207 always_export_symbols=yes
11208 file_list_spec='@'
11209 # Tell ltmain to make .lib files, not .a files.
11210 libext=lib
11211 # Tell ltmain to make .dll files, not .so files.
11212 shrext_cmds=.dll
11213 # FIXME: Setting linknames here is a bad hack.
11214 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11215 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11216 cp "$export_symbols" "$output_objdir/$soname.def";
11217 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11218 else
11219 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11221 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11222 linknames='
11223 # The linker will not automatically build a static lib if we build a DLL.
11224 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11225 enable_shared_with_static_runtimes=yes
11226 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11228 # Don't use ranlib
11229 old_postinstall_cmds='chmod 644 $oldlib'
11230 postlink_cmds='lt_outputfile="@OUTPUT@"~
11231 lt_tool_outputfile="@TOOL_OUTPUT@"~
11232 case $lt_outputfile in
11233 *.exe|*.EXE) ;;
11235 lt_outputfile=$lt_outputfile.exe
11236 lt_tool_outputfile=$lt_tool_outputfile.exe
11238 esac~
11239 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11240 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11241 $RM "$lt_outputfile.manifest";
11245 # Assume MSVC wrapper
11246 hardcode_libdir_flag_spec=' '
11247 allow_undefined_flag=unsupported
11248 # Tell ltmain to make .lib files, not .a files.
11249 libext=lib
11250 # Tell ltmain to make .dll files, not .so files.
11251 shrext_cmds=.dll
11252 # FIXME: Setting linknames here is a bad hack.
11253 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11254 # The linker will automatically build a .lib file if we build a DLL.
11255 old_archive_from_new_cmds='true'
11256 # FIXME: Should let the user specify the lib program.
11257 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11258 enable_shared_with_static_runtimes=yes
11260 esac
11263 darwin* | rhapsody*)
11266 archive_cmds_need_lc=no
11267 hardcode_direct=no
11268 hardcode_automatic=yes
11269 hardcode_shlibpath_var=unsupported
11270 if test yes = "$lt_cv_ld_force_load"; then
11271 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\"`'
11273 else
11274 whole_archive_flag_spec=''
11276 link_all_deplibs=yes
11277 allow_undefined_flag=$_lt_dar_allow_undefined
11278 case $cc_basename in
11279 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11280 *) _lt_dar_can_shared=$GCC ;;
11281 esac
11282 if test yes = "$_lt_dar_can_shared"; then
11283 output_verbose_link_cmd=func_echo_all
11284 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11285 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11286 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"
11287 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"
11289 else
11290 ld_shlibs=no
11295 dgux*)
11296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11297 hardcode_libdir_flag_spec='-L$libdir'
11298 hardcode_shlibpath_var=no
11301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11302 # support. Future versions do this automatically, but an explicit c++rt0.o
11303 # does not break anything, and helps significantly (at the cost of a little
11304 # extra space).
11305 freebsd2.2*)
11306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11307 hardcode_libdir_flag_spec='-R$libdir'
11308 hardcode_direct=yes
11309 hardcode_shlibpath_var=no
11312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11313 freebsd2.*)
11314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11315 hardcode_direct=yes
11316 hardcode_minus_L=yes
11317 hardcode_shlibpath_var=no
11320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11321 freebsd* | dragonfly*)
11322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11323 hardcode_libdir_flag_spec='-R$libdir'
11324 hardcode_direct=yes
11325 hardcode_shlibpath_var=no
11328 hpux9*)
11329 if test yes = "$GCC"; then
11330 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11331 else
11332 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11334 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11335 hardcode_libdir_separator=:
11336 hardcode_direct=yes
11338 # hardcode_minus_L: Not really in the search PATH,
11339 # but as the default location of the library.
11340 hardcode_minus_L=yes
11341 export_dynamic_flag_spec='$wl-E'
11344 hpux10*)
11345 if test yes,no = "$GCC,$with_gnu_ld"; then
11346 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11347 else
11348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11350 if test no = "$with_gnu_ld"; then
11351 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11352 hardcode_libdir_separator=:
11353 hardcode_direct=yes
11354 hardcode_direct_absolute=yes
11355 export_dynamic_flag_spec='$wl-E'
11356 # hardcode_minus_L: Not really in the search PATH,
11357 # but as the default location of the library.
11358 hardcode_minus_L=yes
11362 hpux11*)
11363 if test yes,no = "$GCC,$with_gnu_ld"; then
11364 case $host_cpu in
11365 hppa*64*)
11366 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11368 ia64*)
11369 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11372 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11374 esac
11375 else
11376 case $host_cpu in
11377 hppa*64*)
11378 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 ia64*)
11381 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11385 # Older versions of the 11.00 compiler do not understand -b yet
11386 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11388 $as_echo_n "checking if $CC understands -b... " >&6; }
11389 if ${lt_cv_prog_compiler__b+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 lt_cv_prog_compiler__b=no
11393 save_LDFLAGS=$LDFLAGS
11394 LDFLAGS="$LDFLAGS -b"
11395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11397 # The linker can only warn and ignore the option if not recognized
11398 # So say no if there are warnings
11399 if test -s conftest.err; then
11400 # Append any errors to the config.log.
11401 cat conftest.err 1>&5
11402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11404 if diff conftest.exp conftest.er2 >/dev/null; then
11405 lt_cv_prog_compiler__b=yes
11407 else
11408 lt_cv_prog_compiler__b=yes
11411 $RM -r conftest*
11412 LDFLAGS=$save_LDFLAGS
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11416 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11418 if test yes = "$lt_cv_prog_compiler__b"; then
11419 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11420 else
11421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11425 esac
11427 if test no = "$with_gnu_ld"; then
11428 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11429 hardcode_libdir_separator=:
11431 case $host_cpu in
11432 hppa*64*|ia64*)
11433 hardcode_direct=no
11434 hardcode_shlibpath_var=no
11437 hardcode_direct=yes
11438 hardcode_direct_absolute=yes
11439 export_dynamic_flag_spec='$wl-E'
11441 # hardcode_minus_L: Not really in the search PATH,
11442 # but as the default location of the library.
11443 hardcode_minus_L=yes
11445 esac
11449 irix5* | irix6* | nonstopux*)
11450 if test yes = "$GCC"; then
11451 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'
11452 # Try to use the -exported_symbol ld option, if it does not
11453 # work, assume that -exports_file does not work either and
11454 # implicitly export all symbols.
11455 # This should be the same for all languages, so no per-tag cache variable.
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11457 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11458 if ${lt_cv_irix_exported_symbol+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 save_LDFLAGS=$LDFLAGS
11462 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465 int foo (void) { return 0; }
11466 _ACEOF
11467 if ac_fn_c_try_link "$LINENO"; then :
11468 lt_cv_irix_exported_symbol=yes
11469 else
11470 lt_cv_irix_exported_symbol=no
11472 rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474 LDFLAGS=$save_LDFLAGS
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11477 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11478 if test yes = "$lt_cv_irix_exported_symbol"; then
11479 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'
11481 else
11482 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'
11483 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'
11485 archive_cmds_need_lc='no'
11486 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11487 hardcode_libdir_separator=:
11488 inherit_rpath=yes
11489 link_all_deplibs=yes
11492 linux*)
11493 case $cc_basename in
11494 tcc*)
11495 # Fabrice Bellard et al's Tiny C Compiler
11496 ld_shlibs=yes
11497 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11499 esac
11502 netbsd*)
11503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11505 else
11506 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11508 hardcode_libdir_flag_spec='-R$libdir'
11509 hardcode_direct=yes
11510 hardcode_shlibpath_var=no
11513 newsos6)
11514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11515 hardcode_direct=yes
11516 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11517 hardcode_libdir_separator=:
11518 hardcode_shlibpath_var=no
11521 *nto* | *qnx*)
11524 openbsd* | bitrig*)
11525 if test -f /usr/libexec/ld.so; then
11526 hardcode_direct=yes
11527 hardcode_shlibpath_var=no
11528 hardcode_direct_absolute=yes
11529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11531 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11532 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11533 export_dynamic_flag_spec='$wl-E'
11534 else
11535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11536 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11538 else
11539 ld_shlibs=no
11543 os2*)
11544 hardcode_libdir_flag_spec='-L$libdir'
11545 hardcode_minus_L=yes
11546 allow_undefined_flag=unsupported
11547 shrext_cmds=.dll
11548 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11549 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11550 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11551 $ECHO EXPORTS >> $output_objdir/$libname.def~
11552 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11553 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11554 emximp -o $lib $output_objdir/$libname.def'
11555 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11556 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11557 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11558 $ECHO EXPORTS >> $output_objdir/$libname.def~
11559 prefix_cmds="$SED"~
11560 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11561 prefix_cmds="$prefix_cmds -e 1d";
11563 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11564 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11565 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11566 emximp -o $lib $output_objdir/$libname.def'
11567 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11568 enable_shared_with_static_runtimes=yes
11571 osf3*)
11572 if test yes = "$GCC"; then
11573 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11574 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'
11575 else
11576 allow_undefined_flag=' -expect_unresolved \*'
11577 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'
11579 archive_cmds_need_lc='no'
11580 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11581 hardcode_libdir_separator=:
11584 osf4* | osf5*) # as osf3* with the addition of -msym flag
11585 if test yes = "$GCC"; then
11586 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11587 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'
11588 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11589 else
11590 allow_undefined_flag=' -expect_unresolved \*'
11591 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'
11592 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~
11593 $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'
11595 # Both c and cxx compiler support -rpath directly
11596 hardcode_libdir_flag_spec='-rpath $libdir'
11598 archive_cmds_need_lc='no'
11599 hardcode_libdir_separator=:
11602 solaris*)
11603 no_undefined_flag=' -z defs'
11604 if test yes = "$GCC"; then
11605 wlarc='$wl'
11606 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11607 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11608 $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'
11609 else
11610 case `$CC -V 2>&1` in
11611 *"Compilers 5.0"*)
11612 wlarc=''
11613 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11615 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11618 wlarc='$wl'
11619 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11620 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11621 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11623 esac
11625 hardcode_libdir_flag_spec='-R$libdir'
11626 hardcode_shlibpath_var=no
11627 case $host_os in
11628 solaris2.[0-5] | solaris2.[0-5].*) ;;
11630 # The compiler driver will combine and reorder linker options,
11631 # but understands '-z linker_flag'. GCC discards it without '$wl',
11632 # but is careful enough not to reorder.
11633 # Supported since Solaris 2.6 (maybe 2.5.1?)
11634 if test yes = "$GCC"; then
11635 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11636 else
11637 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11640 esac
11641 link_all_deplibs=yes
11644 sunos4*)
11645 if test sequent = "$host_vendor"; then
11646 # Use $CC to link under sequent, because it throws in some extra .o
11647 # files that make .init and .fini sections work.
11648 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11649 else
11650 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11652 hardcode_libdir_flag_spec='-L$libdir'
11653 hardcode_direct=yes
11654 hardcode_minus_L=yes
11655 hardcode_shlibpath_var=no
11658 sysv4)
11659 case $host_vendor in
11660 sni)
11661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11662 hardcode_direct=yes # is this really true???
11664 siemens)
11665 ## LD is ld it makes a PLAMLIB
11666 ## CC just makes a GrossModule.
11667 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11668 reload_cmds='$CC -r -o $output$reload_objs'
11669 hardcode_direct=no
11671 motorola)
11672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11673 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11675 esac
11676 runpath_var='LD_RUN_PATH'
11677 hardcode_shlibpath_var=no
11680 sysv4.3*)
11681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11682 hardcode_shlibpath_var=no
11683 export_dynamic_flag_spec='-Bexport'
11686 sysv4*MP*)
11687 if test -d /usr/nec; then
11688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11689 hardcode_shlibpath_var=no
11690 runpath_var=LD_RUN_PATH
11691 hardcode_runpath_var=yes
11692 ld_shlibs=yes
11696 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11697 no_undefined_flag='$wl-z,text'
11698 archive_cmds_need_lc=no
11699 hardcode_shlibpath_var=no
11700 runpath_var='LD_RUN_PATH'
11702 if test yes = "$GCC"; then
11703 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11704 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11705 else
11706 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11707 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11711 sysv5* | sco3.2v5* | sco5v6*)
11712 # Note: We CANNOT use -z defs as we might desire, because we do not
11713 # link with -lc, and that would cause any symbols used from libc to
11714 # always be unresolved, which means just about no library would
11715 # ever link correctly. If we're not using GNU ld we use -z text
11716 # though, which does catch some bad symbols but isn't as heavy-handed
11717 # as -z defs.
11718 no_undefined_flag='$wl-z,text'
11719 allow_undefined_flag='$wl-z,nodefs'
11720 archive_cmds_need_lc=no
11721 hardcode_shlibpath_var=no
11722 hardcode_libdir_flag_spec='$wl-R,$libdir'
11723 hardcode_libdir_separator=':'
11724 link_all_deplibs=yes
11725 export_dynamic_flag_spec='$wl-Bexport'
11726 runpath_var='LD_RUN_PATH'
11728 if test yes = "$GCC"; then
11729 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11730 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11731 else
11732 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11733 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11737 uts4*)
11738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11739 hardcode_libdir_flag_spec='-L$libdir'
11740 hardcode_shlibpath_var=no
11744 ld_shlibs=no
11746 esac
11748 if test sni = "$host_vendor"; then
11749 case $host in
11750 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11751 export_dynamic_flag_spec='$wl-Blargedynsym'
11753 esac
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11758 $as_echo "$ld_shlibs" >&6; }
11759 test no = "$ld_shlibs" && can_build_shared=no
11761 with_gnu_ld=$with_gnu_ld
11778 # Do we need to explicitly link libc?
11780 case "x$archive_cmds_need_lc" in
11781 x|xyes)
11782 # Assume -lc should be added
11783 archive_cmds_need_lc=yes
11785 if test yes,yes = "$GCC,$enable_shared"; then
11786 case $archive_cmds in
11787 *'~'*)
11788 # FIXME: we may have to deal with multi-command sequences.
11790 '$CC '*)
11791 # Test whether the compiler implicitly links with -lc since on some
11792 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11793 # to ld, don't add -lc before -lgcc.
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11795 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11796 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 $RM conftest*
11800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11803 (eval $ac_compile) 2>&5
11804 ac_status=$?
11805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; } 2>conftest.err; then
11807 soname=conftest
11808 lib=conftest
11809 libobjs=conftest.$ac_objext
11810 deplibs=
11811 wl=$lt_prog_compiler_wl
11812 pic_flag=$lt_prog_compiler_pic
11813 compiler_flags=-v
11814 linker_flags=-v
11815 verstring=
11816 output_objdir=.
11817 libname=conftest
11818 lt_save_allow_undefined_flag=$allow_undefined_flag
11819 allow_undefined_flag=
11820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11821 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11822 ac_status=$?
11823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11824 test $ac_status = 0; }
11825 then
11826 lt_cv_archive_cmds_need_lc=no
11827 else
11828 lt_cv_archive_cmds_need_lc=yes
11830 allow_undefined_flag=$lt_save_allow_undefined_flag
11831 else
11832 cat conftest.err 1>&5
11834 $RM conftest*
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11838 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11839 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11841 esac
11844 esac
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11998 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12000 if test yes = "$GCC"; then
12001 case $host_os in
12002 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12003 *) lt_awk_arg='/^libraries:/' ;;
12004 esac
12005 case $host_os in
12006 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12007 *) lt_sed_strip_eq='s|=/|/|g' ;;
12008 esac
12009 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12010 case $lt_search_path_spec in
12011 *\;*)
12012 # if the path contains ";" then we assume it to be the separator
12013 # otherwise default to the standard path separator (i.e. ":") - it is
12014 # assumed that no part of a normal pathname contains ";" but that should
12015 # okay in the real world where ";" in dirpaths is itself problematic.
12016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12019 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12021 esac
12022 # Ok, now we have the path, separated by spaces, we can step through it
12023 # and add multilib dir if necessary...
12024 lt_tmp_lt_search_path_spec=
12025 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12026 # ...but if some path component already ends with the multilib dir we assume
12027 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12028 case "$lt_multi_os_dir; $lt_search_path_spec " in
12029 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12030 lt_multi_os_dir=
12032 esac
12033 for lt_sys_path in $lt_search_path_spec; do
12034 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12036 elif test -n "$lt_multi_os_dir"; then
12037 test -d "$lt_sys_path" && \
12038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12040 done
12041 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12042 BEGIN {RS = " "; FS = "/|\n";} {
12043 lt_foo = "";
12044 lt_count = 0;
12045 for (lt_i = NF; lt_i > 0; lt_i--) {
12046 if ($lt_i != "" && $lt_i != ".") {
12047 if ($lt_i == "..") {
12048 lt_count++;
12049 } else {
12050 if (lt_count == 0) {
12051 lt_foo = "/" $lt_i lt_foo;
12052 } else {
12053 lt_count--;
12058 if (lt_foo != "") { lt_freq[lt_foo]++; }
12059 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12061 # AWK program above erroneously prepends '/' to C:/dos/paths
12062 # for these hosts.
12063 case $host_os in
12064 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12065 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12066 esac
12067 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12068 else
12069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12071 library_names_spec=
12072 libname_spec='lib$name'
12073 soname_spec=
12074 shrext_cmds=.so
12075 postinstall_cmds=
12076 postuninstall_cmds=
12077 finish_cmds=
12078 finish_eval=
12079 shlibpath_var=
12080 shlibpath_overrides_runpath=unknown
12081 version_type=none
12082 dynamic_linker="$host_os ld.so"
12083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12084 need_lib_prefix=unknown
12085 hardcode_into_libs=no
12087 # when you set need_version to no, make sure it does not cause -set_version
12088 # flags to be left without arguments
12089 need_version=unknown
12093 case $host_os in
12094 aix3*)
12095 version_type=linux # correct to gnu/linux during the next big refactor
12096 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12097 shlibpath_var=LIBPATH
12099 # AIX 3 has no versioning support, so we append a major version to the name.
12100 soname_spec='$libname$release$shared_ext$major'
12103 aix[4-9]*)
12104 version_type=linux # correct to gnu/linux during the next big refactor
12105 need_lib_prefix=no
12106 need_version=no
12107 hardcode_into_libs=yes
12108 if test ia64 = "$host_cpu"; then
12109 # AIX 5 supports IA64
12110 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12111 shlibpath_var=LD_LIBRARY_PATH
12112 else
12113 # With GCC up to 2.95.x, collect2 would create an import file
12114 # for dependence libraries. The import file would start with
12115 # the line '#! .'. This would cause the generated library to
12116 # depend on '.', always an invalid library. This was fixed in
12117 # development snapshots of GCC prior to 3.0.
12118 case $host_os in
12119 aix4 | aix4.[01] | aix4.[01].*)
12120 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12121 echo ' yes '
12122 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12124 else
12125 can_build_shared=no
12128 esac
12129 # Using Import Files as archive members, it is possible to support
12130 # filename-based versioning of shared library archives on AIX. While
12131 # this would work for both with and without runtime linking, it will
12132 # prevent static linking of such archives. So we do filename-based
12133 # shared library versioning with .so extension only, which is used
12134 # when both runtime linking and shared linking is enabled.
12135 # Unfortunately, runtime linking may impact performance, so we do
12136 # not want this to be the default eventually. Also, we use the
12137 # versioned .so libs for executables only if there is the -brtl
12138 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12139 # To allow for filename-based versioning support, we need to create
12140 # libNAME.so.V as an archive file, containing:
12141 # *) an Import File, referring to the versioned filename of the
12142 # archive as well as the shared archive member, telling the
12143 # bitwidth (32 or 64) of that shared object, and providing the
12144 # list of exported symbols of that shared object, eventually
12145 # decorated with the 'weak' keyword
12146 # *) the shared object with the F_LOADONLY flag set, to really avoid
12147 # it being seen by the linker.
12148 # At run time we better use the real file rather than another symlink,
12149 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12151 case $with_aix_soname,$aix_use_runtimelinking in
12152 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12153 # soname into executable. Probably we can add versioning support to
12154 # collect2, so additional links can be useful in future.
12155 aix,yes) # traditional libtool
12156 dynamic_linker='AIX unversionable lib.so'
12157 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12158 # instead of lib<name>.a to let people know that these are not
12159 # typical AIX shared libraries.
12160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12162 aix,no) # traditional AIX only
12163 dynamic_linker='AIX lib.a(lib.so.V)'
12164 # We preserve .a as extension for shared libraries through AIX4.2
12165 # and later when we are not doing run time linking.
12166 library_names_spec='$libname$release.a $libname.a'
12167 soname_spec='$libname$release$shared_ext$major'
12169 svr4,*) # full svr4 only
12170 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12171 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12172 # We do not specify a path in Import Files, so LIBPATH fires.
12173 shlibpath_overrides_runpath=yes
12175 *,yes) # both, prefer svr4
12176 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12177 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12178 # unpreferred sharedlib libNAME.a needs extra handling
12179 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12180 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12181 # We do not specify a path in Import Files, so LIBPATH fires.
12182 shlibpath_overrides_runpath=yes
12184 *,no) # both, prefer aix
12185 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12186 library_names_spec='$libname$release.a $libname.a'
12187 soname_spec='$libname$release$shared_ext$major'
12188 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12189 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12190 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12192 esac
12193 shlibpath_var=LIBPATH
12197 amigaos*)
12198 case $host_cpu in
12199 powerpc)
12200 # Since July 2007 AmigaOS4 officially supports .so libraries.
12201 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12204 m68k)
12205 library_names_spec='$libname.ixlibrary $libname.a'
12206 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12207 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12209 esac
12212 beos*)
12213 library_names_spec='$libname$shared_ext'
12214 dynamic_linker="$host_os ld.so"
12215 shlibpath_var=LIBRARY_PATH
12218 bsdi[45]*)
12219 version_type=linux # correct to gnu/linux during the next big refactor
12220 need_version=no
12221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12222 soname_spec='$libname$release$shared_ext$major'
12223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12224 shlibpath_var=LD_LIBRARY_PATH
12225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12227 # the default ld.so.conf also contains /usr/contrib/lib and
12228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12229 # libtool to hard-code these into programs
12232 cygwin* | mingw* | pw32* | cegcc*)
12233 version_type=windows
12234 shrext_cmds=.dll
12235 need_version=no
12236 need_lib_prefix=no
12238 case $GCC,$cc_basename in
12239 yes,*)
12240 # gcc
12241 library_names_spec='$libname.dll.a'
12242 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12243 postinstall_cmds='base_file=`basename \$file`~
12244 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12245 dldir=$destdir/`dirname \$dlpath`~
12246 test -d \$dldir || mkdir -p \$dldir~
12247 $install_prog $dir/$dlname \$dldir/$dlname~
12248 chmod a+x \$dldir/$dlname~
12249 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12250 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12252 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12253 dlpath=$dir/\$dldll~
12254 $RM \$dlpath'
12255 shlibpath_overrides_runpath=yes
12257 case $host_os in
12258 cygwin*)
12259 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12260 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12262 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12264 mingw* | cegcc*)
12265 # MinGW DLLs use traditional 'lib' prefix
12266 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12268 pw32*)
12269 # pw32 DLLs use 'pw' prefix rather than 'lib'
12270 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12272 esac
12273 dynamic_linker='Win32 ld.exe'
12276 *,cl*)
12277 # Native MSVC
12278 libname_spec='$name'
12279 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12280 library_names_spec='$libname.dll.lib'
12282 case $build_os in
12283 mingw*)
12284 sys_lib_search_path_spec=
12285 lt_save_ifs=$IFS
12286 IFS=';'
12287 for lt_path in $LIB
12289 IFS=$lt_save_ifs
12290 # Let DOS variable expansion print the short 8.3 style file name.
12291 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12292 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12293 done
12294 IFS=$lt_save_ifs
12295 # Convert to MSYS style.
12296 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12298 cygwin*)
12299 # Convert to unix form, then to dos form, then back to unix form
12300 # but this time dos style (no spaces!) so that the unix form looks
12301 # like /cygdrive/c/PROGRA~1:/cygdr...
12302 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12303 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12304 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12307 sys_lib_search_path_spec=$LIB
12308 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12309 # It is most probably a Windows format PATH.
12310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12311 else
12312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12314 # FIXME: find the short name or the path components, as spaces are
12315 # common. (e.g. "Program Files" -> "PROGRA~1")
12317 esac
12319 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12320 postinstall_cmds='base_file=`basename \$file`~
12321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12322 dldir=$destdir/`dirname \$dlpath`~
12323 test -d \$dldir || mkdir -p \$dldir~
12324 $install_prog $dir/$dlname \$dldir/$dlname'
12325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12326 dlpath=$dir/\$dldll~
12327 $RM \$dlpath'
12328 shlibpath_overrides_runpath=yes
12329 dynamic_linker='Win32 link.exe'
12333 # Assume MSVC wrapper
12334 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12335 dynamic_linker='Win32 ld.exe'
12337 esac
12338 # FIXME: first we should search . and the directory the executable is in
12339 shlibpath_var=PATH
12342 darwin* | rhapsody*)
12343 dynamic_linker="$host_os dyld"
12344 version_type=darwin
12345 need_lib_prefix=no
12346 need_version=no
12347 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12348 soname_spec='$libname$release$major$shared_ext'
12349 shlibpath_overrides_runpath=yes
12350 shlibpath_var=DYLD_LIBRARY_PATH
12351 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12353 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12354 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12357 dgux*)
12358 version_type=linux # correct to gnu/linux during the next big refactor
12359 need_lib_prefix=no
12360 need_version=no
12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12362 soname_spec='$libname$release$shared_ext$major'
12363 shlibpath_var=LD_LIBRARY_PATH
12366 freebsd* | dragonfly*)
12367 # DragonFly does not have aout. When/if they implement a new
12368 # versioning mechanism, adjust this.
12369 if test -x /usr/bin/objformat; then
12370 objformat=`/usr/bin/objformat`
12371 else
12372 case $host_os in
12373 freebsd[23].*) objformat=aout ;;
12374 *) objformat=elf ;;
12375 esac
12377 version_type=freebsd-$objformat
12378 case $version_type in
12379 freebsd-elf*)
12380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12381 soname_spec='$libname$release$shared_ext$major'
12382 need_version=no
12383 need_lib_prefix=no
12385 freebsd-*)
12386 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12387 need_version=yes
12389 esac
12390 shlibpath_var=LD_LIBRARY_PATH
12391 case $host_os in
12392 freebsd2.*)
12393 shlibpath_overrides_runpath=yes
12395 freebsd3.[01]* | freebsdelf3.[01]*)
12396 shlibpath_overrides_runpath=yes
12397 hardcode_into_libs=yes
12399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12401 shlibpath_overrides_runpath=no
12402 hardcode_into_libs=yes
12404 *) # from 4.6 on, and DragonFly
12405 shlibpath_overrides_runpath=yes
12406 hardcode_into_libs=yes
12408 esac
12411 haiku*)
12412 version_type=linux # correct to gnu/linux during the next big refactor
12413 need_lib_prefix=no
12414 need_version=no
12415 dynamic_linker="$host_os runtime_loader"
12416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12417 soname_spec='$libname$release$shared_ext$major'
12418 shlibpath_var=LIBRARY_PATH
12419 shlibpath_overrides_runpath=no
12420 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12421 hardcode_into_libs=yes
12424 hpux9* | hpux10* | hpux11*)
12425 # Give a soname corresponding to the major version so that dld.sl refuses to
12426 # link against other versions.
12427 version_type=sunos
12428 need_lib_prefix=no
12429 need_version=no
12430 case $host_cpu in
12431 ia64*)
12432 shrext_cmds='.so'
12433 hardcode_into_libs=yes
12434 dynamic_linker="$host_os dld.so"
12435 shlibpath_var=LD_LIBRARY_PATH
12436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12438 soname_spec='$libname$release$shared_ext$major'
12439 if test 32 = "$HPUX_IA64_MODE"; then
12440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12441 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12442 else
12443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12444 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12447 hppa*64*)
12448 shrext_cmds='.sl'
12449 hardcode_into_libs=yes
12450 dynamic_linker="$host_os dld.sl"
12451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12454 soname_spec='$libname$release$shared_ext$major'
12455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12459 shrext_cmds='.sl'
12460 dynamic_linker="$host_os dld.sl"
12461 shlibpath_var=SHLIB_PATH
12462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12464 soname_spec='$libname$release$shared_ext$major'
12466 esac
12467 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12468 postinstall_cmds='chmod 555 $lib'
12469 # or fails outright, so override atomically:
12470 install_override_mode=555
12473 interix[3-9]*)
12474 version_type=linux # correct to gnu/linux during the next big refactor
12475 need_lib_prefix=no
12476 need_version=no
12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12478 soname_spec='$libname$release$shared_ext$major'
12479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12480 shlibpath_var=LD_LIBRARY_PATH
12481 shlibpath_overrides_runpath=no
12482 hardcode_into_libs=yes
12485 irix5* | irix6* | nonstopux*)
12486 case $host_os in
12487 nonstopux*) version_type=nonstopux ;;
12489 if test yes = "$lt_cv_prog_gnu_ld"; then
12490 version_type=linux # correct to gnu/linux during the next big refactor
12491 else
12492 version_type=irix
12493 fi ;;
12494 esac
12495 need_lib_prefix=no
12496 need_version=no
12497 soname_spec='$libname$release$shared_ext$major'
12498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12499 case $host_os in
12500 irix5* | nonstopux*)
12501 libsuff= shlibsuff=
12504 case $LD in # libtool.m4 will add one of these switches to LD
12505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12506 libsuff= shlibsuff= libmagic=32-bit;;
12507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12508 libsuff=32 shlibsuff=N32 libmagic=N32;;
12509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12511 *) libsuff= shlibsuff= libmagic=never-match;;
12512 esac
12514 esac
12515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12516 shlibpath_overrides_runpath=no
12517 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12518 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12519 hardcode_into_libs=yes
12522 # No shared lib support for Linux oldld, aout, or coff.
12523 linux*oldld* | linux*aout* | linux*coff*)
12524 dynamic_linker=no
12527 linux*android*)
12528 version_type=none # Android doesn't support versioned libraries.
12529 need_lib_prefix=no
12530 need_version=no
12531 library_names_spec='$libname$release$shared_ext'
12532 soname_spec='$libname$release$shared_ext'
12533 finish_cmds=
12534 shlibpath_var=LD_LIBRARY_PATH
12535 shlibpath_overrides_runpath=yes
12537 # This implies no fast_install, which is unacceptable.
12538 # Some rework will be needed to allow for fast_install
12539 # before this can be enabled.
12540 hardcode_into_libs=yes
12542 dynamic_linker='Android linker'
12543 # Don't embed -rpath directories since the linker doesn't support them.
12544 hardcode_libdir_flag_spec='-L$libdir'
12547 # This must be glibc/ELF.
12548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12549 version_type=linux # correct to gnu/linux during the next big refactor
12550 need_lib_prefix=no
12551 need_version=no
12552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12553 soname_spec='$libname$release$shared_ext$major'
12554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 shlibpath_overrides_runpath=no
12558 # Some binutils ld are patched to set DT_RUNPATH
12559 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 lt_cv_shlibpath_overrides_runpath=no
12563 save_LDFLAGS=$LDFLAGS
12564 save_libdir=$libdir
12565 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12566 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12571 main ()
12575 return 0;
12577 _ACEOF
12578 if ac_fn_c_try_link "$LINENO"; then :
12579 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12580 lt_cv_shlibpath_overrides_runpath=yes
12583 rm -f core conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
12585 LDFLAGS=$save_LDFLAGS
12586 libdir=$save_libdir
12590 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12592 # This implies no fast_install, which is unacceptable.
12593 # Some rework will be needed to allow for fast_install
12594 # before this can be enabled.
12595 hardcode_into_libs=yes
12597 # Ideally, we could use ldconfig to report *all* directores which are
12598 # searched for libraries, however this is still not possible. Aside from not
12599 # being certain /sbin/ldconfig is available, command
12600 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12601 # even though it is searched at run-time. Try to do the best guess by
12602 # appending ld.so.conf contents (and includes) to the search path.
12603 if test -f /etc/ld.so.conf; then
12604 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' ' '`
12605 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12608 # We used to test for /lib/ld.so.1 and disable shared libraries on
12609 # powerpc, because MkLinux only supported shared libraries with the
12610 # GNU dynamic linker. Since this was broken with cross compilers,
12611 # most powerpc-linux boxes support dynamic linking these days and
12612 # people can always --disable-shared, the test was removed, and we
12613 # assume the GNU/Linux dynamic linker is in use.
12614 dynamic_linker='GNU/Linux ld.so'
12617 netbsd*)
12618 version_type=sunos
12619 need_lib_prefix=no
12620 need_version=no
12621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12622 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12624 dynamic_linker='NetBSD (a.out) ld.so'
12625 else
12626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12627 soname_spec='$libname$release$shared_ext$major'
12628 dynamic_linker='NetBSD ld.elf_so'
12630 shlibpath_var=LD_LIBRARY_PATH
12631 shlibpath_overrides_runpath=yes
12632 hardcode_into_libs=yes
12635 newsos6)
12636 version_type=linux # correct to gnu/linux during the next big refactor
12637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12638 shlibpath_var=LD_LIBRARY_PATH
12639 shlibpath_overrides_runpath=yes
12642 *nto* | *qnx*)
12643 version_type=qnx
12644 need_lib_prefix=no
12645 need_version=no
12646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647 soname_spec='$libname$release$shared_ext$major'
12648 shlibpath_var=LD_LIBRARY_PATH
12649 shlibpath_overrides_runpath=no
12650 hardcode_into_libs=yes
12651 dynamic_linker='ldqnx.so'
12654 openbsd* | bitrig*)
12655 version_type=sunos
12656 sys_lib_dlsearch_path_spec=/usr/lib
12657 need_lib_prefix=no
12658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12659 need_version=no
12660 else
12661 need_version=yes
12663 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12665 shlibpath_var=LD_LIBRARY_PATH
12666 shlibpath_overrides_runpath=yes
12669 os2*)
12670 libname_spec='$name'
12671 version_type=windows
12672 shrext_cmds=.dll
12673 need_version=no
12674 need_lib_prefix=no
12675 # OS/2 can only load a DLL with a base name of 8 characters or less.
12676 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12677 v=$($ECHO $release$versuffix | tr -d .-);
12678 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12679 $ECHO $n$v`$shared_ext'
12680 library_names_spec='${libname}_dll.$libext'
12681 dynamic_linker='OS/2 ld.exe'
12682 shlibpath_var=BEGINLIBPATH
12683 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12685 postinstall_cmds='base_file=`basename \$file`~
12686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12687 dldir=$destdir/`dirname \$dlpath`~
12688 test -d \$dldir || mkdir -p \$dldir~
12689 $install_prog $dir/$dlname \$dldir/$dlname~
12690 chmod a+x \$dldir/$dlname~
12691 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12692 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12695 dlpath=$dir/\$dldll~
12696 $RM \$dlpath'
12699 osf3* | osf4* | osf5*)
12700 version_type=osf
12701 need_lib_prefix=no
12702 need_version=no
12703 soname_spec='$libname$release$shared_ext$major'
12704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12705 shlibpath_var=LD_LIBRARY_PATH
12706 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12710 rdos*)
12711 dynamic_linker=no
12714 solaris*)
12715 version_type=linux # correct to gnu/linux during the next big refactor
12716 need_lib_prefix=no
12717 need_version=no
12718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12719 soname_spec='$libname$release$shared_ext$major'
12720 shlibpath_var=LD_LIBRARY_PATH
12721 shlibpath_overrides_runpath=yes
12722 hardcode_into_libs=yes
12723 # ldd complains unless libraries are executable
12724 postinstall_cmds='chmod +x $lib'
12727 sunos4*)
12728 version_type=sunos
12729 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12730 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12731 shlibpath_var=LD_LIBRARY_PATH
12732 shlibpath_overrides_runpath=yes
12733 if test yes = "$with_gnu_ld"; then
12734 need_lib_prefix=no
12736 need_version=yes
12739 sysv4 | sysv4.3*)
12740 version_type=linux # correct to gnu/linux during the next big refactor
12741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12742 soname_spec='$libname$release$shared_ext$major'
12743 shlibpath_var=LD_LIBRARY_PATH
12744 case $host_vendor in
12745 sni)
12746 shlibpath_overrides_runpath=no
12747 need_lib_prefix=no
12748 runpath_var=LD_RUN_PATH
12750 siemens)
12751 need_lib_prefix=no
12753 motorola)
12754 need_lib_prefix=no
12755 need_version=no
12756 shlibpath_overrides_runpath=no
12757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12759 esac
12762 sysv4*MP*)
12763 if test -d /usr/nec; then
12764 version_type=linux # correct to gnu/linux during the next big refactor
12765 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12766 soname_spec='$libname$shared_ext.$major'
12767 shlibpath_var=LD_LIBRARY_PATH
12771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12772 version_type=sco
12773 need_lib_prefix=no
12774 need_version=no
12775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12776 soname_spec='$libname$release$shared_ext$major'
12777 shlibpath_var=LD_LIBRARY_PATH
12778 shlibpath_overrides_runpath=yes
12779 hardcode_into_libs=yes
12780 if test yes = "$with_gnu_ld"; then
12781 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12782 else
12783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12784 case $host_os in
12785 sco3.2v5*)
12786 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12788 esac
12790 sys_lib_dlsearch_path_spec='/usr/lib'
12793 tpf*)
12794 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12795 version_type=linux # correct to gnu/linux during the next big refactor
12796 need_lib_prefix=no
12797 need_version=no
12798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 shlibpath_overrides_runpath=no
12801 hardcode_into_libs=yes
12804 uts4*)
12805 version_type=linux # correct to gnu/linux during the next big refactor
12806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12807 soname_spec='$libname$release$shared_ext$major'
12808 shlibpath_var=LD_LIBRARY_PATH
12812 dynamic_linker=no
12814 esac
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12816 $as_echo "$dynamic_linker" >&6; }
12817 test no = "$dynamic_linker" && can_build_shared=no
12819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12820 if test yes = "$GCC"; then
12821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12824 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12825 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12828 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12829 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12832 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12833 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12835 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12836 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12838 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12839 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12938 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12939 hardcode_action=
12940 if test -n "$hardcode_libdir_flag_spec" ||
12941 test -n "$runpath_var" ||
12942 test yes = "$hardcode_automatic"; then
12944 # We can hardcode non-existent directories.
12945 if test no != "$hardcode_direct" &&
12946 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12947 # have to relink, otherwise we might link with an installed library
12948 # when we should be linking with a yet-to-be-installed one
12949 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12950 test no != "$hardcode_minus_L"; then
12951 # Linking always hardcodes the temporary library directory.
12952 hardcode_action=relink
12953 else
12954 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12955 hardcode_action=immediate
12957 else
12958 # We cannot hardcode anything, or else we can only hardcode existing
12959 # directories.
12960 hardcode_action=unsupported
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12963 $as_echo "$hardcode_action" >&6; }
12965 if test relink = "$hardcode_action" ||
12966 test yes = "$inherit_rpath"; then
12967 # Fast installation is not supported
12968 enable_fast_install=no
12969 elif test yes = "$shlibpath_overrides_runpath" ||
12970 test no = "$enable_shared"; then
12971 # Fast installation is not necessary
12972 enable_fast_install=needless
12980 if test yes != "$enable_dlopen"; then
12981 enable_dlopen=unknown
12982 enable_dlopen_self=unknown
12983 enable_dlopen_self_static=unknown
12984 else
12985 lt_cv_dlopen=no
12986 lt_cv_dlopen_libs=
12988 case $host_os in
12989 beos*)
12990 lt_cv_dlopen=load_add_on
12991 lt_cv_dlopen_libs=
12992 lt_cv_dlopen_self=yes
12995 mingw* | pw32* | cegcc*)
12996 lt_cv_dlopen=LoadLibrary
12997 lt_cv_dlopen_libs=
13000 cygwin*)
13001 lt_cv_dlopen=dlopen
13002 lt_cv_dlopen_libs=
13005 darwin*)
13006 # if libdl is installed we need to link against it
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13008 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13009 if ${ac_cv_lib_dl_dlopen+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 ac_check_lib_save_LIBS=$LIBS
13013 LIBS="-ldl $LIBS"
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13017 /* Override any GCC internal prototype to avoid an error.
13018 Use char because int might match the return type of a GCC
13019 builtin and then its argument prototype would still apply. */
13020 #ifdef __cplusplus
13021 extern "C"
13022 #endif
13023 char dlopen ();
13025 main ()
13027 return dlopen ();
13029 return 0;
13031 _ACEOF
13032 if ac_fn_c_try_link "$LINENO"; then :
13033 ac_cv_lib_dl_dlopen=yes
13034 else
13035 ac_cv_lib_dl_dlopen=no
13037 rm -f core conftest.err conftest.$ac_objext \
13038 conftest$ac_exeext conftest.$ac_ext
13039 LIBS=$ac_check_lib_save_LIBS
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13042 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13043 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13044 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13045 else
13047 lt_cv_dlopen=dyld
13048 lt_cv_dlopen_libs=
13049 lt_cv_dlopen_self=yes
13055 tpf*)
13056 # Don't try to run any link tests for TPF. We know it's impossible
13057 # because TPF is a cross-compiler, and we know how we open DSOs.
13058 lt_cv_dlopen=dlopen
13059 lt_cv_dlopen_libs=
13060 lt_cv_dlopen_self=no
13064 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13065 if test "x$ac_cv_func_shl_load" = xyes; then :
13066 lt_cv_dlopen=shl_load
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13069 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13070 if ${ac_cv_lib_dld_shl_load+:} false; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 ac_check_lib_save_LIBS=$LIBS
13074 LIBS="-ldld $LIBS"
13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13078 /* Override any GCC internal prototype to avoid an error.
13079 Use char because int might match the return type of a GCC
13080 builtin and then its argument prototype would still apply. */
13081 #ifdef __cplusplus
13082 extern "C"
13083 #endif
13084 char shl_load ();
13086 main ()
13088 return shl_load ();
13090 return 0;
13092 _ACEOF
13093 if ac_fn_c_try_link "$LINENO"; then :
13094 ac_cv_lib_dld_shl_load=yes
13095 else
13096 ac_cv_lib_dld_shl_load=no
13098 rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100 LIBS=$ac_check_lib_save_LIBS
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13103 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13104 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13105 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13106 else
13107 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13108 if test "x$ac_cv_func_dlopen" = xyes; then :
13109 lt_cv_dlopen=dlopen
13110 else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13112 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13113 if ${ac_cv_lib_dl_dlopen+:} false; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 ac_check_lib_save_LIBS=$LIBS
13117 LIBS="-ldl $LIBS"
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13121 /* Override any GCC internal prototype to avoid an error.
13122 Use char because int might match the return type of a GCC
13123 builtin and then its argument prototype would still apply. */
13124 #ifdef __cplusplus
13125 extern "C"
13126 #endif
13127 char dlopen ();
13129 main ()
13131 return dlopen ();
13133 return 0;
13135 _ACEOF
13136 if ac_fn_c_try_link "$LINENO"; then :
13137 ac_cv_lib_dl_dlopen=yes
13138 else
13139 ac_cv_lib_dl_dlopen=no
13141 rm -f core conftest.err conftest.$ac_objext \
13142 conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13146 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13147 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13148 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13151 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13152 if ${ac_cv_lib_svld_dlopen+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 ac_check_lib_save_LIBS=$LIBS
13156 LIBS="-lsvld $LIBS"
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 char dlopen ();
13168 main ()
13170 return dlopen ();
13172 return 0;
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 ac_cv_lib_svld_dlopen=yes
13177 else
13178 ac_cv_lib_svld_dlopen=no
13180 rm -f core conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13182 LIBS=$ac_check_lib_save_LIBS
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13185 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13186 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13187 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13190 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13191 if ${ac_cv_lib_dld_dld_link+:} false; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 ac_check_lib_save_LIBS=$LIBS
13195 LIBS="-ldld $LIBS"
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13199 /* Override any GCC internal prototype to avoid an error.
13200 Use char because int might match the return type of a GCC
13201 builtin and then its argument prototype would still apply. */
13202 #ifdef __cplusplus
13203 extern "C"
13204 #endif
13205 char dld_link ();
13207 main ()
13209 return dld_link ();
13211 return 0;
13213 _ACEOF
13214 if ac_fn_c_try_link "$LINENO"; then :
13215 ac_cv_lib_dld_dld_link=yes
13216 else
13217 ac_cv_lib_dld_dld_link=no
13219 rm -f core conftest.err conftest.$ac_objext \
13220 conftest$ac_exeext conftest.$ac_ext
13221 LIBS=$ac_check_lib_save_LIBS
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13224 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13225 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13226 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13245 esac
13247 if test no = "$lt_cv_dlopen"; then
13248 enable_dlopen=no
13249 else
13250 enable_dlopen=yes
13253 case $lt_cv_dlopen in
13254 dlopen)
13255 save_CPPFLAGS=$CPPFLAGS
13256 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13258 save_LDFLAGS=$LDFLAGS
13259 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13261 save_LIBS=$LIBS
13262 LIBS="$lt_cv_dlopen_libs $LIBS"
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13265 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13266 if ${lt_cv_dlopen_self+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 if test yes = "$cross_compiling"; then :
13270 lt_cv_dlopen_self=cross
13271 else
13272 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13273 lt_status=$lt_dlunknown
13274 cat > conftest.$ac_ext <<_LT_EOF
13275 #line $LINENO "configure"
13276 #include "confdefs.h"
13278 #if HAVE_DLFCN_H
13279 #include <dlfcn.h>
13280 #endif
13282 #include <stdio.h>
13284 #ifdef RTLD_GLOBAL
13285 # define LT_DLGLOBAL RTLD_GLOBAL
13286 #else
13287 # ifdef DL_GLOBAL
13288 # define LT_DLGLOBAL DL_GLOBAL
13289 # else
13290 # define LT_DLGLOBAL 0
13291 # endif
13292 #endif
13294 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13295 find out it does not work in some platform. */
13296 #ifndef LT_DLLAZY_OR_NOW
13297 # ifdef RTLD_LAZY
13298 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13299 # else
13300 # ifdef DL_LAZY
13301 # define LT_DLLAZY_OR_NOW DL_LAZY
13302 # else
13303 # ifdef RTLD_NOW
13304 # define LT_DLLAZY_OR_NOW RTLD_NOW
13305 # else
13306 # ifdef DL_NOW
13307 # define LT_DLLAZY_OR_NOW DL_NOW
13308 # else
13309 # define LT_DLLAZY_OR_NOW 0
13310 # endif
13311 # endif
13312 # endif
13313 # endif
13314 #endif
13316 /* When -fvisibility=hidden is used, assume the code has been annotated
13317 correspondingly for the symbols needed. */
13318 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13319 int fnord () __attribute__((visibility("default")));
13320 #endif
13322 int fnord () { return 42; }
13323 int main ()
13325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13326 int status = $lt_dlunknown;
13328 if (self)
13330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13331 else
13333 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13334 else puts (dlerror ());
13336 /* dlclose (self); */
13338 else
13339 puts (dlerror ());
13341 return status;
13343 _LT_EOF
13344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13345 (eval $ac_link) 2>&5
13346 ac_status=$?
13347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13348 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13349 (./conftest; exit; ) >&5 2>/dev/null
13350 lt_status=$?
13351 case x$lt_status in
13352 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13353 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13354 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13355 esac
13356 else :
13357 # compilation failed
13358 lt_cv_dlopen_self=no
13361 rm -fr conftest*
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13366 $as_echo "$lt_cv_dlopen_self" >&6; }
13368 if test yes = "$lt_cv_dlopen_self"; then
13369 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13371 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13372 if ${lt_cv_dlopen_self_static+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 if test yes = "$cross_compiling"; then :
13376 lt_cv_dlopen_self_static=cross
13377 else
13378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13379 lt_status=$lt_dlunknown
13380 cat > conftest.$ac_ext <<_LT_EOF
13381 #line $LINENO "configure"
13382 #include "confdefs.h"
13384 #if HAVE_DLFCN_H
13385 #include <dlfcn.h>
13386 #endif
13388 #include <stdio.h>
13390 #ifdef RTLD_GLOBAL
13391 # define LT_DLGLOBAL RTLD_GLOBAL
13392 #else
13393 # ifdef DL_GLOBAL
13394 # define LT_DLGLOBAL DL_GLOBAL
13395 # else
13396 # define LT_DLGLOBAL 0
13397 # endif
13398 #endif
13400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13401 find out it does not work in some platform. */
13402 #ifndef LT_DLLAZY_OR_NOW
13403 # ifdef RTLD_LAZY
13404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13405 # else
13406 # ifdef DL_LAZY
13407 # define LT_DLLAZY_OR_NOW DL_LAZY
13408 # else
13409 # ifdef RTLD_NOW
13410 # define LT_DLLAZY_OR_NOW RTLD_NOW
13411 # else
13412 # ifdef DL_NOW
13413 # define LT_DLLAZY_OR_NOW DL_NOW
13414 # else
13415 # define LT_DLLAZY_OR_NOW 0
13416 # endif
13417 # endif
13418 # endif
13419 # endif
13420 #endif
13422 /* When -fvisibility=hidden is used, assume the code has been annotated
13423 correspondingly for the symbols needed. */
13424 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13425 int fnord () __attribute__((visibility("default")));
13426 #endif
13428 int fnord () { return 42; }
13429 int main ()
13431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13432 int status = $lt_dlunknown;
13434 if (self)
13436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13437 else
13439 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13440 else puts (dlerror ());
13442 /* dlclose (self); */
13444 else
13445 puts (dlerror ());
13447 return status;
13449 _LT_EOF
13450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13451 (eval $ac_link) 2>&5
13452 ac_status=$?
13453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13454 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13455 (./conftest; exit; ) >&5 2>/dev/null
13456 lt_status=$?
13457 case x$lt_status in
13458 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13459 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13460 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13461 esac
13462 else :
13463 # compilation failed
13464 lt_cv_dlopen_self_static=no
13467 rm -fr conftest*
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13472 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13475 CPPFLAGS=$save_CPPFLAGS
13476 LDFLAGS=$save_LDFLAGS
13477 LIBS=$save_LIBS
13479 esac
13481 case $lt_cv_dlopen_self in
13482 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13483 *) enable_dlopen_self=unknown ;;
13484 esac
13486 case $lt_cv_dlopen_self_static in
13487 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13488 *) enable_dlopen_self_static=unknown ;;
13489 esac
13508 striplib=
13509 old_striplib=
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13511 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13512 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13513 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13514 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13516 $as_echo "yes" >&6; }
13517 else
13518 # FIXME - insert some real tests, host_os isn't really good enough
13519 case $host_os in
13520 darwin*)
13521 if test -n "$STRIP"; then
13522 striplib="$STRIP -x"
13523 old_striplib="$STRIP -S"
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13525 $as_echo "yes" >&6; }
13526 else
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13535 esac
13549 # Report what library types will actually be built
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13551 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13553 $as_echo "$can_build_shared" >&6; }
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13556 $as_echo_n "checking whether to build shared libraries... " >&6; }
13557 test no = "$can_build_shared" && enable_shared=no
13559 # On AIX, shared libraries and static libraries use the same namespace, and
13560 # are all built from PIC.
13561 case $host_os in
13562 aix3*)
13563 test yes = "$enable_shared" && enable_static=no
13564 if test -n "$RANLIB"; then
13565 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13566 postinstall_cmds='$RANLIB $lib'
13570 aix[4-9]*)
13571 if test ia64 != "$host_cpu"; then
13572 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13573 yes,aix,yes) ;; # shared object as lib.so file only
13574 yes,svr4,*) ;; # shared object as lib.so archive member only
13575 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13576 esac
13579 esac
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13581 $as_echo "$enable_shared" >&6; }
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13584 $as_echo_n "checking whether to build static libraries... " >&6; }
13585 # Make sure either enable_shared or enable_static is yes.
13586 test yes = "$enable_shared" || enable_static=yes
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13588 $as_echo "$enable_static" >&6; }
13594 ac_ext=c
13595 ac_cpp='$CPP $CPPFLAGS'
13596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13600 CC=$lt_save_CC
13616 ac_config_commands="$ac_config_commands libtool"
13621 # Only expand once:
13625 # The cast to long int works around a bug in the HP C Compiler
13626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13628 # This bug is HP SR number 8606223364.
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13630 $as_echo_n "checking size of void *... " >&6; }
13631 if ${ac_cv_sizeof_void_p+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13636 else
13637 if test "$ac_cv_type_void_p" = yes; then
13638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13640 as_fn_error 77 "cannot compute sizeof (void *)
13641 See \`config.log' for more details" "$LINENO" 5; }
13642 else
13643 ac_cv_sizeof_void_p=0
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13649 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13653 cat >>confdefs.h <<_ACEOF
13654 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13655 _ACEOF
13658 case $host:$ac_cv_sizeof_void_p in #(
13659 *-*-mingw*:4) :
13660 kpse_dll_name=texluajit ;; #(
13661 *-*-mingw*:8) :
13662 kpse_dll_name=texluajit ;; #(
13663 *-*-cygwin:4) :
13664 kpse_dll_name= ;; #(
13665 *-*-cygwin:8) :
13666 kpse_dll_name= ;; #(
13667 *) :
13668 kpse_dll_name= ;;
13669 esac
13675 # The cast to long int works around a bug in the HP C Compiler
13676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13678 # This bug is HP SR number 8606223364.
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13680 $as_echo_n "checking size of void *... " >&6; }
13681 if ${ac_cv_sizeof_void_p+:} false; then :
13682 $as_echo_n "(cached) " >&6
13683 else
13684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13686 else
13687 if test "$ac_cv_type_void_p" = yes; then
13688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13690 as_fn_error 77 "cannot compute sizeof (void *)
13691 See \`config.log' for more details" "$LINENO" 5; }
13692 else
13693 ac_cv_sizeof_void_p=0
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13699 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13703 cat >>confdefs.h <<_ACEOF
13704 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13705 _ACEOF
13708 ac_configure_args="$ac_configure_args HOST_PTR_SIZE='$ac_cv_sizeof_void_p'"
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
13711 $as_echo_n "checking for library containing sqrt... " >&6; }
13712 if ${ac_cv_search_sqrt+:} false; then :
13713 $as_echo_n "(cached) " >&6
13714 else
13715 ac_func_search_save_LIBS=$LIBS
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13719 /* Override any GCC internal prototype to avoid an error.
13720 Use char because int might match the return type of a GCC
13721 builtin and then its argument prototype would still apply. */
13722 #ifdef __cplusplus
13723 extern "C"
13724 #endif
13725 char sqrt ();
13727 main ()
13729 return sqrt ();
13731 return 0;
13733 _ACEOF
13734 for ac_lib in '' m; do
13735 if test -z "$ac_lib"; then
13736 ac_res="none required"
13737 else
13738 ac_res=-l$ac_lib
13739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13741 if ac_fn_c_try_link "$LINENO"; then :
13742 ac_cv_search_sqrt=$ac_res
13744 rm -f core conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext
13746 if ${ac_cv_search_sqrt+:} false; then :
13747 break
13749 done
13750 if ${ac_cv_search_sqrt+:} false; then :
13752 else
13753 ac_cv_search_sqrt=no
13755 rm conftest.$ac_ext
13756 LIBS=$ac_func_search_save_LIBS
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
13759 $as_echo "$ac_cv_search_sqrt" >&6; }
13760 ac_res=$ac_cv_search_sqrt
13761 if test "$ac_res" != no; then :
13762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13767 $as_echo_n "checking for library containing dlopen... " >&6; }
13768 if ${ac_cv_search_dlopen+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 ac_func_search_save_LIBS=$LIBS
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13778 #ifdef __cplusplus
13779 extern "C"
13780 #endif
13781 char dlopen ();
13783 main ()
13785 return dlopen ();
13787 return 0;
13789 _ACEOF
13790 for ac_lib in '' dl; do
13791 if test -z "$ac_lib"; then
13792 ac_res="none required"
13793 else
13794 ac_res=-l$ac_lib
13795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13797 if ac_fn_c_try_link "$LINENO"; then :
13798 ac_cv_search_dlopen=$ac_res
13800 rm -f core conftest.err conftest.$ac_objext \
13801 conftest$ac_exeext
13802 if ${ac_cv_search_dlopen+:} false; then :
13803 break
13805 done
13806 if ${ac_cv_search_dlopen+:} false; then :
13808 else
13809 ac_cv_search_dlopen=no
13811 rm conftest.$ac_ext
13812 LIBS=$ac_func_search_save_LIBS
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13815 $as_echo "$ac_cv_search_dlopen" >&6; }
13816 ac_res=$ac_cv_search_dlopen
13817 if test "$ac_res" != no; then :
13818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13823 LUAJIT_DEFINES='-DLUAJIT_ENABLE_LUA52COMPAT -DLUAI_HASHLIMIT=6'
13825 case $host_os:$host_cpu in #(
13826 *darwin*:x86_64) :
13827 LUAJIT_LDEXTRA='-pagezero_size 10000 -image_base 100000000' ;; #(
13828 *) :
13830 esac
13833 # Check whether --enable-largefile was given.
13834 if test "${enable_largefile+set}" = set; then :
13835 enableval=$enable_largefile;
13838 if test "$enable_largefile" != no; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13841 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13842 if ${ac_cv_sys_largefile_CC+:} false; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 ac_cv_sys_largefile_CC=no
13846 if test "$GCC" != yes; then
13847 ac_save_CC=$CC
13848 while :; do
13849 # IRIX 6.2 and later do not support large files by default,
13850 # so use the C compiler's -n32 option if that helps.
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 #include <sys/types.h>
13854 /* Check that off_t can represent 2**63 - 1 correctly.
13855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13856 since some C++ compilers masquerading as C compilers
13857 incorrectly reject 9223372036854775807. */
13858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13860 && LARGE_OFF_T % 2147483647 == 1)
13861 ? 1 : -1];
13863 main ()
13867 return 0;
13869 _ACEOF
13870 if ac_fn_c_try_compile "$LINENO"; then :
13871 break
13873 rm -f core conftest.err conftest.$ac_objext
13874 CC="$CC -n32"
13875 if ac_fn_c_try_compile "$LINENO"; then :
13876 ac_cv_sys_largefile_CC=' -n32'; break
13878 rm -f core conftest.err conftest.$ac_objext
13879 break
13880 done
13881 CC=$ac_save_CC
13882 rm -f conftest.$ac_ext
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13886 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13887 if test "$ac_cv_sys_largefile_CC" != no; then
13888 CC=$CC$ac_cv_sys_largefile_CC
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13892 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13893 if ${ac_cv_sys_file_offset_bits+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 while :; do
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 #include <sys/types.h>
13900 /* Check that off_t can represent 2**63 - 1 correctly.
13901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13902 since some C++ compilers masquerading as C compilers
13903 incorrectly reject 9223372036854775807. */
13904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13906 && LARGE_OFF_T % 2147483647 == 1)
13907 ? 1 : -1];
13909 main ()
13913 return 0;
13915 _ACEOF
13916 if ac_fn_c_try_compile "$LINENO"; then :
13917 ac_cv_sys_file_offset_bits=no; break
13919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13922 #define _FILE_OFFSET_BITS 64
13923 #include <sys/types.h>
13924 /* Check that off_t can represent 2**63 - 1 correctly.
13925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13926 since some C++ compilers masquerading as C compilers
13927 incorrectly reject 9223372036854775807. */
13928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13930 && LARGE_OFF_T % 2147483647 == 1)
13931 ? 1 : -1];
13933 main ()
13937 return 0;
13939 _ACEOF
13940 if ac_fn_c_try_compile "$LINENO"; then :
13941 ac_cv_sys_file_offset_bits=64; break
13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 ac_cv_sys_file_offset_bits=unknown
13945 break
13946 done
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13949 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13950 case $ac_cv_sys_file_offset_bits in #(
13951 no | unknown) ;;
13953 cat >>confdefs.h <<_ACEOF
13954 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13955 _ACEOF
13957 esac
13958 rm -rf conftest*
13959 if test $ac_cv_sys_file_offset_bits = unknown; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13961 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13962 if ${ac_cv_sys_large_files+:} false; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 while :; do
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968 #include <sys/types.h>
13969 /* Check that off_t can represent 2**63 - 1 correctly.
13970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13971 since some C++ compilers masquerading as C compilers
13972 incorrectly reject 9223372036854775807. */
13973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13975 && LARGE_OFF_T % 2147483647 == 1)
13976 ? 1 : -1];
13978 main ()
13982 return 0;
13984 _ACEOF
13985 if ac_fn_c_try_compile "$LINENO"; then :
13986 ac_cv_sys_large_files=no; break
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 #define _LARGE_FILES 1
13992 #include <sys/types.h>
13993 /* Check that off_t can represent 2**63 - 1 correctly.
13994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13995 since some C++ compilers masquerading as C compilers
13996 incorrectly reject 9223372036854775807. */
13997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13999 && LARGE_OFF_T % 2147483647 == 1)
14000 ? 1 : -1];
14002 main ()
14006 return 0;
14008 _ACEOF
14009 if ac_fn_c_try_compile "$LINENO"; then :
14010 ac_cv_sys_large_files=1; break
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013 ac_cv_sys_large_files=unknown
14014 break
14015 done
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14018 $as_echo "$ac_cv_sys_large_files" >&6; }
14019 case $ac_cv_sys_large_files in #(
14020 no | unknown) ;;
14022 cat >>confdefs.h <<_ACEOF
14023 #define _LARGE_FILES $ac_cv_sys_large_files
14024 _ACEOF
14026 esac
14027 rm -rf conftest*
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14034 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14035 if ${ac_cv_sys_largefile_source+:} false; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 while :; do
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041 #include <sys/types.h> /* for off_t */
14042 #include <stdio.h>
14044 main ()
14046 int (*fp) (FILE *, off_t, int) = fseeko;
14047 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14049 return 0;
14051 _ACEOF
14052 if ac_fn_c_try_link "$LINENO"; then :
14053 ac_cv_sys_largefile_source=no; break
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14059 #define _LARGEFILE_SOURCE 1
14060 #include <sys/types.h> /* for off_t */
14061 #include <stdio.h>
14063 main ()
14065 int (*fp) (FILE *, off_t, int) = fseeko;
14066 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14068 return 0;
14070 _ACEOF
14071 if ac_fn_c_try_link "$LINENO"; then :
14072 ac_cv_sys_largefile_source=1; break
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076 ac_cv_sys_largefile_source=unknown
14077 break
14078 done
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14081 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14082 case $ac_cv_sys_largefile_source in #(
14083 no | unknown) ;;
14085 cat >>confdefs.h <<_ACEOF
14086 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14087 _ACEOF
14089 esac
14090 rm -rf conftest*
14092 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14093 # in glibc 2.1.3, but that breaks too many other things.
14094 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14095 if test $ac_cv_sys_largefile_source != unknown; then
14097 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14101 if test "x$enable_largefile" != xno; then
14102 case $ac_cv_sys_file_offset_bits in #(
14103 no) :
14104 ;; #(
14105 unknown) :
14106 case $ac_cv_sys_large_files in #(
14107 no | unknown) :
14108 ;; #(
14109 *) :
14110 LUAJIT_DEFINES="$LUAJIT_DEFINES -D_LARGE_FILES" ;;
14111 esac ;; #(
14112 *) :
14113 LUAJIT_DEFINES="$LUAJIT_DEFINES -D_FILE_OFFSET_BITS=64" ;;
14114 esac
14116 case $ac_cv_sys_largefile_source in #(
14117 no | unknown) :
14118 ;; #(
14119 *) :
14120 LUAJIT_DEFINES="$LUAJIT_DEFINES -D_LARGEFILE_SOURCE" ;;
14121 esac
14124 case $host_os in #(
14125 cygwin* | mingw* | msys*) :
14126 LJHOST='Windows' ;; #(
14127 darwin*) :
14128 LJHOST='Darwin' ;; #(
14129 solaris* | sunos*) :
14130 LJHOST='SunOS' ;; #(
14131 linux*) :
14132 LJHOST='Linux' ;; #(
14133 *) :
14134 LJHOST='Other' ;;
14135 esac
14136 lj_save_CPPFLAGS=$CPPFLAGS
14137 CPPFLAGS="$CPPFLAGS -I$srcdir/LuaJIT-src/src $LUAJIT_DEFINES -dM"
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14140 #include <lj_arch.h>
14141 _ACEOF
14142 if ac_fn_c_try_cpp "$LINENO"; then :
14143 lj_cpp=ok; rm -f dynasm_flags native_flags
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5
14145 $as_echo_n "checking for architecture... " >&6; }
14146 cp conftest.i system_flags
14147 LUAJIT_CFLAGS='-fomit-frame-pointer'
14148 if grep 'LJ_TARGET_X64 ' conftest.i >/dev/null 2>&1; then :
14149 LJARCH=x64
14150 elif grep 'LJ_TARGET_X86 ' conftest.i >/dev/null 2>&1; then :
14151 LJARCH=x86
14152 LUAJIT_CFLAGS="$LUAJIT_CFLAGS -march=i686 -msse -msse2 -mfpmath=sse"
14153 elif grep 'LJ_TARGET_ARM ' conftest.i >/dev/null 2>&1; then :
14154 LJARCH=arm
14155 elif grep 'LJ_TARGET_ARM64 ' conftest.i >/dev/null 2>&1; then :
14156 LJARCH=arm64
14157 if test "x$LJHOST" = xiOS; then :
14158 LUAJIT_CFLAGS='-fno-omit-frame-pointer'
14160 elif grep 'LJ_TARGET_PPC ' conftest.i >/dev/null 2>&1; then :
14161 LJARCH=ppc
14162 if grep 'LJ_LE 1' conftest.i >/dev/null 2>&1; then :
14163 echo '-DLJ_ARCH_ENDIAN=LUAJIT_LE' >>native_flags
14164 else
14165 echo '-DLJ_ARCH_ENDIAN=LUAJIT_BE' >>native_flags
14167 elif grep 'LJ_TARGET_MIPS ' conftest.i >/dev/null 2>&1; then :
14168 LJARCH=mips
14169 if grep 'MIPSEL ' conftest.i >/dev/null 2>&1; then :
14170 echo '-D__MIPSEL__=1' >>native_flags
14172 else
14173 as_fn_error $? "Sorry, unsupported architecture" "$LINENO" 5
14175 if grep 'LJ_TARGET_PS3 1'conftest.i >/dev/null 2>&1; then :
14176 LJHOST='PS3'
14177 echo '-D__CELLOS_LV2__' >>native_flags
14178 LUAJIT_DEFINES="$LUAJIT_DEFINES -DLUAJIT_USE_SYSMALLOC"
14180 if grep 'LJ_NO_UNWIND 1' conftest.i >/dev/null 2>&1; then :
14181 echo '-D NO_UNWIND' >>dynasm_flags
14182 echo '-DLUAJIT_NO_UNWIND' >>native_flags
14184 echo "-DLUAJIT_TARGET=LUAJIT_ARCH_$LJARCH" >>native_flags
14185 if grep 'LJ_ARCH_BITS 64' conftest.i >/dev/null 2>&1; then :
14186 echo '-D P64' >>dynasm_flags
14187 if test "x$LJHOST" = xLinux; then :
14188 LUAJIT_DEFINES="$LUAJIT_DEFINES -DMAP_32BIT=0x40"
14191 if grep 'LJ_HASJIT 1' conftest.i >/dev/null 2>&1; then :
14192 echo '-D JIT' >>dynasm_flags
14194 if grep 'LJ_HASFFI 1' conftest.i >/dev/null 2>&1; then :
14195 echo '-D FFI' >>dynasm_flags
14197 if grep 'LJ_DUALNUM 1' conftest.i >/dev/null 2>&1; then :
14198 echo '-D DUALNUM' >>dynasm_flags
14200 if grep 'LJ_ARCH_HASFPU 1' conftest.i >/dev/null 2>&1; then :
14201 echo '-D FPU' >>dynasm_flags
14202 echo '-DLJ_ARCH_HASFPU=1' >>native_flags
14203 else
14204 echo '-DLJ_ARCH_HASFPU=0' >>native_flags
14206 if grep 'LJ_ABI_SOFTFP 1' conftest.i >/dev/null 2>&1; then :
14207 echo '-DDLJ_ABI_SOFTFP=1' >>native_flags
14208 else
14209 echo '-D HFABI' >>dynasm_flags
14210 echo '-DLJ_ABI_SOFTFP=0' >>native_flags
14212 echo '-D VER='`grep 'LJ_ARCH_VERSION ' conftest.i 2>&1 | \
14213 sed 's/^.*LJ_ARCH_VERSION //'` >>dynasm_flags
14214 if test "x$LJHOST" = xWindows; then :
14215 echo '-D WIN' >>dynasm_flags
14217 DASM_ARCH=$LJARCH
14218 case $LJARCH in #(
14219 x64) :
14220 if grep 'LJ_FR2 1' conftest.i >/dev/null 2>&1; then :
14222 else
14223 DASM_ARCH=x86
14224 fi ;; #(
14225 arm) :
14226 if test "x$LJHOST" = xiOS; then :
14227 echo '-D IOS' >>dynasm_flags
14228 fi ;; #(
14229 ppc) :
14230 if grep 'LJ_ARCH_SQRT 1' conftest.i >/dev/null 2>&1; then :
14231 echo '-D SQRT' >>dynasm_flags
14233 if grep 'LJ_ARCH_ROUND 1' conftest.i >/dev/null 2>&1; then :
14234 echo '-D ROUND' >>dynasm_flags
14236 if grep 'LJ_ARCH_PPC32ON64 1' conftest.i >/dev/null 2>&1; then :
14237 echo '-D GPR64' >>dynasm_flags
14239 if grep 'LJ_ARCH_PPC64 ' conftest.i >/dev/null 2>&1; then :
14240 DASM_ARCH=ppc64
14242 if test "x$LJHOST" = xPS3; then :
14243 echo '-D PPE -D TOC' >>dynasm_flags
14244 fi ;; #(
14245 *) :
14247 esac
14248 case $LJHOST in #(
14249 Windows) :
14250 echo '-DLUAJIT_OS=LUAJIT_OS_WINDOWS' >>native_flags ;; #(
14251 Darwin | iOS) :
14252 echo '-DLUAJIT_OS=LUAJIT_OS_OSX' >>native_flags ;; #(
14253 Linux) :
14254 echo '-DLUAJIT_OS=LUAJIT_OS_LINUX' >>native_flags ;; #(
14255 *) :
14256 echo '-DLUAJIT_OS=LUAJIT_OS_OTHER' >>native_flags ;;
14257 esac
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LJHOST $LJARCH $DASM_ARCH" >&5
14259 $as_echo "$LJHOST $LJARCH $DASM_ARCH" >&6; }
14262 rm -f conftest.err conftest.i conftest.$ac_ext
14263 CPPFLAGS=$lj_save_CPPFLAGS
14267 case $LJHOST in #(
14268 Windows) :
14269 LJVM_MODE=peobj
14270 LUAJIT_CFLAGS="$LUAJIT_CFLAGS -malign-double" ;; #(
14271 Darwin | iOS) :
14272 LJVM_MODE=machasm ;; #(
14273 *) :
14274 LJVM_MODE=elfasm ;;
14275 esac
14276 lj_save_CFLAGS=$CFLAGS
14277 CFLAGS="$CFLAGS -fno-stack-protector"
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14282 main ()
14286 return 0;
14288 _ACEOF
14289 if ac_fn_c_try_compile "$LINENO"; then :
14290 LUAJIT_CFLAGS="$LUAJIT_CFLAGS -fno-stack-protector"
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293 CFLAGS=$lj_save_CFLAGS
14294 if test "x$LJVM_MODE" = xpeobj; then
14295 PEOBJ_TRUE=
14296 PEOBJ_FALSE='#'
14297 else
14298 PEOBJ_TRUE='#'
14299 PEOBJ_FALSE=
14307 case $host_os:$host_cpu in #(
14308 *darwin*:x86_64) :
14309 LIBLUAJIT_LDEXTRA='-image_base 7fff04c4a000' ;; #(
14310 *) :
14312 esac
14315 if test "x$enable_build" != xno; then
14316 build_TRUE=
14317 build_FALSE='#'
14318 else
14319 build_TRUE='#'
14320 build_FALSE=
14324 if test "x$enable_build" != xno || test -f config.force; then
14326 if test "x$lj_cpp" != xok; then :
14327 as_fn_error $? "Sorry, can not preprocess <lj_arch.h>" "$LINENO" 5
14330 echo timestamp >config.force
14333 LUAJIT_TREE=LuaJIT-src
14336 ac_config_headers="$ac_config_headers config.h"
14339 ac_config_files="$ac_config_files Makefile include/Makefile texluajit.pc"
14345 subdirs="$subdirs native"
14350 cat >confcache <<\_ACEOF
14351 # This file is a shell script that caches the results of configure
14352 # tests run on this system so they can be shared between configure
14353 # scripts and configure runs, see configure's option --config-cache.
14354 # It is not useful on other systems. If it contains results you don't
14355 # want to keep, you may remove or edit it.
14357 # config.status only pays attention to the cache file if you give it
14358 # the --recheck option to rerun configure.
14360 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14361 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14362 # following values.
14364 _ACEOF
14366 # The following way of writing the cache mishandles newlines in values,
14367 # but we know of no workaround that is simple, portable, and efficient.
14368 # So, we kill variables containing newlines.
14369 # Ultrix sh set writes to stderr and can't be redirected directly,
14370 # and sets the high bit in the cache file unless we assign to the vars.
14372 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14373 eval ac_val=\$$ac_var
14374 case $ac_val in #(
14375 *${as_nl}*)
14376 case $ac_var in #(
14377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14379 esac
14380 case $ac_var in #(
14381 _ | IFS | as_nl) ;; #(
14382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14383 *) { eval $ac_var=; unset $ac_var;} ;;
14384 esac ;;
14385 esac
14386 done
14388 (set) 2>&1 |
14389 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14390 *${as_nl}ac_space=\ *)
14391 # `set' does not quote correctly, so add quotes: double-quote
14392 # substitution turns \\\\ into \\, and sed turns \\ into \.
14393 sed -n \
14394 "s/'/'\\\\''/g;
14395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14396 ;; #(
14398 # `set' quotes correctly as required by POSIX, so do not add quotes.
14399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14401 esac |
14402 sort
14404 sed '
14405 /^ac_cv_env_/b end
14406 t clear
14407 :clear
14408 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14409 t end
14410 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14411 :end' >>confcache
14412 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14413 if test -w "$cache_file"; then
14414 if test "x$cache_file" != "x/dev/null"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14416 $as_echo "$as_me: updating cache $cache_file" >&6;}
14417 if test ! -f "$cache_file" || test -h "$cache_file"; then
14418 cat confcache >"$cache_file"
14419 else
14420 case $cache_file in #(
14421 */* | ?:*)
14422 mv -f confcache "$cache_file"$$ &&
14423 mv -f "$cache_file"$$ "$cache_file" ;; #(
14425 mv -f confcache "$cache_file" ;;
14426 esac
14429 else
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14431 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14434 rm -f confcache
14436 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14437 # Let make expand exec_prefix.
14438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14440 DEFS=-DHAVE_CONFIG_H
14442 ac_libobjs=
14443 ac_ltlibobjs=
14445 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14446 # 1. Remove the extension, and $U if already installed.
14447 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14448 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14449 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14450 # will be set to the directory where LIBOBJS objects are built.
14451 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14452 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14453 done
14454 LIBOBJS=$ac_libobjs
14456 LTLIBOBJS=$ac_ltlibobjs
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14460 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14461 if test -n "$am_sleep_pid"; then
14462 # Hide warnings about reused PIDs.
14463 wait $am_sleep_pid 2>/dev/null
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14466 $as_echo "done" >&6; }
14467 if test -n "$EXEEXT"; then
14468 am__EXEEXT_TRUE=
14469 am__EXEEXT_FALSE='#'
14470 else
14471 am__EXEEXT_TRUE='#'
14472 am__EXEEXT_FALSE=
14475 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14476 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14479 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14480 as_fn_error $? "conditional \"AMDEP\" was never defined.
14481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14483 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14484 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14487 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14488 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14491 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14492 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14495 if test -z "${PEOBJ_TRUE}" && test -z "${PEOBJ_FALSE}"; then
14496 as_fn_error $? "conditional \"PEOBJ\" was never defined.
14497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14499 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
14500 as_fn_error $? "conditional \"build\" was never defined.
14501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14504 : "${CONFIG_STATUS=./config.status}"
14505 ac_write_fail=0
14506 ac_clean_files_save=$ac_clean_files
14507 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14509 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14510 as_write_fail=0
14511 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14512 #! $SHELL
14513 # Generated by $as_me.
14514 # Run this file to recreate the current configuration.
14515 # Compiler output produced by configure, useful for debugging
14516 # configure, is in config.log if it exists.
14518 debug=false
14519 ac_cs_recheck=false
14520 ac_cs_silent=false
14522 SHELL=\${CONFIG_SHELL-$SHELL}
14523 export SHELL
14524 _ASEOF
14525 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14526 ## -------------------- ##
14527 ## M4sh Initialization. ##
14528 ## -------------------- ##
14530 # Be more Bourne compatible
14531 DUALCASE=1; export DUALCASE # for MKS sh
14532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14533 emulate sh
14534 NULLCMD=:
14535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14536 # is contrary to our usage. Disable this feature.
14537 alias -g '${1+"$@"}'='"$@"'
14538 setopt NO_GLOB_SUBST
14539 else
14540 case `(set -o) 2>/dev/null` in #(
14541 *posix*) :
14542 set -o posix ;; #(
14543 *) :
14545 esac
14549 as_nl='
14551 export as_nl
14552 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14553 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14556 # Prefer a ksh shell builtin over an external printf program on Solaris,
14557 # but without wasting forks for bash or zsh.
14558 if test -z "$BASH_VERSION$ZSH_VERSION" \
14559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14560 as_echo='print -r --'
14561 as_echo_n='print -rn --'
14562 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14563 as_echo='printf %s\n'
14564 as_echo_n='printf %s'
14565 else
14566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14567 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14568 as_echo_n='/usr/ucb/echo -n'
14569 else
14570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14571 as_echo_n_body='eval
14572 arg=$1;
14573 case $arg in #(
14574 *"$as_nl"*)
14575 expr "X$arg" : "X\\(.*\\)$as_nl";
14576 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14577 esac;
14578 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14580 export as_echo_n_body
14581 as_echo_n='sh -c $as_echo_n_body as_echo'
14583 export as_echo_body
14584 as_echo='sh -c $as_echo_body as_echo'
14587 # The user is always right.
14588 if test "${PATH_SEPARATOR+set}" != set; then
14589 PATH_SEPARATOR=:
14590 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14591 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14592 PATH_SEPARATOR=';'
14597 # IFS
14598 # We need space, tab and new line, in precisely that order. Quoting is
14599 # there to prevent editors from complaining about space-tab.
14600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14601 # splitting by setting IFS to empty value.)
14602 IFS=" "" $as_nl"
14604 # Find who we are. Look in the path if we contain no directory separator.
14605 as_myself=
14606 case $0 in #((
14607 *[\\/]* ) as_myself=$0 ;;
14608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14609 for as_dir in $PATH
14611 IFS=$as_save_IFS
14612 test -z "$as_dir" && as_dir=.
14613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14614 done
14615 IFS=$as_save_IFS
14618 esac
14619 # We did not find ourselves, most probably we were run as `sh COMMAND'
14620 # in which case we are not to be found in the path.
14621 if test "x$as_myself" = x; then
14622 as_myself=$0
14624 if test ! -f "$as_myself"; then
14625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14626 exit 1
14629 # Unset variables that we do not need and which cause bugs (e.g. in
14630 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14631 # suppresses any "Segmentation fault" message there. '((' could
14632 # trigger a bug in pdksh 5.2.14.
14633 for as_var in BASH_ENV ENV MAIL MAILPATH
14634 do eval test x\${$as_var+set} = xset \
14635 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14636 done
14637 PS1='$ '
14638 PS2='> '
14639 PS4='+ '
14641 # NLS nuisances.
14642 LC_ALL=C
14643 export LC_ALL
14644 LANGUAGE=C
14645 export LANGUAGE
14647 # CDPATH.
14648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14651 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14652 # ----------------------------------------
14653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14655 # script with STATUS, using 1 if that was 0.
14656 as_fn_error ()
14658 as_status=$1; test $as_status -eq 0 && as_status=1
14659 if test "$4"; then
14660 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14663 $as_echo "$as_me: error: $2" >&2
14664 as_fn_exit $as_status
14665 } # as_fn_error
14668 # as_fn_set_status STATUS
14669 # -----------------------
14670 # Set $? to STATUS, without forking.
14671 as_fn_set_status ()
14673 return $1
14674 } # as_fn_set_status
14676 # as_fn_exit STATUS
14677 # -----------------
14678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14679 as_fn_exit ()
14681 set +e
14682 as_fn_set_status $1
14683 exit $1
14684 } # as_fn_exit
14686 # as_fn_unset VAR
14687 # ---------------
14688 # Portably unset VAR.
14689 as_fn_unset ()
14691 { eval $1=; unset $1;}
14693 as_unset=as_fn_unset
14694 # as_fn_append VAR VALUE
14695 # ----------------------
14696 # Append the text in VALUE to the end of the definition contained in VAR. Take
14697 # advantage of any shell optimizations that allow amortized linear growth over
14698 # repeated appends, instead of the typical quadratic growth present in naive
14699 # implementations.
14700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14701 eval 'as_fn_append ()
14703 eval $1+=\$2
14705 else
14706 as_fn_append ()
14708 eval $1=\$$1\$2
14710 fi # as_fn_append
14712 # as_fn_arith ARG...
14713 # ------------------
14714 # Perform arithmetic evaluation on the ARGs, and store the result in the
14715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14716 # must be portable across $(()) and expr.
14717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14718 eval 'as_fn_arith ()
14720 as_val=$(( $* ))
14722 else
14723 as_fn_arith ()
14725 as_val=`expr "$@" || test $? -eq 1`
14727 fi # as_fn_arith
14730 if expr a : '\(a\)' >/dev/null 2>&1 &&
14731 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14732 as_expr=expr
14733 else
14734 as_expr=false
14737 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14738 as_basename=basename
14739 else
14740 as_basename=false
14743 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14744 as_dirname=dirname
14745 else
14746 as_dirname=false
14749 as_me=`$as_basename -- "$0" ||
14750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14751 X"$0" : 'X\(//\)$' \| \
14752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14753 $as_echo X/"$0" |
14754 sed '/^.*\/\([^/][^/]*\)\/*$/{
14755 s//\1/
14758 /^X\/\(\/\/\)$/{
14759 s//\1/
14762 /^X\/\(\/\).*/{
14763 s//\1/
14766 s/.*/./; q'`
14768 # Avoid depending upon Character Ranges.
14769 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14770 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14771 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14772 as_cr_digits='0123456789'
14773 as_cr_alnum=$as_cr_Letters$as_cr_digits
14775 ECHO_C= ECHO_N= ECHO_T=
14776 case `echo -n x` in #(((((
14777 -n*)
14778 case `echo 'xy\c'` in
14779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14780 xy) ECHO_C='\c';;
14781 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14782 ECHO_T=' ';;
14783 esac;;
14785 ECHO_N='-n';;
14786 esac
14788 rm -f conf$$ conf$$.exe conf$$.file
14789 if test -d conf$$.dir; then
14790 rm -f conf$$.dir/conf$$.file
14791 else
14792 rm -f conf$$.dir
14793 mkdir conf$$.dir 2>/dev/null
14795 if (echo >conf$$.file) 2>/dev/null; then
14796 if ln -s conf$$.file conf$$ 2>/dev/null; then
14797 as_ln_s='ln -s'
14798 # ... but there are two gotchas:
14799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14801 # In both cases, we have to default to `cp -pR'.
14802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14803 as_ln_s='cp -pR'
14804 elif ln conf$$.file conf$$ 2>/dev/null; then
14805 as_ln_s=ln
14806 else
14807 as_ln_s='cp -pR'
14809 else
14810 as_ln_s='cp -pR'
14812 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14813 rmdir conf$$.dir 2>/dev/null
14816 # as_fn_mkdir_p
14817 # -------------
14818 # Create "$as_dir" as a directory, including parents if necessary.
14819 as_fn_mkdir_p ()
14822 case $as_dir in #(
14823 -*) as_dir=./$as_dir;;
14824 esac
14825 test -d "$as_dir" || eval $as_mkdir_p || {
14826 as_dirs=
14827 while :; do
14828 case $as_dir in #(
14829 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14830 *) as_qdir=$as_dir;;
14831 esac
14832 as_dirs="'$as_qdir' $as_dirs"
14833 as_dir=`$as_dirname -- "$as_dir" ||
14834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14835 X"$as_dir" : 'X\(//\)[^/]' \| \
14836 X"$as_dir" : 'X\(//\)$' \| \
14837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14838 $as_echo X"$as_dir" |
14839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14840 s//\1/
14843 /^X\(\/\/\)[^/].*/{
14844 s//\1/
14847 /^X\(\/\/\)$/{
14848 s//\1/
14851 /^X\(\/\).*/{
14852 s//\1/
14855 s/.*/./; q'`
14856 test -d "$as_dir" && break
14857 done
14858 test -z "$as_dirs" || eval "mkdir $as_dirs"
14859 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14862 } # as_fn_mkdir_p
14863 if mkdir -p . 2>/dev/null; then
14864 as_mkdir_p='mkdir -p "$as_dir"'
14865 else
14866 test -d ./-p && rmdir ./-p
14867 as_mkdir_p=false
14871 # as_fn_executable_p FILE
14872 # -----------------------
14873 # Test if FILE is an executable regular file.
14874 as_fn_executable_p ()
14876 test -f "$1" && test -x "$1"
14877 } # as_fn_executable_p
14878 as_test_x='test -x'
14879 as_executable_p=as_fn_executable_p
14881 # Sed expression to map a string onto a valid CPP name.
14882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14884 # Sed expression to map a string onto a valid variable name.
14885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14888 exec 6>&1
14889 ## ----------------------------------- ##
14890 ## Main body of $CONFIG_STATUS script. ##
14891 ## ----------------------------------- ##
14892 _ASEOF
14893 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14896 # Save the log message, to keep $0 and so on meaningful, and to
14897 # report actual input values of CONFIG_FILES etc. instead of their
14898 # values after options handling.
14899 ac_log="
14900 This file was extended by luajit for TeX Live $as_me 2.1.0-beta1, which was
14901 generated by GNU Autoconf 2.69. Invocation command line was
14903 CONFIG_FILES = $CONFIG_FILES
14904 CONFIG_HEADERS = $CONFIG_HEADERS
14905 CONFIG_LINKS = $CONFIG_LINKS
14906 CONFIG_COMMANDS = $CONFIG_COMMANDS
14907 $ $0 $@
14909 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14912 _ACEOF
14914 case $ac_config_files in *"
14915 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14916 esac
14918 case $ac_config_headers in *"
14919 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14920 esac
14923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14924 # Files that config.status was made for.
14925 config_files="$ac_config_files"
14926 config_headers="$ac_config_headers"
14927 config_commands="$ac_config_commands"
14929 _ACEOF
14931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14932 ac_cs_usage="\
14933 \`$as_me' instantiates files and other configuration actions
14934 from templates according to the current configuration. Unless the files
14935 and actions are specified as TAGs, all are instantiated by default.
14937 Usage: $0 [OPTION]... [TAG]...
14939 -h, --help print this help, then exit
14940 -V, --version print version number and configuration settings, then exit
14941 --config print configuration, then exit
14942 -q, --quiet, --silent
14943 do not print progress messages
14944 -d, --debug don't remove temporary files
14945 --recheck update $as_me by reconfiguring in the same conditions
14946 --file=FILE[:TEMPLATE]
14947 instantiate the configuration file FILE
14948 --header=FILE[:TEMPLATE]
14949 instantiate the configuration header FILE
14951 Configuration files:
14952 $config_files
14954 Configuration headers:
14955 $config_headers
14957 Configuration commands:
14958 $config_commands
14960 Report bugs to <tex-k@tug.org>."
14962 _ACEOF
14963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14964 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14965 ac_cs_version="\\
14966 luajit for TeX Live config.status 2.1.0-beta1
14967 configured by $0, generated by GNU Autoconf 2.69,
14968 with options \\"\$ac_cs_config\\"
14970 Copyright (C) 2012 Free Software Foundation, Inc.
14971 This config.status script is free software; the Free Software Foundation
14972 gives unlimited permission to copy, distribute and modify it."
14974 ac_pwd='$ac_pwd'
14975 srcdir='$srcdir'
14976 INSTALL='$INSTALL'
14977 MKDIR_P='$MKDIR_P'
14978 AWK='$AWK'
14979 test -n "\$AWK" || AWK=awk
14980 _ACEOF
14982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14983 # The default lists apply if the user does not specify any file.
14984 ac_need_defaults=:
14985 while test $# != 0
14987 case $1 in
14988 --*=?*)
14989 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14990 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14991 ac_shift=:
14993 --*=)
14994 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14995 ac_optarg=
14996 ac_shift=:
14999 ac_option=$1
15000 ac_optarg=$2
15001 ac_shift=shift
15003 esac
15005 case $ac_option in
15006 # Handling of the options.
15007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15008 ac_cs_recheck=: ;;
15009 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15010 $as_echo "$ac_cs_version"; exit ;;
15011 --config | --confi | --conf | --con | --co | --c )
15012 $as_echo "$ac_cs_config"; exit ;;
15013 --debug | --debu | --deb | --de | --d | -d )
15014 debug=: ;;
15015 --file | --fil | --fi | --f )
15016 $ac_shift
15017 case $ac_optarg in
15018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15019 '') as_fn_error $? "missing file argument" ;;
15020 esac
15021 as_fn_append CONFIG_FILES " '$ac_optarg'"
15022 ac_need_defaults=false;;
15023 --header | --heade | --head | --hea )
15024 $ac_shift
15025 case $ac_optarg in
15026 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15027 esac
15028 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15029 ac_need_defaults=false;;
15030 --he | --h)
15031 # Conflict between --help and --header
15032 as_fn_error $? "ambiguous option: \`$1'
15033 Try \`$0 --help' for more information.";;
15034 --help | --hel | -h )
15035 $as_echo "$ac_cs_usage"; exit ;;
15036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15038 ac_cs_silent=: ;;
15040 # This is an error.
15041 -*) as_fn_error $? "unrecognized option: \`$1'
15042 Try \`$0 --help' for more information." ;;
15044 *) as_fn_append ac_config_targets " $1"
15045 ac_need_defaults=false ;;
15047 esac
15048 shift
15049 done
15051 ac_configure_extra_args=
15053 if $ac_cs_silent; then
15054 exec 6>/dev/null
15055 ac_configure_extra_args="$ac_configure_extra_args --silent"
15058 _ACEOF
15059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15060 if \$ac_cs_recheck; then
15061 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15062 shift
15063 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15064 CONFIG_SHELL='$SHELL'
15065 export CONFIG_SHELL
15066 exec "\$@"
15069 _ACEOF
15070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15071 exec 5>>config.log
15073 echo
15074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15075 ## Running $as_me. ##
15076 _ASBOX
15077 $as_echo "$ac_log"
15078 } >&5
15080 _ACEOF
15081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15083 # INIT-COMMANDS
15085 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15088 # The HP-UX ksh and POSIX shell print the target directory to stdout
15089 # if CDPATH is set.
15090 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15092 sed_quote_subst='$sed_quote_subst'
15093 double_quote_subst='$double_quote_subst'
15094 delay_variable_subst='$delay_variable_subst'
15095 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15096 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15097 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15098 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15099 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15100 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15101 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15102 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15103 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15104 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15105 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15106 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15107 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15108 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15109 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15110 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15111 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15112 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15113 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15114 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15115 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15116 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15117 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15118 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15119 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15120 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15121 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15122 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15123 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15124 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15125 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15126 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15127 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15128 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15129 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15130 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15131 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15132 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15133 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15134 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15135 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15136 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15137 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15138 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15139 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15140 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15141 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15142 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15143 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15144 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15145 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15146 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15147 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15148 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15149 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15150 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15151 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15152 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15153 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15154 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"`'
15155 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15156 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15157 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15158 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15159 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15160 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15161 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15162 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15163 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15164 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15165 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15166 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15167 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15168 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15169 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15170 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15171 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15172 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15173 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15174 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15175 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15176 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15177 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15178 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15179 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15180 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15181 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15182 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15183 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15184 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15185 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15186 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15187 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15188 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15189 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15190 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15191 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15192 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15193 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15194 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15195 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15196 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15197 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15198 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15199 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15200 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15201 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15202 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15203 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15204 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15205 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15206 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15207 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15208 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15209 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15210 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15211 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15212 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15213 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15214 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15215 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15216 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15217 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15218 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15219 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15220 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15221 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15222 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15223 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15224 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15225 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15226 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15227 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15228 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15229 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15230 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15232 LTCC='$LTCC'
15233 LTCFLAGS='$LTCFLAGS'
15234 compiler='$compiler_DEFAULT'
15236 # A function that is used when there is no print builtin or printf.
15237 func_fallback_echo ()
15239 eval 'cat <<_LTECHO_EOF
15241 _LTECHO_EOF'
15244 # Quote evaled strings.
15245 for var in AS \
15246 DLLTOOL \
15247 OBJDUMP \
15248 SHELL \
15249 ECHO \
15250 PATH_SEPARATOR \
15251 SED \
15252 GREP \
15253 EGREP \
15254 FGREP \
15255 LD \
15256 NM \
15257 LN_S \
15258 lt_SP2NL \
15259 lt_NL2SP \
15260 reload_flag \
15261 deplibs_check_method \
15262 file_magic_cmd \
15263 file_magic_glob \
15264 want_nocaseglob \
15265 sharedlib_from_linklib_cmd \
15266 AR \
15267 AR_FLAGS \
15268 archiver_list_spec \
15269 STRIP \
15270 RANLIB \
15271 CC \
15272 CFLAGS \
15273 compiler \
15274 lt_cv_sys_global_symbol_pipe \
15275 lt_cv_sys_global_symbol_to_cdecl \
15276 lt_cv_sys_global_symbol_to_import \
15277 lt_cv_sys_global_symbol_to_c_name_address \
15278 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15279 lt_cv_nm_interface \
15280 nm_file_list_spec \
15281 lt_cv_truncate_bin \
15282 lt_prog_compiler_no_builtin_flag \
15283 lt_prog_compiler_pic \
15284 lt_prog_compiler_wl \
15285 lt_prog_compiler_static \
15286 lt_cv_prog_compiler_c_o \
15287 need_locks \
15288 MANIFEST_TOOL \
15289 DSYMUTIL \
15290 NMEDIT \
15291 LIPO \
15292 OTOOL \
15293 OTOOL64 \
15294 shrext_cmds \
15295 export_dynamic_flag_spec \
15296 whole_archive_flag_spec \
15297 compiler_needs_object \
15298 with_gnu_ld \
15299 allow_undefined_flag \
15300 no_undefined_flag \
15301 hardcode_libdir_flag_spec \
15302 hardcode_libdir_separator \
15303 exclude_expsyms \
15304 include_expsyms \
15305 file_list_spec \
15306 variables_saved_for_relink \
15307 libname_spec \
15308 library_names_spec \
15309 soname_spec \
15310 install_override_mode \
15311 finish_eval \
15312 old_striplib \
15313 striplib; do
15314 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15315 *[\\\\\\\`\\"\\\$]*)
15316 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15319 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15321 esac
15322 done
15324 # Double-quote double-evaled strings.
15325 for var in reload_cmds \
15326 old_postinstall_cmds \
15327 old_postuninstall_cmds \
15328 old_archive_cmds \
15329 extract_expsyms_cmds \
15330 old_archive_from_new_cmds \
15331 old_archive_from_expsyms_cmds \
15332 archive_cmds \
15333 archive_expsym_cmds \
15334 module_cmds \
15335 module_expsym_cmds \
15336 export_symbols_cmds \
15337 prelink_cmds \
15338 postlink_cmds \
15339 postinstall_cmds \
15340 postuninstall_cmds \
15341 finish_cmds \
15342 sys_lib_search_path_spec \
15343 configure_time_dlsearch_path \
15344 configure_time_lt_sys_library_path; do
15345 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15346 *[\\\\\\\`\\"\\\$]*)
15347 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15352 esac
15353 done
15355 ac_aux_dir='$ac_aux_dir'
15357 # See if we are running on zsh, and set the options that allow our
15358 # commands through without removal of \ escapes INIT.
15359 if test -n "\${ZSH_VERSION+set}"; then
15360 setopt NO_GLOB_SUBST
15364 PACKAGE='$PACKAGE'
15365 VERSION='$VERSION'
15366 RM='$RM'
15367 ofile='$ofile'
15369 kpse_dll_name='$kpse_dll_name'
15373 _ACEOF
15375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15377 # Handling of arguments.
15378 for ac_config_target in $ac_config_targets
15380 case $ac_config_target in
15381 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15382 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15383 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15384 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15385 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15386 "texluajit.pc") CONFIG_FILES="$CONFIG_FILES texluajit.pc" ;;
15388 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15389 esac
15390 done
15393 # If the user did not use the arguments to specify the items to instantiate,
15394 # then the envvar interface is used. Set only those that are not.
15395 # We use the long form for the default assignment because of an extremely
15396 # bizarre bug on SunOS 4.1.3.
15397 if $ac_need_defaults; then
15398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15403 # Have a temporary directory for convenience. Make it in the build tree
15404 # simply because there is no reason against having it here, and in addition,
15405 # creating and moving files from /tmp can sometimes cause problems.
15406 # Hook for its removal unless debugging.
15407 # Note that there is a small window in which the directory will not be cleaned:
15408 # after its creation but before its name has been assigned to `$tmp'.
15409 $debug ||
15411 tmp= ac_tmp=
15412 trap 'exit_status=$?
15413 : "${ac_tmp:=$tmp}"
15414 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15416 trap 'as_fn_exit 1' 1 2 13 15
15418 # Create a (secure) tmp directory for tmp files.
15421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15422 test -d "$tmp"
15423 } ||
15425 tmp=./conf$$-$RANDOM
15426 (umask 077 && mkdir "$tmp")
15427 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15428 ac_tmp=$tmp
15430 # Set up the scripts for CONFIG_FILES section.
15431 # No need to generate them if there are no CONFIG_FILES.
15432 # This happens for instance with `./config.status config.h'.
15433 if test -n "$CONFIG_FILES"; then
15436 ac_cr=`echo X | tr X '\015'`
15437 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15438 # But we know of no other shell where ac_cr would be empty at this
15439 # point, so we can use a bashism as a fallback.
15440 if test "x$ac_cr" = x; then
15441 eval ac_cr=\$\'\\r\'
15443 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15444 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15445 ac_cs_awk_cr='\\r'
15446 else
15447 ac_cs_awk_cr=$ac_cr
15450 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15451 _ACEOF
15455 echo "cat >conf$$subs.awk <<_ACEOF" &&
15456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15457 echo "_ACEOF"
15458 } >conf$$subs.sh ||
15459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15460 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15461 ac_delim='%!_!# '
15462 for ac_last_try in false false false false false :; do
15463 . ./conf$$subs.sh ||
15464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15466 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15467 if test $ac_delim_n = $ac_delim_num; then
15468 break
15469 elif $ac_last_try; then
15470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15471 else
15472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15474 done
15475 rm -f conf$$subs.sh
15477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15478 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15479 _ACEOF
15480 sed -n '
15482 s/^/S["/; s/!.*/"]=/
15485 s/^[^!]*!//
15486 :repl
15487 t repl
15488 s/'"$ac_delim"'$//
15489 t delim
15492 s/\(.\{148\}\)..*/\1/
15493 t more1
15494 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15497 b repl
15498 :more1
15499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15502 s/.\{148\}//
15503 t nl
15504 :delim
15506 s/\(.\{148\}\)..*/\1/
15507 t more2
15508 s/["\\]/\\&/g; s/^/"/; s/$/"/
15511 :more2
15512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15515 s/.\{148\}//
15516 t delim
15517 ' <conf$$subs.awk | sed '
15518 /^[^""]/{
15520 s/\n//
15522 ' >>$CONFIG_STATUS || ac_write_fail=1
15523 rm -f conf$$subs.awk
15524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15525 _ACAWK
15526 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15527 for (key in S) S_is_set[key] = 1
15528 FS = "\a"
15532 line = $ 0
15533 nfields = split(line, field, "@")
15534 substed = 0
15535 len = length(field[1])
15536 for (i = 2; i < nfields; i++) {
15537 key = field[i]
15538 keylen = length(key)
15539 if (S_is_set[key]) {
15540 value = S[key]
15541 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15542 len += length(value) + length(field[++i])
15543 substed = 1
15544 } else
15545 len += 1 + keylen
15548 print line
15551 _ACAWK
15552 _ACEOF
15553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15555 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15556 else
15558 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15559 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15560 _ACEOF
15562 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15563 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15564 # trailing colons and then remove the whole line if VPATH becomes empty
15565 # (actually we leave an empty line to preserve line numbers).
15566 if test "x$srcdir" = x.; then
15567 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15569 s///
15570 s/^/:/
15571 s/[ ]*$/:/
15572 s/:\$(srcdir):/:/g
15573 s/:\${srcdir}:/:/g
15574 s/:@srcdir@:/:/g
15575 s/^:*//
15576 s/:*$//
15578 s/\(=[ ]*\).*/\1/
15580 s/\n//
15581 s/^[^=]*=[ ]*$//
15585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15586 fi # test -n "$CONFIG_FILES"
15588 # Set up the scripts for CONFIG_HEADERS section.
15589 # No need to generate them if there are no CONFIG_HEADERS.
15590 # This happens for instance with `./config.status Makefile'.
15591 if test -n "$CONFIG_HEADERS"; then
15592 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15593 BEGIN {
15594 _ACEOF
15596 # Transform confdefs.h into an awk script `defines.awk', embedded as
15597 # here-document in config.status, that substitutes the proper values into
15598 # config.h.in to produce config.h.
15600 # Create a delimiter string that does not exist in confdefs.h, to ease
15601 # handling of long lines.
15602 ac_delim='%!_!# '
15603 for ac_last_try in false false :; do
15604 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15605 if test -z "$ac_tt"; then
15606 break
15607 elif $ac_last_try; then
15608 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15609 else
15610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15612 done
15614 # For the awk script, D is an array of macro values keyed by name,
15615 # likewise P contains macro parameters if any. Preserve backslash
15616 # newline sequences.
15618 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15619 sed -n '
15620 s/.\{148\}/&'"$ac_delim"'/g
15621 t rset
15622 :rset
15623 s/^[ ]*#[ ]*define[ ][ ]*/ /
15624 t def
15626 :def
15627 s/\\$//
15628 t bsnl
15629 s/["\\]/\\&/g
15630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15631 D["\1"]=" \3"/p
15632 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15634 :bsnl
15635 s/["\\]/\\&/g
15636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15637 D["\1"]=" \3\\\\\\n"\\/p
15638 t cont
15639 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15640 t cont
15642 :cont
15644 s/.\{148\}/&'"$ac_delim"'/g
15645 t clear
15646 :clear
15647 s/\\$//
15648 t bsnlc
15649 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15651 :bsnlc
15652 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15653 b cont
15654 ' <confdefs.h | sed '
15655 s/'"$ac_delim"'/"\\\
15656 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659 for (key in D) D_is_set[key] = 1
15660 FS = "\a"
15662 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15663 line = \$ 0
15664 split(line, arg, " ")
15665 if (arg[1] == "#") {
15666 defundef = arg[2]
15667 mac1 = arg[3]
15668 } else {
15669 defundef = substr(arg[1], 2)
15670 mac1 = arg[2]
15672 split(mac1, mac2, "(") #)
15673 macro = mac2[1]
15674 prefix = substr(line, 1, index(line, defundef) - 1)
15675 if (D_is_set[macro]) {
15676 # Preserve the white space surrounding the "#".
15677 print prefix "define", macro P[macro] D[macro]
15678 next
15679 } else {
15680 # Replace #undef with comments. This is necessary, for example,
15681 # in the case of _POSIX_SOURCE, which is predefined and required
15682 # on some systems where configure will not decide to define it.
15683 if (defundef == "undef") {
15684 print "/*", prefix defundef, macro, "*/"
15685 next
15689 { print }
15690 _ACAWK
15691 _ACEOF
15692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15693 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15694 fi # test -n "$CONFIG_HEADERS"
15697 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15698 shift
15699 for ac_tag
15701 case $ac_tag in
15702 :[FHLC]) ac_mode=$ac_tag; continue;;
15703 esac
15704 case $ac_mode$ac_tag in
15705 :[FHL]*:*);;
15706 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15707 :[FH]-) ac_tag=-:-;;
15708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15709 esac
15710 ac_save_IFS=$IFS
15711 IFS=:
15712 set x $ac_tag
15713 IFS=$ac_save_IFS
15714 shift
15715 ac_file=$1
15716 shift
15718 case $ac_mode in
15719 :L) ac_source=$1;;
15720 :[FH])
15721 ac_file_inputs=
15722 for ac_f
15724 case $ac_f in
15725 -) ac_f="$ac_tmp/stdin";;
15726 *) # Look for the file first in the build tree, then in the source tree
15727 # (if the path is not absolute). The absolute path cannot be DOS-style,
15728 # because $ac_f cannot contain `:'.
15729 test -f "$ac_f" ||
15730 case $ac_f in
15731 [\\/$]*) false;;
15732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15733 esac ||
15734 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15735 esac
15736 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15737 as_fn_append ac_file_inputs " '$ac_f'"
15738 done
15740 # Let's still pretend it is `configure' which instantiates (i.e., don't
15741 # use $as_me), people would be surprised to read:
15742 # /* config.h. Generated by config.status. */
15743 configure_input='Generated from '`
15744 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15745 `' by configure.'
15746 if test x"$ac_file" != x-; then
15747 configure_input="$ac_file. $configure_input"
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15749 $as_echo "$as_me: creating $ac_file" >&6;}
15751 # Neutralize special characters interpreted by sed in replacement strings.
15752 case $configure_input in #(
15753 *\&* | *\|* | *\\* )
15754 ac_sed_conf_input=`$as_echo "$configure_input" |
15755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15756 *) ac_sed_conf_input=$configure_input;;
15757 esac
15759 case $ac_tag in
15760 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15762 esac
15764 esac
15766 ac_dir=`$as_dirname -- "$ac_file" ||
15767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15768 X"$ac_file" : 'X\(//\)[^/]' \| \
15769 X"$ac_file" : 'X\(//\)$' \| \
15770 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15771 $as_echo X"$ac_file" |
15772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15773 s//\1/
15776 /^X\(\/\/\)[^/].*/{
15777 s//\1/
15780 /^X\(\/\/\)$/{
15781 s//\1/
15784 /^X\(\/\).*/{
15785 s//\1/
15788 s/.*/./; q'`
15789 as_dir="$ac_dir"; as_fn_mkdir_p
15790 ac_builddir=.
15792 case "$ac_dir" in
15793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15796 # A ".." for each directory in $ac_dir_suffix.
15797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15798 case $ac_top_builddir_sub in
15799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15801 esac ;;
15802 esac
15803 ac_abs_top_builddir=$ac_pwd
15804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15805 # for backward compatibility:
15806 ac_top_builddir=$ac_top_build_prefix
15808 case $srcdir in
15809 .) # We are building in place.
15810 ac_srcdir=.
15811 ac_top_srcdir=$ac_top_builddir_sub
15812 ac_abs_top_srcdir=$ac_pwd ;;
15813 [\\/]* | ?:[\\/]* ) # Absolute name.
15814 ac_srcdir=$srcdir$ac_dir_suffix;
15815 ac_top_srcdir=$srcdir
15816 ac_abs_top_srcdir=$srcdir ;;
15817 *) # Relative name.
15818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15819 ac_top_srcdir=$ac_top_build_prefix$srcdir
15820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15821 esac
15822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15825 case $ac_mode in
15828 # CONFIG_FILE
15831 case $INSTALL in
15832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15833 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15834 esac
15835 ac_MKDIR_P=$MKDIR_P
15836 case $MKDIR_P in
15837 [\\/$]* | ?:[\\/]* ) ;;
15838 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15839 esac
15840 _ACEOF
15842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15843 # If the template does not know about datarootdir, expand it.
15844 # FIXME: This hack should be removed a few years after 2.60.
15845 ac_datarootdir_hack=; ac_datarootdir_seen=
15846 ac_sed_dataroot='
15847 /datarootdir/ {
15851 /@datadir@/p
15852 /@docdir@/p
15853 /@infodir@/p
15854 /@localedir@/p
15855 /@mandir@/p'
15856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15857 *datarootdir*) ac_datarootdir_seen=yes;;
15858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15860 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15861 _ACEOF
15862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15863 ac_datarootdir_hack='
15864 s&@datadir@&$datadir&g
15865 s&@docdir@&$docdir&g
15866 s&@infodir@&$infodir&g
15867 s&@localedir@&$localedir&g
15868 s&@mandir@&$mandir&g
15869 s&\\\${datarootdir}&$datarootdir&g' ;;
15870 esac
15871 _ACEOF
15873 # Neutralize VPATH when `$srcdir' = `.'.
15874 # Shell code in configure.ac might set extrasub.
15875 # FIXME: do we really want to maintain this feature?
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 ac_sed_extra="$ac_vpsub
15878 $extrasub
15879 _ACEOF
15880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15883 s|@configure_input@|$ac_sed_conf_input|;t t
15884 s&@top_builddir@&$ac_top_builddir_sub&;t t
15885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15886 s&@srcdir@&$ac_srcdir&;t t
15887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15888 s&@top_srcdir@&$ac_top_srcdir&;t t
15889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15890 s&@builddir@&$ac_builddir&;t t
15891 s&@abs_builddir@&$ac_abs_builddir&;t t
15892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15893 s&@INSTALL@&$ac_INSTALL&;t t
15894 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15895 $ac_datarootdir_hack
15897 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15898 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15901 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15903 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15905 which seems to be undefined. Please make sure it is defined" >&5
15906 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15907 which seems to be undefined. Please make sure it is defined" >&2;}
15909 rm -f "$ac_tmp/stdin"
15910 case $ac_file in
15911 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15912 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15913 esac \
15914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15918 # CONFIG_HEADER
15920 if test x"$ac_file" != x-; then
15922 $as_echo "/* $configure_input */" \
15923 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15924 } >"$ac_tmp/config.h" \
15925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15926 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15928 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15929 else
15930 rm -f "$ac_file"
15931 mv "$ac_tmp/config.h" "$ac_file" \
15932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15934 else
15935 $as_echo "/* $configure_input */" \
15936 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15937 || as_fn_error $? "could not create -" "$LINENO" 5
15939 # Compute "$ac_file"'s index in $config_headers.
15940 _am_arg="$ac_file"
15941 _am_stamp_count=1
15942 for _am_header in $config_headers :; do
15943 case $_am_header in
15944 $_am_arg | $_am_arg:* )
15945 break ;;
15947 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15948 esac
15949 done
15950 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15951 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15952 X"$_am_arg" : 'X\(//\)[^/]' \| \
15953 X"$_am_arg" : 'X\(//\)$' \| \
15954 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15955 $as_echo X"$_am_arg" |
15956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15957 s//\1/
15960 /^X\(\/\/\)[^/].*/{
15961 s//\1/
15964 /^X\(\/\/\)$/{
15965 s//\1/
15968 /^X\(\/\).*/{
15969 s//\1/
15972 s/.*/./; q'`/stamp-h$_am_stamp_count
15975 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15976 $as_echo "$as_me: executing $ac_file commands" >&6;}
15978 esac
15981 case $ac_file$ac_mode in
15982 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15983 # Older Autoconf quotes --file arguments for eval, but not when files
15984 # are listed without --file. Let's play safe and only enable the eval
15985 # if we detect the quoting.
15986 case $CONFIG_FILES in
15987 *\'*) eval set x "$CONFIG_FILES" ;;
15988 *) set x $CONFIG_FILES ;;
15989 esac
15990 shift
15991 for mf
15993 # Strip MF so we end up with the name of the file.
15994 mf=`echo "$mf" | sed -e 's/:.*$//'`
15995 # Check whether this is an Automake generated Makefile or not.
15996 # We used to match only the files named 'Makefile.in', but
15997 # some people rename them; so instead we look at the file content.
15998 # Grep'ing the first line is not enough: some people post-process
15999 # each Makefile.in and add a new line on top of each file to say so.
16000 # Grep'ing the whole file is not good either: AIX grep has a line
16001 # limit of 2048, but all sed's we know have understand at least 4000.
16002 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16003 dirpart=`$as_dirname -- "$mf" ||
16004 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16005 X"$mf" : 'X\(//\)[^/]' \| \
16006 X"$mf" : 'X\(//\)$' \| \
16007 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16008 $as_echo X"$mf" |
16009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16010 s//\1/
16013 /^X\(\/\/\)[^/].*/{
16014 s//\1/
16017 /^X\(\/\/\)$/{
16018 s//\1/
16021 /^X\(\/\).*/{
16022 s//\1/
16025 s/.*/./; q'`
16026 else
16027 continue
16029 # Extract the definition of DEPDIR, am__include, and am__quote
16030 # from the Makefile without running 'make'.
16031 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16032 test -z "$DEPDIR" && continue
16033 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16034 test -z "$am__include" && continue
16035 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16036 # Find all dependency output files, they are included files with
16037 # $(DEPDIR) in their names. We invoke sed twice because it is the
16038 # simplest approach to changing $(DEPDIR) to its actual value in the
16039 # expansion.
16040 for file in `sed -n "
16041 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16042 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16043 # Make sure the directory exists.
16044 test -f "$dirpart/$file" && continue
16045 fdir=`$as_dirname -- "$file" ||
16046 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16047 X"$file" : 'X\(//\)[^/]' \| \
16048 X"$file" : 'X\(//\)$' \| \
16049 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16050 $as_echo X"$file" |
16051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16052 s//\1/
16055 /^X\(\/\/\)[^/].*/{
16056 s//\1/
16059 /^X\(\/\/\)$/{
16060 s//\1/
16063 /^X\(\/\).*/{
16064 s//\1/
16067 s/.*/./; q'`
16068 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16069 # echo "creating $dirpart/$file"
16070 echo '# dummy' > "$dirpart/$file"
16071 done
16072 done
16075 "libtool":C)
16077 # See if we are running on zsh, and set the options that allow our
16078 # commands through without removal of \ escapes.
16079 if test -n "${ZSH_VERSION+set}"; then
16080 setopt NO_GLOB_SUBST
16083 cfgfile=${ofile}T
16084 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16085 $RM "$cfgfile"
16087 cat <<_LT_EOF >> "$cfgfile"
16088 #! $SHELL
16089 # Generated automatically by $as_me ($PACKAGE) $VERSION
16090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16093 # Provide generalized library-building support services.
16094 # Written by Gordon Matzigkeit, 1996
16096 # Copyright (C) 2014 Free Software Foundation, Inc.
16097 # This is free software; see the source for copying conditions. There is NO
16098 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16100 # GNU Libtool is free software; you can redistribute it and/or modify
16101 # it under the terms of the GNU General Public License as published by
16102 # the Free Software Foundation; either version 2 of of the License, or
16103 # (at your option) any later version.
16105 # As a special exception to the GNU General Public License, if you
16106 # distribute this file as part of a program or library that is built
16107 # using GNU Libtool, you may include this file under the same
16108 # distribution terms that you use for the rest of that program.
16110 # GNU Libtool is distributed in the hope that it will be useful, but
16111 # WITHOUT ANY WARRANTY; without even the implied warranty of
16112 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16113 # GNU General Public License for more details.
16115 # You should have received a copy of the GNU General Public License
16116 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16119 # The names of the tagged configurations supported by this script.
16120 available_tags=''
16122 # Configured defaults for sys_lib_dlsearch_path munging.
16123 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16125 # ### BEGIN LIBTOOL CONFIG
16127 # Which release of libtool.m4 was used?
16128 macro_version=$macro_version
16129 macro_revision=$macro_revision
16131 # Assembler program.
16132 AS=$lt_AS
16134 # DLL creation program.
16135 DLLTOOL=$lt_DLLTOOL
16137 # Object dumper program.
16138 OBJDUMP=$lt_OBJDUMP
16140 # Whether or not to build shared libraries.
16141 build_libtool_libs=$enable_shared
16143 # Whether or not to build static libraries.
16144 build_old_libs=$enable_static
16146 # What type of objects to build.
16147 pic_mode=$pic_mode
16149 # Whether or not to optimize for fast installation.
16150 fast_install=$enable_fast_install
16152 # Shared archive member basename,for filename based shared library versioning on AIX.
16153 shared_archive_member_spec=$shared_archive_member_spec
16155 # Shell to use when invoking shell scripts.
16156 SHELL=$lt_SHELL
16158 # An echo program that protects backslashes.
16159 ECHO=$lt_ECHO
16161 # The PATH separator for the build system.
16162 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16164 # The host system.
16165 host_alias=$host_alias
16166 host=$host
16167 host_os=$host_os
16169 # The build system.
16170 build_alias=$build_alias
16171 build=$build
16172 build_os=$build_os
16174 # A sed program that does not truncate output.
16175 SED=$lt_SED
16177 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16178 Xsed="\$SED -e 1s/^X//"
16180 # A grep program that handles long lines.
16181 GREP=$lt_GREP
16183 # An ERE matcher.
16184 EGREP=$lt_EGREP
16186 # A literal string matcher.
16187 FGREP=$lt_FGREP
16189 # A BSD- or MS-compatible name lister.
16190 NM=$lt_NM
16192 # Whether we need soft or hard links.
16193 LN_S=$lt_LN_S
16195 # What is the maximum length of a command?
16196 max_cmd_len=$max_cmd_len
16198 # Object file suffix (normally "o").
16199 objext=$ac_objext
16201 # Executable file suffix (normally "").
16202 exeext=$exeext
16204 # whether the shell understands "unset".
16205 lt_unset=$lt_unset
16207 # turn spaces into newlines.
16208 SP2NL=$lt_lt_SP2NL
16210 # turn newlines into spaces.
16211 NL2SP=$lt_lt_NL2SP
16213 # convert \$build file names to \$host format.
16214 to_host_file_cmd=$lt_cv_to_host_file_cmd
16216 # convert \$build files to toolchain format.
16217 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16219 # Method to check whether dependent libraries are shared objects.
16220 deplibs_check_method=$lt_deplibs_check_method
16222 # Command to use when deplibs_check_method = "file_magic".
16223 file_magic_cmd=$lt_file_magic_cmd
16225 # How to find potential files when deplibs_check_method = "file_magic".
16226 file_magic_glob=$lt_file_magic_glob
16228 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16229 want_nocaseglob=$lt_want_nocaseglob
16231 # Command to associate shared and link libraries.
16232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16234 # The archiver.
16235 AR=$lt_AR
16237 # Flags to create an archive.
16238 AR_FLAGS=$lt_AR_FLAGS
16240 # How to feed a file listing to the archiver.
16241 archiver_list_spec=$lt_archiver_list_spec
16243 # A symbol stripping program.
16244 STRIP=$lt_STRIP
16246 # Commands used to install an old-style archive.
16247 RANLIB=$lt_RANLIB
16248 old_postinstall_cmds=$lt_old_postinstall_cmds
16249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16251 # Whether to use a lock for old archive extraction.
16252 lock_old_archive_extraction=$lock_old_archive_extraction
16254 # A C compiler.
16255 LTCC=$lt_CC
16257 # LTCC compiler flags.
16258 LTCFLAGS=$lt_CFLAGS
16260 # Take the output of nm and produce a listing of raw symbols and C names.
16261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16263 # Transform the output of nm in a proper C declaration.
16264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16266 # Transform the output of nm into a list of symbols to manually relocate.
16267 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16269 # Transform the output of nm in a C name address pair.
16270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16272 # Transform the output of nm in a C name address pair when lib prefix is needed.
16273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16275 # The name lister interface.
16276 nm_interface=$lt_lt_cv_nm_interface
16278 # Specify filename containing input files for \$NM.
16279 nm_file_list_spec=$lt_nm_file_list_spec
16281 # The root where to search for dependent libraries,and where our libraries should be installed.
16282 lt_sysroot=$lt_sysroot
16284 # Command to truncate a binary pipe.
16285 lt_truncate_bin=$lt_lt_cv_truncate_bin
16287 # The name of the directory that contains temporary libtool files.
16288 objdir=$objdir
16290 # Used to examine libraries when file_magic_cmd begins with "file".
16291 MAGIC_CMD=$MAGIC_CMD
16293 # Must we lock files when doing compilation?
16294 need_locks=$lt_need_locks
16296 # Manifest tool.
16297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16300 DSYMUTIL=$lt_DSYMUTIL
16302 # Tool to change global to local symbols on Mac OS X.
16303 NMEDIT=$lt_NMEDIT
16305 # Tool to manipulate fat objects and archives on Mac OS X.
16306 LIPO=$lt_LIPO
16308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16309 OTOOL=$lt_OTOOL
16311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16312 OTOOL64=$lt_OTOOL64
16314 # Old archive suffix (normally "a").
16315 libext=$libext
16317 # Shared library suffix (normally ".so").
16318 shrext_cmds=$lt_shrext_cmds
16320 # The commands to extract the exported symbol list from a shared archive.
16321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16323 # Variables whose values should be saved in libtool wrapper scripts and
16324 # restored at link time.
16325 variables_saved_for_relink=$lt_variables_saved_for_relink
16327 # Do we need the "lib" prefix for modules?
16328 need_lib_prefix=$need_lib_prefix
16330 # Do we need a version for libraries?
16331 need_version=$need_version
16333 # Library versioning type.
16334 version_type=$version_type
16336 # Shared library runtime path variable.
16337 runpath_var=$runpath_var
16339 # Shared library path variable.
16340 shlibpath_var=$shlibpath_var
16342 # Is shlibpath searched before the hard-coded library search path?
16343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16345 # Format of library name prefix.
16346 libname_spec=$lt_libname_spec
16348 # List of archive names. First name is the real one, the rest are links.
16349 # The last name is the one that the linker finds with -lNAME
16350 library_names_spec=$lt_library_names_spec
16352 # The coded name of the library, if different from the real name.
16353 soname_spec=$lt_soname_spec
16355 # Permission mode override for installation of shared libraries.
16356 install_override_mode=$lt_install_override_mode
16358 # Command to use after installation of a shared archive.
16359 postinstall_cmds=$lt_postinstall_cmds
16361 # Command to use after uninstallation of a shared archive.
16362 postuninstall_cmds=$lt_postuninstall_cmds
16364 # Commands used to finish a libtool library installation in a directory.
16365 finish_cmds=$lt_finish_cmds
16367 # As "finish_cmds", except a single script fragment to be evaled but
16368 # not shown.
16369 finish_eval=$lt_finish_eval
16371 # Whether we should hardcode library paths into libraries.
16372 hardcode_into_libs=$hardcode_into_libs
16374 # Compile-time system search path for libraries.
16375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16377 # Detected run-time system search path for libraries.
16378 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16380 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16381 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16383 # Whether dlopen is supported.
16384 dlopen_support=$enable_dlopen
16386 # Whether dlopen of programs is supported.
16387 dlopen_self=$enable_dlopen_self
16389 # Whether dlopen of statically linked programs is supported.
16390 dlopen_self_static=$enable_dlopen_self_static
16392 # Commands to strip libraries.
16393 old_striplib=$lt_old_striplib
16394 striplib=$lt_striplib
16397 # The linker used to build libraries.
16398 LD=$lt_LD
16400 # How to create reloadable object files.
16401 reload_flag=$lt_reload_flag
16402 reload_cmds=$lt_reload_cmds
16404 # Commands used to build an old-style archive.
16405 old_archive_cmds=$lt_old_archive_cmds
16407 # A language specific compiler.
16408 CC=$lt_compiler
16410 # Is the compiler the GNU compiler?
16411 with_gcc=$GCC
16413 # Compiler flag to turn off builtin functions.
16414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16416 # Additional compiler flags for building library objects.
16417 pic_flag=$lt_lt_prog_compiler_pic
16419 # How to pass a linker flag through the compiler.
16420 wl=$lt_lt_prog_compiler_wl
16422 # Compiler flag to prevent dynamic linking.
16423 link_static_flag=$lt_lt_prog_compiler_static
16425 # Does compiler simultaneously support -c and -o options?
16426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16428 # Whether or not to add -lc for building shared libraries.
16429 build_libtool_need_lc=$archive_cmds_need_lc
16431 # Whether or not to disallow shared libs when runtime libs are static.
16432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16434 # Compiler flag to allow reflexive dlopens.
16435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16437 # Compiler flag to generate shared objects directly from archives.
16438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16440 # Whether the compiler copes with passing no objects directly.
16441 compiler_needs_object=$lt_compiler_needs_object
16443 # Create an old-style archive from a shared archive.
16444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16446 # Create a temporary old-style archive to link instead of a shared archive.
16447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16449 # Commands used to build a shared archive.
16450 archive_cmds=$lt_archive_cmds
16451 archive_expsym_cmds=$lt_archive_expsym_cmds
16453 # Commands used to build a loadable module if different from building
16454 # a shared archive.
16455 module_cmds=$lt_module_cmds
16456 module_expsym_cmds=$lt_module_expsym_cmds
16458 # Whether we are building with GNU ld or not.
16459 with_gnu_ld=$lt_with_gnu_ld
16461 # Flag that allows shared libraries with undefined symbols to be built.
16462 allow_undefined_flag=$lt_allow_undefined_flag
16464 # Flag that enforces no undefined symbols.
16465 no_undefined_flag=$lt_no_undefined_flag
16467 # Flag to hardcode \$libdir into a binary during linking.
16468 # This must work even if \$libdir does not exist
16469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16471 # Whether we need a single "-rpath" flag with a separated argument.
16472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16474 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16475 # DIR into the resulting binary.
16476 hardcode_direct=$hardcode_direct
16478 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16479 # DIR into the resulting binary and the resulting library dependency is
16480 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16481 # library is relocated.
16482 hardcode_direct_absolute=$hardcode_direct_absolute
16484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16485 # into the resulting binary.
16486 hardcode_minus_L=$hardcode_minus_L
16488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16489 # into the resulting binary.
16490 hardcode_shlibpath_var=$hardcode_shlibpath_var
16492 # Set to "yes" if building a shared library automatically hardcodes DIR
16493 # into the library and all subsequent libraries and executables linked
16494 # against it.
16495 hardcode_automatic=$hardcode_automatic
16497 # Set to yes if linker adds runtime paths of dependent libraries
16498 # to runtime path list.
16499 inherit_rpath=$inherit_rpath
16501 # Whether libtool must link a program against all its dependency libraries.
16502 link_all_deplibs=$link_all_deplibs
16504 # Set to "yes" if exported symbols are required.
16505 always_export_symbols=$always_export_symbols
16507 # The commands to list exported symbols.
16508 export_symbols_cmds=$lt_export_symbols_cmds
16510 # Symbols that should not be listed in the preloaded symbols.
16511 exclude_expsyms=$lt_exclude_expsyms
16513 # Symbols that must always be exported.
16514 include_expsyms=$lt_include_expsyms
16516 # Commands necessary for linking programs (against libraries) with templates.
16517 prelink_cmds=$lt_prelink_cmds
16519 # Commands necessary for finishing linking programs.
16520 postlink_cmds=$lt_postlink_cmds
16522 # Specify filename containing input files.
16523 file_list_spec=$lt_file_list_spec
16525 # How to hardcode a shared library path into an executable.
16526 hardcode_action=$hardcode_action
16528 # ### END LIBTOOL CONFIG
16530 _LT_EOF
16532 cat <<'_LT_EOF' >> "$cfgfile"
16534 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16536 # func_munge_path_list VARIABLE PATH
16537 # -----------------------------------
16538 # VARIABLE is name of variable containing _space_ separated list of
16539 # directories to be munged by the contents of PATH, which is string
16540 # having a format:
16541 # "DIR[:DIR]:"
16542 # string "DIR[ DIR]" will be prepended to VARIABLE
16543 # ":DIR[:DIR]"
16544 # string "DIR[ DIR]" will be appended to VARIABLE
16545 # "DIRP[:DIRP]::[DIRA:]DIRA"
16546 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16547 # "DIRA[ DIRA]" will be appended to VARIABLE
16548 # "DIR[:DIR]"
16549 # VARIABLE will be replaced by "DIR[ DIR]"
16550 func_munge_path_list ()
16552 case x$2 in
16556 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16558 x:*)
16559 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16561 *::*)
16562 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16563 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16566 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16568 esac
16572 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16573 func_cc_basename ()
16575 for cc_temp in $*""; do
16576 case $cc_temp in
16577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16579 \-*) ;;
16580 *) break;;
16581 esac
16582 done
16583 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16587 # ### END FUNCTIONS SHARED WITH CONFIGURE
16589 _LT_EOF
16591 case $host_os in
16592 aix3*)
16593 cat <<\_LT_EOF >> "$cfgfile"
16594 # AIX sometimes has problems with the GCC collect2 program. For some
16595 # reason, if we set the COLLECT_NAMES environment variable, the problems
16596 # vanish in a puff of smoke.
16597 if test set != "${COLLECT_NAMES+set}"; then
16598 COLLECT_NAMES=
16599 export COLLECT_NAMES
16601 _LT_EOF
16603 esac
16606 ltmain=$ac_aux_dir/ltmain.sh
16609 # We use sed instead of cat because bash on DJGPP gets confused if
16610 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16611 # text mode, it properly converts lines to CR/LF. This bash problem
16612 # is reportedly fixed, but why not run on old versions too?
16613 sed '$q' "$ltmain" >> "$cfgfile" \
16614 || (rm -f "$cfgfile"; exit 1)
16616 mv -f "$cfgfile" "$ofile" ||
16617 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16618 chmod +x "$ofile"
16620 ## KPSE_DLL_NAME: Specify the DLL name
16621 if test "x$kpse_dll_name" != x; then
16622 $SED '/^soname_spec=/a\
16623 ## KPSE_DLL_NAME: Specify the DLL name\
16624 soname_spec='$kpse_dll_name'.dll\
16625 ' "$ofile" >"$cfgfile"
16626 mv "$cfgfile" "$ofile" ||
16627 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16628 chmod +x "$ofile"
16632 esac
16633 done # for ac_tag
16636 as_fn_exit 0
16637 _ACEOF
16638 ac_clean_files=$ac_clean_files_save
16640 test $ac_write_fail = 0 ||
16641 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16643 ac_configure_args="$ac_configure_args DASM_ARCH=$DASM_ARCH"
16644 if test "x$cross_compiling" = xyes; then :
16645 if test "x$cache_file" != x/dev/null; then :
16646 cache_file=config.cache
16648 ac_configure_args="$ac_configure_args --host='$kpse_build_alias' \
16649 CC='$BUILDCC' CFLAGS='$BUILDCFLAGS' \
16650 CPPFLAGS='$BUILDCPPFLAGS' LDFLAGS='$BUILDLDFLAGS'"
16653 # configure is writing to config.log, and then calls config.status.
16654 # config.status does its own redirection, appending to config.log.
16655 # Unfortunately, on DOS this fails, as config.log is still kept open
16656 # by configure, so config.status won't be able to write to it; its
16657 # output is simply discarded. So we exec the FD to /dev/null,
16658 # effectively closing config.log, so it can be properly (re)opened and
16659 # appended to by config.status. When coming back to configure, we
16660 # need to make the FD available again.
16661 if test "$no_create" != yes; then
16662 ac_cs_success=:
16663 ac_config_status_args=
16664 test "$silent" = yes &&
16665 ac_config_status_args="$ac_config_status_args --quiet"
16666 exec 5>/dev/null
16667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16668 exec 5>>config.log
16669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16670 # would make configure fail if this is the last instruction.
16671 $ac_cs_success || as_fn_exit 1
16675 # CONFIG_SUBDIRS section.
16677 if test "$no_recursion" != yes; then
16679 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16680 # so they do not pile up.
16681 ac_sub_configure_args=
16682 ac_prev=
16683 eval "set x $ac_configure_args"
16684 shift
16685 for ac_arg
16687 if test -n "$ac_prev"; then
16688 ac_prev=
16689 continue
16691 case $ac_arg in
16692 -cache-file | --cache-file | --cache-fil | --cache-fi \
16693 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16694 ac_prev=cache_file ;;
16695 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16696 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16697 | --c=*)
16699 --config-cache | -C)
16701 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16702 ac_prev=srcdir ;;
16703 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16705 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16706 ac_prev=prefix ;;
16707 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16709 --disable-option-checking)
16712 case $ac_arg in
16713 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16714 esac
16715 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16716 esac
16717 done
16719 # Always prepend --prefix to ensure using the same prefix
16720 # in subdir configurations.
16721 ac_arg="--prefix=$prefix"
16722 case $ac_arg in
16723 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16724 esac
16725 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16727 # Pass --silent
16728 if test "$silent" = yes; then
16729 ac_sub_configure_args="--silent $ac_sub_configure_args"
16732 # Always prepend --disable-option-checking to silence warnings, since
16733 # different subdirs can have different --enable and --with options.
16734 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16736 ac_popdir=`pwd`
16737 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16739 # Do not complain, so a configure script can configure whichever
16740 # parts of a large source tree are present.
16741 test -d "$srcdir/$ac_dir" || continue
16743 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16744 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16745 $as_echo "$ac_msg" >&6
16746 as_dir="$ac_dir"; as_fn_mkdir_p
16747 ac_builddir=.
16749 case "$ac_dir" in
16750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16753 # A ".." for each directory in $ac_dir_suffix.
16754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16755 case $ac_top_builddir_sub in
16756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16758 esac ;;
16759 esac
16760 ac_abs_top_builddir=$ac_pwd
16761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16762 # for backward compatibility:
16763 ac_top_builddir=$ac_top_build_prefix
16765 case $srcdir in
16766 .) # We are building in place.
16767 ac_srcdir=.
16768 ac_top_srcdir=$ac_top_builddir_sub
16769 ac_abs_top_srcdir=$ac_pwd ;;
16770 [\\/]* | ?:[\\/]* ) # Absolute name.
16771 ac_srcdir=$srcdir$ac_dir_suffix;
16772 ac_top_srcdir=$srcdir
16773 ac_abs_top_srcdir=$srcdir ;;
16774 *) # Relative name.
16775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16776 ac_top_srcdir=$ac_top_build_prefix$srcdir
16777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16778 esac
16779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16782 cd "$ac_dir"
16784 # Check for guested configure; otherwise get Cygnus style configure.
16785 if test -f "$ac_srcdir/configure.gnu"; then
16786 ac_sub_configure=$ac_srcdir/configure.gnu
16787 elif test -f "$ac_srcdir/configure"; then
16788 ac_sub_configure=$ac_srcdir/configure
16789 elif test -f "$ac_srcdir/configure.in"; then
16790 # This should be Cygnus configure.
16791 ac_sub_configure=$ac_aux_dir/configure
16792 else
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16794 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16795 ac_sub_configure=
16798 # The recursion is here.
16799 if test -n "$ac_sub_configure"; then
16800 # Make the cache file name correct relative to the subdirectory.
16801 case $cache_file in
16802 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16803 *) # Relative name.
16804 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16805 esac
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16808 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16809 # The eval makes quoting arguments work.
16810 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16811 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16812 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16815 cd "$ac_popdir"
16816 done
16818 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16820 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}