Added comments on ff only scripts
[luatex.git] / source / configure
blob3314ebc9b40ef4c21821dbfe0f650b17be353d17
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for TeX Live 2015-03-07.
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='TeX Live'
592 PACKAGE_TARNAME='tex-live'
593 PACKAGE_VERSION='2015-03-07'
594 PACKAGE_STRING='TeX Live 2015-03-07'
595 PACKAGE_BUGREPORT='tex-k@tug.org'
596 PACKAGE_URL=''
598 ac_unique_file="m4/kpse-pkgs.m4"
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 cross_FALSE
641 cross_TRUE
642 ICU_CONFIG
643 FT2_CONFIG
644 PKG_CONFIG
645 CONF_SUBDIRS
646 MAKE_SUBDIRS
647 subdirs
648 CXXCPP
649 WARNING_CXXFLAGS
650 am__fastdepCXX_FALSE
651 am__fastdepCXX_TRUE
652 CXXDEPMODE
653 ac_ct_CXX
654 CXXFLAGS
656 X_EXTRA_LIBS
657 X_LIBS
658 X_PRE_LIBS
659 X_CFLAGS
660 XMKMF
662 LT_SYS_LIBRARY_PATH
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 MANIFEST_TOOL
669 RANLIB
670 ac_ct_AR
672 LN_S
674 ac_ct_DUMPBIN
675 DUMPBIN
677 FGREP
678 EGREP
679 GREP
681 LIBTOOL
682 OBJDUMP
683 DLLTOOL
685 WARNING_CFLAGS
686 MAINT
687 MAINTAINER_MODE_FALSE
688 MAINTAINER_MODE_TRUE
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__fastdepCC_FALSE
694 am__fastdepCC_TRUE
695 CCDEPMODE
696 am__nodep
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
700 am__quote
701 am__include
702 DEPDIR
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
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_missing
783 enable_all_pkgs
784 enable_native_texlive_build
785 enable_multiplatform
786 enable_cxx_runtime_hack
787 enable_libtool_hack
788 enable_web2c
789 with_banner_add
790 with_editor
791 enable_auto_core
792 enable_dump_share
793 enable_ipc
794 enable_tex
795 enable_tex_synctex
796 enable_etex
797 enable_etex_synctex
798 enable_ptex
799 enable_ptex_synctex
800 enable_eptex
801 enable_eptex_synctex
802 enable_uptex
803 enable_uptex_synctex
804 enable_euptex
805 enable_euptex_synctex
806 enable_aleph
807 enable_pdftex
808 enable_pdftex_synctex
809 enable_luatex
810 enable_luajittex
811 enable_mp
812 enable_pmp
813 enable_upmp
814 enable_xetex
815 enable_xetex_synctex
816 enable_mf
817 enable_mf_nowin
818 with_mf_x_toolkit
819 enable_epsfwin
820 enable_hp2627win
821 enable_mftalkwin
822 enable_nextwin
823 enable_regiswin
824 enable_suntoolswin
825 enable_tektronixwin
826 enable_unitermwin
827 enable_web_progs
828 enable_synctex
829 enable_texlive
830 enable_linked_scripts
831 with_system_zziplib
832 with_system_poppler
833 with_system_mpfr
834 with_mpfr_includes
835 with_mpfr_libdir
836 with_system_gmp
837 with_gmp_includes
838 with_gmp_libdir
839 with_system_cairo
840 with_system_pixman
841 with_system_libpng
842 with_system_zlib
843 with_zlib_includes
844 with_zlib_libdir
845 with_system_kpathsea
846 enable_mktexmf_default
847 enable_mktexpk_default
848 enable_mktextfm_default
849 enable_mkocp_default
850 enable_mkofm_default
851 enable_mktexfmt_default
852 enable_mktextex_default
853 enable_dependency_tracking
854 enable_silent_rules
855 enable_maintainer_mode
856 enable_compiler_warnings
857 enable_shared
858 enable_static
859 with_pic
860 enable_fast_install
861 with_aix_soname
862 with_gnu_ld
863 with_sysroot
864 enable_libtool_lock
865 enable_largefile
866 with_x
867 with_ln_s
869 ac_precious_vars='build_alias
870 host_alias
871 target_alias
873 CFLAGS
874 LDFLAGS
875 LIBS
876 CPPFLAGS
877 LT_SYS_LIBRARY_PATH
879 XMKMF
881 CXXFLAGS
883 CXXCPP'
884 ac_subdirs_all='texk/kpathsea
885 auxdir/auxsub libs utils texk'
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
935 ac_prev=
936 ac_dashdash=
937 for ac_option
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
946 case $ac_option in
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
950 esac
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
956 ac_dashdash=yes ;;
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
975 --config-cache | -C)
976 cache_file=config.cache ;;
978 -datadir | --datadir | --datadi | --datad)
979 ac_prev=datadir ;;
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
990 -disable-* | --disable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1016 -enable-* | --enable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid feature name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1220 -with-* | --with-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: $ac_useropt"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=\$ac_optarg ;;
1236 -without-* | --without-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1280 esac
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1285 # FIXME: should be removed in autoconf 3.0.
1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292 esac
1293 done
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 as_fn_error $? "missing argument to $ac_option"
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 esac
1308 # Check all directory arguments for consistency.
1309 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
1322 case $ac_val in
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325 esac
1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1327 done
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1332 build=$build_alias
1333 host=$host_alias
1334 target=$target_alias
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error $? "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error $? "pwd does not report name of working directory"
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1377 /^X\(\/\/\)$/{
1378 s//\1/
1381 /^X\(\/\).*/{
1382 s//\1/
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1390 else
1391 ac_srcdir_defaulted=no
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400 pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1419 # Report the --help message.
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425 \`configure' configures TeX Live 2015-03-07 to adapt to many kinds of systems.
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1432 Defaults for the options are specified in brackets.
1434 Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking ...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1456 For better control, use the options below.
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/tex-live]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478 _ACEOF
1480 cat <<\_ACEOF
1482 Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1487 X features:
1488 --x-includes=DIR X include files are in DIR
1489 --x-libraries=DIR X library files are in DIR
1491 System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of TeX Live 2015-03-07:";;
1500 esac
1501 cat <<\_ACEOF
1503 Optional Features:
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --disable-missing terminate if a requested program or feature must be
1508 disabled, e.g., due to missing libraries
1509 --disable-all-pkgs do not build packages unless explicitly enabled
1510 --disable-native-texlive-build
1511 do not build for the TeX Live binary distribution
1512 --enable-multiplatform put executables into bin/PLATFORM and libraries into
1513 lib/PLATFORM
1514 --enable-cxx-runtime-hack link C++ runtime statically
1515 --enable-libtool-hack ignore libtool dependency_libs
1516 --disable-web2c do not build the web2c (TeX & Co.) package
1517 --enable-auto-core cause TeX&MF to dump core, given a certain
1518 filename
1519 --disable-dump-share make fmt/base files architecture-dependent
1520 --disable-ipc disable TeX's --ipc option, i.e., pipe to a
1521 program
1522 --disable-tex do not compile and install TeX
1523 --enable-tex-synctex build TeX with SyncTeX support
1524 --enable-etex compile and install e-TeX
1525 --disable-etex-synctex build e-TeX without SyncTeX support
1526 --disable-ptex do not compile and install pTeX
1527 --disable-ptex-synctex build pTeX without SyncTeX support
1528 --disable-eptex do not compile and install e-pTeX
1529 --disable-eptex-synctex build e-pTeX without SyncTeX support
1530 --disable-uptex do not compile and install upTeX
1531 --disable-uptex-synctex build upTeX without SyncTeX support
1532 --disable-euptex do not compile and install e-upTeX
1533 --disable-euptex-synctex build e-upTeX without SyncTeX support
1534 --disable-aleph do not compile and install Aleph
1535 --disable-pdftex do not compile and install pdfTeX
1536 --disable-pdftex-synctex build pdfTeX without SyncTeX support
1537 --disable-luatex do not compile and install LuaTeX
1538 --disable-luajittex do not compile and install LuaJITTeX
1539 --disable-mp do not compile and install MetaPost
1540 --disable-pmp do not compile and install pMetaPost
1541 --disable-upmp do not compile and install upMetaPost
1542 --disable-xetex do not compile and install XeTeX
1543 --disable-xetex-synctex build XeTeX without SyncTeX support
1544 --disable-mf do not compile and install METAFONT
1545 --disable-mf-nowin do not build a separate non-window-capable
1546 METAFONT
1547 --enable-epsfwin include EPSF pseudo window support
1548 --enable-hp2627win include HP 2627 window support
1549 --enable-mftalkwin include mftalk (generic server) window support
1550 --enable-nextwin include NeXT window support
1551 --enable-regiswin include Regis window support
1552 --enable-suntoolswin include old Suntools (not X) window support
1553 --enable-tektronixwin include Tektronix window support
1554 --enable-unitermwin include Uniterm window support
1555 --disable-web-progs do not build WEB programs bibtex ... weave
1556 --disable-synctex do not build the SyncTeX library and tool
1557 --disable-texlive do not build the texlive (TeX Live scripts) package
1558 --disable-linked-scripts do not install the linked scripts
1559 --disable-mktexmf-default do not run mktexmf if MF source missing
1560 --disable-mktexpk-default do not run mktexpk if PK font missing
1561 --disable-mktextfm-default do not run mktextfm if TFM file missing
1562 --disable-mkocp-default do not run mkocp if OCP file missing
1563 --disable-mkofm-default do not run mkofm if OFM file missing
1564 --disable-mktexfmt-default do not run mktexfmt if format file missing
1565 --enable-mktextex-default run mktextex if TeX source missing
1566 --enable-dependency-tracking
1567 do not reject slow dependency extractors
1568 --disable-dependency-tracking
1569 speeds up one-time build
1570 --enable-silent-rules less verbose build output (undo: "make V=1")
1571 --disable-silent-rules verbose build output (undo: "make V=0")
1572 --enable-maintainer-mode
1573 enable make rules and dependencies not useful (and
1574 sometimes confusing) to the casual installer
1575 --enable-compiler-warnings=[no|min|yes|max|all]
1576 Turn on compiler warnings [default: yes if
1577 maintainer-mode, min otherwise]
1578 --enable-shared[=PKGS] build shared libraries [default=yes]
1579 --enable-static[=PKGS] build static libraries [default=yes]
1580 --enable-fast-install[=PKGS]
1581 optimize for fast installation [default=yes]
1582 --disable-libtool-lock avoid locking (might break parallel builds)
1583 --disable-largefile omit support for large files
1585 Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-banner-add=STR add STR to version string appended to banner lines
1589 --with-editor=CMD invoke CMD from the `e' option [vi +%d '%s'] or
1590 [texworks --position=%d "%s"]
1591 --with-mf-x-toolkit use X toolkit for METAFONT
1592 --with-system-zziplib use installed zziplib headers and library (requires
1593 pkg-config)
1594 --with-system-poppler use installed poppler headers and library (requires
1595 pkg-config)
1596 --with-system-mpfr use installed mpfr headers and library
1597 --with-mpfr-includes=DIR
1598 mpfr headers installed in DIR
1599 --with-mpfr-libdir=DIR mpfr library installed in DIR
1600 --with-system-gmp use installed gmp headers and library
1601 --with-gmp-includes=DIR gmp headers installed in DIR
1602 --with-gmp-libdir=DIR gmp library installed in DIR
1603 --with-system-cairo use installed cairo headers and library (requires
1604 pkg-config)
1605 --with-system-pixman use installed pixman headers and library (requires
1606 pkg-config)
1607 --with-system-libpng use installed libpng headers and library (requires
1608 pkg-config)
1609 --with-system-zlib use installed zlib headers and library
1610 --with-zlib-includes=DIR
1611 zlib headers installed in DIR
1612 --with-zlib-libdir=DIR zlib library installed in DIR
1613 --with-system-kpathsea use installed kpathsea headers and library (requires
1614 pkg-config)
1615 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1616 both]
1617 --with-aix-soname=aix|svr4|both
1618 shared library versioning (aka "SONAME") variant to
1619 provide on AIX, [default=aix].
1620 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1621 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1622 compiler's sysroot if not specified).
1623 --with-x use the X Window System
1624 --without-ln-s do build even if `ln -s' does not work
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 LT_SYS_LIBRARY_PATH
1635 User-defined run-time library search path.
1636 CPP C preprocessor
1637 XMKMF Path to xmkmf, Makefile generator for X Window System
1638 CXX C++ compiler command
1639 CXXFLAGS C++ compiler flags
1640 CXXCPP C++ preprocessor
1642 Use these variables to override the choices made by `configure' or to help
1643 it to find libraries and programs with nonstandard names/locations.
1645 Report bugs to <tex-k@tug.org>.
1646 _ACEOF
1647 ac_status=$?
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 continue
1656 ac_builddir=.
1658 case "$ac_dir" in
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 esac ;;
1668 esac
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1674 case $srcdir in
1675 .) # We are building in place.
1676 ac_srcdir=.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1683 *) # Relative name.
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 esac
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1698 else
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 fi || ac_status=$?
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1702 done
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1707 cat <<\_ACEOF
1708 TeX Live configure 2015-03-07
1709 generated by GNU Autoconf 2.69
1711 Copyright (C) 2012 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1714 _ACEOF
1715 exit
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1722 # ac_fn_c_try_compile LINENO
1723 # --------------------------
1724 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=1
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1758 } # ac_fn_c_try_compile
1760 # ac_fn_c_try_link LINENO
1761 # -----------------------
1762 # Try to link conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_link ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext conftest$ac_exeext
1767 if { { ac_try="$ac_link"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest$ac_exeext && {
1786 test "$cross_compiling" = yes ||
1787 test -x conftest$ac_exeext
1788 }; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1794 ac_retval=1
1796 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1797 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1798 # interfere with the next link command; also delete a directory that is
1799 # left behind by Apple's compiler. We do this before executing the actions.
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_try_link
1806 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists and can be compiled using the include files in
1809 # INCLUDES, setting the cache variable VAR accordingly.
1810 ac_fn_c_check_header_compile ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 } # ac_fn_c_check_header_compile
1837 # ac_fn_c_try_cpp LINENO
1838 # ----------------------
1839 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_cpp ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_cpp conftest.$ac_ext"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } > conftest.i && {
1859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1872 } # ac_fn_c_try_cpp
1874 # ac_fn_c_try_run LINENO
1875 # ----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1877 # that executables *can* be run.
1878 ac_fn_c_try_run ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>&5
1889 ac_status=$?
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1892 { { case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_try") 2>&5
1899 ac_status=$?
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; }; }; then :
1902 ac_retval=0
1903 else
1904 $as_echo "$as_me: program exited with status $ac_status" >&5
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=$ac_status
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_c_try_run
1916 # ac_fn_c_check_func LINENO FUNC VAR
1917 # ----------------------------------
1918 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1919 ac_fn_c_check_func ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1931 #define $2 innocuous_$2
1933 /* System header to define __stub macros and hopefully few prototypes,
1934 which can conflict with char $2 (); below.
1935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1936 <limits.h> exists even on freestanding compilers. */
1938 #ifdef __STDC__
1939 # include <limits.h>
1940 #else
1941 # include <assert.h>
1942 #endif
1944 #undef $2
1946 /* Override any GCC internal prototype to avoid an error.
1947 Use char because int might match the return type of a GCC
1948 builtin and then its argument prototype would still apply. */
1949 #ifdef __cplusplus
1950 extern "C"
1951 #endif
1952 char $2 ();
1953 /* The GNU C library defines this for functions which it implements
1954 to always fail with ENOSYS. Some functions are actually named
1955 something starting with __ and the normal name is an alias. */
1956 #if defined __stub_$2 || defined __stub___$2
1957 choke me
1958 #endif
1961 main ()
1963 return $2 ();
1965 return 0;
1967 _ACEOF
1968 if ac_fn_c_try_link "$LINENO"; then :
1969 eval "$3=yes"
1970 else
1971 eval "$3=no"
1973 rm -f core conftest.err conftest.$ac_objext \
1974 conftest$ac_exeext conftest.$ac_ext
1976 eval ac_res=\$$3
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 } # ac_fn_c_check_func
1983 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1984 # -------------------------------------------------------
1985 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1986 # the include files in INCLUDES and setting the cache variable VAR
1987 # accordingly.
1988 ac_fn_c_check_header_mongrel ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if eval \${$3+:} false; then :
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 else
2001 # Is the header compilable?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2003 $as_echo_n "checking $2 usability... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_header_compiler=yes
2011 else
2012 ac_header_compiler=no
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2016 $as_echo "$ac_header_compiler" >&6; }
2018 # Is the header present?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2020 $as_echo_n "checking $2 presence... " >&6; }
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_cpp "$LINENO"; then :
2026 ac_header_preproc=yes
2027 else
2028 ac_header_preproc=no
2030 rm -f conftest.err conftest.i conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2032 $as_echo "$ac_header_preproc" >&6; }
2034 # So? What about this header?
2035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2036 yes:no: )
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2038 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 no:yes:* )
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2044 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2046 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2048 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2050 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 ( $as_echo "## ---------------------------- ##
2054 ## Report this to tex-k@tug.org ##
2055 ## ---------------------------- ##"
2056 ) | sed "s/^/$as_me: WARNING: /" >&2
2058 esac
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=\$ac_header_compiler"
2066 eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_header_mongrel
2074 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2075 # -------------------------------------------
2076 # Tests whether TYPE exists after having included INCLUDES, setting cache
2077 # variable VAR accordingly.
2078 ac_fn_c_check_type ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 eval "$3=no"
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2091 main ()
2093 if (sizeof ($2))
2094 return 0;
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 if (sizeof (($2)))
2107 return 0;
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2114 else
2115 eval "$3=yes"
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_type
2128 # ac_fn_c_find_intX_t LINENO BITS VAR
2129 # -----------------------------------
2130 # Finds a signed integer type with width BITS, setting cache variable VAR
2131 # accordingly.
2132 ac_fn_c_find_intX_t ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2136 $as_echo_n "checking for int$2_t... " >&6; }
2137 if eval \${$3+:} false; then :
2138 $as_echo_n "(cached) " >&6
2139 else
2140 eval "$3=no"
2141 # Order is important - never check a type that is potentially smaller
2142 # than half of the expected target width.
2143 for ac_type in int$2_t 'int' 'long int' \
2144 'long long int' 'short int' 'signed char'; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $ac_includes_default
2148 enum { N = $2 / 2 - 1 };
2150 main ()
2152 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2153 test_array [0] = 0;
2154 return test_array [0];
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 $ac_includes_default
2164 enum { N = $2 / 2 - 1 };
2166 main ()
2168 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2169 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2170 test_array [0] = 0;
2171 return test_array [0];
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2179 else
2180 case $ac_type in #(
2181 int$2_t) :
2182 eval "$3=yes" ;; #(
2183 *) :
2184 eval "$3=\$ac_type" ;;
2185 esac
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 if eval test \"x\$"$3"\" = x"no"; then :
2192 else
2193 break
2195 done
2197 eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 } # ac_fn_c_find_intX_t
2204 # ac_fn_c_find_uintX_t LINENO BITS VAR
2205 # ------------------------------------
2206 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2207 # accordingly.
2208 ac_fn_c_find_uintX_t ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2212 $as_echo_n "checking for uint$2_t... " >&6; }
2213 if eval \${$3+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 eval "$3=no"
2217 # Order is important - never check a type that is potentially smaller
2218 # than half of the expected target width.
2219 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2220 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2223 $ac_includes_default
2225 main ()
2227 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2228 test_array [0] = 0;
2229 return test_array [0];
2232 return 0;
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 case $ac_type in #(
2237 uint$2_t) :
2238 eval "$3=yes" ;; #(
2239 *) :
2240 eval "$3=\$ac_type" ;;
2241 esac
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 if eval test \"x\$"$3"\" = x"no"; then :
2246 else
2247 break
2249 done
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 } # ac_fn_c_find_uintX_t
2258 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2259 # ----------------------------------------------------
2260 # Tries to find if the field MEMBER exists in type AGGR, after including
2261 # INCLUDES, setting cache variable VAR accordingly.
2262 ac_fn_c_check_member ()
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2266 $as_echo_n "checking for $2.$3... " >&6; }
2267 if eval \${$4+:} false; then :
2268 $as_echo_n "(cached) " >&6
2269 else
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2274 main ()
2276 static $2 ac_aggr;
2277 if (ac_aggr.$3)
2278 return 0;
2280 return 0;
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 eval "$4=yes"
2285 else
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2290 main ()
2292 static $2 ac_aggr;
2293 if (sizeof ac_aggr.$3)
2294 return 0;
2296 return 0;
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300 eval "$4=yes"
2301 else
2302 eval "$4=no"
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 eval ac_res=\$$4
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313 } # ac_fn_c_check_member
2315 # ac_fn_cxx_try_compile LINENO
2316 # ----------------------------
2317 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2318 ac_fn_cxx_try_compile ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 rm -f conftest.$ac_objext
2322 if { { ac_try="$ac_compile"
2323 case "(($ac_try" in
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2326 esac
2327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328 $as_echo "$ac_try_echo"; } >&5
2329 (eval "$ac_compile") 2>conftest.err
2330 ac_status=$?
2331 if test -s conftest.err; then
2332 grep -v '^ *+' conftest.err >conftest.er1
2333 cat conftest.er1 >&5
2334 mv -f conftest.er1 conftest.err
2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337 test $ac_status = 0; } && {
2338 test -z "$ac_cxx_werror_flag" ||
2339 test ! -s conftest.err
2340 } && test -s conftest.$ac_objext; then :
2341 ac_retval=0
2342 else
2343 $as_echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2346 ac_retval=1
2348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349 as_fn_set_status $ac_retval
2351 } # ac_fn_cxx_try_compile
2353 # ac_fn_cxx_try_cpp LINENO
2354 # ------------------------
2355 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2356 ac_fn_cxx_try_cpp ()
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 if { { ac_try="$ac_cpp conftest.$ac_ext"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2367 ac_status=$?
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } > conftest.i && {
2375 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2376 test ! -s conftest.err
2377 }; then :
2378 ac_retval=0
2379 else
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2383 ac_retval=1
2385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386 as_fn_set_status $ac_retval
2388 } # ac_fn_cxx_try_cpp
2390 # ac_fn_cxx_try_link LINENO
2391 # -------------------------
2392 # Try to link conftest.$ac_ext, and return whether this succeeded.
2393 ac_fn_cxx_try_link ()
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { { ac_try="$ac_link"
2398 case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401 esac
2402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2403 $as_echo "$ac_try_echo"; } >&5
2404 (eval "$ac_link") 2>conftest.err
2405 ac_status=$?
2406 if test -s conftest.err; then
2407 grep -v '^ *+' conftest.err >conftest.er1
2408 cat conftest.er1 >&5
2409 mv -f conftest.er1 conftest.err
2411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2412 test $ac_status = 0; } && {
2413 test -z "$ac_cxx_werror_flag" ||
2414 test ! -s conftest.err
2415 } && test -s conftest$ac_exeext && {
2416 test "$cross_compiling" = yes ||
2417 test -x conftest$ac_exeext
2418 }; then :
2419 ac_retval=0
2420 else
2421 $as_echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2424 ac_retval=1
2426 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2427 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2428 # interfere with the next link command; also delete a directory that is
2429 # left behind by Apple's compiler. We do this before executing the actions.
2430 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 as_fn_set_status $ac_retval
2434 } # ac_fn_cxx_try_link
2435 cat >config.log <<_ACEOF
2436 This file contains any messages produced by compilers while
2437 running configure, to aid debugging if configure makes a mistake.
2439 It was created by TeX Live $as_me 2015-03-07, which was
2440 generated by GNU Autoconf 2.69. Invocation command line was
2442 $ $0 $@
2444 _ACEOF
2445 exec 5>>config.log
2447 cat <<_ASUNAME
2448 ## --------- ##
2449 ## Platform. ##
2450 ## --------- ##
2452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2469 _ASUNAME
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 $as_echo "PATH: $as_dir"
2477 done
2478 IFS=$as_save_IFS
2480 } >&5
2482 cat >&5 <<_ACEOF
2485 ## ----------- ##
2486 ## Core tests. ##
2487 ## ----------- ##
2489 _ACEOF
2492 # Keep a trace of the command line.
2493 # Strip out --no-create and --no-recursion so they do not pile up.
2494 # Strip out --silent because we don't want to record it for future runs.
2495 # Also quote any args containing shell meta-characters.
2496 # Make two passes to allow for proper duplicate-argument suppression.
2497 ac_configure_args=
2498 ac_configure_args0=
2499 ac_configure_args1=
2500 ac_must_keep_next=false
2501 for ac_pass in 1 2
2503 for ac_arg
2505 case $ac_arg in
2506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2508 | -silent | --silent | --silen | --sile | --sil)
2509 continue ;;
2510 *\'*)
2511 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 esac
2513 case $ac_pass in
2514 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2516 as_fn_append ac_configure_args1 " '$ac_arg'"
2517 if test $ac_must_keep_next = true; then
2518 ac_must_keep_next=false # Got value, back to normal.
2519 else
2520 case $ac_arg in
2521 *=* | --config-cache | -C | -disable-* | --disable-* \
2522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2524 | -with-* | --with-* | -without-* | --without-* | --x)
2525 case "$ac_configure_args0 " in
2526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2527 esac
2529 -* ) ac_must_keep_next=true ;;
2530 esac
2532 as_fn_append ac_configure_args " '$ac_arg'"
2534 esac
2535 done
2536 done
2537 { ac_configure_args0=; unset ac_configure_args0;}
2538 { ac_configure_args1=; unset ac_configure_args1;}
2540 # When interrupted or exit'd, cleanup temporary files, and complete
2541 # config.log. We remove comments because anyway the quotes in there
2542 # would cause problems or look ugly.
2543 # WARNING: Use '\'' to represent an apostrophe within the trap.
2544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2545 trap 'exit_status=$?
2546 # Save into config.log some information that might help in debugging.
2548 echo
2550 $as_echo "## ---------------- ##
2551 ## Cache variables. ##
2552 ## ---------------- ##"
2553 echo
2554 # The following way of writing the cache mishandles newlines in values,
2556 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2557 eval ac_val=\$$ac_var
2558 case $ac_val in #(
2559 *${as_nl}*)
2560 case $ac_var in #(
2561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563 esac
2564 case $ac_var in #(
2565 _ | IFS | as_nl) ;; #(
2566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2567 *) { eval $ac_var=; unset $ac_var;} ;;
2568 esac ;;
2569 esac
2570 done
2571 (set) 2>&1 |
2572 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2573 *${as_nl}ac_space=\ *)
2574 sed -n \
2575 "s/'\''/'\''\\\\'\'''\''/g;
2576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2577 ;; #(
2579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2581 esac |
2582 sort
2584 echo
2586 $as_echo "## ----------------- ##
2587 ## Output variables. ##
2588 ## ----------------- ##"
2589 echo
2590 for ac_var in $ac_subst_vars
2592 eval ac_val=\$$ac_var
2593 case $ac_val in
2594 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2595 esac
2596 $as_echo "$ac_var='\''$ac_val'\''"
2597 done | sort
2598 echo
2600 if test -n "$ac_subst_files"; then
2601 $as_echo "## ------------------- ##
2602 ## File substitutions. ##
2603 ## ------------------- ##"
2604 echo
2605 for ac_var in $ac_subst_files
2607 eval ac_val=\$$ac_var
2608 case $ac_val in
2609 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610 esac
2611 $as_echo "$ac_var='\''$ac_val'\''"
2612 done | sort
2613 echo
2616 if test -s confdefs.h; then
2617 $as_echo "## ----------- ##
2618 ## confdefs.h. ##
2619 ## ----------- ##"
2620 echo
2621 cat confdefs.h
2622 echo
2624 test "$ac_signal" != 0 &&
2625 $as_echo "$as_me: caught signal $ac_signal"
2626 $as_echo "$as_me: exit $exit_status"
2627 } >&5
2628 rm -f core *.core core.conftest.* &&
2629 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2630 exit $exit_status
2632 for ac_signal in 1 2 13 15; do
2633 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2634 done
2635 ac_signal=0
2637 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2638 rm -f -r conftest* confdefs.h
2640 $as_echo "/* confdefs.h */" > confdefs.h
2642 # Predefined preprocessor variables.
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE_NAME "$PACKAGE_NAME"
2646 _ACEOF
2648 cat >>confdefs.h <<_ACEOF
2649 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2650 _ACEOF
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2654 _ACEOF
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_STRING "$PACKAGE_STRING"
2658 _ACEOF
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2662 _ACEOF
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_URL "$PACKAGE_URL"
2666 _ACEOF
2669 # Let the site file select an alternate cache file if it wants to.
2670 # Prefer an explicitly selected file to automatically selected ones.
2671 ac_site_file1=NONE
2672 ac_site_file2=NONE
2673 if test -n "$CONFIG_SITE"; then
2674 # We do not want a PATH search for config.site.
2675 case $CONFIG_SITE in #((
2676 -*) ac_site_file1=./$CONFIG_SITE;;
2677 */*) ac_site_file1=$CONFIG_SITE;;
2678 *) ac_site_file1=./$CONFIG_SITE;;
2679 esac
2680 elif test "x$prefix" != xNONE; then
2681 ac_site_file1=$prefix/share/config.site
2682 ac_site_file2=$prefix/etc/config.site
2683 else
2684 ac_site_file1=$ac_default_prefix/share/config.site
2685 ac_site_file2=$ac_default_prefix/etc/config.site
2687 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2689 test "x$ac_site_file" = xNONE && continue
2690 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2692 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2693 sed 's/^/| /' "$ac_site_file" >&5
2694 . "$ac_site_file" \
2695 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 as_fn_error $? "failed to load site script $ac_site_file
2698 See \`config.log' for more details" "$LINENO" 5; }
2700 done
2702 if test -r "$cache_file"; then
2703 # Some versions of bash will fail to source /dev/null (special files
2704 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2705 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2707 $as_echo "$as_me: loading cache $cache_file" >&6;}
2708 case $cache_file in
2709 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2710 *) . "./$cache_file";;
2711 esac
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2715 $as_echo "$as_me: creating cache $cache_file" >&6;}
2716 >$cache_file
2719 # Check that the precious variables saved in the cache have kept the same
2720 # value.
2721 ac_cache_corrupted=false
2722 for ac_var in $ac_precious_vars; do
2723 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2724 eval ac_new_set=\$ac_env_${ac_var}_set
2725 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2726 eval ac_new_val=\$ac_env_${ac_var}_value
2727 case $ac_old_set,$ac_new_set in
2728 set,)
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2730 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2731 ac_cache_corrupted=: ;;
2732 ,set)
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2734 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2735 ac_cache_corrupted=: ;;
2736 ,);;
2738 if test "x$ac_old_val" != "x$ac_new_val"; then
2739 # differences in whitespace do not lead to failure.
2740 ac_old_val_w=`echo x $ac_old_val`
2741 ac_new_val_w=`echo x $ac_new_val`
2742 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2744 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2745 ac_cache_corrupted=:
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2748 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2749 eval $ac_var=\$ac_old_val
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2752 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2754 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2755 fi;;
2756 esac
2757 # Pass precious variables to config.status.
2758 if test "$ac_new_set" = set; then
2759 case $ac_new_val in
2760 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2761 *) ac_arg=$ac_var=$ac_new_val ;;
2762 esac
2763 case " $ac_configure_args " in
2764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2765 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2766 esac
2768 done
2769 if $ac_cache_corrupted; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2773 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2774 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2776 ## -------------------- ##
2777 ## Main body of script. ##
2778 ## -------------------- ##
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 ac_aux_dir=
2790 for ac_dir in build-aux "$srcdir"/build-aux; do
2791 if test -f "$ac_dir/install-sh"; then
2792 ac_aux_dir=$ac_dir
2793 ac_install_sh="$ac_aux_dir/install-sh -c"
2794 break
2795 elif test -f "$ac_dir/install.sh"; then
2796 ac_aux_dir=$ac_dir
2797 ac_install_sh="$ac_aux_dir/install.sh -c"
2798 break
2799 elif test -f "$ac_dir/shtool"; then
2800 ac_aux_dir=$ac_dir
2801 ac_install_sh="$ac_aux_dir/shtool install -c"
2802 break
2804 done
2805 if test -z "$ac_aux_dir"; then
2806 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2809 # These three variables are undocumented and unsupported,
2810 # and are intended to be withdrawn in a future Autoconf release.
2811 # They can cause serious problems if a builder's source tree is in a directory
2812 # whose full name contains unusual characters.
2813 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2814 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2815 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2820 if test "x$srcdir" = x. && test "x$enable_build_in_source_tree" != xyes; then
2821 rm -rf config.log
2822 as_fn_error $? "Configuring and building TeX Live in the source tree
2823 is strongly discouraged. If you really want to do that, you must
2824 specify the configure option \`--enable-build-in-source-tree', but
2825 then do not ask for help -- you have been warned." "$LINENO" 5
2828 # Make sure we can run config.sub.
2829 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2830 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2833 $as_echo_n "checking build system type... " >&6; }
2834 if ${ac_cv_build+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 ac_build_alias=$build_alias
2838 test "x$ac_build_alias" = x &&
2839 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2840 test "x$ac_build_alias" = x &&
2841 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2842 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2847 $as_echo "$ac_cv_build" >&6; }
2848 case $ac_cv_build in
2849 *-*-*) ;;
2850 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2851 esac
2852 build=$ac_cv_build
2853 ac_save_IFS=$IFS; IFS='-'
2854 set x $ac_cv_build
2855 shift
2856 build_cpu=$1
2857 build_vendor=$2
2858 shift; shift
2859 # Remember, the first character of IFS is used to create $*,
2860 # except with old shells:
2861 build_os=$*
2862 IFS=$ac_save_IFS
2863 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2867 $as_echo_n "checking host system type... " >&6; }
2868 if ${ac_cv_host+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test "x$host_alias" = x; then
2872 ac_cv_host=$ac_cv_build
2873 else
2874 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2875 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2880 $as_echo "$ac_cv_host" >&6; }
2881 case $ac_cv_host in
2882 *-*-*) ;;
2883 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2884 esac
2885 host=$ac_cv_host
2886 ac_save_IFS=$IFS; IFS='-'
2887 set x $ac_cv_host
2888 shift
2889 host_cpu=$1
2890 host_vendor=$2
2891 shift; shift
2892 # Remember, the first character of IFS is used to create $*,
2893 # except with old shells:
2894 host_os=$*
2895 IFS=$ac_save_IFS
2896 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2899 # Check whether --enable-missing was given.
2900 if test "${enable_missing+set}" = set; then :
2901 enableval=$enable_missing;
2904 # Expand $ac_aux_dir to an absolute path.
2905 am_aux_dir=`cd "$ac_aux_dir" && pwd`
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
3759 # Check whether --enable-all-pkgs was given.
3760 if test "${enable_all_pkgs+set}" = set; then :
3761 enableval=$enable_all_pkgs;
3763 test "x$enable_all_pkgs" = xno || enable_all_pkgs=yes
3764 # Check whether --enable-native-texlive-build was given.
3765 if test "${enable_native_texlive_build+set}" = set; then :
3766 enableval=$enable_native_texlive_build;
3768 case $enable_native_texlive_build in #(
3769 yes | no) :
3770 : ;; #(
3771 *) :
3772 enable_native_texlive_build=yes
3773 ac_configure_args="$ac_configure_args '--enable-native-texlive-build'" ;;
3774 esac
3775 case $enable_largefile in #(
3776 yes | no) :
3777 : ;; #(
3778 *) :
3779 enable_largefile=yes
3780 ac_configure_args="$ac_configure_args '--enable-largefile'" ;;
3781 esac
3782 case $enable_silent_rules in #(
3783 yes | no) :
3784 : ;; #(
3785 *) :
3786 enable_silent_rules=no
3787 ac_configure_args="$ac_configure_args '--disable-silent-rules'" ;;
3788 esac
3789 case $enable_multiplatform in #(
3790 yes | no) :
3791 : ;; #(
3792 *) :
3793 enable_multiplatform=$enable_native_texlive_build
3794 ac_configure_args="$ac_configure_args '--enable-multiplatform=$enable_native_texlive_build'" ;;
3795 esac
3796 case $enable_cxx_runtime_hack in #(
3797 yes | no) :
3798 : ;; #(
3799 *) :
3800 enable_cxx_runtime_hack=$enable_native_texlive_build
3801 ac_configure_args="$ac_configure_args '--enable-cxx-runtime-hack=$enable_native_texlive_build'" ;;
3802 esac
3803 case $enable_libtool_hack in #(
3804 yes | no) :
3805 : ;; #(
3806 *) :
3807 case $host_os in #(
3808 do-not-match) :
3809 enable_libtool_hack=no ;; #(
3810 *) :
3811 enable_libtool_hack=yes ;;
3812 esac
3813 ac_configure_args="$ac_configure_args '--enable-libtool-hack=$enable_libtool_hack'" ;;
3814 esac
3815 case $enable_shared in #(
3816 no) :
3817 : ;; #(
3818 yes ) :
3819 if test "x$enable_native_texlive_build" = xyes; then :
3820 as_fn_error $? "you can not use a shared Kpathsea library for a native TeX Live build" "$LINENO" 5
3821 fi ;; #(
3822 *) :
3823 enable_shared=no
3824 ac_configure_args="$ac_configure_args '--disable-shared'" ;;
3825 esac
3826 case $enable_texlive_build in #(
3827 yes) :
3828 : ;; #(
3829 no) :
3830 as_fn_error $? "you can not configure the TeX Live tree with \`--disable-texlive-build'" "$LINENO" 5 ;; #(
3831 *) :
3832 enable_texlive_build=yes
3833 ac_configure_args="$ac_configure_args '--enable-texlive-build'" ;;
3834 esac
3835 # Check whether --enable-multiplatform was given.
3836 if test "${enable_multiplatform+set}" = set; then :
3837 enableval=$enable_multiplatform;
3839 if test "x$enable_multiplatform" = xyes; then
3840 if test "x$bindir" = 'x${exec_prefix}/bin'; then
3841 bindir="$bindir/${host_alias-$host}"
3842 ac_configure_args="$ac_configure_args '--bindir=$bindir'"
3844 if test "x$libdir" = 'x${exec_prefix}/lib'; then
3845 libdir="$libdir/${host_alias-$host}"
3846 ac_configure_args="$ac_configure_args '--libdir=$libdir'"
3850 # Check whether --enable-cxx-runtime-hack was given.
3851 if test "${enable_cxx_runtime_hack+set}" = set; then :
3852 enableval=$enable_cxx_runtime_hack;
3855 # Check whether --enable-libtool-hack was given.
3856 if test "${enable_libtool_hack+set}" = set; then :
3857 enableval=$enable_libtool_hack;
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
3864 $as_echo_n "checking for native WIN32 or MINGW32... " >&6; }
3865 if ${kpse_cv_have_win32+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870 #ifndef WIN32
3871 choke me
3872 #endif
3874 main ()
3878 return 0;
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #ifndef __MINGW32__
3885 choke me
3886 #endif
3888 main ()
3892 return 0;
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896 kpse_cv_have_win32=mingw32
3897 else
3898 kpse_cv_have_win32=native
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 else
3902 kpse_cv_have_win32=no
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
3907 $as_echo "$kpse_cv_have_win32" >&6; }
3909 case $with_x:$kpse_cv_have_win32 in #(
3910 yes:no | no:*) :
3911 : ;; #(
3912 yes:*) :
3913 as_fn_error $? "you can not use \`--with-x' for WIN32" "$LINENO" 5 ;; #(
3914 *:no) :
3915 with_x=yes
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--with-x'" >&5
3917 $as_echo "$as_me: Assuming \`--with-x'" >&6;}
3918 ac_configure_args="$ac_configure_args '--with-x'" ;; #(
3919 *) :
3920 with_x=no
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: WIN32 -> \`--without-x'" >&5
3922 $as_echo "$as_me: WIN32 -> \`--without-x'" >&6;}
3923 ac_configure_args="$ac_configure_args '--without-x'" ;;
3924 esac
3925 case $enable_luajittex in #(
3926 yes | no) :
3927 : ;; #(
3928 *) :
3929 case $host in #(
3930 alpha* | sparc* | x86_64-*-cygwin | powerpc-*-darwin* ) :
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-luajittex'" >&5
3932 $as_echo "$as_me: $host -> \`--disable-luajittex'" >&6;}
3933 ac_configure_args="$ac_configure_args '--disable-luajittex'" ;; #(
3934 *) :
3936 esac ;;
3937 esac
3939 ## texk/web2c/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/web2c/
3940 ## configure options and TL libraries required for web2c
3941 # Check whether --enable-web2c was given.
3942 if test "${enable_web2c+set}" = set; then :
3943 enableval=$enable_web2c;
3945 case $enable_web2c in #(
3946 yes|no) :
3947 ;; #(
3948 *) :
3950 enable_web2c=$enable_all_pkgs
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-web2c=$enable_web2c'" >&5
3952 $as_echo "$as_me: Assuming \`--enable-web2c=$enable_web2c'" >&6;}
3953 ac_configure_args="$ac_configure_args '--enable-web2c=$enable_web2c'"
3955 esac
3957 test "x$enable_web2c" = xno || {
3958 need_kpathsea=yes
3959 need_zlib=yes
3962 ## texk/web2c/ac/web2c.ac: configure.ac fragment for the TeX Live subdirectory texk/web2c/
3963 ## configure options for TeX and MF
3965 # Check whether --with-banner-add was given.
3966 if test "${with_banner_add+set}" = set; then :
3967 withval=$with_banner_add;
3970 # Check whether --with-editor was given.
3971 if test "${with_editor+set}" = set; then :
3972 withval=$with_editor;
3974 # Check whether --enable-auto-core was given.
3975 if test "${enable_auto_core+set}" = set; then :
3976 enableval=$enable_auto_core;
3978 # Check whether --enable-dump-share was given.
3979 if test "${enable_dump_share+set}" = set; then :
3980 enableval=$enable_dump_share;
3982 ## configure options for TeX
3983 # Check whether --enable-ipc was given.
3984 if test "${enable_ipc+set}" = set; then :
3985 enableval=$enable_ipc;
3987 # Check whether --enable-tex was given.
3988 if test "${enable_tex+set}" = set; then :
3989 enableval=$enable_tex;
3991 case $enable_tex in #(
3992 yes | no) :
3993 ;; #(
3994 *) :
3995 enable_tex=yes ;;
3996 esac
3998 # Check whether --enable-tex-synctex was given.
3999 if test "${enable_tex_synctex+set}" = set; then :
4000 enableval=$enable_tex_synctex;
4002 # Check whether --enable-etex was given.
4003 if test "${enable_etex+set}" = set; then :
4004 enableval=$enable_etex;
4006 case $enable_etex in #(
4007 yes | no) :
4008 ;; #(
4009 *) :
4010 enable_etex=no ;;
4011 esac
4013 # Check whether --enable-etex-synctex was given.
4014 if test "${enable_etex_synctex+set}" = set; then :
4015 enableval=$enable_etex_synctex;
4017 # Check whether --enable-ptex was given.
4018 if test "${enable_ptex+set}" = set; then :
4019 enableval=$enable_ptex;
4021 case $enable_ptex in #(
4022 yes | no) :
4023 ;; #(
4024 *) :
4025 enable_ptex=yes ;;
4026 esac
4028 # Check whether --enable-ptex-synctex was given.
4029 if test "${enable_ptex_synctex+set}" = set; then :
4030 enableval=$enable_ptex_synctex;
4033 test "x$enable_web2c:$enable_ptex" = xyes:yes && {
4034 need_ptexenc=yes
4036 # Check whether --enable-eptex was given.
4037 if test "${enable_eptex+set}" = set; then :
4038 enableval=$enable_eptex;
4040 case $enable_eptex in #(
4041 yes | no) :
4042 ;; #(
4043 *) :
4044 enable_eptex=yes ;;
4045 esac
4047 # Check whether --enable-eptex-synctex was given.
4048 if test "${enable_eptex_synctex+set}" = set; then :
4049 enableval=$enable_eptex_synctex;
4052 test "x$enable_web2c:$enable_eptex" = xyes:yes && {
4053 need_ptexenc=yes
4055 # Check whether --enable-uptex was given.
4056 if test "${enable_uptex+set}" = set; then :
4057 enableval=$enable_uptex;
4059 case $enable_uptex in #(
4060 yes | no) :
4061 ;; #(
4062 *) :
4063 enable_uptex=yes ;;
4064 esac
4066 # Check whether --enable-uptex-synctex was given.
4067 if test "${enable_uptex_synctex+set}" = set; then :
4068 enableval=$enable_uptex_synctex;
4071 test "x$enable_web2c:$enable_uptex" = xyes:yes && {
4072 need_ptexenc=yes
4074 # Check whether --enable-euptex was given.
4075 if test "${enable_euptex+set}" = set; then :
4076 enableval=$enable_euptex;
4078 case $enable_euptex in #(
4079 yes | no) :
4080 ;; #(
4081 *) :
4082 enable_euptex=yes ;;
4083 esac
4085 # Check whether --enable-euptex-synctex was given.
4086 if test "${enable_euptex_synctex+set}" = set; then :
4087 enableval=$enable_euptex_synctex;
4090 test "x$enable_web2c:$enable_euptex" = xyes:yes && {
4091 need_ptexenc=yes
4093 # Check whether --enable-aleph was given.
4094 if test "${enable_aleph+set}" = set; then :
4095 enableval=$enable_aleph;
4097 case $enable_aleph in #(
4098 yes | no) :
4099 ;; #(
4100 *) :
4101 enable_aleph=yes ;;
4102 esac
4103 # Check whether --enable-pdftex was given.
4104 if test "${enable_pdftex+set}" = set; then :
4105 enableval=$enable_pdftex;
4107 case $enable_pdftex in #(
4108 yes | no) :
4109 ;; #(
4110 *) :
4111 enable_pdftex=yes ;;
4112 esac
4114 # Check whether --enable-pdftex-synctex was given.
4115 if test "${enable_pdftex_synctex+set}" = set; then :
4116 enableval=$enable_pdftex_synctex;
4119 test "x$enable_web2c:$enable_pdftex" = xyes:yes && {
4120 need_xpdf=yes
4121 need_libpng=yes
4123 # Check whether --enable-luatex was given.
4124 if test "${enable_luatex+set}" = set; then :
4125 enableval=$enable_luatex;
4127 case $enable_luatex in #(
4128 yes | no) :
4129 ;; #(
4130 *) :
4131 enable_luatex=yes ;;
4132 esac
4134 test "x$enable_web2c:$enable_luatex" = xyes:yes && {
4135 need_poppler=yes
4136 need_mpfr=yes
4137 need_cairo=yes
4138 need_libpng=yes
4139 need_zziplib=yes
4140 need_lua52=yes
4142 # Check whether --enable-luajittex was given.
4143 if test "${enable_luajittex+set}" = set; then :
4144 enableval=$enable_luajittex;
4146 case $enable_luajittex in #(
4147 yes | no) :
4148 ;; #(
4149 *) :
4150 enable_luajittex=yes ;;
4151 esac
4153 test "x$enable_web2c:$enable_luajittex" = xyes:yes && {
4154 need_poppler=yes
4155 need_mpfr=yes
4156 need_cairo=yes
4157 need_libpng=yes
4158 need_zziplib=yes
4159 need_luajit=yes
4161 # Check whether --enable-mp was given.
4162 if test "${enable_mp+set}" = set; then :
4163 enableval=$enable_mp;
4165 case $enable_mp in #(
4166 yes | no) :
4167 ;; #(
4168 *) :
4169 enable_mp=yes ;;
4170 esac
4172 test "x$enable_web2c:$enable_mp" = xyes:yes && {
4173 need_mpfr=yes
4174 need_cairo=yes
4175 need_libpng=yes
4177 # Check whether --enable-pmp was given.
4178 if test "${enable_pmp+set}" = set; then :
4179 enableval=$enable_pmp;
4181 case $enable_pmp in #(
4182 yes | no) :
4183 ;; #(
4184 *) :
4185 enable_pmp=yes ;;
4186 esac
4188 test "x$enable_web2c:$enable_pmp" = xyes:yes && {
4189 need_mpfr=yes
4190 need_cairo=yes
4191 need_libpng=yes
4192 need_ptexenc=yes
4194 # Check whether --enable-upmp was given.
4195 if test "${enable_upmp+set}" = set; then :
4196 enableval=$enable_upmp;
4198 case $enable_upmp in #(
4199 yes | no) :
4200 ;; #(
4201 *) :
4202 enable_upmp=yes ;;
4203 esac
4205 test "x$enable_web2c:$enable_upmp" = xyes:yes && {
4206 need_mpfr=yes
4207 need_cairo=yes
4208 need_libpng=yes
4209 need_ptexenc=yes
4211 # Check whether --enable-xetex was given.
4212 if test "${enable_xetex+set}" = set; then :
4213 enableval=$enable_xetex;
4215 case $enable_xetex in #(
4216 yes | no) :
4217 ;; #(
4218 *) :
4219 enable_xetex=yes ;;
4220 esac
4222 # Check whether --enable-xetex-synctex was given.
4223 if test "${enable_xetex_synctex+set}" = set; then :
4224 enableval=$enable_xetex_synctex;
4227 test "x$enable_web2c:$enable_xetex" = xyes:yes && {
4228 need_poppler=yes
4229 need_libpng=yes
4230 need_freetype2=yes
4231 need_teckit=yes
4232 need_harfbuzz=yes
4234 ## configure options for MF
4235 # Check whether --enable-mf was given.
4236 if test "${enable_mf+set}" = set; then :
4237 enableval=$enable_mf;
4239 case $enable_mf in #(
4240 yes | no) :
4241 ;; #(
4242 *) :
4243 enable_mf=yes ;;
4244 esac
4246 # Check whether --enable-mf-nowin was given.
4247 if test "${enable_mf_nowin+set}" = set; then :
4248 enableval=$enable_mf_nowin;
4251 # Check whether --with-mf-x-toolkit was given.
4252 if test "${with_mf_x_toolkit+set}" = set; then :
4253 withval=$with_mf_x_toolkit;
4255 # Check whether --enable-epsfwin was given.
4256 if test "${enable_epsfwin+set}" = set; then :
4257 enableval=$enable_epsfwin;
4259 # Check whether --enable-hp2627win was given.
4260 if test "${enable_hp2627win+set}" = set; then :
4261 enableval=$enable_hp2627win;
4263 # Check whether --enable-mftalkwin was given.
4264 if test "${enable_mftalkwin+set}" = set; then :
4265 enableval=$enable_mftalkwin;
4267 # Check whether --enable-nextwin was given.
4268 if test "${enable_nextwin+set}" = set; then :
4269 enableval=$enable_nextwin;
4271 # Check whether --enable-regiswin was given.
4272 if test "${enable_regiswin+set}" = set; then :
4273 enableval=$enable_regiswin;
4275 # Check whether --enable-suntoolswin was given.
4276 if test "${enable_suntoolswin+set}" = set; then :
4277 enableval=$enable_suntoolswin;
4279 # Check whether --enable-tektronixwin was given.
4280 if test "${enable_tektronixwin+set}" = set; then :
4281 enableval=$enable_tektronixwin;
4283 # Check whether --enable-unitermwin was given.
4284 if test "${enable_unitermwin+set}" = set; then :
4285 enableval=$enable_unitermwin;
4287 ## configure options for WEB programs
4288 # Check whether --enable-web-progs was given.
4289 if test "${enable_web_progs+set}" = set; then :
4290 enableval=$enable_web_progs;
4292 ## configure option for the SyncTeX library and tool
4293 # Check whether --enable-synctex was given.
4294 if test "${enable_synctex+set}" = set; then :
4295 enableval=$enable_synctex;
4299 ## texk/texlive/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/texlive/
4300 ## configure options and TL libraries required for texlive
4301 # Check whether --enable-texlive was given.
4302 if test "${enable_texlive+set}" = set; then :
4303 enableval=$enable_texlive;
4305 case $enable_texlive in #(
4306 yes|no) :
4307 ;; #(
4308 *) :
4310 enable_texlive=$enable_all_pkgs
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-texlive=$enable_texlive'" >&5
4312 $as_echo "$as_me: Assuming \`--enable-texlive=$enable_texlive'" >&6;}
4313 ac_configure_args="$ac_configure_args '--enable-texlive=$enable_texlive'"
4315 esac
4317 ## texk/texlive/ac/texlive.ac: configure.ac fragment for the TeX Live subdirectory texk/texlive/
4318 ## configure options for texlive
4319 # Check whether --enable-linked-scripts was given.
4320 if test "${enable_linked_scripts+set}" = set; then :
4321 enableval=$enable_linked_scripts;
4325 ## libs/zziplib/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/zziplib/
4326 ## configure options and TL libraries required for zziplib
4328 # Check whether --with-system-zziplib was given.
4329 if test "${with_system_zziplib+set}" = set; then :
4330 withval=$with_system_zziplib;
4332 if test "x$with_system_zziplib" = x; then
4333 if test -f $srcdir/libs/zziplib/configure; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`zziplib' headers and library from TL tree" >&5
4335 $as_echo "$as_me: Assuming \`zziplib' headers and library from TL tree" >&6;}
4336 with_system_zziplib=no
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`zziplib' headers and library" >&5
4339 $as_echo "$as_me: Assuming installed \`zziplib' headers and library" >&6;}
4340 with_system_zziplib=yes
4342 ac_configure_args="$ac_configure_args '--with-system-zziplib=$with_system_zziplib'"
4343 elif test "x$with_system_zziplib" = xyes; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`zziplib' headers and library" >&5
4345 $as_echo "$as_me: Using installed \`zziplib' headers and library" >&6;}
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`zziplib' headers and library from TL tree" >&5
4348 $as_echo "$as_me: Using \`zziplib' headers and library from TL tree" >&6;}
4349 if test "x$with_system_zziplib" != xno; then
4350 with_system_zziplib=no
4351 ac_configure_args="$ac_configure_args '--without-system-zziplib'"
4354 if test "x$with_system_zziplib" = xyes; then
4355 if test "x$with_system_zlib" = x; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`zlib' headers and library" >&5
4357 $as_echo "$as_me: -> installed \`zlib' headers and library" >&6;}
4358 with_system_zlib=yes
4359 ac_configure_args="$ac_configure_args '--with-system-zlib'"
4360 elif test "x$with_system_zlib" != xyes; then
4361 as_fn_error $? "Sorry, \`--with-system-zziplib' requires \`--with-system-zlib'" "$LINENO" 5
4365 test "x$need_zziplib" = xyes && {
4366 need_zlib=yes
4369 ## libs/poppler/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/poppler/
4370 ## configure options and TL libraries required for poppler
4372 # Check whether --with-system-poppler was given.
4373 if test "${with_system_poppler+set}" = set; then :
4374 withval=$with_system_poppler;
4376 if test "x$with_system_poppler" = x; then
4377 if test -f $srcdir/libs/poppler/configure; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`poppler' headers and library from TL tree" >&5
4379 $as_echo "$as_me: Assuming \`poppler' headers and library from TL tree" >&6;}
4380 with_system_poppler=no
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`poppler' headers and library" >&5
4383 $as_echo "$as_me: Assuming installed \`poppler' headers and library" >&6;}
4384 with_system_poppler=yes
4386 ac_configure_args="$ac_configure_args '--with-system-poppler=$with_system_poppler'"
4387 elif test "x$with_system_poppler" = xyes; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`poppler' headers and library" >&5
4389 $as_echo "$as_me: Using installed \`poppler' headers and library" >&6;}
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`poppler' headers and library from TL tree" >&5
4392 $as_echo "$as_me: Using \`poppler' headers and library from TL tree" >&6;}
4393 if test "x$with_system_poppler" != xno; then
4394 with_system_poppler=no
4395 ac_configure_args="$ac_configure_args '--without-system-poppler'"
4398 if test "x$with_system_poppler" = xyes; then
4399 if test "x$with_system_zlib" = x; then
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`zlib' headers and library" >&5
4401 $as_echo "$as_me: -> installed \`zlib' headers and library" >&6;}
4402 with_system_zlib=yes
4403 ac_configure_args="$ac_configure_args '--with-system-zlib'"
4404 elif test "x$with_system_zlib" != xyes; then
4405 as_fn_error $? "Sorry, \`--with-system-poppler' requires \`--with-system-zlib'" "$LINENO" 5
4409 test "x$need_poppler" = xyes && {
4410 need_zlib=yes
4413 ## libs/mpfr/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/mpfr/
4414 ## configure options and TL libraries required for mpfr
4416 # Check whether --with-system-mpfr was given.
4417 if test "${with_system_mpfr+set}" = set; then :
4418 withval=$with_system_mpfr;
4421 # Check whether --with-mpfr-includes was given.
4422 if test "${with_mpfr_includes+set}" = set; then :
4423 withval=$with_mpfr_includes;
4426 # Check whether --with-mpfr-libdir was given.
4427 if test "${with_mpfr_libdir+set}" = set; then :
4428 withval=$with_mpfr_libdir;
4430 if test "x$with_system_mpfr" = x; then
4431 if test -f $srcdir/libs/mpfr/configure; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`mpfr' headers and library from TL tree" >&5
4433 $as_echo "$as_me: Assuming \`mpfr' headers and library from TL tree" >&6;}
4434 with_system_mpfr=no
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`mpfr' headers and library" >&5
4437 $as_echo "$as_me: Assuming installed \`mpfr' headers and library" >&6;}
4438 with_system_mpfr=yes
4440 ac_configure_args="$ac_configure_args '--with-system-mpfr=$with_system_mpfr'"
4441 elif test "x$with_system_mpfr" = xyes; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`mpfr' headers and library" >&5
4443 $as_echo "$as_me: Using installed \`mpfr' headers and library" >&6;}
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`mpfr' headers and library from TL tree" >&5
4446 $as_echo "$as_me: Using \`mpfr' headers and library from TL tree" >&6;}
4447 if test "x$with_system_mpfr" != xno; then
4448 with_system_mpfr=no
4449 ac_configure_args="$ac_configure_args '--without-system-mpfr'"
4452 if test "x$with_system_mpfr" = xyes; then
4453 if test "x$with_system_gmp" = x; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`gmp' headers and library" >&5
4455 $as_echo "$as_me: -> installed \`gmp' headers and library" >&6;}
4456 with_system_gmp=yes
4457 ac_configure_args="$ac_configure_args '--with-system-gmp'"
4458 elif test "x$with_system_gmp" != xyes; then
4459 as_fn_error $? "Sorry, \`--with-system-mpfr' requires \`--with-system-gmp'" "$LINENO" 5
4463 test "x$need_mpfr" = xyes && {
4464 need_gmp=yes
4467 ## libs/gmp/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/gmp/
4468 ## configure options and TL libraries required for gmp
4470 # Check whether --with-system-gmp was given.
4471 if test "${with_system_gmp+set}" = set; then :
4472 withval=$with_system_gmp;
4475 # Check whether --with-gmp-includes was given.
4476 if test "${with_gmp_includes+set}" = set; then :
4477 withval=$with_gmp_includes;
4480 # Check whether --with-gmp-libdir was given.
4481 if test "${with_gmp_libdir+set}" = set; then :
4482 withval=$with_gmp_libdir;
4484 if test "x$with_system_gmp" = x; then
4485 if test -f $srcdir/libs/gmp/configure; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`gmp' headers and library from TL tree" >&5
4487 $as_echo "$as_me: Assuming \`gmp' headers and library from TL tree" >&6;}
4488 with_system_gmp=no
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`gmp' headers and library" >&5
4491 $as_echo "$as_me: Assuming installed \`gmp' headers and library" >&6;}
4492 with_system_gmp=yes
4494 ac_configure_args="$ac_configure_args '--with-system-gmp=$with_system_gmp'"
4495 elif test "x$with_system_gmp" = xyes; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`gmp' headers and library" >&5
4497 $as_echo "$as_me: Using installed \`gmp' headers and library" >&6;}
4498 else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`gmp' headers and library from TL tree" >&5
4500 $as_echo "$as_me: Using \`gmp' headers and library from TL tree" >&6;}
4501 if test "x$with_system_gmp" != xno; then
4502 with_system_gmp=no
4503 ac_configure_args="$ac_configure_args '--without-system-gmp'"
4507 ## libs/cairo/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/cairo/
4508 ## configure options and TL libraries required for cairo
4510 # Check whether --with-system-cairo was given.
4511 if test "${with_system_cairo+set}" = set; then :
4512 withval=$with_system_cairo;
4514 if test "x$with_system_cairo" = x; then
4515 if test -f $srcdir/libs/cairo/configure; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`cairo' headers and library from TL tree" >&5
4517 $as_echo "$as_me: Assuming \`cairo' headers and library from TL tree" >&6;}
4518 with_system_cairo=no
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`cairo' headers and library" >&5
4521 $as_echo "$as_me: Assuming installed \`cairo' headers and library" >&6;}
4522 with_system_cairo=yes
4524 ac_configure_args="$ac_configure_args '--with-system-cairo=$with_system_cairo'"
4525 elif test "x$with_system_cairo" = xyes; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`cairo' headers and library" >&5
4527 $as_echo "$as_me: Using installed \`cairo' headers and library" >&6;}
4528 else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`cairo' headers and library from TL tree" >&5
4530 $as_echo "$as_me: Using \`cairo' headers and library from TL tree" >&6;}
4531 if test "x$with_system_cairo" != xno; then
4532 with_system_cairo=no
4533 ac_configure_args="$ac_configure_args '--without-system-cairo'"
4536 if test "x$with_system_cairo" = xyes; then
4537 if test "x$with_system_pixman" = x; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`pixman' headers and library" >&5
4539 $as_echo "$as_me: -> installed \`pixman' headers and library" >&6;}
4540 with_system_pixman=yes
4541 ac_configure_args="$ac_configure_args '--with-system-pixman'"
4542 elif test "x$with_system_pixman" != xyes; then
4543 as_fn_error $? "Sorry, \`--with-system-cairo' requires \`--with-system-pixman'" "$LINENO" 5
4547 test "x$need_cairo" = xyes && {
4548 need_pixman=yes
4551 ## libs/pixman/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/pixman/
4552 ## configure options and TL libraries required for pixman
4554 # Check whether --with-system-pixman was given.
4555 if test "${with_system_pixman+set}" = set; then :
4556 withval=$with_system_pixman;
4558 if test "x$with_system_pixman" = x; then
4559 if test -f $srcdir/libs/pixman/configure; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`pixman' headers and library from TL tree" >&5
4561 $as_echo "$as_me: Assuming \`pixman' headers and library from TL tree" >&6;}
4562 with_system_pixman=no
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`pixman' headers and library" >&5
4565 $as_echo "$as_me: Assuming installed \`pixman' headers and library" >&6;}
4566 with_system_pixman=yes
4568 ac_configure_args="$ac_configure_args '--with-system-pixman=$with_system_pixman'"
4569 elif test "x$with_system_pixman" = xyes; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`pixman' headers and library" >&5
4571 $as_echo "$as_me: Using installed \`pixman' headers and library" >&6;}
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`pixman' headers and library from TL tree" >&5
4574 $as_echo "$as_me: Using \`pixman' headers and library from TL tree" >&6;}
4575 if test "x$with_system_pixman" != xno; then
4576 with_system_pixman=no
4577 ac_configure_args="$ac_configure_args '--without-system-pixman'"
4581 ## libs/libpng/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/libpng/
4582 ## configure options and TL libraries required for libpng
4584 # Check whether --with-system-libpng was given.
4585 if test "${with_system_libpng+set}" = set; then :
4586 withval=$with_system_libpng;
4588 if test "x$with_system_libpng" = x; then
4589 if test -f $srcdir/libs/libpng/configure; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`libpng' headers and library from TL tree" >&5
4591 $as_echo "$as_me: Assuming \`libpng' headers and library from TL tree" >&6;}
4592 with_system_libpng=no
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`libpng' headers and library" >&5
4595 $as_echo "$as_me: Assuming installed \`libpng' headers and library" >&6;}
4596 with_system_libpng=yes
4598 ac_configure_args="$ac_configure_args '--with-system-libpng=$with_system_libpng'"
4599 elif test "x$with_system_libpng" = xyes; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`libpng' headers and library" >&5
4601 $as_echo "$as_me: Using installed \`libpng' headers and library" >&6;}
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`libpng' headers and library from TL tree" >&5
4604 $as_echo "$as_me: Using \`libpng' headers and library from TL tree" >&6;}
4605 if test "x$with_system_libpng" != xno; then
4606 with_system_libpng=no
4607 ac_configure_args="$ac_configure_args '--without-system-libpng'"
4610 if test "x$with_system_libpng" = xyes; then
4611 if test "x$with_system_zlib" = x; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`zlib' headers and library" >&5
4613 $as_echo "$as_me: -> installed \`zlib' headers and library" >&6;}
4614 with_system_zlib=yes
4615 ac_configure_args="$ac_configure_args '--with-system-zlib'"
4616 elif test "x$with_system_zlib" != xyes; then
4617 as_fn_error $? "Sorry, \`--with-system-libpng' requires \`--with-system-zlib'" "$LINENO" 5
4621 test "x$need_libpng" = xyes && {
4622 need_zlib=yes
4625 ## libs/luajit/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/luajit/
4626 ## configure options and TL libraries required for luajit
4628 ## libs/lua52/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/lua52/
4629 ## configure options and TL libraries required for lua52
4631 ## libs/zlib/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/zlib/
4632 ## configure options and TL libraries required for zlib
4634 # Check whether --with-system-zlib was given.
4635 if test "${with_system_zlib+set}" = set; then :
4636 withval=$with_system_zlib;
4639 # Check whether --with-zlib-includes was given.
4640 if test "${with_zlib_includes+set}" = set; then :
4641 withval=$with_zlib_includes;
4644 # Check whether --with-zlib-libdir was given.
4645 if test "${with_zlib_libdir+set}" = set; then :
4646 withval=$with_zlib_libdir;
4648 if test "x$with_system_zlib" = x; then
4649 if test -f $srcdir/libs/zlib/configure; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`zlib' headers and library from TL tree" >&5
4651 $as_echo "$as_me: Assuming \`zlib' headers and library from TL tree" >&6;}
4652 with_system_zlib=no
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`zlib' headers and library" >&5
4655 $as_echo "$as_me: Assuming installed \`zlib' headers and library" >&6;}
4656 with_system_zlib=yes
4658 ac_configure_args="$ac_configure_args '--with-system-zlib=$with_system_zlib'"
4659 elif test "x$with_system_zlib" = xyes; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`zlib' headers and library" >&5
4661 $as_echo "$as_me: Using installed \`zlib' headers and library" >&6;}
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`zlib' headers and library from TL tree" >&5
4664 $as_echo "$as_me: Using \`zlib' headers and library from TL tree" >&6;}
4665 if test "x$with_system_zlib" != xno; then
4666 with_system_zlib=no
4667 ac_configure_args="$ac_configure_args '--without-system-zlib'"
4672 ## texk/kpathsea/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/kpathsea/
4673 ## configure options and TL libraries required for kpathsea
4675 # Check whether --with-system-kpathsea was given.
4676 if test "${with_system_kpathsea+set}" = set; then :
4677 withval=$with_system_kpathsea;
4679 if test "x$with_system_kpathsea" = x; then
4680 if test -f $srcdir/texk/kpathsea/configure; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`kpathsea' headers and library from TL tree" >&5
4682 $as_echo "$as_me: Assuming \`kpathsea' headers and library from TL tree" >&6;}
4683 with_system_kpathsea=no
4684 else
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`kpathsea' headers and library" >&5
4686 $as_echo "$as_me: Assuming installed \`kpathsea' headers and library" >&6;}
4687 with_system_kpathsea=yes
4689 ac_configure_args="$ac_configure_args '--with-system-kpathsea=$with_system_kpathsea'"
4690 elif test "x$with_system_kpathsea" = xyes; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`kpathsea' headers and library" >&5
4692 $as_echo "$as_me: Using installed \`kpathsea' headers and library" >&6;}
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`kpathsea' headers and library from TL tree" >&5
4695 $as_echo "$as_me: Using \`kpathsea' headers and library from TL tree" >&6;}
4696 if test "x$with_system_kpathsea" != xno; then
4697 with_system_kpathsea=no
4698 ac_configure_args="$ac_configure_args '--without-system-kpathsea'"
4702 ## texk/kpathsea/ac/mktex.ac: configure.ac fragment for the TeX Live
4703 ## subdirectory texk/kpathsea.
4704 ## configure defaults for mktexfmt & Co.
4705 # Check whether --enable-mktexmf-default was given.
4706 if test "${enable_mktexmf_default+set}" = set; then :
4707 enableval=$enable_mktexmf_default;
4709 # Check whether --enable-mktexpk-default was given.
4710 if test "${enable_mktexpk_default+set}" = set; then :
4711 enableval=$enable_mktexpk_default;
4713 # Check whether --enable-mktextfm-default was given.
4714 if test "${enable_mktextfm_default+set}" = set; then :
4715 enableval=$enable_mktextfm_default;
4717 # Check whether --enable-mkocp-default was given.
4718 if test "${enable_mkocp_default+set}" = set; then :
4719 enableval=$enable_mkocp_default;
4721 # Check whether --enable-mkofm-default was given.
4722 if test "${enable_mkofm_default+set}" = set; then :
4723 enableval=$enable_mkofm_default;
4725 # Check whether --enable-mktexfmt-default was given.
4726 if test "${enable_mktexfmt_default+set}" = set; then :
4727 enableval=$enable_mktexfmt_default;
4729 # Check whether --enable-mktextex-default was given.
4730 if test "${enable_mktextex_default+set}" = set; then :
4731 enableval=$enable_mktextex_default;
4737 am__api_version='1.15'
4739 # Find a good install program. We prefer a C program (faster),
4740 # so one script is as good as another. But avoid the broken or
4741 # incompatible versions:
4742 # SysV /etc/install, /usr/sbin/install
4743 # SunOS /usr/etc/install
4744 # IRIX /sbin/install
4745 # AIX /bin/install
4746 # AmigaOS /C/install, which installs bootblocks on floppy discs
4747 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4748 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4749 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4750 # OS/2's system install, which has a completely different semantic
4751 # ./install, which can be erroneously created by make from ./install.sh.
4752 # Reject install programs that cannot install multiple files.
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4754 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4755 if test -z "$INSTALL"; then
4756 if ${ac_cv_path_install+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 # Account for people who put trailing slashes in PATH elements.
4765 case $as_dir/ in #((
4766 ./ | .// | /[cC]/* | \
4767 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4768 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4769 /usr/ucb/* ) ;;
4771 # OSF1 and SCO ODT 3.0 have their own names for install.
4772 # Don't use installbsd from OSF since it installs stuff as root
4773 # by default.
4774 for ac_prog in ginstall scoinst install; do
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4777 if test $ac_prog = install &&
4778 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4779 # AIX install. It has an incompatible calling convention.
4781 elif test $ac_prog = install &&
4782 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4783 # program-specific install script used by HP pwplus--don't use.
4785 else
4786 rm -rf conftest.one conftest.two conftest.dir
4787 echo one > conftest.one
4788 echo two > conftest.two
4789 mkdir conftest.dir
4790 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4791 test -s conftest.one && test -s conftest.two &&
4792 test -s conftest.dir/conftest.one &&
4793 test -s conftest.dir/conftest.two
4794 then
4795 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4796 break 3
4800 done
4801 done
4803 esac
4805 done
4806 IFS=$as_save_IFS
4808 rm -rf conftest.one conftest.two conftest.dir
4811 if test "${ac_cv_path_install+set}" = set; then
4812 INSTALL=$ac_cv_path_install
4813 else
4814 # As a last resort, use the slow shell script. Don't cache a
4815 # value for INSTALL within a source directory, because that will
4816 # break other packages using the cache if that directory is
4817 # removed, or if the value is a relative name.
4818 INSTALL=$ac_install_sh
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4822 $as_echo "$INSTALL" >&6; }
4824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4825 # It thinks the first close brace ends the variable substitution.
4826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4833 $as_echo_n "checking whether build environment is sane... " >&6; }
4834 # Reject unsafe characters in $srcdir or the absolute working directory
4835 # name. Accept space and tab only in the latter.
4836 am_lf='
4838 case `pwd` in
4839 *[\\\"\#\$\&\'\`$am_lf]*)
4840 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4841 esac
4842 case $srcdir in
4843 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4844 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4845 esac
4847 # Do 'set' in a subshell so we don't clobber the current shell's
4848 # arguments. Must try -L first in case configure is actually a
4849 # symlink; some systems play weird games with the mod time of symlinks
4850 # (eg FreeBSD returns the mod time of the symlink's containing
4851 # directory).
4852 if (
4853 am_has_slept=no
4854 for am_try in 1 2; do
4855 echo "timestamp, slept: $am_has_slept" > conftest.file
4856 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4857 if test "$*" = "X"; then
4858 # -L didn't work.
4859 set X `ls -t "$srcdir/configure" conftest.file`
4861 if test "$*" != "X $srcdir/configure conftest.file" \
4862 && test "$*" != "X conftest.file $srcdir/configure"; then
4864 # If neither matched, then we have a broken ls. This can happen
4865 # if, for instance, CONFIG_SHELL is bash and it inherits a
4866 # broken ls alias from the environment. This has actually
4867 # happened. Such a system could not be considered "sane".
4868 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4869 alias in your environment" "$LINENO" 5
4871 if test "$2" = conftest.file || test $am_try -eq 2; then
4872 break
4874 # Just in case.
4875 sleep 1
4876 am_has_slept=yes
4877 done
4878 test "$2" = conftest.file
4880 then
4881 # Ok.
4883 else
4884 as_fn_error $? "newly created file is older than distributed files!
4885 Check your system clock" "$LINENO" 5
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
4889 # If we didn't sleep, we still need to ensure time stamps of config.status and
4890 # generated files are strictly newer.
4891 am_sleep_pid=
4892 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4893 ( sleep 1 ) &
4894 am_sleep_pid=$!
4897 rm -f conftest.file
4899 test "$program_prefix" != NONE &&
4900 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4901 # Use a double $ so make ignores it.
4902 test "$program_suffix" != NONE &&
4903 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4904 # Double any \ or $.
4905 # By default was `s,x,x', remove it if useless.
4906 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4907 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4909 if test x"${MISSING+set}" != xset; then
4910 case $am_aux_dir in
4911 *\ * | *\ *)
4912 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4914 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4915 esac
4917 # Use eval to expand $SHELL
4918 if eval "$MISSING --is-lightweight"; then
4919 am_missing_run="$MISSING "
4920 else
4921 am_missing_run=
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4923 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4926 if test x"${install_sh+set}" != xset; then
4927 case $am_aux_dir in
4928 *\ * | *\ *)
4929 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4931 install_sh="\${SHELL} $am_aux_dir/install-sh"
4932 esac
4935 # Installed binaries are usually stripped using 'strip' when the user
4936 # run "make install-strip". However 'strip' might not be the right
4937 # tool to use in cross-compilation environments, therefore Automake
4938 # will honor the 'STRIP' environment variable to overrule this program.
4939 if test "$cross_compiling" != no; then
4940 if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}strip; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_STRIP+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$STRIP"; then
4949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4968 STRIP=$ac_cv_prog_STRIP
4969 if test -n "$STRIP"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4971 $as_echo "$STRIP" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4979 if test -z "$ac_cv_prog_STRIP"; then
4980 ac_ct_STRIP=$STRIP
4981 # Extract the first word of "strip", so it can be a program name with args.
4982 set dummy strip; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -n "$ac_ct_STRIP"; then
4989 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_ac_ct_STRIP="strip"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5002 done
5003 done
5004 IFS=$as_save_IFS
5008 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5009 if test -n "$ac_ct_STRIP"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5011 $as_echo "$ac_ct_STRIP" >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5017 if test "x$ac_ct_STRIP" = x; then
5018 STRIP=":"
5019 else
5020 case $cross_compiling:$ac_tool_warned in
5021 yes:)
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024 ac_tool_warned=yes ;;
5025 esac
5026 STRIP=$ac_ct_STRIP
5028 else
5029 STRIP="$ac_cv_prog_STRIP"
5033 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5036 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5037 if test -z "$MKDIR_P"; then
5038 if ${ac_cv_path_mkdir+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_prog in mkdir gmkdir; do
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5049 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5050 'mkdir (GNU coreutils) '* | \
5051 'mkdir (coreutils) '* | \
5052 'mkdir (fileutils) '4.1*)
5053 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5054 break 3;;
5055 esac
5056 done
5057 done
5058 done
5059 IFS=$as_save_IFS
5063 test -d ./--version && rmdir ./--version
5064 if test "${ac_cv_path_mkdir+set}" = set; then
5065 MKDIR_P="$ac_cv_path_mkdir -p"
5066 else
5067 # As a last resort, use the slow shell script. Don't cache a
5068 # value for MKDIR_P within a source directory, because that will
5069 # break other packages using the cache if that directory is
5070 # removed, or if the value is a relative name.
5071 MKDIR_P="$ac_install_sh -d"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5075 $as_echo "$MKDIR_P" >&6; }
5077 for ac_prog in gawk mawk nawk awk
5079 # Extract the first word of "$ac_prog", so it can be a program name with args.
5080 set dummy $ac_prog; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if ${ac_cv_prog_AWK+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$AWK"; then
5087 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_AWK="$ac_prog"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5102 IFS=$as_save_IFS
5106 AWK=$ac_cv_prog_AWK
5107 if test -n "$AWK"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5109 $as_echo "$AWK" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5116 test -n "$AWK" && break
5117 done
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5120 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5121 set x ${MAKE-make}
5122 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5123 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 cat >conftest.make <<\_ACEOF
5127 SHELL = /bin/sh
5128 all:
5129 @echo '@@@%%%=$(MAKE)=@@@%%%'
5130 _ACEOF
5131 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5132 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5133 *@@@%%%=?*=@@@%%%*)
5134 eval ac_cv_prog_make_${ac_make}_set=yes;;
5136 eval ac_cv_prog_make_${ac_make}_set=no;;
5137 esac
5138 rm -f conftest.make
5140 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5142 $as_echo "yes" >&6; }
5143 SET_MAKE=
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 SET_MAKE="MAKE=${MAKE-make}"
5150 rm -rf .tst 2>/dev/null
5151 mkdir .tst 2>/dev/null
5152 if test -d .tst; then
5153 am__leading_dot=.
5154 else
5155 am__leading_dot=_
5157 rmdir .tst 2>/dev/null
5159 DEPDIR="${am__leading_dot}deps"
5161 ac_config_commands="$ac_config_commands depfiles"
5164 am_make=${MAKE-make}
5165 cat > confinc << 'END'
5166 am__doit:
5167 @echo this is the am__doit target
5168 .PHONY: am__doit
5170 # If we don't find an include directive, just comment out the code.
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5172 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5173 am__include="#"
5174 am__quote=
5175 _am_result=none
5176 # First try GNU make style include.
5177 echo "include confinc" > confmf
5178 # Ignore all kinds of additional output from 'make'.
5179 case `$am_make -s -f confmf 2> /dev/null` in #(
5180 *the\ am__doit\ target*)
5181 am__include=include
5182 am__quote=
5183 _am_result=GNU
5185 esac
5186 # Now try BSD make style include.
5187 if test "$am__include" = "#"; then
5188 echo '.include "confinc"' > confmf
5189 case `$am_make -s -f confmf 2> /dev/null` in #(
5190 *the\ am__doit\ target*)
5191 am__include=.include
5192 am__quote="\""
5193 _am_result=BSD
5195 esac
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5200 $as_echo "$_am_result" >&6; }
5201 rm -f confinc confmf
5203 # Check whether --enable-dependency-tracking was given.
5204 if test "${enable_dependency_tracking+set}" = set; then :
5205 enableval=$enable_dependency_tracking;
5208 if test "x$enable_dependency_tracking" != xno; then
5209 am_depcomp="$ac_aux_dir/depcomp"
5210 AMDEPBACKSLASH='\'
5211 am__nodep='_no'
5213 if test "x$enable_dependency_tracking" != xno; then
5214 AMDEP_TRUE=
5215 AMDEP_FALSE='#'
5216 else
5217 AMDEP_TRUE='#'
5218 AMDEP_FALSE=
5222 # Check whether --enable-silent-rules was given.
5223 if test "${enable_silent_rules+set}" = set; then :
5224 enableval=$enable_silent_rules;
5227 case $enable_silent_rules in # (((
5228 yes) AM_DEFAULT_VERBOSITY=0;;
5229 no) AM_DEFAULT_VERBOSITY=1;;
5230 *) AM_DEFAULT_VERBOSITY=1;;
5231 esac
5232 am_make=${MAKE-make}
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5234 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5235 if ${am_cv_make_support_nested_variables+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 if $as_echo 'TRUE=$(BAR$(V))
5239 BAR0=false
5240 BAR1=true
5242 am__doit:
5243 @$(TRUE)
5244 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5245 am_cv_make_support_nested_variables=yes
5246 else
5247 am_cv_make_support_nested_variables=no
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5251 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5252 if test $am_cv_make_support_nested_variables = yes; then
5253 AM_V='$(V)'
5254 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5255 else
5256 AM_V=$AM_DEFAULT_VERBOSITY
5257 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5259 AM_BACKSLASH='\'
5261 # Check whether --enable-compiler-warnings was given.
5262 if test "${enable_compiler_warnings+set}" = set; then :
5263 enableval=$enable_compiler_warnings;
5265 case $enable_compiler_warnings in #(
5266 no | min | yes | max | all) :
5267 ;; #(
5268 *) :
5269 if test "x$enable_maintainer_mode" = xyes; then :
5270 enable_compiler_warnings=yes
5271 else
5272 enable_compiler_warnings=min
5273 fi ;;
5274 esac
5276 case `pwd` in
5277 *\ * | *\ *)
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5279 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5280 esac
5284 macro_version='2.4.6'
5285 macro_revision='2.4.6'
5299 ltmain=$ac_aux_dir/ltmain.sh
5301 # Backslashify metacharacters that are still active within
5302 # double-quoted strings.
5303 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5305 # Same as above, but do not quote variable references.
5306 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5308 # Sed substitution to delay expansion of an escaped shell variable in a
5309 # double_quote_subst'ed string.
5310 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5312 # Sed substitution to delay expansion of an escaped single quote.
5313 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5315 # Sed substitution to avoid accidental globbing in evaled expressions
5316 no_glob_subst='s/\*/\\\*/g'
5318 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5319 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5320 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5323 $as_echo_n "checking how to print strings... " >&6; }
5324 # Test print first, because it will be a builtin if present.
5325 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5326 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5327 ECHO='print -r --'
5328 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5329 ECHO='printf %s\n'
5330 else
5331 # Use this function as a fallback that always works.
5332 func_fallback_echo ()
5334 eval 'cat <<_LTECHO_EOF
5336 _LTECHO_EOF'
5338 ECHO='func_fallback_echo'
5341 # func_echo_all arg...
5342 # Invoke $ECHO with all args, space-separated.
5343 func_echo_all ()
5345 $ECHO ""
5348 case $ECHO in
5349 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5350 $as_echo "printf" >&6; } ;;
5351 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5352 $as_echo "print -r" >&6; } ;;
5353 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5354 $as_echo "cat" >&6; } ;;
5355 esac
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5371 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5372 if ${ac_cv_path_SED+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5376 for ac_i in 1 2 3 4 5 6 7; do
5377 ac_script="$ac_script$as_nl$ac_script"
5378 done
5379 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5380 { ac_script=; unset ac_script;}
5381 if test -z "$SED"; then
5382 ac_path_SED_found=false
5383 # Loop through the user's path and test for each of PROGNAME-LIST
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_prog in sed gsed; do
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5392 as_fn_executable_p "$ac_path_SED" || continue
5393 # Check for GNU ac_path_SED and select it if it is found.
5394 # Check for GNU $ac_path_SED
5395 case `"$ac_path_SED" --version 2>&1` in
5396 *GNU*)
5397 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5399 ac_count=0
5400 $as_echo_n 0123456789 >"conftest.in"
5401 while :
5403 cat "conftest.in" "conftest.in" >"conftest.tmp"
5404 mv "conftest.tmp" "conftest.in"
5405 cp "conftest.in" "conftest.nl"
5406 $as_echo '' >> "conftest.nl"
5407 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5409 as_fn_arith $ac_count + 1 && ac_count=$as_val
5410 if test $ac_count -gt ${ac_path_SED_max-0}; then
5411 # Best one so far, save it but keep looking for a better one
5412 ac_cv_path_SED="$ac_path_SED"
5413 ac_path_SED_max=$ac_count
5415 # 10*(2^10) chars as input seems more than enough
5416 test $ac_count -gt 10 && break
5417 done
5418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5419 esac
5421 $ac_path_SED_found && break 3
5422 done
5423 done
5424 done
5425 IFS=$as_save_IFS
5426 if test -z "$ac_cv_path_SED"; then
5427 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5429 else
5430 ac_cv_path_SED=$SED
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5435 $as_echo "$ac_cv_path_SED" >&6; }
5436 SED="$ac_cv_path_SED"
5437 rm -f conftest.sed
5439 test -z "$SED" && SED=sed
5440 Xsed="$SED -e 1s/^X//"
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5453 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5454 if ${ac_cv_path_GREP+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -z "$GREP"; then
5458 ac_path_GREP_found=false
5459 # Loop through the user's path and test for each of PROGNAME-LIST
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_prog in grep ggrep; do
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5468 as_fn_executable_p "$ac_path_GREP" || continue
5469 # Check for GNU ac_path_GREP and select it if it is found.
5470 # Check for GNU $ac_path_GREP
5471 case `"$ac_path_GREP" --version 2>&1` in
5472 *GNU*)
5473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5475 ac_count=0
5476 $as_echo_n 0123456789 >"conftest.in"
5477 while :
5479 cat "conftest.in" "conftest.in" >"conftest.tmp"
5480 mv "conftest.tmp" "conftest.in"
5481 cp "conftest.in" "conftest.nl"
5482 $as_echo 'GREP' >> "conftest.nl"
5483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5485 as_fn_arith $ac_count + 1 && ac_count=$as_val
5486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5487 # Best one so far, save it but keep looking for a better one
5488 ac_cv_path_GREP="$ac_path_GREP"
5489 ac_path_GREP_max=$ac_count
5491 # 10*(2^10) chars as input seems more than enough
5492 test $ac_count -gt 10 && break
5493 done
5494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495 esac
5497 $ac_path_GREP_found && break 3
5498 done
5499 done
5500 done
5501 IFS=$as_save_IFS
5502 if test -z "$ac_cv_path_GREP"; then
5503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5505 else
5506 ac_cv_path_GREP=$GREP
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5511 $as_echo "$ac_cv_path_GREP" >&6; }
5512 GREP="$ac_cv_path_GREP"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5516 $as_echo_n "checking for egrep... " >&6; }
5517 if ${ac_cv_path_EGREP+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5521 then ac_cv_path_EGREP="$GREP -E"
5522 else
5523 if test -z "$EGREP"; then
5524 ac_path_EGREP_found=false
5525 # Loop through the user's path and test for each of PROGNAME-LIST
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_prog in egrep; do
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5534 as_fn_executable_p "$ac_path_EGREP" || continue
5535 # Check for GNU ac_path_EGREP and select it if it is found.
5536 # Check for GNU $ac_path_EGREP
5537 case `"$ac_path_EGREP" --version 2>&1` in
5538 *GNU*)
5539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5541 ac_count=0
5542 $as_echo_n 0123456789 >"conftest.in"
5543 while :
5545 cat "conftest.in" "conftest.in" >"conftest.tmp"
5546 mv "conftest.tmp" "conftest.in"
5547 cp "conftest.in" "conftest.nl"
5548 $as_echo 'EGREP' >> "conftest.nl"
5549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5551 as_fn_arith $ac_count + 1 && ac_count=$as_val
5552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5553 # Best one so far, save it but keep looking for a better one
5554 ac_cv_path_EGREP="$ac_path_EGREP"
5555 ac_path_EGREP_max=$ac_count
5557 # 10*(2^10) chars as input seems more than enough
5558 test $ac_count -gt 10 && break
5559 done
5560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5561 esac
5563 $ac_path_EGREP_found && break 3
5564 done
5565 done
5566 done
5567 IFS=$as_save_IFS
5568 if test -z "$ac_cv_path_EGREP"; then
5569 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5571 else
5572 ac_cv_path_EGREP=$EGREP
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5578 $as_echo "$ac_cv_path_EGREP" >&6; }
5579 EGREP="$ac_cv_path_EGREP"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5583 $as_echo_n "checking for fgrep... " >&6; }
5584 if ${ac_cv_path_FGREP+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5588 then ac_cv_path_FGREP="$GREP -F"
5589 else
5590 if test -z "$FGREP"; then
5591 ac_path_FGREP_found=false
5592 # Loop through the user's path and test for each of PROGNAME-LIST
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_prog in fgrep; do
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5601 as_fn_executable_p "$ac_path_FGREP" || continue
5602 # Check for GNU ac_path_FGREP and select it if it is found.
5603 # Check for GNU $ac_path_FGREP
5604 case `"$ac_path_FGREP" --version 2>&1` in
5605 *GNU*)
5606 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5608 ac_count=0
5609 $as_echo_n 0123456789 >"conftest.in"
5610 while :
5612 cat "conftest.in" "conftest.in" >"conftest.tmp"
5613 mv "conftest.tmp" "conftest.in"
5614 cp "conftest.in" "conftest.nl"
5615 $as_echo 'FGREP' >> "conftest.nl"
5616 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5618 as_fn_arith $ac_count + 1 && ac_count=$as_val
5619 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5620 # Best one so far, save it but keep looking for a better one
5621 ac_cv_path_FGREP="$ac_path_FGREP"
5622 ac_path_FGREP_max=$ac_count
5624 # 10*(2^10) chars as input seems more than enough
5625 test $ac_count -gt 10 && break
5626 done
5627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5628 esac
5630 $ac_path_FGREP_found && break 3
5631 done
5632 done
5633 done
5634 IFS=$as_save_IFS
5635 if test -z "$ac_cv_path_FGREP"; then
5636 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5638 else
5639 ac_cv_path_FGREP=$FGREP
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5645 $as_echo "$ac_cv_path_FGREP" >&6; }
5646 FGREP="$ac_cv_path_FGREP"
5649 test -z "$GREP" && GREP=grep
5669 # Check whether --with-gnu-ld was given.
5670 if test "${with_gnu_ld+set}" = set; then :
5671 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5672 else
5673 with_gnu_ld=no
5676 ac_prog=ld
5677 if test yes = "$GCC"; then
5678 # Check if gcc -print-prog-name=ld gives a path.
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5680 $as_echo_n "checking for ld used by $CC... " >&6; }
5681 case $host in
5682 *-*-mingw*)
5683 # gcc leaves a trailing carriage return, which upsets mingw
5684 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5686 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5687 esac
5688 case $ac_prog in
5689 # Accept absolute paths.
5690 [\\/]* | ?:[\\/]*)
5691 re_direlt='/[^/][^/]*/\.\./'
5692 # Canonicalize the pathname of ld
5693 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5694 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5695 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5696 done
5697 test -z "$LD" && LD=$ac_prog
5700 # If it fails, then pretend we aren't using GCC.
5701 ac_prog=ld
5704 # If it is relative, then search for the first ld in PATH.
5705 with_gnu_ld=unknown
5707 esac
5708 elif test yes = "$with_gnu_ld"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5710 $as_echo_n "checking for GNU ld... " >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5713 $as_echo_n "checking for non-GNU ld... " >&6; }
5715 if ${lt_cv_path_LD+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if test -z "$LD"; then
5719 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5720 for ac_dir in $PATH; do
5721 IFS=$lt_save_ifs
5722 test -z "$ac_dir" && ac_dir=.
5723 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5724 lt_cv_path_LD=$ac_dir/$ac_prog
5725 # Check to see if the program is GNU ld. I'd rather use --version,
5726 # but apparently some variants of GNU ld only accept -v.
5727 # Break only if it was the GNU/non-GNU ld that we prefer.
5728 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5729 *GNU* | *'with BFD'*)
5730 test no != "$with_gnu_ld" && break
5733 test yes != "$with_gnu_ld" && break
5735 esac
5737 done
5738 IFS=$lt_save_ifs
5739 else
5740 lt_cv_path_LD=$LD # Let the user override the test with a path.
5744 LD=$lt_cv_path_LD
5745 if test -n "$LD"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5747 $as_echo "$LD" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5752 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5754 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5755 if ${lt_cv_prog_gnu_ld+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5759 case `$LD -v 2>&1 </dev/null` in
5760 *GNU* | *'with BFD'*)
5761 lt_cv_prog_gnu_ld=yes
5764 lt_cv_prog_gnu_ld=no
5766 esac
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5769 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5770 with_gnu_ld=$lt_cv_prog_gnu_ld
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5781 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5782 if ${lt_cv_path_NM+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -n "$NM"; then
5786 # Let the user override the test.
5787 lt_cv_path_NM=$NM
5788 else
5789 lt_nm_to_check=${ac_tool_prefix}nm
5790 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5791 lt_nm_to_check="$lt_nm_to_check nm"
5793 for lt_tmp_nm in $lt_nm_to_check; do
5794 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5795 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5796 IFS=$lt_save_ifs
5797 test -z "$ac_dir" && ac_dir=.
5798 tmp_nm=$ac_dir/$lt_tmp_nm
5799 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5800 # Check to see if the nm accepts a BSD-compat flag.
5801 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5802 # nm: unknown option "B" ignored
5803 # Tru64's nm complains that /dev/null is an invalid object file
5804 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5805 case $build_os in
5806 mingw*) lt_bad_file=conftest.nm/nofile ;;
5807 *) lt_bad_file=/dev/null ;;
5808 esac
5809 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5810 *$lt_bad_file* | *'Invalid file or object type'*)
5811 lt_cv_path_NM="$tmp_nm -B"
5812 break 2
5815 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5816 */dev/null*)
5817 lt_cv_path_NM="$tmp_nm -p"
5818 break 2
5821 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5822 continue # so that we can try to find one that supports BSD flags
5824 esac
5826 esac
5828 done
5829 IFS=$lt_save_ifs
5830 done
5831 : ${lt_cv_path_NM=no}
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5835 $as_echo "$lt_cv_path_NM" >&6; }
5836 if test no != "$lt_cv_path_NM"; then
5837 NM=$lt_cv_path_NM
5838 else
5839 # Didn't find any BSD compatible name lister, look for dumpbin.
5840 if test -n "$DUMPBIN"; then :
5841 # Let the user override the test.
5842 else
5843 if test -n "$ac_tool_prefix"; then
5844 for ac_prog in dumpbin "link -dump"
5846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_prog_DUMPBIN+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$DUMPBIN"; then
5854 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5867 done
5868 done
5869 IFS=$as_save_IFS
5873 DUMPBIN=$ac_cv_prog_DUMPBIN
5874 if test -n "$DUMPBIN"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5876 $as_echo "$DUMPBIN" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5883 test -n "$DUMPBIN" && break
5884 done
5886 if test -z "$DUMPBIN"; then
5887 ac_ct_DUMPBIN=$DUMPBIN
5888 for ac_prog in dumpbin "link -dump"
5890 # Extract the first word of "$ac_prog", so it can be a program name with args.
5891 set dummy $ac_prog; ac_word=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 if test -n "$ac_ct_DUMPBIN"; then
5898 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5911 done
5912 done
5913 IFS=$as_save_IFS
5917 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5918 if test -n "$ac_ct_DUMPBIN"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5920 $as_echo "$ac_ct_DUMPBIN" >&6; }
5921 else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5927 test -n "$ac_ct_DUMPBIN" && break
5928 done
5930 if test "x$ac_ct_DUMPBIN" = x; then
5931 DUMPBIN=":"
5932 else
5933 case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937 ac_tool_warned=yes ;;
5938 esac
5939 DUMPBIN=$ac_ct_DUMPBIN
5943 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5944 *COFF*)
5945 DUMPBIN="$DUMPBIN -symbols -headers"
5948 DUMPBIN=:
5950 esac
5953 if test : != "$DUMPBIN"; then
5954 NM=$DUMPBIN
5957 test -z "$NM" && NM=nm
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5965 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5966 if ${lt_cv_nm_interface+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 lt_cv_nm_interface="BSD nm"
5970 echo "int some_variable = 0;" > conftest.$ac_ext
5971 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5972 (eval "$ac_compile" 2>conftest.err)
5973 cat conftest.err >&5
5974 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5975 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5976 cat conftest.err >&5
5977 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5978 cat conftest.out >&5
5979 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5980 lt_cv_nm_interface="MS dumpbin"
5982 rm -f conftest*
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5985 $as_echo "$lt_cv_nm_interface" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5988 $as_echo_n "checking whether ln -s works... " >&6; }
5989 LN_S=$as_ln_s
5990 if test "$LN_S" = "ln -s"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5992 $as_echo "yes" >&6; }
5993 else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5995 $as_echo "no, using $LN_S" >&6; }
5998 # find the maximum length of command line arguments
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6000 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6001 if ${lt_cv_sys_max_cmd_len+:} false; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6005 teststring=ABCD
6007 case $build_os in
6008 msdosdjgpp*)
6009 # On DJGPP, this test can blow up pretty badly due to problems in libc
6010 # (any single argument exceeding 2000 bytes causes a buffer overrun
6011 # during glob expansion). Even if it were fixed, the result of this
6012 # check would be larger than it should be.
6013 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6016 gnu*)
6017 # Under GNU Hurd, this test is not required because there is
6018 # no limit to the length of command line arguments.
6019 # Libtool will interpret -1 as no limit whatsoever
6020 lt_cv_sys_max_cmd_len=-1;
6023 cygwin* | mingw* | cegcc*)
6024 # On Win9x/ME, this test blows up -- it succeeds, but takes
6025 # about 5 minutes as the teststring grows exponentially.
6026 # Worse, since 9x/ME are not pre-emptively multitasking,
6027 # you end up with a "frozen" computer, even though with patience
6028 # the test eventually succeeds (with a max line length of 256k).
6029 # Instead, let's just punt: use the minimum linelength reported by
6030 # all of the supported platforms: 8192 (on NT/2K/XP).
6031 lt_cv_sys_max_cmd_len=8192;
6034 mint*)
6035 # On MiNT this can take a long time and run out of memory.
6036 lt_cv_sys_max_cmd_len=8192;
6039 amigaos*)
6040 # On AmigaOS with pdksh, this test takes hours, literally.
6041 # So we just punt and use a minimum line length of 8192.
6042 lt_cv_sys_max_cmd_len=8192;
6045 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6046 # This has been around since 386BSD, at least. Likely further.
6047 if test -x /sbin/sysctl; then
6048 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6049 elif test -x /usr/sbin/sysctl; then
6050 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6051 else
6052 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6054 # And add a safety zone
6055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6059 interix*)
6060 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6061 lt_cv_sys_max_cmd_len=196608
6064 os2*)
6065 # The test takes a long time on OS/2.
6066 lt_cv_sys_max_cmd_len=8192
6069 osf*)
6070 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6071 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6072 # nice to cause kernel panics so lets avoid the loop below.
6073 # First set a reasonable default.
6074 lt_cv_sys_max_cmd_len=16384
6076 if test -x /sbin/sysconfig; then
6077 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6078 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6079 esac
6082 sco3.2v5*)
6083 lt_cv_sys_max_cmd_len=102400
6085 sysv5* | sco5v6* | sysv4.2uw2*)
6086 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6087 if test -n "$kargmax"; then
6088 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6089 else
6090 lt_cv_sys_max_cmd_len=32768
6094 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6095 if test -n "$lt_cv_sys_max_cmd_len" && \
6096 test undefined != "$lt_cv_sys_max_cmd_len"; then
6097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6099 else
6100 # Make teststring a little bigger before we do anything with it.
6101 # a 1K string should be a reasonable start.
6102 for i in 1 2 3 4 5 6 7 8; do
6103 teststring=$teststring$teststring
6104 done
6105 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6106 # If test is not a shell built-in, we'll probably end up computing a
6107 # maximum length that is only half of the actual maximum length, but
6108 # we can't tell.
6109 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6110 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6111 test 17 != "$i" # 1/2 MB should be enough
6113 i=`expr $i + 1`
6114 teststring=$teststring$teststring
6115 done
6116 # Only check the string length outside the loop.
6117 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6118 teststring=
6119 # Add a significant safety factor because C++ compilers can tack on
6120 # massive amounts of additional arguments before passing them to the
6121 # linker. It appears as though 1/2 is a usable value.
6122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6125 esac
6129 if test -n "$lt_cv_sys_max_cmd_len"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6131 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6134 $as_echo "none" >&6; }
6136 max_cmd_len=$lt_cv_sys_max_cmd_len
6143 : ${CP="cp -f"}
6144 : ${MV="mv -f"}
6145 : ${RM="rm -f"}
6147 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6148 lt_unset=unset
6149 else
6150 lt_unset=false
6157 # test EBCDIC or ASCII
6158 case `echo X|tr X '\101'` in
6159 A) # ASCII based system
6160 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6161 lt_SP2NL='tr \040 \012'
6162 lt_NL2SP='tr \015\012 \040\040'
6164 *) # EBCDIC based system
6165 lt_SP2NL='tr \100 \n'
6166 lt_NL2SP='tr \r\n \100\100'
6168 esac
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6179 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6180 if ${lt_cv_to_host_file_cmd+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 case $host in
6184 *-*-mingw* )
6185 case $build in
6186 *-*-mingw* ) # actually msys
6187 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6189 *-*-cygwin* )
6190 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6192 * ) # otherwise, assume *nix
6193 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6195 esac
6197 *-*-cygwin* )
6198 case $build in
6199 *-*-mingw* ) # actually msys
6200 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6202 *-*-cygwin* )
6203 lt_cv_to_host_file_cmd=func_convert_file_noop
6205 * ) # otherwise, assume *nix
6206 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6208 esac
6210 * ) # unhandled hosts (and "normal" native builds)
6211 lt_cv_to_host_file_cmd=func_convert_file_noop
6213 esac
6217 to_host_file_cmd=$lt_cv_to_host_file_cmd
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6219 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6226 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6227 if ${lt_cv_to_tool_file_cmd+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 #assume ordinary cross tools, or native build.
6231 lt_cv_to_tool_file_cmd=func_convert_file_noop
6232 case $host in
6233 *-*-mingw* )
6234 case $build in
6235 *-*-mingw* ) # actually msys
6236 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6238 esac
6240 esac
6244 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6246 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6253 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6254 if ${lt_cv_ld_reload_flag+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 lt_cv_ld_reload_flag='-r'
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6260 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6261 reload_flag=$lt_cv_ld_reload_flag
6262 case $reload_flag in
6263 "" | " "*) ;;
6264 *) reload_flag=" $reload_flag" ;;
6265 esac
6266 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6267 case $host_os in
6268 cygwin* | mingw* | pw32* | cegcc*)
6269 if test yes != "$GCC"; then
6270 reload_cmds=false
6273 darwin*)
6274 if test yes = "$GCC"; then
6275 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6276 else
6277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6280 esac
6290 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_OBJDUMP+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$OBJDUMP"; then
6299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6312 done
6313 done
6314 IFS=$as_save_IFS
6318 OBJDUMP=$ac_cv_prog_OBJDUMP
6319 if test -n "$OBJDUMP"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6321 $as_echo "$OBJDUMP" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6329 if test -z "$ac_cv_prog_OBJDUMP"; then
6330 ac_ct_OBJDUMP=$OBJDUMP
6331 # Extract the first word of "objdump", so it can be a program name with args.
6332 set dummy objdump; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$ac_ct_OBJDUMP"; then
6339 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6352 done
6353 done
6354 IFS=$as_save_IFS
6358 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6359 if test -n "$ac_ct_OBJDUMP"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6361 $as_echo "$ac_ct_OBJDUMP" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6367 if test "x$ac_ct_OBJDUMP" = x; then
6368 OBJDUMP="false"
6369 else
6370 case $cross_compiling:$ac_tool_warned in
6371 yes:)
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6375 esac
6376 OBJDUMP=$ac_ct_OBJDUMP
6378 else
6379 OBJDUMP="$ac_cv_prog_OBJDUMP"
6382 test -z "$OBJDUMP" && OBJDUMP=objdump
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6390 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6391 if ${lt_cv_deplibs_check_method+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 lt_cv_file_magic_cmd='$MAGIC_CMD'
6395 lt_cv_file_magic_test_file=
6396 lt_cv_deplibs_check_method='unknown'
6397 # Need to set the preceding variable on all platforms that support
6398 # interlibrary dependencies.
6399 # 'none' -- dependencies not supported.
6400 # 'unknown' -- same as none, but documents that we really don't know.
6401 # 'pass_all' -- all dependencies passed with no checks.
6402 # 'test_compile' -- check by making test program.
6403 # 'file_magic [[regex]]' -- check by looking for files in library path
6404 # that responds to the $file_magic_cmd with a given extended regex.
6405 # If you have 'file' or equivalent on your system and you're not sure
6406 # whether 'pass_all' will *always* work, you probably want this one.
6408 case $host_os in
6409 aix[4-9]*)
6410 lt_cv_deplibs_check_method=pass_all
6413 beos*)
6414 lt_cv_deplibs_check_method=pass_all
6417 bsdi[45]*)
6418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6419 lt_cv_file_magic_cmd='/usr/bin/file -L'
6420 lt_cv_file_magic_test_file=/shlib/libc.so
6423 cygwin*)
6424 # func_win32_libid is a shell function defined in ltmain.sh
6425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6426 lt_cv_file_magic_cmd='func_win32_libid'
6429 mingw* | pw32*)
6430 # Base MSYS/MinGW do not provide the 'file' command needed by
6431 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6432 # unless we find 'file', for example because we are cross-compiling.
6433 if ( file / ) >/dev/null 2>&1; then
6434 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6435 lt_cv_file_magic_cmd='func_win32_libid'
6436 else
6437 # Keep this pattern in sync with the one in func_win32_libid.
6438 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6439 lt_cv_file_magic_cmd='$OBJDUMP -f'
6443 cegcc*)
6444 # use the weaker test based on 'objdump'. See mingw*.
6445 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6446 lt_cv_file_magic_cmd='$OBJDUMP -f'
6449 darwin* | rhapsody*)
6450 lt_cv_deplibs_check_method=pass_all
6453 freebsd* | dragonfly*)
6454 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6455 case $host_cpu in
6456 i*86 )
6457 # Not sure whether the presence of OpenBSD here was a mistake.
6458 # Let's accept both of them until this is cleared up.
6459 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6460 lt_cv_file_magic_cmd=/usr/bin/file
6461 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6463 esac
6464 else
6465 lt_cv_deplibs_check_method=pass_all
6469 haiku*)
6470 lt_cv_deplibs_check_method=pass_all
6473 hpux10.20* | hpux11*)
6474 lt_cv_file_magic_cmd=/usr/bin/file
6475 case $host_cpu in
6476 ia64*)
6477 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6478 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6480 hppa*64*)
6481 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]'
6482 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6485 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6486 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6488 esac
6491 interix[3-9]*)
6492 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6496 irix5* | irix6* | nonstopux*)
6497 case $LD in
6498 *-32|*"-32 ") libmagic=32-bit;;
6499 *-n32|*"-n32 ") libmagic=N32;;
6500 *-64|*"-64 ") libmagic=64-bit;;
6501 *) libmagic=never-match;;
6502 esac
6503 lt_cv_deplibs_check_method=pass_all
6506 # This must be glibc/ELF.
6507 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6508 lt_cv_deplibs_check_method=pass_all
6511 netbsd*)
6512 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6514 else
6515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6519 newos6*)
6520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6521 lt_cv_file_magic_cmd=/usr/bin/file
6522 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6525 *nto* | *qnx*)
6526 lt_cv_deplibs_check_method=pass_all
6529 openbsd* | bitrig*)
6530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6532 else
6533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6537 osf3* | osf4* | osf5*)
6538 lt_cv_deplibs_check_method=pass_all
6541 rdos*)
6542 lt_cv_deplibs_check_method=pass_all
6545 solaris*)
6546 lt_cv_deplibs_check_method=pass_all
6549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6550 lt_cv_deplibs_check_method=pass_all
6553 sysv4 | sysv4.3*)
6554 case $host_vendor in
6555 motorola)
6556 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]'
6557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6559 ncr)
6560 lt_cv_deplibs_check_method=pass_all
6562 sequent)
6563 lt_cv_file_magic_cmd='/bin/file'
6564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6566 sni)
6567 lt_cv_file_magic_cmd='/bin/file'
6568 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6569 lt_cv_file_magic_test_file=/lib/libc.so
6571 siemens)
6572 lt_cv_deplibs_check_method=pass_all
6575 lt_cv_deplibs_check_method=pass_all
6577 esac
6580 tpf*)
6581 lt_cv_deplibs_check_method=pass_all
6583 os2*)
6584 lt_cv_deplibs_check_method=pass_all
6586 esac
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6590 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6592 file_magic_glob=
6593 want_nocaseglob=no
6594 if test "$build" = "$host"; then
6595 case $host_os in
6596 mingw* | pw32*)
6597 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6598 want_nocaseglob=yes
6599 else
6600 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6603 esac
6606 file_magic_cmd=$lt_cv_file_magic_cmd
6607 deplibs_check_method=$lt_cv_deplibs_check_method
6608 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_DLLTOOL+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 if test -n "$DLLTOOL"; then
6640 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6653 done
6654 done
6655 IFS=$as_save_IFS
6659 DLLTOOL=$ac_cv_prog_DLLTOOL
6660 if test -n "$DLLTOOL"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6662 $as_echo "$DLLTOOL" >&6; }
6663 else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6670 if test -z "$ac_cv_prog_DLLTOOL"; then
6671 ac_ct_DLLTOOL=$DLLTOOL
6672 # Extract the first word of "dlltool", so it can be a program name with args.
6673 set dummy dlltool; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 if test -n "$ac_ct_DLLTOOL"; then
6680 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6693 done
6694 done
6695 IFS=$as_save_IFS
6699 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6700 if test -n "$ac_ct_DLLTOOL"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6702 $as_echo "$ac_ct_DLLTOOL" >&6; }
6703 else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6708 if test "x$ac_ct_DLLTOOL" = x; then
6709 DLLTOOL="false"
6710 else
6711 case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6716 esac
6717 DLLTOOL=$ac_ct_DLLTOOL
6719 else
6720 DLLTOOL="$ac_cv_prog_DLLTOOL"
6723 test -z "$DLLTOOL" && DLLTOOL=dlltool
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6732 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6733 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 lt_cv_sharedlib_from_linklib_cmd='unknown'
6738 case $host_os in
6739 cygwin* | mingw* | pw32* | cegcc*)
6740 # two different shell functions defined in ltmain.sh;
6741 # decide which one to use based on capabilities of $DLLTOOL
6742 case `$DLLTOOL --help 2>&1` in
6743 *--identify-strict*)
6744 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6747 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6749 esac
6752 # fallback: assume linklib IS sharedlib
6753 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6755 esac
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6759 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6760 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6761 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6769 if test -n "$ac_tool_prefix"; then
6770 for ac_prog in ar
6772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_AR+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$AR"; then
6780 ac_cv_prog_AR="$AR" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6793 done
6794 done
6795 IFS=$as_save_IFS
6799 AR=$ac_cv_prog_AR
6800 if test -n "$AR"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6802 $as_echo "$AR" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6809 test -n "$AR" && break
6810 done
6812 if test -z "$AR"; then
6813 ac_ct_AR=$AR
6814 for ac_prog in ar
6816 # Extract the first word of "$ac_prog", so it can be a program name with args.
6817 set dummy $ac_prog; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$ac_ct_AR"; then
6824 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_ac_ct_AR="$ac_prog"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6837 done
6838 done
6839 IFS=$as_save_IFS
6843 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6844 if test -n "$ac_ct_AR"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6846 $as_echo "$ac_ct_AR" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6853 test -n "$ac_ct_AR" && break
6854 done
6856 if test "x$ac_ct_AR" = x; then
6857 AR="false"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865 AR=$ac_ct_AR
6869 : ${AR=ar}
6870 : ${AR_FLAGS=cru}
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6883 $as_echo_n "checking for archiver @FILE support... " >&6; }
6884 if ${lt_cv_ar_at_file+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 lt_cv_ar_at_file=no
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6892 main ()
6896 return 0;
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 echo conftest.$ac_objext > conftest.lst
6901 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6903 (eval $lt_ar_try) 2>&5
6904 ac_status=$?
6905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906 test $ac_status = 0; }
6907 if test 0 -eq "$ac_status"; then
6908 # Ensure the archiver fails upon bogus file names.
6909 rm -f conftest.$ac_objext libconftest.a
6910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6911 (eval $lt_ar_try) 2>&5
6912 ac_status=$?
6913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6914 test $ac_status = 0; }
6915 if test 0 -ne "$ac_status"; then
6916 lt_cv_ar_at_file=@
6919 rm -f conftest.* libconftest.a
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6926 $as_echo "$lt_cv_ar_at_file" >&6; }
6928 if test no = "$lt_cv_ar_at_file"; then
6929 archiver_list_spec=
6930 else
6931 archiver_list_spec=$lt_cv_ar_at_file
6940 if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6942 set dummy ${ac_tool_prefix}strip; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_STRIP+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$STRIP"; then
6949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6968 STRIP=$ac_cv_prog_STRIP
6969 if test -n "$STRIP"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6971 $as_echo "$STRIP" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6979 if test -z "$ac_cv_prog_STRIP"; then
6980 ac_ct_STRIP=$STRIP
6981 # Extract the first word of "strip", so it can be a program name with args.
6982 set dummy strip; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$ac_ct_STRIP"; then
6989 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_ac_ct_STRIP="strip"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7002 done
7003 done
7004 IFS=$as_save_IFS
7008 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7009 if test -n "$ac_ct_STRIP"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7011 $as_echo "$ac_ct_STRIP" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7017 if test "x$ac_ct_STRIP" = x; then
7018 STRIP=":"
7019 else
7020 case $cross_compiling:$ac_tool_warned in
7021 yes:)
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024 ac_tool_warned=yes ;;
7025 esac
7026 STRIP=$ac_ct_STRIP
7028 else
7029 STRIP="$ac_cv_prog_STRIP"
7032 test -z "$STRIP" && STRIP=:
7039 if test -n "$ac_tool_prefix"; then
7040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7041 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 if test -n "$RANLIB"; then
7048 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
7068 if test -n "$RANLIB"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7070 $as_echo "$RANLIB" >&6; }
7071 else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7078 if test -z "$ac_cv_prog_RANLIB"; then
7079 ac_ct_RANLIB=$RANLIB
7080 # Extract the first word of "ranlib", so it can be a program name with args.
7081 set dummy ranlib; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 if test -n "$ac_ct_RANLIB"; then
7088 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_ac_ct_RANLIB="ranlib"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7101 done
7102 done
7103 IFS=$as_save_IFS
7107 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7108 if test -n "$ac_ct_RANLIB"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7110 $as_echo "$ac_ct_RANLIB" >&6; }
7111 else
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7116 if test "x$ac_ct_RANLIB" = x; then
7117 RANLIB=":"
7118 else
7119 case $cross_compiling:$ac_tool_warned in
7120 yes:)
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123 ac_tool_warned=yes ;;
7124 esac
7125 RANLIB=$ac_ct_RANLIB
7127 else
7128 RANLIB="$ac_cv_prog_RANLIB"
7131 test -z "$RANLIB" && RANLIB=:
7138 # Determine commands to create old-style static archives.
7139 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7140 old_postinstall_cmds='chmod 644 $oldlib'
7141 old_postuninstall_cmds=
7143 if test -n "$RANLIB"; then
7144 case $host_os in
7145 bitrig* | openbsd*)
7146 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7149 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7151 esac
7152 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7155 case $host_os in
7156 darwin*)
7157 lock_old_archive_extraction=yes ;;
7159 lock_old_archive_extraction=no ;;
7160 esac
7200 # If no C compiler was specified, use CC.
7201 LTCC=${LTCC-"$CC"}
7203 # If no C compiler flags were specified, use CFLAGS.
7204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7206 # Allow CC to be a program name with arguments.
7207 compiler=$CC
7210 # Check for command to grab the raw symbol name followed by C symbol from nm.
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7212 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7213 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7217 # These are sane defaults that work on at least a few old systems.
7218 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7220 # Character class describing NM global symbol codes.
7221 symcode='[BCDEGRST]'
7223 # Regexp to match symbols that can be accessed directly from C.
7224 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7226 # Define system-specific variables.
7227 case $host_os in
7228 aix*)
7229 symcode='[BCDT]'
7231 cygwin* | mingw* | pw32* | cegcc*)
7232 symcode='[ABCDGISTW]'
7234 hpux*)
7235 if test ia64 = "$host_cpu"; then
7236 symcode='[ABCDEGRST]'
7239 irix* | nonstopux*)
7240 symcode='[BCDEGRST]'
7242 osf*)
7243 symcode='[BCDEGQRST]'
7245 solaris*)
7246 symcode='[BDRT]'
7248 sco3.2v5*)
7249 symcode='[DT]'
7251 sysv4.2uw2*)
7252 symcode='[DT]'
7254 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7255 symcode='[ABDT]'
7257 sysv4)
7258 symcode='[DFNSTU]'
7260 esac
7262 # If we're using GNU nm, then use its standard symbol codes.
7263 case `$NM -V 2>&1` in
7264 *GNU* | *'with BFD'*)
7265 symcode='[ABCDGIRSTW]' ;;
7266 esac
7268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7269 # Gets list of data symbols to import.
7270 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7271 # Adjust the below global symbol transforms to fixup imported variables.
7272 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7273 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7274 lt_c_name_lib_hook="\
7275 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7276 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7277 else
7278 # Disable hooks by default.
7279 lt_cv_sys_global_symbol_to_import=
7280 lt_cdecl_hook=
7281 lt_c_name_hook=
7282 lt_c_name_lib_hook=
7285 # Transform an extracted symbol line into a proper C declaration.
7286 # Some systems (esp. on ia64) link data and code symbols differently,
7287 # so use this general approach.
7288 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7289 $lt_cdecl_hook\
7290 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7291 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7293 # Transform an extracted symbol line into symbol name and symbol address
7294 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7295 $lt_c_name_hook\
7296 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7297 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7299 # Transform an extracted symbol line into symbol name with lib prefix and
7300 # symbol address.
7301 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7302 $lt_c_name_lib_hook\
7303 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7304 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7305 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7307 # Handle CRLF in mingw tool chain
7308 opt_cr=
7309 case $build_os in
7310 mingw*)
7311 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7313 esac
7315 # Try without a prefix underscore, then with it.
7316 for ac_symprfx in "" "_"; do
7318 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7319 symxfrm="\\1 $ac_symprfx\\2 \\2"
7321 # Write the raw and C identifiers.
7322 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7323 # Fake it for dumpbin and say T for any non-static function,
7324 # D for any global variable and I for any imported variable.
7325 # Also find C++ and __fastcall symbols from MSVC++,
7326 # which start with @ or ?.
7327 lt_cv_sys_global_symbol_pipe="$AWK '"\
7328 " {last_section=section; section=\$ 3};"\
7329 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7330 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7331 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7332 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7333 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7334 " \$ 0!~/External *\|/{next};"\
7335 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7336 " {if(hide[section]) next};"\
7337 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7338 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7339 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7340 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7341 " ' prfx=^$ac_symprfx"
7342 else
7343 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7345 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7347 # Check to see that the pipe works correctly.
7348 pipe_works=no
7350 rm -f conftest*
7351 cat > conftest.$ac_ext <<_LT_EOF
7352 #ifdef __cplusplus
7353 extern "C" {
7354 #endif
7355 char nm_test_var;
7356 void nm_test_func(void);
7357 void nm_test_func(void){}
7358 #ifdef __cplusplus
7360 #endif
7361 int main(){nm_test_var='a';nm_test_func();return(0);}
7362 _LT_EOF
7364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7365 (eval $ac_compile) 2>&5
7366 ac_status=$?
7367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368 test $ac_status = 0; }; then
7369 # Now try to grab the symbols.
7370 nlist=conftest.nm
7371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7372 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7373 ac_status=$?
7374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7375 test $ac_status = 0; } && test -s "$nlist"; then
7376 # Try sorting and uniquifying the output.
7377 if sort "$nlist" | uniq > "$nlist"T; then
7378 mv -f "$nlist"T "$nlist"
7379 else
7380 rm -f "$nlist"T
7383 # Make sure that we snagged all the symbols we need.
7384 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7385 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7386 cat <<_LT_EOF > conftest.$ac_ext
7387 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7388 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7389 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7390 relocations are performed -- see ld's documentation on pseudo-relocs. */
7391 # define LT_DLSYM_CONST
7392 #elif defined __osf__
7393 /* This system does not cope well with relocations in const data. */
7394 # define LT_DLSYM_CONST
7395 #else
7396 # define LT_DLSYM_CONST const
7397 #endif
7399 #ifdef __cplusplus
7400 extern "C" {
7401 #endif
7403 _LT_EOF
7404 # Now generate the symbol file.
7405 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7407 cat <<_LT_EOF >> conftest.$ac_ext
7409 /* The mapping between symbol names and symbols. */
7410 LT_DLSYM_CONST struct {
7411 const char *name;
7412 void *address;
7414 lt__PROGRAM__LTX_preloaded_symbols[] =
7416 { "@PROGRAM@", (void *) 0 },
7417 _LT_EOF
7418 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7419 cat <<\_LT_EOF >> conftest.$ac_ext
7420 {0, (void *) 0}
7423 /* This works around a problem in FreeBSD linker */
7424 #ifdef FREEBSD_WORKAROUND
7425 static const void *lt_preloaded_setup() {
7426 return lt__PROGRAM__LTX_preloaded_symbols;
7428 #endif
7430 #ifdef __cplusplus
7432 #endif
7433 _LT_EOF
7434 # Now try linking the two files.
7435 mv conftest.$ac_objext conftstm.$ac_objext
7436 lt_globsym_save_LIBS=$LIBS
7437 lt_globsym_save_CFLAGS=$CFLAGS
7438 LIBS=conftstm.$ac_objext
7439 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7441 (eval $ac_link) 2>&5
7442 ac_status=$?
7443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7445 pipe_works=yes
7447 LIBS=$lt_globsym_save_LIBS
7448 CFLAGS=$lt_globsym_save_CFLAGS
7449 else
7450 echo "cannot find nm_test_func in $nlist" >&5
7452 else
7453 echo "cannot find nm_test_var in $nlist" >&5
7455 else
7456 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7458 else
7459 echo "$progname: failed program was:" >&5
7460 cat conftest.$ac_ext >&5
7462 rm -rf conftest* conftst*
7464 # Do not use the global_symbol_pipe unless it works.
7465 if test yes = "$pipe_works"; then
7466 break
7467 else
7468 lt_cv_sys_global_symbol_pipe=
7470 done
7474 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7475 lt_cv_sys_global_symbol_to_cdecl=
7477 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7479 $as_echo "failed" >&6; }
7480 else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7482 $as_echo "ok" >&6; }
7485 # Response file support.
7486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7487 nm_file_list_spec='@'
7488 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7489 nm_file_list_spec='@'
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7529 $as_echo_n "checking for sysroot... " >&6; }
7531 # Check whether --with-sysroot was given.
7532 if test "${with_sysroot+set}" = set; then :
7533 withval=$with_sysroot;
7534 else
7535 with_sysroot=no
7539 lt_sysroot=
7540 case $with_sysroot in #(
7541 yes)
7542 if test yes = "$GCC"; then
7543 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7545 ;; #(
7547 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7548 ;; #(
7549 no|'')
7550 ;; #(
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7553 $as_echo "$with_sysroot" >&6; }
7554 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7556 esac
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7559 $as_echo "${lt_sysroot:-no}" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7566 $as_echo_n "checking for a working dd... " >&6; }
7567 if ${ac_cv_path_lt_DD+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 printf 0123456789abcdef0123456789abcdef >conftest.i
7571 cat conftest.i conftest.i >conftest2.i
7572 : ${lt_DD:=$DD}
7573 if test -z "$lt_DD"; then
7574 ac_path_lt_DD_found=false
7575 # Loop through the user's path and test for each of PROGNAME-LIST
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_prog in dd; do
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7584 as_fn_executable_p "$ac_path_lt_DD" || continue
7585 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7586 cmp -s conftest.i conftest.out \
7587 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7589 $ac_path_lt_DD_found && break 3
7590 done
7591 done
7592 done
7593 IFS=$as_save_IFS
7594 if test -z "$ac_cv_path_lt_DD"; then
7597 else
7598 ac_cv_path_lt_DD=$lt_DD
7601 rm -f conftest.i conftest2.i conftest.out
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7604 $as_echo "$ac_cv_path_lt_DD" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7608 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7609 if ${lt_cv_truncate_bin+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 printf 0123456789abcdef0123456789abcdef >conftest.i
7613 cat conftest.i conftest.i >conftest2.i
7614 lt_cv_truncate_bin=
7615 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7616 cmp -s conftest.i conftest.out \
7617 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7619 rm -f conftest.i conftest2.i conftest.out
7620 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7623 $as_echo "$lt_cv_truncate_bin" >&6; }
7631 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7632 func_cc_basename ()
7634 for cc_temp in $*""; do
7635 case $cc_temp in
7636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7638 \-*) ;;
7639 *) break;;
7640 esac
7641 done
7642 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7645 # Check whether --enable-libtool-lock was given.
7646 if test "${enable_libtool_lock+set}" = set; then :
7647 enableval=$enable_libtool_lock;
7650 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7652 # Some flags need to be propagated to the compiler or linker for good
7653 # libtool support.
7654 case $host in
7655 ia64-*-hpux*)
7656 # Find out what ABI is being produced by ac_compile, and set mode
7657 # options accordingly.
7658 echo 'int i;' > conftest.$ac_ext
7659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7660 (eval $ac_compile) 2>&5
7661 ac_status=$?
7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663 test $ac_status = 0; }; then
7664 case `/usr/bin/file conftest.$ac_objext` in
7665 *ELF-32*)
7666 HPUX_IA64_MODE=32
7668 *ELF-64*)
7669 HPUX_IA64_MODE=64
7671 esac
7673 rm -rf conftest*
7675 *-*-irix6*)
7676 # Find out what ABI is being produced by ac_compile, and set linker
7677 # options accordingly.
7678 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7680 (eval $ac_compile) 2>&5
7681 ac_status=$?
7682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683 test $ac_status = 0; }; then
7684 if test yes = "$lt_cv_prog_gnu_ld"; then
7685 case `/usr/bin/file conftest.$ac_objext` in
7686 *32-bit*)
7687 LD="${LD-ld} -melf32bsmip"
7689 *N32*)
7690 LD="${LD-ld} -melf32bmipn32"
7692 *64-bit*)
7693 LD="${LD-ld} -melf64bmip"
7695 esac
7696 else
7697 case `/usr/bin/file conftest.$ac_objext` in
7698 *32-bit*)
7699 LD="${LD-ld} -32"
7701 *N32*)
7702 LD="${LD-ld} -n32"
7704 *64-bit*)
7705 LD="${LD-ld} -64"
7707 esac
7710 rm -rf conftest*
7713 mips64*-*linux*)
7714 # Find out what ABI is being produced by ac_compile, and set linker
7715 # options accordingly.
7716 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7718 (eval $ac_compile) 2>&5
7719 ac_status=$?
7720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7721 test $ac_status = 0; }; then
7722 emul=elf
7723 case `/usr/bin/file conftest.$ac_objext` in
7724 *32-bit*)
7725 emul="${emul}32"
7727 *64-bit*)
7728 emul="${emul}64"
7730 esac
7731 case `/usr/bin/file conftest.$ac_objext` in
7732 *MSB*)
7733 emul="${emul}btsmip"
7735 *LSB*)
7736 emul="${emul}ltsmip"
7738 esac
7739 case `/usr/bin/file conftest.$ac_objext` in
7740 *N32*)
7741 emul="${emul}n32"
7743 esac
7744 LD="${LD-ld} -m $emul"
7746 rm -rf conftest*
7749 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7750 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7751 # Find out what ABI is being produced by ac_compile, and set linker
7752 # options accordingly. Note that the listed cases only cover the
7753 # situations where additional linker options are needed (such as when
7754 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7755 # vice versa); the common cases where no linker options are needed do
7756 # not appear in the list.
7757 echo 'int i;' > conftest.$ac_ext
7758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7759 (eval $ac_compile) 2>&5
7760 ac_status=$?
7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7762 test $ac_status = 0; }; then
7763 case `/usr/bin/file conftest.o` in
7764 *32-bit*)
7765 case $host in
7766 x86_64-*kfreebsd*-gnu)
7767 LD="${LD-ld} -m elf_i386_fbsd"
7769 x86_64-*linux*)
7770 case `/usr/bin/file conftest.o` in
7771 *x86-64*)
7772 LD="${LD-ld} -m elf32_x86_64"
7775 LD="${LD-ld} -m elf_i386"
7777 esac
7779 powerpc64le-*linux*)
7780 LD="${LD-ld} -m elf32lppclinux"
7782 powerpc64-*linux*)
7783 LD="${LD-ld} -m elf32ppclinux"
7785 s390x-*linux*)
7786 LD="${LD-ld} -m elf_s390"
7788 sparc64-*linux*)
7789 LD="${LD-ld} -m elf32_sparc"
7791 esac
7793 *64-bit*)
7794 case $host in
7795 x86_64-*kfreebsd*-gnu)
7796 LD="${LD-ld} -m elf_x86_64_fbsd"
7798 x86_64-*linux*)
7799 LD="${LD-ld} -m elf_x86_64"
7801 powerpcle-*linux*)
7802 LD="${LD-ld} -m elf64lppc"
7804 powerpc-*linux*)
7805 LD="${LD-ld} -m elf64ppc"
7807 s390*-*linux*|s390*-*tpf*)
7808 LD="${LD-ld} -m elf64_s390"
7810 sparc*-*linux*)
7811 LD="${LD-ld} -m elf64_sparc"
7813 esac
7815 esac
7817 rm -rf conftest*
7820 *-*-sco3.2v5*)
7821 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7822 SAVE_CFLAGS=$CFLAGS
7823 CFLAGS="$CFLAGS -belf"
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7825 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7826 if ${lt_cv_cc_needs_belf+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 ac_ext=c
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7839 main ()
7843 return 0;
7845 _ACEOF
7846 if ac_fn_c_try_link "$LINENO"; then :
7847 lt_cv_cc_needs_belf=yes
7848 else
7849 lt_cv_cc_needs_belf=no
7851 rm -f core conftest.err conftest.$ac_objext \
7852 conftest$ac_exeext conftest.$ac_ext
7853 ac_ext=c
7854 ac_cpp='$CPP $CPPFLAGS'
7855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7861 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7862 if test yes != "$lt_cv_cc_needs_belf"; then
7863 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7864 CFLAGS=$SAVE_CFLAGS
7867 *-*solaris*)
7868 # Find out what ABI is being produced by ac_compile, and set linker
7869 # options accordingly.
7870 echo 'int i;' > conftest.$ac_ext
7871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7872 (eval $ac_compile) 2>&5
7873 ac_status=$?
7874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875 test $ac_status = 0; }; then
7876 case `/usr/bin/file conftest.o` in
7877 *64-bit*)
7878 case $lt_cv_prog_gnu_ld in
7879 yes*)
7880 case $host in
7881 i?86-*-solaris*|x86_64-*-solaris*)
7882 LD="${LD-ld} -m elf_x86_64"
7884 sparc*-*-solaris*)
7885 LD="${LD-ld} -m elf64_sparc"
7887 esac
7888 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7889 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7890 LD=${LD-ld}_sol2
7894 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7895 LD="${LD-ld} -64"
7898 esac
7900 esac
7902 rm -rf conftest*
7904 esac
7906 need_locks=$enable_libtool_lock
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}mt; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$MANIFEST_TOOL"; then
7917 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7932 IFS=$as_save_IFS
7936 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7937 if test -n "$MANIFEST_TOOL"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7939 $as_echo "$MANIFEST_TOOL" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7947 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7948 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7949 # Extract the first word of "mt", so it can be a program name with args.
7950 set dummy mt; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$ac_ct_MANIFEST_TOOL"; then
7957 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7970 done
7971 done
7972 IFS=$as_save_IFS
7976 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7977 if test -n "$ac_ct_MANIFEST_TOOL"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7979 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7985 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7986 MANIFEST_TOOL=":"
7987 else
7988 case $cross_compiling:$ac_tool_warned in
7989 yes:)
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7996 else
7997 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8000 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8002 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8003 if ${lt_cv_path_mainfest_tool+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 lt_cv_path_mainfest_tool=no
8007 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8008 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8009 cat conftest.err >&5
8010 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8011 lt_cv_path_mainfest_tool=yes
8013 rm -f conftest*
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8016 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8017 if test yes != "$lt_cv_path_mainfest_tool"; then
8018 MANIFEST_TOOL=:
8026 case $host_os in
8027 rhapsody* | darwin*)
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$DSYMUTIL"; then
8037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8050 done
8051 done
8052 IFS=$as_save_IFS
8056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8057 if test -n "$DSYMUTIL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8059 $as_echo "$DSYMUTIL" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8067 if test -z "$ac_cv_prog_DSYMUTIL"; then
8068 ac_ct_DSYMUTIL=$DSYMUTIL
8069 # Extract the first word of "dsymutil", so it can be a program name with args.
8070 set dummy dsymutil; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 if test -n "$ac_ct_DSYMUTIL"; then
8077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8090 done
8091 done
8092 IFS=$as_save_IFS
8096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8097 if test -n "$ac_ct_DSYMUTIL"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8100 else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8105 if test "x$ac_ct_DSYMUTIL" = x; then
8106 DSYMUTIL=":"
8107 else
8108 case $cross_compiling:$ac_tool_warned in
8109 yes:)
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8112 ac_tool_warned=yes ;;
8113 esac
8114 DSYMUTIL=$ac_ct_DSYMUTIL
8116 else
8117 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8120 if test -n "$ac_tool_prefix"; then
8121 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_NMEDIT+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$NMEDIT"; then
8129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8144 IFS=$as_save_IFS
8148 NMEDIT=$ac_cv_prog_NMEDIT
8149 if test -n "$NMEDIT"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8151 $as_echo "$NMEDIT" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8159 if test -z "$ac_cv_prog_NMEDIT"; then
8160 ac_ct_NMEDIT=$NMEDIT
8161 # Extract the first word of "nmedit", so it can be a program name with args.
8162 set dummy nmedit; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 if test -n "$ac_ct_NMEDIT"; then
8169 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8182 done
8183 done
8184 IFS=$as_save_IFS
8188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8189 if test -n "$ac_ct_NMEDIT"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8191 $as_echo "$ac_ct_NMEDIT" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8197 if test "x$ac_ct_NMEDIT" = x; then
8198 NMEDIT=":"
8199 else
8200 case $cross_compiling:$ac_tool_warned in
8201 yes:)
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8204 ac_tool_warned=yes ;;
8205 esac
8206 NMEDIT=$ac_ct_NMEDIT
8208 else
8209 NMEDIT="$ac_cv_prog_NMEDIT"
8212 if test -n "$ac_tool_prefix"; then
8213 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if ${ac_cv_prog_LIPO+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 if test -n "$LIPO"; then
8221 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8234 done
8235 done
8236 IFS=$as_save_IFS
8240 LIPO=$ac_cv_prog_LIPO
8241 if test -n "$LIPO"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8243 $as_echo "$LIPO" >&6; }
8244 else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8251 if test -z "$ac_cv_prog_LIPO"; then
8252 ac_ct_LIPO=$LIPO
8253 # Extract the first word of "lipo", so it can be a program name with args.
8254 set dummy lipo; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$ac_ct_LIPO"; then
8261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_ac_ct_LIPO="lipo"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8274 done
8275 done
8276 IFS=$as_save_IFS
8280 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8281 if test -n "$ac_ct_LIPO"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8283 $as_echo "$ac_ct_LIPO" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8289 if test "x$ac_ct_LIPO" = x; then
8290 LIPO=":"
8291 else
8292 case $cross_compiling:$ac_tool_warned in
8293 yes:)
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8296 ac_tool_warned=yes ;;
8297 esac
8298 LIPO=$ac_ct_LIPO
8300 else
8301 LIPO="$ac_cv_prog_LIPO"
8304 if test -n "$ac_tool_prefix"; then
8305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8306 set dummy ${ac_tool_prefix}otool; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_prog_OTOOL+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 if test -n "$OTOOL"; then
8313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8326 done
8327 done
8328 IFS=$as_save_IFS
8332 OTOOL=$ac_cv_prog_OTOOL
8333 if test -n "$OTOOL"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8335 $as_echo "$OTOOL" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8343 if test -z "$ac_cv_prog_OTOOL"; then
8344 ac_ct_OTOOL=$OTOOL
8345 # Extract the first word of "otool", so it can be a program name with args.
8346 set dummy otool; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 if test -n "$ac_ct_OTOOL"; then
8353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362 ac_cv_prog_ac_ct_OTOOL="otool"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8366 done
8367 done
8368 IFS=$as_save_IFS
8372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8373 if test -n "$ac_ct_OTOOL"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8375 $as_echo "$ac_ct_OTOOL" >&6; }
8376 else
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8381 if test "x$ac_ct_OTOOL" = x; then
8382 OTOOL=":"
8383 else
8384 case $cross_compiling:$ac_tool_warned in
8385 yes:)
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388 ac_tool_warned=yes ;;
8389 esac
8390 OTOOL=$ac_ct_OTOOL
8392 else
8393 OTOOL="$ac_cv_prog_OTOOL"
8396 if test -n "$ac_tool_prefix"; then
8397 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_OTOOL64+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 if test -n "$OTOOL64"; then
8405 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8418 done
8419 done
8420 IFS=$as_save_IFS
8424 OTOOL64=$ac_cv_prog_OTOOL64
8425 if test -n "$OTOOL64"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8427 $as_echo "$OTOOL64" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8435 if test -z "$ac_cv_prog_OTOOL64"; then
8436 ac_ct_OTOOL64=$OTOOL64
8437 # Extract the first word of "otool64", so it can be a program name with args.
8438 set dummy otool64; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 if test -n "$ac_ct_OTOOL64"; then
8445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_ac_ct_OTOOL64="otool64"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8458 done
8459 done
8460 IFS=$as_save_IFS
8464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8465 if test -n "$ac_ct_OTOOL64"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8467 $as_echo "$ac_ct_OTOOL64" >&6; }
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8473 if test "x$ac_ct_OTOOL64" = x; then
8474 OTOOL64=":"
8475 else
8476 case $cross_compiling:$ac_tool_warned in
8477 yes:)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8481 esac
8482 OTOOL64=$ac_ct_OTOOL64
8484 else
8485 OTOOL64="$ac_cv_prog_OTOOL64"
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8515 $as_echo_n "checking for -single_module linker flag... " >&6; }
8516 if ${lt_cv_apple_cc_single_mod+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 lt_cv_apple_cc_single_mod=no
8520 if test -z "$LT_MULTI_MODULE"; then
8521 # By default we will add the -single_module flag. You can override
8522 # by either setting the environment variable LT_MULTI_MODULE
8523 # non-empty at configure time, or by adding -multi_module to the
8524 # link flags.
8525 rm -rf libconftest.dylib*
8526 echo "int foo(void){return 1;}" > conftest.c
8527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8528 -dynamiclib -Wl,-single_module conftest.c" >&5
8529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8531 _lt_result=$?
8532 # If there is a non-empty error log, and "single_module"
8533 # appears in it, assume the flag caused a linker warning
8534 if test -s conftest.err && $GREP single_module conftest.err; then
8535 cat conftest.err >&5
8536 # Otherwise, if the output was created with a 0 exit code from
8537 # the compiler, it worked.
8538 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8539 lt_cv_apple_cc_single_mod=yes
8540 else
8541 cat conftest.err >&5
8543 rm -rf libconftest.dylib*
8544 rm -f conftest.*
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8548 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8551 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8552 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 lt_cv_ld_exported_symbols_list=no
8556 save_LDFLAGS=$LDFLAGS
8557 echo "_main" > conftest.sym
8558 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8563 main ()
8567 return 0;
8569 _ACEOF
8570 if ac_fn_c_try_link "$LINENO"; then :
8571 lt_cv_ld_exported_symbols_list=yes
8572 else
8573 lt_cv_ld_exported_symbols_list=no
8575 rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 LDFLAGS=$save_LDFLAGS
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8581 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8584 $as_echo_n "checking for -force_load linker flag... " >&6; }
8585 if ${lt_cv_ld_force_load+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 lt_cv_ld_force_load=no
8589 cat > conftest.c << _LT_EOF
8590 int forced_loaded() { return 2;}
8591 _LT_EOF
8592 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8593 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8594 echo "$AR cru libconftest.a conftest.o" >&5
8595 $AR cru libconftest.a conftest.o 2>&5
8596 echo "$RANLIB libconftest.a" >&5
8597 $RANLIB libconftest.a 2>&5
8598 cat > conftest.c << _LT_EOF
8599 int main() { return 0;}
8600 _LT_EOF
8601 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8602 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8603 _lt_result=$?
8604 if test -s conftest.err && $GREP force_load conftest.err; then
8605 cat conftest.err >&5
8606 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8607 lt_cv_ld_force_load=yes
8608 else
8609 cat conftest.err >&5
8611 rm -f conftest.err libconftest.a conftest conftest.c
8612 rm -rf conftest.dSYM
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8616 $as_echo "$lt_cv_ld_force_load" >&6; }
8617 case $host_os in
8618 rhapsody* | darwin1.[012])
8619 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8620 darwin1.*)
8621 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8622 darwin*) # darwin 5.x on
8623 # if running on 10.5 or later, the deployment target defaults
8624 # to the OS version, if on x86, and 10.4, the deployment
8625 # target defaults to 10.4. Don't you love it?
8626 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8627 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8628 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8629 10.[012][,.]*)
8630 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8631 10.*)
8632 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8633 esac
8635 esac
8636 if test yes = "$lt_cv_apple_cc_single_mod"; then
8637 _lt_dar_single_mod='$single_module'
8639 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8640 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8641 else
8642 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8644 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8645 _lt_dsymutil='~$DSYMUTIL $lib || :'
8646 else
8647 _lt_dsymutil=
8650 esac
8652 # func_munge_path_list VARIABLE PATH
8653 # -----------------------------------
8654 # VARIABLE is name of variable containing _space_ separated list of
8655 # directories to be munged by the contents of PATH, which is string
8656 # having a format:
8657 # "DIR[:DIR]:"
8658 # string "DIR[ DIR]" will be prepended to VARIABLE
8659 # ":DIR[:DIR]"
8660 # string "DIR[ DIR]" will be appended to VARIABLE
8661 # "DIRP[:DIRP]::[DIRA:]DIRA"
8662 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8663 # "DIRA[ DIRA]" will be appended to VARIABLE
8664 # "DIR[:DIR]"
8665 # VARIABLE will be replaced by "DIR[ DIR]"
8666 func_munge_path_list ()
8668 case x$2 in
8672 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8674 x:*)
8675 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8677 *::*)
8678 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8679 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8682 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8684 esac
8687 ac_ext=c
8688 ac_cpp='$CPP $CPPFLAGS'
8689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8693 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8694 # On Suns, sometimes $CPP names a directory.
8695 if test -n "$CPP" && test -d "$CPP"; then
8696 CPP=
8698 if test -z "$CPP"; then
8699 if ${ac_cv_prog_CPP+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 # Double quotes because CPP needs to be expanded
8703 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8705 ac_preproc_ok=false
8706 for ac_c_preproc_warn_flag in '' yes
8708 # Use a header file that comes with gcc, so configuring glibc
8709 # with a fresh cross-compiler works.
8710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8711 # <limits.h> exists even on freestanding compilers.
8712 # On the NeXT, cc -E runs the code through the compiler's parser,
8713 # not just through cpp. "Syntax error" is here to catch this case.
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 #ifdef __STDC__
8717 # include <limits.h>
8718 #else
8719 # include <assert.h>
8720 #endif
8721 Syntax error
8722 _ACEOF
8723 if ac_fn_c_try_cpp "$LINENO"; then :
8725 else
8726 # Broken: fails on valid input.
8727 continue
8729 rm -f conftest.err conftest.i conftest.$ac_ext
8731 # OK, works on sane cases. Now check whether nonexistent headers
8732 # can be detected and how.
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <ac_nonexistent.h>
8736 _ACEOF
8737 if ac_fn_c_try_cpp "$LINENO"; then :
8738 # Broken: success on invalid input.
8739 continue
8740 else
8741 # Passes both tests.
8742 ac_preproc_ok=:
8743 break
8745 rm -f conftest.err conftest.i conftest.$ac_ext
8747 done
8748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8749 rm -f conftest.i conftest.err conftest.$ac_ext
8750 if $ac_preproc_ok; then :
8751 break
8754 done
8755 ac_cv_prog_CPP=$CPP
8758 CPP=$ac_cv_prog_CPP
8759 else
8760 ac_cv_prog_CPP=$CPP
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8763 $as_echo "$CPP" >&6; }
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 :
8811 else
8812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8814 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8815 See \`config.log' for more details" "$LINENO" 5; }
8818 ac_ext=c
8819 ac_cpp='$CPP $CPPFLAGS'
8820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8826 $as_echo_n "checking for ANSI C header files... " >&6; }
8827 if ${ac_cv_header_stdc+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <stdlib.h>
8833 #include <stdarg.h>
8834 #include <string.h>
8835 #include <float.h>
8838 main ()
8842 return 0;
8844 _ACEOF
8845 if ac_fn_c_try_compile "$LINENO"; then :
8846 ac_cv_header_stdc=yes
8847 else
8848 ac_cv_header_stdc=no
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 if test $ac_cv_header_stdc = yes; then
8853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8856 #include <string.h>
8858 _ACEOF
8859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8860 $EGREP "memchr" >/dev/null 2>&1; then :
8862 else
8863 ac_cv_header_stdc=no
8865 rm -f conftest*
8869 if test $ac_cv_header_stdc = yes; then
8870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 #include <stdlib.h>
8875 _ACEOF
8876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8877 $EGREP "free" >/dev/null 2>&1; then :
8879 else
8880 ac_cv_header_stdc=no
8882 rm -f conftest*
8886 if test $ac_cv_header_stdc = yes; then
8887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8888 if test "$cross_compiling" = yes; then :
8890 else
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 #include <ctype.h>
8894 #include <stdlib.h>
8895 #if ((' ' & 0x0FF) == 0x020)
8896 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8897 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8898 #else
8899 # define ISLOWER(c) \
8900 (('a' <= (c) && (c) <= 'i') \
8901 || ('j' <= (c) && (c) <= 'r') \
8902 || ('s' <= (c) && (c) <= 'z'))
8903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8904 #endif
8906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8908 main ()
8910 int i;
8911 for (i = 0; i < 256; i++)
8912 if (XOR (islower (i), ISLOWER (i))
8913 || toupper (i) != TOUPPER (i))
8914 return 2;
8915 return 0;
8917 _ACEOF
8918 if ac_fn_c_try_run "$LINENO"; then :
8920 else
8921 ac_cv_header_stdc=no
8923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8924 conftest.$ac_objext conftest.beam conftest.$ac_ext
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8930 $as_echo "$ac_cv_header_stdc" >&6; }
8931 if test $ac_cv_header_stdc = yes; then
8933 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8937 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8938 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8939 inttypes.h stdint.h unistd.h
8940 do :
8941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8942 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8944 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8945 cat >>confdefs.h <<_ACEOF
8946 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8947 _ACEOF
8951 done
8954 for ac_header in dlfcn.h
8955 do :
8956 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8958 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8959 cat >>confdefs.h <<_ACEOF
8960 #define HAVE_DLFCN_H 1
8961 _ACEOF
8965 done
8968 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8969 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8970 # is not polluted with repeated "-I."
8971 am__isrc=' -I$(srcdir)'
8972 # test to see if srcdir already configured
8973 if test -f $srcdir/config.status; then
8974 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8978 # test whether we have cygpath
8979 if test -z "$CYGPATH_W"; then
8980 if (cygpath --version) >/dev/null 2>/dev/null; then
8981 CYGPATH_W='cygpath -w'
8982 else
8983 CYGPATH_W=echo
8988 # Define the identity of the package.
8989 PACKAGE='tex-live'
8990 VERSION='2015-03-07'
8993 cat >>confdefs.h <<_ACEOF
8994 #define PACKAGE "$PACKAGE"
8995 _ACEOF
8998 cat >>confdefs.h <<_ACEOF
8999 #define VERSION "$VERSION"
9000 _ACEOF
9002 # Some tools Automake needs.
9004 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9007 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9010 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9013 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9016 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9018 # For better backward compatibility. To be removed once Automake 1.9.x
9019 # dies out for good. For more background, see:
9020 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9021 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9022 mkdir_p='$(MKDIR_P)'
9024 # We need awk for the "check" target (and possibly the TAP driver). The
9025 # system "awk" is bad on some platforms.
9026 # Always define AMTAR for backward compatibility. Yes, it's still used
9027 # in the wild :-( We should find a proper way to deprecate it ...
9028 AMTAR='$${TAR-tar}'
9031 # We'll loop over all known methods to create a tar archive until one works.
9032 _am_tools='gnutar pax cpio none'
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
9037 $as_echo_n "checking how to create a pax tar archive... " >&6; }
9039 # Go ahead even if we have the value already cached. We do so because we
9040 # need to set the values for the 'am__tar' and 'am__untar' variables.
9041 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
9043 for _am_tool in $_am_tools; do
9044 case $_am_tool in
9045 gnutar)
9046 for _am_tar in tar gnutar gtar; do
9047 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9048 ($_am_tar --version) >&5 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && break
9052 done
9053 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
9054 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
9055 am__untar="$_am_tar -xf -"
9057 plaintar)
9058 # Must skip GNU tar: if it does not support --format= it doesn't create
9059 # ustar tarball either.
9060 (tar --version) >/dev/null 2>&1 && continue
9061 am__tar='tar chf - "$$tardir"'
9062 am__tar_='tar chf - "$tardir"'
9063 am__untar='tar xf -'
9065 pax)
9066 am__tar='pax -L -x pax -w "$$tardir"'
9067 am__tar_='pax -L -x pax -w "$tardir"'
9068 am__untar='pax -r'
9070 cpio)
9071 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
9072 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
9073 am__untar='cpio -i -H pax -d'
9075 none)
9076 am__tar=false
9077 am__tar_=false
9078 am__untar=false
9080 esac
9082 # If the value was cached, stop now. We just wanted to have am__tar
9083 # and am__untar set.
9084 test -n "${am_cv_prog_tar_pax}" && break
9086 # tar/untar a dummy directory, and stop if the command works.
9087 rm -rf conftest.dir
9088 mkdir conftest.dir
9089 echo GrepMe > conftest.dir/file
9090 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9091 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }
9095 rm -rf conftest.dir
9096 if test -s conftest.tar; then
9097 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9098 ($am__untar <conftest.tar) >&5 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }
9102 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9103 (cat conftest.dir/file) >&5 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }
9107 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9109 done
9110 rm -rf conftest.dir
9112 if ${am_cv_prog_tar_pax+:} false; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 am_cv_prog_tar_pax=$_am_tool
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
9119 $as_echo "$am_cv_prog_tar_pax" >&6; }
9125 depcc="$CC" am_compiler_list=
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9128 $as_echo_n "checking dependency style of $depcc... " >&6; }
9129 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9133 # We make a subdir and do the tests there. Otherwise we can end up
9134 # making bogus files that we don't know about and never remove. For
9135 # instance it was reported that on HP-UX the gcc test will end up
9136 # making a dummy file named 'D' -- because '-MD' means "put the output
9137 # in D".
9138 rm -rf conftest.dir
9139 mkdir conftest.dir
9140 # Copy depcomp to subdir because otherwise we won't find it if we're
9141 # using a relative directory.
9142 cp "$am_depcomp" conftest.dir
9143 cd conftest.dir
9144 # We will build objects and dependencies in a subdirectory because
9145 # it helps to detect inapplicable dependency modes. For instance
9146 # both Tru64's cc and ICC support -MD to output dependencies as a
9147 # side effect of compilation, but ICC will put the dependencies in
9148 # the current directory while Tru64 will put them in the object
9149 # directory.
9150 mkdir sub
9152 am_cv_CC_dependencies_compiler_type=none
9153 if test "$am_compiler_list" = ""; then
9154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9156 am__universal=false
9157 case " $depcc " in #(
9158 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9159 esac
9161 for depmode in $am_compiler_list; do
9162 # Setup a source with many dependencies, because some compilers
9163 # like to wrap large dependency lists on column 80 (with \), and
9164 # we should not choose a depcomp mode which is confused by this.
9166 # We need to recreate these files for each test, as the compiler may
9167 # overwrite some of them when testing with obscure command lines.
9168 # This happens at least with the AIX C compiler.
9169 : > sub/conftest.c
9170 for i in 1 2 3 4 5 6; do
9171 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9172 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9173 # Solaris 10 /bin/sh.
9174 echo '/* dummy */' > sub/conftst$i.h
9175 done
9176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9178 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9179 # mode. It turns out that the SunPro C++ compiler does not properly
9180 # handle '-M -o', and we need to detect this. Also, some Intel
9181 # versions had trouble with output in subdirs.
9182 am__obj=sub/conftest.${OBJEXT-o}
9183 am__minus_obj="-o $am__obj"
9184 case $depmode in
9185 gcc)
9186 # This depmode causes a compiler race in universal mode.
9187 test "$am__universal" = false || continue
9189 nosideeffect)
9190 # After this tag, mechanisms are not by side-effect, so they'll
9191 # only be used when explicitly requested.
9192 if test "x$enable_dependency_tracking" = xyes; then
9193 continue
9194 else
9195 break
9198 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9199 # This compiler won't grok '-c -o', but also, the minuso test has
9200 # not run yet. These depmodes are late enough in the game, and
9201 # so weak that their functioning should not be impacted.
9202 am__obj=conftest.${OBJEXT-o}
9203 am__minus_obj=
9205 none) break ;;
9206 esac
9207 if depmode=$depmode \
9208 source=sub/conftest.c object=$am__obj \
9209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9211 >/dev/null 2>conftest.err &&
9212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9216 # icc doesn't choke on unknown options, it will just issue warnings
9217 # or remarks (even with -Werror). So we grep stderr for any message
9218 # that says an option was ignored or not supported.
9219 # When given -MP, icc 7.0 and 7.1 complain thusly:
9220 # icc: Command line warning: ignoring option '-M'; no argument required
9221 # The diagnosis changed in icc 8.0:
9222 # icc: Command line remark: option '-MP' not supported
9223 if (grep 'ignoring option' conftest.err ||
9224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9225 am_cv_CC_dependencies_compiler_type=$depmode
9226 break
9229 done
9231 cd ..
9232 rm -rf conftest.dir
9233 else
9234 am_cv_CC_dependencies_compiler_type=none
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9239 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9240 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9243 test "x$enable_dependency_tracking" != xno \
9244 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9245 am__fastdepCC_TRUE=
9246 am__fastdepCC_FALSE='#'
9247 else
9248 am__fastdepCC_TRUE='#'
9249 am__fastdepCC_FALSE=
9254 # POSIX will say in a future version that running "rm -f" with no argument
9255 # is OK; and we want to be able to make that assumption in our Makefile
9256 # recipes. So use an aggressive probe to check that the usage we want is
9257 # actually supported "in the wild" to an acceptable degree.
9258 # See automake bug#10828.
9259 # To make any issue more visible, cause the running configure to be aborted
9260 # by default if the 'rm' program in use doesn't match our expectations; the
9261 # user can still override this though.
9262 if rm -f && rm -fr && rm -rf; then : OK; else
9263 cat >&2 <<'END'
9264 Oops!
9266 Your 'rm' program seems unable to run without file operands specified
9267 on the command line, even when the '-f' option is present. This is contrary
9268 to the behaviour of most rm programs out there, and not conforming with
9269 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9271 Please tell bug-automake@gnu.org about your system, including the value
9272 of your $PATH and any error possibly output before this message. This
9273 can help us improve future automake versions.
9276 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9277 echo 'Configuration will proceed anyway, since you have set the' >&2
9278 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9279 echo >&2
9280 else
9281 cat >&2 <<'END'
9282 Aborting the configuration process, to ensure you take notice of the issue.
9284 You can download and install GNU coreutils to get an 'rm' implementation
9285 that behaves properly: <http://www.gnu.org/software/coreutils/>.
9287 If you want to complete the configuration process using your problematic
9288 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9289 to "yes", and re-run configure.
9292 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9298 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9299 # Check whether --enable-maintainer-mode was given.
9300 if test "${enable_maintainer_mode+set}" = set; then :
9301 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9302 else
9303 USE_MAINTAINER_MODE=no
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9307 $as_echo "$USE_MAINTAINER_MODE" >&6; }
9308 if test $USE_MAINTAINER_MODE = yes; then
9309 MAINTAINER_MODE_TRUE=
9310 MAINTAINER_MODE_FALSE='#'
9311 else
9312 MAINTAINER_MODE_TRUE='#'
9313 MAINTAINER_MODE_FALSE=
9316 MAINT=$MAINTAINER_MODE_TRUE
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9320 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
9321 if ${kb_cv_c_prototypes+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #include <stdarg.h>
9328 main ()
9330 extern void foo(int i,...);
9332 return 0;
9334 _ACEOF
9335 if ac_fn_c_try_link "$LINENO"; then :
9336 kb_cv_c_prototypes=yes
9337 else
9338 kb_cv_c_prototypes=no
9340 rm -f core conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9344 $as_echo "$kb_cv_c_prototypes" >&6; }
9345 if test "x$kb_cv_c_prototypes" = xno; then
9346 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9349 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
9350 if ${kpse_cv_warning_cflags+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 if test "x$GCC" = xyes; then
9354 kpse_cv_warning_cflags=
9355 if test "x$enable_compiler_warnings" != xno; then
9356 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9357 case `$CC -dumpversion` in #(
9358 3.4.* | 4.*) :
9359 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9360 *) :
9362 esac
9363 case `$CC -dumpversion` in #(
9364 3.[234].* | 4.*) :
9365 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9366 *) :
9368 esac
9369 if test "x$enable_compiler_warnings" != xmin; then
9370 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9371 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9372 if test "x$enable_compiler_warnings" != xyes; then
9373 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9374 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9375 case `$CC -dumpversion` in #(
9376 3.4.* | 4.*) :
9377 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9378 *) :
9380 esac
9381 if test "x$enable_compiler_warnings" != xmax; then
9382 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9387 elif test "x$enable_compiler_warnings" = xno; then
9388 kpse_cv_warning_cflags=
9389 else
9390 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9394 $as_echo "$kpse_cv_warning_cflags" >&6; }
9395 WARNING_CFLAGS=$kpse_cv_warning_cflags
9408 # Set options
9409 enable_win32_dll=yes
9411 case $host in
9412 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9413 if test -n "$ac_tool_prefix"; then
9414 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9415 set dummy ${ac_tool_prefix}as; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if ${ac_cv_prog_AS+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 if test -n "$AS"; then
9422 ac_cv_prog_AS="$AS" # Let the user override the test.
9423 else
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 for as_dir in $PATH
9427 IFS=$as_save_IFS
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9431 ac_cv_prog_AS="${ac_tool_prefix}as"
9432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9433 break 2
9435 done
9436 done
9437 IFS=$as_save_IFS
9441 AS=$ac_cv_prog_AS
9442 if test -n "$AS"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9444 $as_echo "$AS" >&6; }
9445 else
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9452 if test -z "$ac_cv_prog_AS"; then
9453 ac_ct_AS=$AS
9454 # Extract the first word of "as", so it can be a program name with args.
9455 set dummy as; ac_word=$2
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 if test -n "$ac_ct_AS"; then
9462 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9463 else
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9471 ac_cv_prog_ac_ct_AS="as"
9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 break 2
9475 done
9476 done
9477 IFS=$as_save_IFS
9481 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9482 if test -n "$ac_ct_AS"; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9484 $as_echo "$ac_ct_AS" >&6; }
9485 else
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9490 if test "x$ac_ct_AS" = x; then
9491 AS="false"
9492 else
9493 case $cross_compiling:$ac_tool_warned in
9494 yes:)
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9497 ac_tool_warned=yes ;;
9498 esac
9499 AS=$ac_ct_AS
9501 else
9502 AS="$ac_cv_prog_AS"
9505 if test -n "$ac_tool_prefix"; then
9506 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9507 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if ${ac_cv_prog_DLLTOOL+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 if test -n "$DLLTOOL"; then
9514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9515 else
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9519 IFS=$as_save_IFS
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9523 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9525 break 2
9527 done
9528 done
9529 IFS=$as_save_IFS
9533 DLLTOOL=$ac_cv_prog_DLLTOOL
9534 if test -n "$DLLTOOL"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9536 $as_echo "$DLLTOOL" >&6; }
9537 else
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9544 if test -z "$ac_cv_prog_DLLTOOL"; then
9545 ac_ct_DLLTOOL=$DLLTOOL
9546 # Extract the first word of "dlltool", so it can be a program name with args.
9547 set dummy dlltool; ac_word=$2
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 if test -n "$ac_ct_DLLTOOL"; then
9554 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9555 else
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9567 done
9568 done
9569 IFS=$as_save_IFS
9573 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9574 if test -n "$ac_ct_DLLTOOL"; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9576 $as_echo "$ac_ct_DLLTOOL" >&6; }
9577 else
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579 $as_echo "no" >&6; }
9582 if test "x$ac_ct_DLLTOOL" = x; then
9583 DLLTOOL="false"
9584 else
9585 case $cross_compiling:$ac_tool_warned in
9586 yes:)
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9589 ac_tool_warned=yes ;;
9590 esac
9591 DLLTOOL=$ac_ct_DLLTOOL
9593 else
9594 DLLTOOL="$ac_cv_prog_DLLTOOL"
9597 if test -n "$ac_tool_prefix"; then
9598 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9599 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if ${ac_cv_prog_OBJDUMP+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 if test -n "$OBJDUMP"; then
9606 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9607 else
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9619 done
9620 done
9621 IFS=$as_save_IFS
9625 OBJDUMP=$ac_cv_prog_OBJDUMP
9626 if test -n "$OBJDUMP"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9628 $as_echo "$OBJDUMP" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9636 if test -z "$ac_cv_prog_OBJDUMP"; then
9637 ac_ct_OBJDUMP=$OBJDUMP
9638 # Extract the first word of "objdump", so it can be a program name with args.
9639 set dummy objdump; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 if test -n "$ac_ct_OBJDUMP"; then
9646 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9647 else
9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 for as_dir in $PATH
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9655 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 break 2
9659 done
9660 done
9661 IFS=$as_save_IFS
9665 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9666 if test -n "$ac_ct_OBJDUMP"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9668 $as_echo "$ac_ct_OBJDUMP" >&6; }
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9674 if test "x$ac_ct_OBJDUMP" = x; then
9675 OBJDUMP="false"
9676 else
9677 case $cross_compiling:$ac_tool_warned in
9678 yes:)
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9681 ac_tool_warned=yes ;;
9682 esac
9683 OBJDUMP=$ac_ct_OBJDUMP
9685 else
9686 OBJDUMP="$ac_cv_prog_OBJDUMP"
9690 esac
9692 test -z "$AS" && AS=as
9698 test -z "$DLLTOOL" && DLLTOOL=dlltool
9704 test -z "$OBJDUMP" && OBJDUMP=objdump
9712 enable_dlopen=no
9716 # Check whether --enable-shared was given.
9717 if test "${enable_shared+set}" = set; then :
9718 enableval=$enable_shared; p=${PACKAGE-default}
9719 case $enableval in
9720 yes) enable_shared=yes ;;
9721 no) enable_shared=no ;;
9723 enable_shared=no
9724 # Look at the argument we got. We use all the common list separators.
9725 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9726 for pkg in $enableval; do
9727 IFS=$lt_save_ifs
9728 if test "X$pkg" = "X$p"; then
9729 enable_shared=yes
9731 done
9732 IFS=$lt_save_ifs
9734 esac
9735 else
9736 enable_shared=yes
9747 # Check whether --enable-static was given.
9748 if test "${enable_static+set}" = set; then :
9749 enableval=$enable_static; p=${PACKAGE-default}
9750 case $enableval in
9751 yes) enable_static=yes ;;
9752 no) enable_static=no ;;
9754 enable_static=no
9755 # Look at the argument we got. We use all the common list separators.
9756 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9757 for pkg in $enableval; do
9758 IFS=$lt_save_ifs
9759 if test "X$pkg" = "X$p"; then
9760 enable_static=yes
9762 done
9763 IFS=$lt_save_ifs
9765 esac
9766 else
9767 enable_static=yes
9779 # Check whether --with-pic was given.
9780 if test "${with_pic+set}" = set; then :
9781 withval=$with_pic; lt_p=${PACKAGE-default}
9782 case $withval in
9783 yes|no) pic_mode=$withval ;;
9785 pic_mode=default
9786 # Look at the argument we got. We use all the common list separators.
9787 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9788 for lt_pkg in $withval; do
9789 IFS=$lt_save_ifs
9790 if test "X$lt_pkg" = "X$lt_p"; then
9791 pic_mode=yes
9793 done
9794 IFS=$lt_save_ifs
9796 esac
9797 else
9798 pic_mode=default
9808 # Check whether --enable-fast-install was given.
9809 if test "${enable_fast_install+set}" = set; then :
9810 enableval=$enable_fast_install; p=${PACKAGE-default}
9811 case $enableval in
9812 yes) enable_fast_install=yes ;;
9813 no) enable_fast_install=no ;;
9815 enable_fast_install=no
9816 # Look at the argument we got. We use all the common list separators.
9817 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9818 for pkg in $enableval; do
9819 IFS=$lt_save_ifs
9820 if test "X$pkg" = "X$p"; then
9821 enable_fast_install=yes
9823 done
9824 IFS=$lt_save_ifs
9826 esac
9827 else
9828 enable_fast_install=yes
9838 shared_archive_member_spec=
9839 case $host,$enable_shared in
9840 power*-*-aix[5-9]*,yes)
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9842 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9844 # Check whether --with-aix-soname was given.
9845 if test "${with_aix_soname+set}" = set; then :
9846 withval=$with_aix_soname; case $withval in
9847 aix|svr4|both)
9850 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9852 esac
9853 lt_cv_with_aix_soname=$with_aix_soname
9854 else
9855 if ${lt_cv_with_aix_soname+:} false; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 lt_cv_with_aix_soname=aix
9861 with_aix_soname=$lt_cv_with_aix_soname
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9865 $as_echo "$with_aix_soname" >&6; }
9866 if test aix != "$with_aix_soname"; then
9867 # For the AIX way of multilib, we name the shared archive member
9868 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9869 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9870 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9871 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9872 if test 64 = "${OBJECT_MODE-32}"; then
9873 shared_archive_member_spec=shr_64
9874 else
9875 shared_archive_member_spec=shr
9880 with_aix_soname=aix
9882 esac
9893 # This can be used to rebuild libtool when needed
9894 LIBTOOL_DEPS=$ltmain
9896 # Always use our own libtool.
9897 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9928 test -z "$LN_S" && LN_S="ln -s"
9943 if test -n "${ZSH_VERSION+set}"; then
9944 setopt NO_GLOB_SUBST
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9948 $as_echo_n "checking for objdir... " >&6; }
9949 if ${lt_cv_objdir+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 rm -f .libs 2>/dev/null
9953 mkdir .libs 2>/dev/null
9954 if test -d .libs; then
9955 lt_cv_objdir=.libs
9956 else
9957 # MS-DOS does not allow filenames that begin with a dot.
9958 lt_cv_objdir=_libs
9960 rmdir .libs 2>/dev/null
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9963 $as_echo "$lt_cv_objdir" >&6; }
9964 objdir=$lt_cv_objdir
9970 cat >>confdefs.h <<_ACEOF
9971 #define LT_OBJDIR "$lt_cv_objdir/"
9972 _ACEOF
9977 case $host_os in
9978 aix3*)
9979 # AIX sometimes has problems with the GCC collect2 program. For some
9980 # reason, if we set the COLLECT_NAMES environment variable, the problems
9981 # vanish in a puff of smoke.
9982 if test set != "${COLLECT_NAMES+set}"; then
9983 COLLECT_NAMES=
9984 export COLLECT_NAMES
9987 esac
9989 # Global variables:
9990 ofile=libtool
9991 can_build_shared=yes
9993 # All known linkers require a '.a' archive for static linking (except MSVC,
9994 # which needs '.lib').
9995 libext=a
9997 with_gnu_ld=$lt_cv_prog_gnu_ld
9999 old_CC=$CC
10000 old_CFLAGS=$CFLAGS
10002 # Set sane defaults for various variables
10003 test -z "$CC" && CC=cc
10004 test -z "$LTCC" && LTCC=$CC
10005 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10006 test -z "$LD" && LD=ld
10007 test -z "$ac_objext" && ac_objext=o
10009 func_cc_basename $compiler
10010 cc_basename=$func_cc_basename_result
10013 # Only perform the check for file, if the check method requires it
10014 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10015 case $deplibs_check_method in
10016 file_magic*)
10017 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10019 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10020 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 case $MAGIC_CMD in
10024 [\\/*] | ?:[\\/]*)
10025 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10028 lt_save_MAGIC_CMD=$MAGIC_CMD
10029 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10030 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10031 for ac_dir in $ac_dummy; do
10032 IFS=$lt_save_ifs
10033 test -z "$ac_dir" && ac_dir=.
10034 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10035 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10036 if test -n "$file_magic_test_file"; then
10037 case $deplibs_check_method in
10038 "file_magic "*)
10039 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10040 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10042 $EGREP "$file_magic_regex" > /dev/null; then
10044 else
10045 cat <<_LT_EOF 1>&2
10047 *** Warning: the command libtool uses to detect shared libraries,
10048 *** $file_magic_cmd, produces output that libtool cannot recognize.
10049 *** The result is that libtool may fail to recognize shared libraries
10050 *** as such. This will affect the creation of libtool libraries that
10051 *** depend on shared libraries, but programs linked with such libtool
10052 *** libraries will work regardless of this problem. Nevertheless, you
10053 *** may want to report the problem to your system manager and/or to
10054 *** bug-libtool@gnu.org
10056 _LT_EOF
10057 fi ;;
10058 esac
10060 break
10062 done
10063 IFS=$lt_save_ifs
10064 MAGIC_CMD=$lt_save_MAGIC_CMD
10066 esac
10069 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10070 if test -n "$MAGIC_CMD"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10072 $as_echo "$MAGIC_CMD" >&6; }
10073 else
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10082 if test -z "$lt_cv_path_MAGIC_CMD"; then
10083 if test -n "$ac_tool_prefix"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10085 $as_echo_n "checking for file... " >&6; }
10086 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 case $MAGIC_CMD in
10090 [\\/*] | ?:[\\/]*)
10091 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10094 lt_save_MAGIC_CMD=$MAGIC_CMD
10095 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10097 for ac_dir in $ac_dummy; do
10098 IFS=$lt_save_ifs
10099 test -z "$ac_dir" && ac_dir=.
10100 if test -f "$ac_dir/file"; then
10101 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10102 if test -n "$file_magic_test_file"; then
10103 case $deplibs_check_method in
10104 "file_magic "*)
10105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10106 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10108 $EGREP "$file_magic_regex" > /dev/null; then
10110 else
10111 cat <<_LT_EOF 1>&2
10113 *** Warning: the command libtool uses to detect shared libraries,
10114 *** $file_magic_cmd, produces output that libtool cannot recognize.
10115 *** The result is that libtool may fail to recognize shared libraries
10116 *** as such. This will affect the creation of libtool libraries that
10117 *** depend on shared libraries, but programs linked with such libtool
10118 *** libraries will work regardless of this problem. Nevertheless, you
10119 *** may want to report the problem to your system manager and/or to
10120 *** bug-libtool@gnu.org
10122 _LT_EOF
10123 fi ;;
10124 esac
10126 break
10128 done
10129 IFS=$lt_save_ifs
10130 MAGIC_CMD=$lt_save_MAGIC_CMD
10132 esac
10135 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10136 if test -n "$MAGIC_CMD"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10138 $as_echo "$MAGIC_CMD" >&6; }
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10145 else
10146 MAGIC_CMD=:
10152 esac
10154 # Use C for the default configuration in the libtool script
10156 lt_save_CC=$CC
10157 ac_ext=c
10158 ac_cpp='$CPP $CPPFLAGS'
10159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10164 # Source file extension for C test sources.
10165 ac_ext=c
10167 # Object file extension for compiled C test sources.
10168 objext=o
10169 objext=$objext
10171 # Code to be used in simple compile tests
10172 lt_simple_compile_test_code="int some_variable = 0;"
10174 # Code to be used in simple link tests
10175 lt_simple_link_test_code='int main(){return(0);}'
10183 # If no C compiler was specified, use CC.
10184 LTCC=${LTCC-"$CC"}
10186 # If no C compiler flags were specified, use CFLAGS.
10187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10189 # Allow CC to be a program name with arguments.
10190 compiler=$CC
10192 # Save the default compiler, since it gets overwritten when the other
10193 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10194 compiler_DEFAULT=$CC
10196 # save warnings/boilerplate of simple test code
10197 ac_outfile=conftest.$ac_objext
10198 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10199 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10200 _lt_compiler_boilerplate=`cat conftest.err`
10201 $RM conftest*
10203 ac_outfile=conftest.$ac_objext
10204 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10205 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10206 _lt_linker_boilerplate=`cat conftest.err`
10207 $RM -r conftest*
10210 ## CAVEAT EMPTOR:
10211 ## There is no encapsulation within the following macros, do not change
10212 ## the running order or otherwise move them around unless you know exactly
10213 ## what you are doing...
10214 if test -n "$compiler"; then
10216 lt_prog_compiler_no_builtin_flag=
10218 if test yes = "$GCC"; then
10219 case $cc_basename in
10220 nvcc*)
10221 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10223 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10224 esac
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10227 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10228 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 lt_cv_prog_compiler_rtti_exceptions=no
10232 ac_outfile=conftest.$ac_objext
10233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10234 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10235 # Insert the option either (1) after the last *FLAGS variable, or
10236 # (2) before a word containing "conftest.", or (3) at the end.
10237 # Note that $ac_compile itself does not contain backslashes and begins
10238 # with a dollar sign (not a hyphen), so the echo should work correctly.
10239 # The option is referenced via a variable to avoid confusing sed.
10240 lt_compile=`echo "$ac_compile" | $SED \
10241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10243 -e 's:$: $lt_compiler_flag:'`
10244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10245 (eval "$lt_compile" 2>conftest.err)
10246 ac_status=$?
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 if (exit $ac_status) && test -s "$ac_outfile"; then
10250 # The compiler can only warn and ignore the option if not recognized
10251 # So say no if there are warnings other than the usual output.
10252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10255 lt_cv_prog_compiler_rtti_exceptions=yes
10258 $RM conftest*
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10262 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10264 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10265 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10266 else
10277 lt_prog_compiler_wl=
10278 lt_prog_compiler_pic=
10279 lt_prog_compiler_static=
10282 if test yes = "$GCC"; then
10283 lt_prog_compiler_wl='-Wl,'
10284 lt_prog_compiler_static='-static'
10286 case $host_os in
10287 aix*)
10288 # All AIX code is PIC.
10289 if test ia64 = "$host_cpu"; then
10290 # AIX 5 now supports IA64 processor
10291 lt_prog_compiler_static='-Bstatic'
10293 lt_prog_compiler_pic='-fPIC'
10296 amigaos*)
10297 case $host_cpu in
10298 powerpc)
10299 # see comment about AmigaOS4 .so support
10300 lt_prog_compiler_pic='-fPIC'
10302 m68k)
10303 # FIXME: we need at least 68020 code to build shared libraries, but
10304 # adding the '-m68020' flag to GCC prevents building anything better,
10305 # like '-m68040'.
10306 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10308 esac
10311 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10312 # PIC is the default for these OSes.
10315 mingw* | cygwin* | pw32* | os2* | cegcc*)
10316 # This hack is so that the source file can tell whether it is being
10317 # built for inclusion in a dll (and should export symbols for example).
10318 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10319 # (--disable-auto-import) libraries
10320 lt_prog_compiler_pic='-DDLL_EXPORT'
10321 case $host_os in
10322 os2*)
10323 lt_prog_compiler_static='$wl-static'
10325 esac
10328 darwin* | rhapsody*)
10329 # PIC is the default on this platform
10330 # Common symbols not allowed in MH_DYLIB files
10331 lt_prog_compiler_pic='-fno-common'
10334 haiku*)
10335 # PIC is the default for Haiku.
10336 # The "-static" flag exists, but is broken.
10337 lt_prog_compiler_static=
10340 hpux*)
10341 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10342 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10343 # sets the default TLS model and affects inlining.
10344 case $host_cpu in
10345 hppa*64*)
10346 # +Z the default
10349 lt_prog_compiler_pic='-fPIC'
10351 esac
10354 interix[3-9]*)
10355 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10356 # Instead, we relocate shared libraries at runtime.
10359 msdosdjgpp*)
10360 # Just because we use GCC doesn't mean we suddenly get shared libraries
10361 # on systems that don't support them.
10362 lt_prog_compiler_can_build_shared=no
10363 enable_shared=no
10366 *nto* | *qnx*)
10367 # QNX uses GNU C++, but need to define -shared option too, otherwise
10368 # it will coredump.
10369 lt_prog_compiler_pic='-fPIC -shared'
10372 sysv4*MP*)
10373 if test -d /usr/nec; then
10374 lt_prog_compiler_pic=-Kconform_pic
10379 lt_prog_compiler_pic='-fPIC'
10381 esac
10383 case $cc_basename in
10384 nvcc*) # Cuda Compiler Driver 2.2
10385 lt_prog_compiler_wl='-Xlinker '
10386 if test -n "$lt_prog_compiler_pic"; then
10387 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10390 esac
10391 else
10392 # PORTME Check for flag to pass linker flags through the system compiler.
10393 case $host_os in
10394 aix*)
10395 lt_prog_compiler_wl='-Wl,'
10396 if test ia64 = "$host_cpu"; then
10397 # AIX 5 now supports IA64 processor
10398 lt_prog_compiler_static='-Bstatic'
10399 else
10400 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10404 darwin* | rhapsody*)
10405 # PIC is the default on this platform
10406 # Common symbols not allowed in MH_DYLIB files
10407 lt_prog_compiler_pic='-fno-common'
10408 case $cc_basename in
10409 nagfor*)
10410 # NAG Fortran compiler
10411 lt_prog_compiler_wl='-Wl,-Wl,,'
10412 lt_prog_compiler_pic='-PIC'
10413 lt_prog_compiler_static='-Bstatic'
10415 esac
10418 mingw* | cygwin* | pw32* | os2* | cegcc*)
10419 # This hack is so that the source file can tell whether it is being
10420 # built for inclusion in a dll (and should export symbols for example).
10421 lt_prog_compiler_pic='-DDLL_EXPORT'
10422 case $host_os in
10423 os2*)
10424 lt_prog_compiler_static='$wl-static'
10426 esac
10429 hpux9* | hpux10* | hpux11*)
10430 lt_prog_compiler_wl='-Wl,'
10431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10432 # not for PA HP-UX.
10433 case $host_cpu in
10434 hppa*64*|ia64*)
10435 # +Z the default
10438 lt_prog_compiler_pic='+Z'
10440 esac
10441 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10442 lt_prog_compiler_static='$wl-a ${wl}archive'
10445 irix5* | irix6* | nonstopux*)
10446 lt_prog_compiler_wl='-Wl,'
10447 # PIC (with -KPIC) is the default.
10448 lt_prog_compiler_static='-non_shared'
10451 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10452 case $cc_basename in
10453 # old Intel for x86_64, which still supported -KPIC.
10454 ecc*)
10455 lt_prog_compiler_wl='-Wl,'
10456 lt_prog_compiler_pic='-KPIC'
10457 lt_prog_compiler_static='-static'
10459 # icc used to be incompatible with GCC.
10460 # ICC 10 doesn't accept -KPIC any more.
10461 icc* | ifort*)
10462 lt_prog_compiler_wl='-Wl,'
10463 lt_prog_compiler_pic='-fPIC'
10464 lt_prog_compiler_static='-static'
10466 # Lahey Fortran 8.1.
10467 lf95*)
10468 lt_prog_compiler_wl='-Wl,'
10469 lt_prog_compiler_pic='--shared'
10470 lt_prog_compiler_static='--static'
10472 nagfor*)
10473 # NAG Fortran compiler
10474 lt_prog_compiler_wl='-Wl,-Wl,,'
10475 lt_prog_compiler_pic='-PIC'
10476 lt_prog_compiler_static='-Bstatic'
10478 tcc*)
10479 # Fabrice Bellard et al's Tiny C Compiler
10480 lt_prog_compiler_wl='-Wl,'
10481 lt_prog_compiler_pic='-fPIC'
10482 lt_prog_compiler_static='-static'
10484 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10485 # Portland Group compilers (*not* the Pentium gcc compiler,
10486 # which looks to be a dead project)
10487 lt_prog_compiler_wl='-Wl,'
10488 lt_prog_compiler_pic='-fpic'
10489 lt_prog_compiler_static='-Bstatic'
10491 ccc*)
10492 lt_prog_compiler_wl='-Wl,'
10493 # All Alpha code is PIC.
10494 lt_prog_compiler_static='-non_shared'
10496 xl* | bgxl* | bgf* | mpixl*)
10497 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10498 lt_prog_compiler_wl='-Wl,'
10499 lt_prog_compiler_pic='-qpic'
10500 lt_prog_compiler_static='-qstaticlink'
10503 case `$CC -V 2>&1 | sed 5q` in
10504 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10505 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10506 lt_prog_compiler_pic='-KPIC'
10507 lt_prog_compiler_static='-Bstatic'
10508 lt_prog_compiler_wl=''
10510 *Sun\ F* | *Sun*Fortran*)
10511 lt_prog_compiler_pic='-KPIC'
10512 lt_prog_compiler_static='-Bstatic'
10513 lt_prog_compiler_wl='-Qoption ld '
10515 *Sun\ C*)
10516 # Sun C 5.9
10517 lt_prog_compiler_pic='-KPIC'
10518 lt_prog_compiler_static='-Bstatic'
10519 lt_prog_compiler_wl='-Wl,'
10521 *Intel*\ [CF]*Compiler*)
10522 lt_prog_compiler_wl='-Wl,'
10523 lt_prog_compiler_pic='-fPIC'
10524 lt_prog_compiler_static='-static'
10526 *Portland\ Group*)
10527 lt_prog_compiler_wl='-Wl,'
10528 lt_prog_compiler_pic='-fpic'
10529 lt_prog_compiler_static='-Bstatic'
10531 esac
10533 esac
10536 newsos6)
10537 lt_prog_compiler_pic='-KPIC'
10538 lt_prog_compiler_static='-Bstatic'
10541 *nto* | *qnx*)
10542 # QNX uses GNU C++, but need to define -shared option too, otherwise
10543 # it will coredump.
10544 lt_prog_compiler_pic='-fPIC -shared'
10547 osf3* | osf4* | osf5*)
10548 lt_prog_compiler_wl='-Wl,'
10549 # All OSF/1 code is PIC.
10550 lt_prog_compiler_static='-non_shared'
10553 rdos*)
10554 lt_prog_compiler_static='-non_shared'
10557 solaris*)
10558 lt_prog_compiler_pic='-KPIC'
10559 lt_prog_compiler_static='-Bstatic'
10560 case $cc_basename in
10561 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10562 lt_prog_compiler_wl='-Qoption ld ';;
10564 lt_prog_compiler_wl='-Wl,';;
10565 esac
10568 sunos4*)
10569 lt_prog_compiler_wl='-Qoption ld '
10570 lt_prog_compiler_pic='-PIC'
10571 lt_prog_compiler_static='-Bstatic'
10574 sysv4 | sysv4.2uw2* | sysv4.3*)
10575 lt_prog_compiler_wl='-Wl,'
10576 lt_prog_compiler_pic='-KPIC'
10577 lt_prog_compiler_static='-Bstatic'
10580 sysv4*MP*)
10581 if test -d /usr/nec; then
10582 lt_prog_compiler_pic='-Kconform_pic'
10583 lt_prog_compiler_static='-Bstatic'
10587 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10588 lt_prog_compiler_wl='-Wl,'
10589 lt_prog_compiler_pic='-KPIC'
10590 lt_prog_compiler_static='-Bstatic'
10593 unicos*)
10594 lt_prog_compiler_wl='-Wl,'
10595 lt_prog_compiler_can_build_shared=no
10598 uts4*)
10599 lt_prog_compiler_pic='-pic'
10600 lt_prog_compiler_static='-Bstatic'
10604 lt_prog_compiler_can_build_shared=no
10606 esac
10609 case $host_os in
10610 # For platforms that do not support PIC, -DPIC is meaningless:
10611 *djgpp*)
10612 lt_prog_compiler_pic=
10615 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10617 esac
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10620 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10621 if ${lt_cv_prog_compiler_pic+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10627 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10628 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10631 # Check to make sure the PIC flag actually works.
10633 if test -n "$lt_prog_compiler_pic"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10635 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10636 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 lt_cv_prog_compiler_pic_works=no
10640 ac_outfile=conftest.$ac_objext
10641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10642 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10643 # Insert the option either (1) after the last *FLAGS variable, or
10644 # (2) before a word containing "conftest.", or (3) at the end.
10645 # Note that $ac_compile itself does not contain backslashes and begins
10646 # with a dollar sign (not a hyphen), so the echo should work correctly.
10647 # The option is referenced via a variable to avoid confusing sed.
10648 lt_compile=`echo "$ac_compile" | $SED \
10649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10651 -e 's:$: $lt_compiler_flag:'`
10652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10653 (eval "$lt_compile" 2>conftest.err)
10654 ac_status=$?
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 if (exit $ac_status) && test -s "$ac_outfile"; then
10658 # The compiler can only warn and ignore the option if not recognized
10659 # So say no if there are warnings other than the usual output.
10660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10663 lt_cv_prog_compiler_pic_works=yes
10666 $RM conftest*
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10670 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10672 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10673 case $lt_prog_compiler_pic in
10674 "" | " "*) ;;
10675 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10676 esac
10677 else
10678 lt_prog_compiler_pic=
10679 lt_prog_compiler_can_build_shared=no
10695 # Check to make sure the static flag actually works.
10697 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10699 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10700 if ${lt_cv_prog_compiler_static_works+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 lt_cv_prog_compiler_static_works=no
10704 save_LDFLAGS=$LDFLAGS
10705 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10706 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10708 # The linker can only warn and ignore the option if not recognized
10709 # So say no if there are warnings
10710 if test -s conftest.err; then
10711 # Append any errors to the config.log.
10712 cat conftest.err 1>&5
10713 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10715 if diff conftest.exp conftest.er2 >/dev/null; then
10716 lt_cv_prog_compiler_static_works=yes
10718 else
10719 lt_cv_prog_compiler_static_works=yes
10722 $RM -r conftest*
10723 LDFLAGS=$save_LDFLAGS
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10727 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10729 if test yes = "$lt_cv_prog_compiler_static_works"; then
10731 else
10732 lt_prog_compiler_static=
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10743 if ${lt_cv_prog_compiler_c_o+:} false; then :
10744 $as_echo_n "(cached) " >&6
10745 else
10746 lt_cv_prog_compiler_c_o=no
10747 $RM -r conftest 2>/dev/null
10748 mkdir conftest
10749 cd conftest
10750 mkdir out
10751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10753 lt_compiler_flag="-o out/conftest2.$ac_objext"
10754 # Insert the option either (1) after the last *FLAGS variable, or
10755 # (2) before a word containing "conftest.", or (3) at the end.
10756 # Note that $ac_compile itself does not contain backslashes and begins
10757 # with a dollar sign (not a hyphen), so the echo should work correctly.
10758 lt_compile=`echo "$ac_compile" | $SED \
10759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10761 -e 's:$: $lt_compiler_flag:'`
10762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10763 (eval "$lt_compile" 2>out/conftest.err)
10764 ac_status=$?
10765 cat out/conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10768 then
10769 # The compiler can only warn and ignore the option if not recognized
10770 # So say no if there are warnings
10771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10774 lt_cv_prog_compiler_c_o=yes
10777 chmod u+w . 2>&5
10778 $RM conftest*
10779 # SGI C++ compiler will create directory out/ii_files/ for
10780 # template instantiation
10781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10782 $RM out/* && rmdir out
10783 cd ..
10784 $RM -r conftest
10785 $RM conftest*
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10789 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10797 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10798 if ${lt_cv_prog_compiler_c_o+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 lt_cv_prog_compiler_c_o=no
10802 $RM -r conftest 2>/dev/null
10803 mkdir conftest
10804 cd conftest
10805 mkdir out
10806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10808 lt_compiler_flag="-o out/conftest2.$ac_objext"
10809 # Insert the option either (1) after the last *FLAGS variable, or
10810 # (2) before a word containing "conftest.", or (3) at the end.
10811 # Note that $ac_compile itself does not contain backslashes and begins
10812 # with a dollar sign (not a hyphen), so the echo should work correctly.
10813 lt_compile=`echo "$ac_compile" | $SED \
10814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10816 -e 's:$: $lt_compiler_flag:'`
10817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10818 (eval "$lt_compile" 2>out/conftest.err)
10819 ac_status=$?
10820 cat out/conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10823 then
10824 # The compiler can only warn and ignore the option if not recognized
10825 # So say no if there are warnings
10826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10829 lt_cv_prog_compiler_c_o=yes
10832 chmod u+w . 2>&5
10833 $RM conftest*
10834 # SGI C++ compiler will create directory out/ii_files/ for
10835 # template instantiation
10836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10837 $RM out/* && rmdir out
10838 cd ..
10839 $RM -r conftest
10840 $RM conftest*
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10844 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10849 hard_links=nottested
10850 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10851 # do not overwrite the value of need_locks provided by the user
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10853 $as_echo_n "checking if we can lock with hard links... " >&6; }
10854 hard_links=yes
10855 $RM conftest*
10856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10857 touch conftest.a
10858 ln conftest.a conftest.b 2>&5 || hard_links=no
10859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10861 $as_echo "$hard_links" >&6; }
10862 if test no = "$hard_links"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10864 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10865 need_locks=warn
10867 else
10868 need_locks=no
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10877 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10879 runpath_var=
10880 allow_undefined_flag=
10881 always_export_symbols=no
10882 archive_cmds=
10883 archive_expsym_cmds=
10884 compiler_needs_object=no
10885 enable_shared_with_static_runtimes=no
10886 export_dynamic_flag_spec=
10887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10888 hardcode_automatic=no
10889 hardcode_direct=no
10890 hardcode_direct_absolute=no
10891 hardcode_libdir_flag_spec=
10892 hardcode_libdir_separator=
10893 hardcode_minus_L=no
10894 hardcode_shlibpath_var=unsupported
10895 inherit_rpath=no
10896 link_all_deplibs=unknown
10897 module_cmds=
10898 module_expsym_cmds=
10899 old_archive_from_new_cmds=
10900 old_archive_from_expsyms_cmds=
10901 thread_safe_flag_spec=
10902 whole_archive_flag_spec=
10903 # include_expsyms should be a list of space-separated symbols to be *always*
10904 # included in the symbol list
10905 include_expsyms=
10906 # exclude_expsyms can be an extended regexp of symbols to exclude
10907 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10908 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10909 # as well as any symbol that contains 'd'.
10910 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10912 # platforms (ab)use it in PIC code, but their linkers get confused if
10913 # the symbol is explicitly referenced. Since portable code cannot
10914 # rely on this symbol name, it's probably fine to never include it in
10915 # preloaded symbol tables.
10916 # Exclude shared library initialization/finalization symbols.
10917 extract_expsyms_cmds=
10919 case $host_os in
10920 cygwin* | mingw* | pw32* | cegcc*)
10921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10922 # When not using gcc, we currently assume that we are using
10923 # Microsoft Visual C++.
10924 if test yes != "$GCC"; then
10925 with_gnu_ld=no
10928 interix*)
10929 # we just hope/assume this is gcc and not c89 (= MSVC++)
10930 with_gnu_ld=yes
10932 openbsd* | bitrig*)
10933 with_gnu_ld=no
10935 esac
10937 ld_shlibs=yes
10939 # On some targets, GNU ld is compatible enough with the native linker
10940 # that we're better off using the native interface for both.
10941 lt_use_gnu_ld_interface=no
10942 if test yes = "$with_gnu_ld"; then
10943 case $host_os in
10944 aix*)
10945 # The AIX port of GNU ld has always aspired to compatibility
10946 # with the native linker. However, as the warning in the GNU ld
10947 # block says, versions before 2.19.5* couldn't really create working
10948 # shared libraries, regardless of the interface used.
10949 case `$LD -v 2>&1` in
10950 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10951 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10952 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10954 lt_use_gnu_ld_interface=yes
10956 esac
10959 lt_use_gnu_ld_interface=yes
10961 esac
10964 if test yes = "$lt_use_gnu_ld_interface"; then
10965 # If archive_cmds runs LD, not CC, wlarc should be empty
10966 wlarc='$wl'
10968 # Set some defaults for GNU ld with shared library support. These
10969 # are reset later if shared libraries are not supported. Putting them
10970 # here allows them to be overridden if necessary.
10971 runpath_var=LD_RUN_PATH
10972 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10973 export_dynamic_flag_spec='$wl--export-dynamic'
10974 # ancient GNU ld didn't support --whole-archive et. al.
10975 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10976 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10977 else
10978 whole_archive_flag_spec=
10980 supports_anon_versioning=no
10981 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10982 *GNU\ gold*) supports_anon_versioning=yes ;;
10983 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10984 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10985 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10986 *\ 2.11.*) ;; # other 2.11 versions
10987 *) supports_anon_versioning=yes ;;
10988 esac
10990 # See if GNU ld supports shared libraries.
10991 case $host_os in
10992 aix[3-9]*)
10993 # On AIX/PPC, the GNU linker is very broken
10994 if test ia64 != "$host_cpu"; then
10995 ld_shlibs=no
10996 cat <<_LT_EOF 1>&2
10998 *** Warning: the GNU linker, at least up to release 2.19, is reported
10999 *** to be unable to reliably create shared libraries on AIX.
11000 *** Therefore, libtool is disabling shared libraries support. If you
11001 *** really care for shared libraries, you may want to install binutils
11002 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11003 *** You will then need to restart the configuration process.
11005 _LT_EOF
11009 amigaos*)
11010 case $host_cpu in
11011 powerpc)
11012 # see comment about AmigaOS4 .so support
11013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11014 archive_expsym_cmds=''
11016 m68k)
11017 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)'
11018 hardcode_libdir_flag_spec='-L$libdir'
11019 hardcode_minus_L=yes
11021 esac
11024 beos*)
11025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11026 allow_undefined_flag=unsupported
11027 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11028 # support --undefined. This deserves some investigation. FIXME
11029 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11030 else
11031 ld_shlibs=no
11035 cygwin* | mingw* | pw32* | cegcc*)
11036 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11037 # as there is no search path for DLLs.
11038 hardcode_libdir_flag_spec='-L$libdir'
11039 export_dynamic_flag_spec='$wl--export-all-symbols'
11040 allow_undefined_flag=unsupported
11041 always_export_symbols=no
11042 enable_shared_with_static_runtimes=yes
11043 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'
11044 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11046 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11048 # If the export-symbols file already is a .def file, use it as
11049 # is; otherwise, prepend EXPORTS...
11050 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11051 cp $export_symbols $output_objdir/$soname.def;
11052 else
11053 echo EXPORTS > $output_objdir/$soname.def;
11054 cat $export_symbols >> $output_objdir/$soname.def;
11056 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11057 else
11058 ld_shlibs=no
11062 haiku*)
11063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11064 link_all_deplibs=yes
11067 os2*)
11068 hardcode_libdir_flag_spec='-L$libdir'
11069 hardcode_minus_L=yes
11070 allow_undefined_flag=unsupported
11071 shrext_cmds=.dll
11072 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11073 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11074 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11075 $ECHO EXPORTS >> $output_objdir/$libname.def~
11076 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11077 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11078 emximp -o $lib $output_objdir/$libname.def'
11079 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11080 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11081 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11082 $ECHO EXPORTS >> $output_objdir/$libname.def~
11083 prefix_cmds="$SED"~
11084 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11085 prefix_cmds="$prefix_cmds -e 1d";
11087 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11088 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11089 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11090 emximp -o $lib $output_objdir/$libname.def'
11091 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11092 enable_shared_with_static_runtimes=yes
11095 interix[3-9]*)
11096 hardcode_direct=no
11097 hardcode_shlibpath_var=no
11098 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11099 export_dynamic_flag_spec='$wl-E'
11100 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11101 # Instead, shared libraries are loaded at an image base (0x10000000 by
11102 # default) and relocated if they conflict, which is a slow very memory
11103 # consuming and fragmenting process. To avoid this, we pick a random,
11104 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11105 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11107 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'
11110 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11111 tmp_diet=no
11112 if test linux-dietlibc = "$host_os"; then
11113 case $cc_basename in
11114 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11115 esac
11117 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11118 && test no = "$tmp_diet"
11119 then
11120 tmp_addflag=' $pic_flag'
11121 tmp_sharedflag='-shared'
11122 case $cc_basename,$host_cpu in
11123 pgcc*) # Portland Group C compiler
11124 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'
11125 tmp_addflag=' $pic_flag'
11127 pgf77* | pgf90* | pgf95* | pgfortran*)
11128 # Portland Group f77 and f90 compilers
11129 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'
11130 tmp_addflag=' $pic_flag -Mnomain' ;;
11131 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11132 tmp_addflag=' -i_dynamic' ;;
11133 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11134 tmp_addflag=' -i_dynamic -nofor_main' ;;
11135 ifc* | ifort*) # Intel Fortran compiler
11136 tmp_addflag=' -nofor_main' ;;
11137 lf95*) # Lahey Fortran 8.1
11138 whole_archive_flag_spec=
11139 tmp_sharedflag='--shared' ;;
11140 nagfor*) # NAGFOR 5.3
11141 tmp_sharedflag='-Wl,-shared' ;;
11142 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11143 tmp_sharedflag='-qmkshrobj'
11144 tmp_addflag= ;;
11145 nvcc*) # Cuda Compiler Driver 2.2
11146 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'
11147 compiler_needs_object=yes
11149 esac
11150 case `$CC -V 2>&1 | sed 5q` in
11151 *Sun\ C*) # Sun C 5.9
11152 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'
11153 compiler_needs_object=yes
11154 tmp_sharedflag='-G' ;;
11155 *Sun\ F*) # Sun Fortran 8.3
11156 tmp_sharedflag='-G' ;;
11157 esac
11158 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11160 if test yes = "$supports_anon_versioning"; then
11161 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11163 echo "local: *; };" >> $output_objdir/$libname.ver~
11164 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11167 case $cc_basename in
11168 tcc*)
11169 export_dynamic_flag_spec='-rdynamic'
11171 xlf* | bgf* | bgxlf* | mpixlf*)
11172 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11173 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11174 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11175 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11176 if test yes = "$supports_anon_versioning"; then
11177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11179 echo "local: *; };" >> $output_objdir/$libname.ver~
11180 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11183 esac
11184 else
11185 ld_shlibs=no
11189 netbsd*)
11190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11191 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11192 wlarc=
11193 else
11194 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11195 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11199 solaris*)
11200 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11201 ld_shlibs=no
11202 cat <<_LT_EOF 1>&2
11204 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11205 *** create shared libraries on Solaris systems. Therefore, libtool
11206 *** is disabling shared libraries support. We urge you to upgrade GNU
11207 *** binutils to release 2.9.1 or newer. Another option is to modify
11208 *** your PATH or compiler configuration so that the native linker is
11209 *** used, and then restart.
11211 _LT_EOF
11212 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11213 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11214 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11215 else
11216 ld_shlibs=no
11220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11221 case `$LD -v 2>&1` in
11222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11223 ld_shlibs=no
11224 cat <<_LT_EOF 1>&2
11226 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11227 *** reliably create shared libraries on SCO systems. Therefore, libtool
11228 *** is disabling shared libraries support. We urge you to upgrade GNU
11229 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11230 *** your PATH or compiler configuration so that the native linker is
11231 *** used, and then restart.
11233 _LT_EOF
11236 # For security reasons, it is highly recommended that you always
11237 # use absolute paths for naming shared libraries, and exclude the
11238 # DT_RUNPATH tag from executables and libraries. But doing so
11239 # requires that you compile everything twice, which is a pain.
11240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11241 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11244 else
11245 ld_shlibs=no
11248 esac
11251 sunos4*)
11252 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11253 wlarc=
11254 hardcode_direct=yes
11255 hardcode_shlibpath_var=no
11259 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11260 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11261 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11262 else
11263 ld_shlibs=no
11266 esac
11268 if test no = "$ld_shlibs"; then
11269 runpath_var=
11270 hardcode_libdir_flag_spec=
11271 export_dynamic_flag_spec=
11272 whole_archive_flag_spec=
11274 else
11275 # PORTME fill in a description of your system's linker (not GNU ld)
11276 case $host_os in
11277 aix3*)
11278 allow_undefined_flag=unsupported
11279 always_export_symbols=yes
11280 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'
11281 # Note: this linker hardcodes the directories in LIBPATH if there
11282 # are no directories specified by -L.
11283 hardcode_minus_L=yes
11284 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11285 # Neither direct hardcoding nor static linking is supported with a
11286 # broken collect2.
11287 hardcode_direct=unsupported
11291 aix[4-9]*)
11292 if test ia64 = "$host_cpu"; then
11293 # On IA64, the linker does run time linking by default, so we don't
11294 # have to do anything special.
11295 aix_use_runtimelinking=no
11296 exp_sym_flag='-Bexport'
11297 no_entry_flag=
11298 else
11299 # If we're using GNU nm, then we don't want the "-C" option.
11300 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11301 # Without the "-l" option, or with the "-B" option, AIX nm treats
11302 # weak defined symbols like other global defined symbols, whereas
11303 # GNU nm marks them as "W".
11304 # While the 'weak' keyword is ignored in the Export File, we need
11305 # it in the Import File for the 'aix-soname' feature, so we have
11306 # to replace the "-B" option with "-P" for AIX nm.
11307 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11308 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'
11309 else
11310 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'
11312 aix_use_runtimelinking=no
11314 # Test if we are trying to use run time linking or normal
11315 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11316 # have runtime linking enabled, and use it for executables.
11317 # For shared libraries, we enable/disable runtime linking
11318 # depending on the kind of the shared library created -
11319 # when "with_aix_soname,aix_use_runtimelinking" is:
11320 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11321 # "aix,yes" lib.so shared, rtl:yes, for executables
11322 # lib.a static archive
11323 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11324 # lib.a(lib.so.V) shared, rtl:no, for executables
11325 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11326 # lib.a(lib.so.V) shared, rtl:no
11327 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11328 # lib.a static archive
11329 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11330 for ld_flag in $LDFLAGS; do
11331 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11332 aix_use_runtimelinking=yes
11333 break
11335 done
11336 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11337 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11338 # so we don't have lib.a shared libs to link our executables.
11339 # We have to force runtime linking in this case.
11340 aix_use_runtimelinking=yes
11341 LDFLAGS="$LDFLAGS -Wl,-brtl"
11344 esac
11346 exp_sym_flag='-bexport'
11347 no_entry_flag='-bnoentry'
11350 # When large executables or shared objects are built, AIX ld can
11351 # have problems creating the table of contents. If linking a library
11352 # or program results in "error TOC overflow" add -mminimal-toc to
11353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11356 archive_cmds=''
11357 hardcode_direct=yes
11358 hardcode_direct_absolute=yes
11359 hardcode_libdir_separator=':'
11360 link_all_deplibs=yes
11361 file_list_spec='$wl-f,'
11362 case $with_aix_soname,$aix_use_runtimelinking in
11363 aix,*) ;; # traditional, no import file
11364 svr4,* | *,yes) # use import file
11365 # The Import File defines what to hardcode.
11366 hardcode_direct=no
11367 hardcode_direct_absolute=no
11369 esac
11371 if test yes = "$GCC"; then
11372 case $host_os in aix4.[012]|aix4.[012].*)
11373 # We only want to do this on AIX 4.2 and lower, the check
11374 # below for broken collect2 doesn't work under 4.3+
11375 collect2name=`$CC -print-prog-name=collect2`
11376 if test -f "$collect2name" &&
11377 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11378 then
11379 # We have reworked collect2
11381 else
11382 # We have old collect2
11383 hardcode_direct=unsupported
11384 # It fails to find uninstalled libraries when the uninstalled
11385 # path is not listed in the libpath. Setting hardcode_minus_L
11386 # to unsupported forces relinking
11387 hardcode_minus_L=yes
11388 hardcode_libdir_flag_spec='-L$libdir'
11389 hardcode_libdir_separator=
11392 esac
11393 shared_flag='-shared'
11394 if test yes = "$aix_use_runtimelinking"; then
11395 shared_flag="$shared_flag "'$wl-G'
11397 # Need to ensure runtime linking is disabled for the traditional
11398 # shared library, or the linker may eventually find shared libraries
11399 # /with/ Import File - we do not want to mix them.
11400 shared_flag_aix='-shared'
11401 shared_flag_svr4='-shared $wl-G'
11402 else
11403 # not using gcc
11404 if test ia64 = "$host_cpu"; then
11405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11406 # chokes on -Wl,-G. The following line is correct:
11407 shared_flag='-G'
11408 else
11409 if test yes = "$aix_use_runtimelinking"; then
11410 shared_flag='$wl-G'
11411 else
11412 shared_flag='$wl-bM:SRE'
11414 shared_flag_aix='$wl-bM:SRE'
11415 shared_flag_svr4='$wl-G'
11419 export_dynamic_flag_spec='$wl-bexpall'
11420 # It seems that -bexpall does not export symbols beginning with
11421 # underscore (_), so it is better to generate a list of symbols to export.
11422 always_export_symbols=yes
11423 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11424 # Warning - without using the other runtime loading flags (-brtl),
11425 # -berok will link without error, but may produce a broken library.
11426 allow_undefined_flag='-berok'
11427 # Determine the default libpath from the value encoded in an
11428 # empty executable.
11429 if test set = "${lt_cv_aix_libpath+set}"; then
11430 aix_libpath=$lt_cv_aix_libpath
11431 else
11432 if ${lt_cv_aix_libpath_+:} false; then :
11433 $as_echo_n "(cached) " >&6
11434 else
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11439 main ()
11443 return 0;
11445 _ACEOF
11446 if ac_fn_c_try_link "$LINENO"; then :
11448 lt_aix_libpath_sed='
11449 /Import File Strings/,/^$/ {
11450 /^0/ {
11451 s/^0 *\([^ ]*\) *$/\1/
11455 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11456 # Check for a 64-bit object if we didn't find anything.
11457 if test -z "$lt_cv_aix_libpath_"; then
11458 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 if test -z "$lt_cv_aix_libpath_"; then
11464 lt_cv_aix_libpath_=/usr/lib:/lib
11469 aix_libpath=$lt_cv_aix_libpath_
11472 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11473 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
11474 else
11475 if test ia64 = "$host_cpu"; then
11476 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11477 allow_undefined_flag="-z nodefs"
11478 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"
11479 else
11480 # Determine the default libpath from the value encoded in an
11481 # empty executable.
11482 if test set = "${lt_cv_aix_libpath+set}"; then
11483 aix_libpath=$lt_cv_aix_libpath
11484 else
11485 if ${lt_cv_aix_libpath_+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11492 main ()
11496 return 0;
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11501 lt_aix_libpath_sed='
11502 /Import File Strings/,/^$/ {
11503 /^0/ {
11504 s/^0 *\([^ ]*\) *$/\1/
11508 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11509 # Check for a 64-bit object if we didn't find anything.
11510 if test -z "$lt_cv_aix_libpath_"; then
11511 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11514 rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 if test -z "$lt_cv_aix_libpath_"; then
11517 lt_cv_aix_libpath_=/usr/lib:/lib
11522 aix_libpath=$lt_cv_aix_libpath_
11525 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11526 # Warning - without using the other run time loading flags,
11527 # -berok will link without error, but may produce a broken library.
11528 no_undefined_flag=' $wl-bernotok'
11529 allow_undefined_flag=' $wl-berok'
11530 if test yes = "$with_gnu_ld"; then
11531 # We only use this code for GNU lds that support --whole-archive.
11532 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11533 else
11534 # Exported symbols can be pulled into shared objects from archives
11535 whole_archive_flag_spec='$convenience'
11537 archive_cmds_need_lc=yes
11538 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11539 # -brtl affects multiple linker settings, -berok does not and is overridden later
11540 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11541 if test svr4 != "$with_aix_soname"; then
11542 # This is similar to how AIX traditionally builds its shared libraries.
11543 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'
11545 if test aix != "$with_aix_soname"; then
11546 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'
11547 else
11548 # used by -dlpreopen to get the symbols
11549 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11551 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11556 amigaos*)
11557 case $host_cpu in
11558 powerpc)
11559 # see comment about AmigaOS4 .so support
11560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11561 archive_expsym_cmds=''
11563 m68k)
11564 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)'
11565 hardcode_libdir_flag_spec='-L$libdir'
11566 hardcode_minus_L=yes
11568 esac
11571 bsdi[45]*)
11572 export_dynamic_flag_spec=-rdynamic
11575 cygwin* | mingw* | pw32* | cegcc*)
11576 # When not using gcc, we currently assume that we are using
11577 # Microsoft Visual C++.
11578 # hardcode_libdir_flag_spec is actually meaningless, as there is
11579 # no search path for DLLs.
11580 case $cc_basename in
11581 cl*)
11582 # Native MSVC
11583 hardcode_libdir_flag_spec=' '
11584 allow_undefined_flag=unsupported
11585 always_export_symbols=yes
11586 file_list_spec='@'
11587 # Tell ltmain to make .lib files, not .a files.
11588 libext=lib
11589 # Tell ltmain to make .dll files, not .so files.
11590 shrext_cmds=.dll
11591 # FIXME: Setting linknames here is a bad hack.
11592 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11593 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11594 cp "$export_symbols" "$output_objdir/$soname.def";
11595 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11596 else
11597 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11599 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11600 linknames='
11601 # The linker will not automatically build a static lib if we build a DLL.
11602 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11603 enable_shared_with_static_runtimes=yes
11604 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11606 # Don't use ranlib
11607 old_postinstall_cmds='chmod 644 $oldlib'
11608 postlink_cmds='lt_outputfile="@OUTPUT@"~
11609 lt_tool_outputfile="@TOOL_OUTPUT@"~
11610 case $lt_outputfile in
11611 *.exe|*.EXE) ;;
11613 lt_outputfile=$lt_outputfile.exe
11614 lt_tool_outputfile=$lt_tool_outputfile.exe
11616 esac~
11617 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11618 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11619 $RM "$lt_outputfile.manifest";
11623 # Assume MSVC wrapper
11624 hardcode_libdir_flag_spec=' '
11625 allow_undefined_flag=unsupported
11626 # Tell ltmain to make .lib files, not .a files.
11627 libext=lib
11628 # Tell ltmain to make .dll files, not .so files.
11629 shrext_cmds=.dll
11630 # FIXME: Setting linknames here is a bad hack.
11631 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11632 # The linker will automatically build a .lib file if we build a DLL.
11633 old_archive_from_new_cmds='true'
11634 # FIXME: Should let the user specify the lib program.
11635 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11636 enable_shared_with_static_runtimes=yes
11638 esac
11641 darwin* | rhapsody*)
11644 archive_cmds_need_lc=no
11645 hardcode_direct=no
11646 hardcode_automatic=yes
11647 hardcode_shlibpath_var=unsupported
11648 if test yes = "$lt_cv_ld_force_load"; then
11649 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\"`'
11651 else
11652 whole_archive_flag_spec=''
11654 link_all_deplibs=yes
11655 allow_undefined_flag=$_lt_dar_allow_undefined
11656 case $cc_basename in
11657 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11658 *) _lt_dar_can_shared=$GCC ;;
11659 esac
11660 if test yes = "$_lt_dar_can_shared"; then
11661 output_verbose_link_cmd=func_echo_all
11662 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11663 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11664 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"
11665 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"
11667 else
11668 ld_shlibs=no
11673 dgux*)
11674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11675 hardcode_libdir_flag_spec='-L$libdir'
11676 hardcode_shlibpath_var=no
11679 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11680 # support. Future versions do this automatically, but an explicit c++rt0.o
11681 # does not break anything, and helps significantly (at the cost of a little
11682 # extra space).
11683 freebsd2.2*)
11684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11685 hardcode_libdir_flag_spec='-R$libdir'
11686 hardcode_direct=yes
11687 hardcode_shlibpath_var=no
11690 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11691 freebsd2.*)
11692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11693 hardcode_direct=yes
11694 hardcode_minus_L=yes
11695 hardcode_shlibpath_var=no
11698 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11699 freebsd* | dragonfly*)
11700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11701 hardcode_libdir_flag_spec='-R$libdir'
11702 hardcode_direct=yes
11703 hardcode_shlibpath_var=no
11706 hpux9*)
11707 if test yes = "$GCC"; then
11708 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'
11709 else
11710 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'
11712 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11713 hardcode_libdir_separator=:
11714 hardcode_direct=yes
11716 # hardcode_minus_L: Not really in the search PATH,
11717 # but as the default location of the library.
11718 hardcode_minus_L=yes
11719 export_dynamic_flag_spec='$wl-E'
11722 hpux10*)
11723 if test yes,no = "$GCC,$with_gnu_ld"; then
11724 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11725 else
11726 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11728 if test no = "$with_gnu_ld"; then
11729 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11730 hardcode_libdir_separator=:
11731 hardcode_direct=yes
11732 hardcode_direct_absolute=yes
11733 export_dynamic_flag_spec='$wl-E'
11734 # hardcode_minus_L: Not really in the search PATH,
11735 # but as the default location of the library.
11736 hardcode_minus_L=yes
11740 hpux11*)
11741 if test yes,no = "$GCC,$with_gnu_ld"; then
11742 case $host_cpu in
11743 hppa*64*)
11744 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11746 ia64*)
11747 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11750 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11752 esac
11753 else
11754 case $host_cpu in
11755 hppa*64*)
11756 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11758 ia64*)
11759 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11763 # Older versions of the 11.00 compiler do not understand -b yet
11764 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11766 $as_echo_n "checking if $CC understands -b... " >&6; }
11767 if ${lt_cv_prog_compiler__b+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 lt_cv_prog_compiler__b=no
11771 save_LDFLAGS=$LDFLAGS
11772 LDFLAGS="$LDFLAGS -b"
11773 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11775 # The linker can only warn and ignore the option if not recognized
11776 # So say no if there are warnings
11777 if test -s conftest.err; then
11778 # Append any errors to the config.log.
11779 cat conftest.err 1>&5
11780 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11782 if diff conftest.exp conftest.er2 >/dev/null; then
11783 lt_cv_prog_compiler__b=yes
11785 else
11786 lt_cv_prog_compiler__b=yes
11789 $RM -r conftest*
11790 LDFLAGS=$save_LDFLAGS
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11794 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11796 if test yes = "$lt_cv_prog_compiler__b"; then
11797 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11798 else
11799 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11803 esac
11805 if test no = "$with_gnu_ld"; then
11806 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11807 hardcode_libdir_separator=:
11809 case $host_cpu in
11810 hppa*64*|ia64*)
11811 hardcode_direct=no
11812 hardcode_shlibpath_var=no
11815 hardcode_direct=yes
11816 hardcode_direct_absolute=yes
11817 export_dynamic_flag_spec='$wl-E'
11819 # hardcode_minus_L: Not really in the search PATH,
11820 # but as the default location of the library.
11821 hardcode_minus_L=yes
11823 esac
11827 irix5* | irix6* | nonstopux*)
11828 if test yes = "$GCC"; then
11829 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'
11830 # Try to use the -exported_symbol ld option, if it does not
11831 # work, assume that -exports_file does not work either and
11832 # implicitly export all symbols.
11833 # This should be the same for all languages, so no per-tag cache variable.
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11835 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11836 if ${lt_cv_irix_exported_symbol+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 save_LDFLAGS=$LDFLAGS
11840 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843 int foo (void) { return 0; }
11844 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"; then :
11846 lt_cv_irix_exported_symbol=yes
11847 else
11848 lt_cv_irix_exported_symbol=no
11850 rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852 LDFLAGS=$save_LDFLAGS
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11855 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11856 if test yes = "$lt_cv_irix_exported_symbol"; then
11857 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'
11859 else
11860 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'
11861 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'
11863 archive_cmds_need_lc='no'
11864 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11865 hardcode_libdir_separator=:
11866 inherit_rpath=yes
11867 link_all_deplibs=yes
11870 linux*)
11871 case $cc_basename in
11872 tcc*)
11873 # Fabrice Bellard et al's Tiny C Compiler
11874 ld_shlibs=yes
11875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11877 esac
11880 netbsd*)
11881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11883 else
11884 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11886 hardcode_libdir_flag_spec='-R$libdir'
11887 hardcode_direct=yes
11888 hardcode_shlibpath_var=no
11891 newsos6)
11892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11893 hardcode_direct=yes
11894 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11895 hardcode_libdir_separator=:
11896 hardcode_shlibpath_var=no
11899 *nto* | *qnx*)
11902 openbsd* | bitrig*)
11903 if test -f /usr/libexec/ld.so; then
11904 hardcode_direct=yes
11905 hardcode_shlibpath_var=no
11906 hardcode_direct_absolute=yes
11907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11909 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11910 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11911 export_dynamic_flag_spec='$wl-E'
11912 else
11913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11914 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11916 else
11917 ld_shlibs=no
11921 os2*)
11922 hardcode_libdir_flag_spec='-L$libdir'
11923 hardcode_minus_L=yes
11924 allow_undefined_flag=unsupported
11925 shrext_cmds=.dll
11926 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11927 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11928 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11929 $ECHO EXPORTS >> $output_objdir/$libname.def~
11930 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11931 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11932 emximp -o $lib $output_objdir/$libname.def'
11933 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11934 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11935 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11936 $ECHO EXPORTS >> $output_objdir/$libname.def~
11937 prefix_cmds="$SED"~
11938 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11939 prefix_cmds="$prefix_cmds -e 1d";
11941 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11942 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11943 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11944 emximp -o $lib $output_objdir/$libname.def'
11945 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11946 enable_shared_with_static_runtimes=yes
11949 osf3*)
11950 if test yes = "$GCC"; then
11951 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11952 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'
11953 else
11954 allow_undefined_flag=' -expect_unresolved \*'
11955 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'
11957 archive_cmds_need_lc='no'
11958 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11959 hardcode_libdir_separator=:
11962 osf4* | osf5*) # as osf3* with the addition of -msym flag
11963 if test yes = "$GCC"; then
11964 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11965 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'
11966 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11967 else
11968 allow_undefined_flag=' -expect_unresolved \*'
11969 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'
11970 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~
11971 $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'
11973 # Both c and cxx compiler support -rpath directly
11974 hardcode_libdir_flag_spec='-rpath $libdir'
11976 archive_cmds_need_lc='no'
11977 hardcode_libdir_separator=:
11980 solaris*)
11981 no_undefined_flag=' -z defs'
11982 if test yes = "$GCC"; then
11983 wlarc='$wl'
11984 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11985 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11986 $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'
11987 else
11988 case `$CC -V 2>&1` in
11989 *"Compilers 5.0"*)
11990 wlarc=''
11991 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11992 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11993 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11996 wlarc='$wl'
11997 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11999 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12001 esac
12003 hardcode_libdir_flag_spec='-R$libdir'
12004 hardcode_shlibpath_var=no
12005 case $host_os in
12006 solaris2.[0-5] | solaris2.[0-5].*) ;;
12008 # The compiler driver will combine and reorder linker options,
12009 # but understands '-z linker_flag'. GCC discards it without '$wl',
12010 # but is careful enough not to reorder.
12011 # Supported since Solaris 2.6 (maybe 2.5.1?)
12012 if test yes = "$GCC"; then
12013 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12014 else
12015 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12018 esac
12019 link_all_deplibs=yes
12022 sunos4*)
12023 if test sequent = "$host_vendor"; then
12024 # Use $CC to link under sequent, because it throws in some extra .o
12025 # files that make .init and .fini sections work.
12026 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12027 else
12028 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12030 hardcode_libdir_flag_spec='-L$libdir'
12031 hardcode_direct=yes
12032 hardcode_minus_L=yes
12033 hardcode_shlibpath_var=no
12036 sysv4)
12037 case $host_vendor in
12038 sni)
12039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12040 hardcode_direct=yes # is this really true???
12042 siemens)
12043 ## LD is ld it makes a PLAMLIB
12044 ## CC just makes a GrossModule.
12045 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12046 reload_cmds='$CC -r -o $output$reload_objs'
12047 hardcode_direct=no
12049 motorola)
12050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12051 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12053 esac
12054 runpath_var='LD_RUN_PATH'
12055 hardcode_shlibpath_var=no
12058 sysv4.3*)
12059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12060 hardcode_shlibpath_var=no
12061 export_dynamic_flag_spec='-Bexport'
12064 sysv4*MP*)
12065 if test -d /usr/nec; then
12066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12067 hardcode_shlibpath_var=no
12068 runpath_var=LD_RUN_PATH
12069 hardcode_runpath_var=yes
12070 ld_shlibs=yes
12074 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12075 no_undefined_flag='$wl-z,text'
12076 archive_cmds_need_lc=no
12077 hardcode_shlibpath_var=no
12078 runpath_var='LD_RUN_PATH'
12080 if test yes = "$GCC"; then
12081 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12082 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12083 else
12084 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12085 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12089 sysv5* | sco3.2v5* | sco5v6*)
12090 # Note: We CANNOT use -z defs as we might desire, because we do not
12091 # link with -lc, and that would cause any symbols used from libc to
12092 # always be unresolved, which means just about no library would
12093 # ever link correctly. If we're not using GNU ld we use -z text
12094 # though, which does catch some bad symbols but isn't as heavy-handed
12095 # as -z defs.
12096 no_undefined_flag='$wl-z,text'
12097 allow_undefined_flag='$wl-z,nodefs'
12098 archive_cmds_need_lc=no
12099 hardcode_shlibpath_var=no
12100 hardcode_libdir_flag_spec='$wl-R,$libdir'
12101 hardcode_libdir_separator=':'
12102 link_all_deplibs=yes
12103 export_dynamic_flag_spec='$wl-Bexport'
12104 runpath_var='LD_RUN_PATH'
12106 if test yes = "$GCC"; then
12107 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12108 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12109 else
12110 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12111 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12115 uts4*)
12116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12117 hardcode_libdir_flag_spec='-L$libdir'
12118 hardcode_shlibpath_var=no
12122 ld_shlibs=no
12124 esac
12126 if test sni = "$host_vendor"; then
12127 case $host in
12128 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12129 export_dynamic_flag_spec='$wl-Blargedynsym'
12131 esac
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12136 $as_echo "$ld_shlibs" >&6; }
12137 test no = "$ld_shlibs" && can_build_shared=no
12139 with_gnu_ld=$with_gnu_ld
12156 # Do we need to explicitly link libc?
12158 case "x$archive_cmds_need_lc" in
12159 x|xyes)
12160 # Assume -lc should be added
12161 archive_cmds_need_lc=yes
12163 if test yes,yes = "$GCC,$enable_shared"; then
12164 case $archive_cmds in
12165 *'~'*)
12166 # FIXME: we may have to deal with multi-command sequences.
12168 '$CC '*)
12169 # Test whether the compiler implicitly links with -lc since on some
12170 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12171 # to ld, don't add -lc before -lgcc.
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12173 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12174 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12175 $as_echo_n "(cached) " >&6
12176 else
12177 $RM conftest*
12178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12181 (eval $ac_compile) 2>&5
12182 ac_status=$?
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; } 2>conftest.err; then
12185 soname=conftest
12186 lib=conftest
12187 libobjs=conftest.$ac_objext
12188 deplibs=
12189 wl=$lt_prog_compiler_wl
12190 pic_flag=$lt_prog_compiler_pic
12191 compiler_flags=-v
12192 linker_flags=-v
12193 verstring=
12194 output_objdir=.
12195 libname=conftest
12196 lt_save_allow_undefined_flag=$allow_undefined_flag
12197 allow_undefined_flag=
12198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12199 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12200 ac_status=$?
12201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202 test $ac_status = 0; }
12203 then
12204 lt_cv_archive_cmds_need_lc=no
12205 else
12206 lt_cv_archive_cmds_need_lc=yes
12208 allow_undefined_flag=$lt_save_allow_undefined_flag
12209 else
12210 cat conftest.err 1>&5
12212 $RM conftest*
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12216 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12217 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12219 esac
12222 esac
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12376 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12378 if test yes = "$GCC"; then
12379 case $host_os in
12380 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12381 *) lt_awk_arg='/^libraries:/' ;;
12382 esac
12383 case $host_os in
12384 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12385 *) lt_sed_strip_eq='s|=/|/|g' ;;
12386 esac
12387 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12388 case $lt_search_path_spec in
12389 *\;*)
12390 # if the path contains ";" then we assume it to be the separator
12391 # otherwise default to the standard path separator (i.e. ":") - it is
12392 # assumed that no part of a normal pathname contains ";" but that should
12393 # okay in the real world where ";" in dirpaths is itself problematic.
12394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12397 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12399 esac
12400 # Ok, now we have the path, separated by spaces, we can step through it
12401 # and add multilib dir if necessary...
12402 lt_tmp_lt_search_path_spec=
12403 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12404 # ...but if some path component already ends with the multilib dir we assume
12405 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12406 case "$lt_multi_os_dir; $lt_search_path_spec " in
12407 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12408 lt_multi_os_dir=
12410 esac
12411 for lt_sys_path in $lt_search_path_spec; do
12412 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12414 elif test -n "$lt_multi_os_dir"; then
12415 test -d "$lt_sys_path" && \
12416 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12418 done
12419 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12420 BEGIN {RS = " "; FS = "/|\n";} {
12421 lt_foo = "";
12422 lt_count = 0;
12423 for (lt_i = NF; lt_i > 0; lt_i--) {
12424 if ($lt_i != "" && $lt_i != ".") {
12425 if ($lt_i == "..") {
12426 lt_count++;
12427 } else {
12428 if (lt_count == 0) {
12429 lt_foo = "/" $lt_i lt_foo;
12430 } else {
12431 lt_count--;
12436 if (lt_foo != "") { lt_freq[lt_foo]++; }
12437 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12439 # AWK program above erroneously prepends '/' to C:/dos/paths
12440 # for these hosts.
12441 case $host_os in
12442 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12443 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12444 esac
12445 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12446 else
12447 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12449 library_names_spec=
12450 libname_spec='lib$name'
12451 soname_spec=
12452 shrext_cmds=.so
12453 postinstall_cmds=
12454 postuninstall_cmds=
12455 finish_cmds=
12456 finish_eval=
12457 shlibpath_var=
12458 shlibpath_overrides_runpath=unknown
12459 version_type=none
12460 dynamic_linker="$host_os ld.so"
12461 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12462 need_lib_prefix=unknown
12463 hardcode_into_libs=no
12465 # when you set need_version to no, make sure it does not cause -set_version
12466 # flags to be left without arguments
12467 need_version=unknown
12471 case $host_os in
12472 aix3*)
12473 version_type=linux # correct to gnu/linux during the next big refactor
12474 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12475 shlibpath_var=LIBPATH
12477 # AIX 3 has no versioning support, so we append a major version to the name.
12478 soname_spec='$libname$release$shared_ext$major'
12481 aix[4-9]*)
12482 version_type=linux # correct to gnu/linux during the next big refactor
12483 need_lib_prefix=no
12484 need_version=no
12485 hardcode_into_libs=yes
12486 if test ia64 = "$host_cpu"; then
12487 # AIX 5 supports IA64
12488 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12489 shlibpath_var=LD_LIBRARY_PATH
12490 else
12491 # With GCC up to 2.95.x, collect2 would create an import file
12492 # for dependence libraries. The import file would start with
12493 # the line '#! .'. This would cause the generated library to
12494 # depend on '.', always an invalid library. This was fixed in
12495 # development snapshots of GCC prior to 3.0.
12496 case $host_os in
12497 aix4 | aix4.[01] | aix4.[01].*)
12498 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12499 echo ' yes '
12500 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12502 else
12503 can_build_shared=no
12506 esac
12507 # Using Import Files as archive members, it is possible to support
12508 # filename-based versioning of shared library archives on AIX. While
12509 # this would work for both with and without runtime linking, it will
12510 # prevent static linking of such archives. So we do filename-based
12511 # shared library versioning with .so extension only, which is used
12512 # when both runtime linking and shared linking is enabled.
12513 # Unfortunately, runtime linking may impact performance, so we do
12514 # not want this to be the default eventually. Also, we use the
12515 # versioned .so libs for executables only if there is the -brtl
12516 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12517 # To allow for filename-based versioning support, we need to create
12518 # libNAME.so.V as an archive file, containing:
12519 # *) an Import File, referring to the versioned filename of the
12520 # archive as well as the shared archive member, telling the
12521 # bitwidth (32 or 64) of that shared object, and providing the
12522 # list of exported symbols of that shared object, eventually
12523 # decorated with the 'weak' keyword
12524 # *) the shared object with the F_LOADONLY flag set, to really avoid
12525 # it being seen by the linker.
12526 # At run time we better use the real file rather than another symlink,
12527 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12529 case $with_aix_soname,$aix_use_runtimelinking in
12530 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12531 # soname into executable. Probably we can add versioning support to
12532 # collect2, so additional links can be useful in future.
12533 aix,yes) # traditional libtool
12534 dynamic_linker='AIX unversionable lib.so'
12535 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12536 # instead of lib<name>.a to let people know that these are not
12537 # typical AIX shared libraries.
12538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12540 aix,no) # traditional AIX only
12541 dynamic_linker='AIX lib.a(lib.so.V)'
12542 # We preserve .a as extension for shared libraries through AIX4.2
12543 # and later when we are not doing run time linking.
12544 library_names_spec='$libname$release.a $libname.a'
12545 soname_spec='$libname$release$shared_ext$major'
12547 svr4,*) # full svr4 only
12548 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12549 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12550 # We do not specify a path in Import Files, so LIBPATH fires.
12551 shlibpath_overrides_runpath=yes
12553 *,yes) # both, prefer svr4
12554 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12555 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12556 # unpreferred sharedlib libNAME.a needs extra handling
12557 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"'
12558 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"'
12559 # We do not specify a path in Import Files, so LIBPATH fires.
12560 shlibpath_overrides_runpath=yes
12562 *,no) # both, prefer aix
12563 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12564 library_names_spec='$libname$release.a $libname.a'
12565 soname_spec='$libname$release$shared_ext$major'
12566 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12567 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)'
12568 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"'
12570 esac
12571 shlibpath_var=LIBPATH
12575 amigaos*)
12576 case $host_cpu in
12577 powerpc)
12578 # Since July 2007 AmigaOS4 officially supports .so libraries.
12579 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12582 m68k)
12583 library_names_spec='$libname.ixlibrary $libname.a'
12584 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12585 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'
12587 esac
12590 beos*)
12591 library_names_spec='$libname$shared_ext'
12592 dynamic_linker="$host_os ld.so"
12593 shlibpath_var=LIBRARY_PATH
12596 bsdi[45]*)
12597 version_type=linux # correct to gnu/linux during the next big refactor
12598 need_version=no
12599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12600 soname_spec='$libname$release$shared_ext$major'
12601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12602 shlibpath_var=LD_LIBRARY_PATH
12603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12605 # the default ld.so.conf also contains /usr/contrib/lib and
12606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12607 # libtool to hard-code these into programs
12610 cygwin* | mingw* | pw32* | cegcc*)
12611 version_type=windows
12612 shrext_cmds=.dll
12613 need_version=no
12614 need_lib_prefix=no
12616 case $GCC,$cc_basename in
12617 yes,*)
12618 # gcc
12619 library_names_spec='$libname.dll.a'
12620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12621 postinstall_cmds='base_file=`basename \$file`~
12622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12623 dldir=$destdir/`dirname \$dlpath`~
12624 test -d \$dldir || mkdir -p \$dldir~
12625 $install_prog $dir/$dlname \$dldir/$dlname~
12626 chmod a+x \$dldir/$dlname~
12627 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12628 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12631 dlpath=$dir/\$dldll~
12632 $RM \$dlpath'
12633 shlibpath_overrides_runpath=yes
12635 case $host_os in
12636 cygwin*)
12637 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12638 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12640 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12642 mingw* | cegcc*)
12643 # MinGW DLLs use traditional 'lib' prefix
12644 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12646 pw32*)
12647 # pw32 DLLs use 'pw' prefix rather than 'lib'
12648 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12650 esac
12651 dynamic_linker='Win32 ld.exe'
12654 *,cl*)
12655 # Native MSVC
12656 libname_spec='$name'
12657 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12658 library_names_spec='$libname.dll.lib'
12660 case $build_os in
12661 mingw*)
12662 sys_lib_search_path_spec=
12663 lt_save_ifs=$IFS
12664 IFS=';'
12665 for lt_path in $LIB
12667 IFS=$lt_save_ifs
12668 # Let DOS variable expansion print the short 8.3 style file name.
12669 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12670 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12671 done
12672 IFS=$lt_save_ifs
12673 # Convert to MSYS style.
12674 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12676 cygwin*)
12677 # Convert to unix form, then to dos form, then back to unix form
12678 # but this time dos style (no spaces!) so that the unix form looks
12679 # like /cygdrive/c/PROGRA~1:/cygdr...
12680 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12681 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12682 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12685 sys_lib_search_path_spec=$LIB
12686 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12687 # It is most probably a Windows format PATH.
12688 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12689 else
12690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12692 # FIXME: find the short name or the path components, as spaces are
12693 # common. (e.g. "Program Files" -> "PROGRA~1")
12695 esac
12697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12698 postinstall_cmds='base_file=`basename \$file`~
12699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12700 dldir=$destdir/`dirname \$dlpath`~
12701 test -d \$dldir || mkdir -p \$dldir~
12702 $install_prog $dir/$dlname \$dldir/$dlname'
12703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12704 dlpath=$dir/\$dldll~
12705 $RM \$dlpath'
12706 shlibpath_overrides_runpath=yes
12707 dynamic_linker='Win32 link.exe'
12711 # Assume MSVC wrapper
12712 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12713 dynamic_linker='Win32 ld.exe'
12715 esac
12716 # FIXME: first we should search . and the directory the executable is in
12717 shlibpath_var=PATH
12720 darwin* | rhapsody*)
12721 dynamic_linker="$host_os dyld"
12722 version_type=darwin
12723 need_lib_prefix=no
12724 need_version=no
12725 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12726 soname_spec='$libname$release$major$shared_ext'
12727 shlibpath_overrides_runpath=yes
12728 shlibpath_var=DYLD_LIBRARY_PATH
12729 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12731 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12732 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12735 dgux*)
12736 version_type=linux # correct to gnu/linux during the next big refactor
12737 need_lib_prefix=no
12738 need_version=no
12739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12740 soname_spec='$libname$release$shared_ext$major'
12741 shlibpath_var=LD_LIBRARY_PATH
12744 freebsd* | dragonfly*)
12745 # DragonFly does not have aout. When/if they implement a new
12746 # versioning mechanism, adjust this.
12747 if test -x /usr/bin/objformat; then
12748 objformat=`/usr/bin/objformat`
12749 else
12750 case $host_os in
12751 freebsd[23].*) objformat=aout ;;
12752 *) objformat=elf ;;
12753 esac
12755 version_type=freebsd-$objformat
12756 case $version_type in
12757 freebsd-elf*)
12758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12759 soname_spec='$libname$release$shared_ext$major'
12760 need_version=no
12761 need_lib_prefix=no
12763 freebsd-*)
12764 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12765 need_version=yes
12767 esac
12768 shlibpath_var=LD_LIBRARY_PATH
12769 case $host_os in
12770 freebsd2.*)
12771 shlibpath_overrides_runpath=yes
12773 freebsd3.[01]* | freebsdelf3.[01]*)
12774 shlibpath_overrides_runpath=yes
12775 hardcode_into_libs=yes
12777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12779 shlibpath_overrides_runpath=no
12780 hardcode_into_libs=yes
12782 *) # from 4.6 on, and DragonFly
12783 shlibpath_overrides_runpath=yes
12784 hardcode_into_libs=yes
12786 esac
12789 haiku*)
12790 version_type=linux # correct to gnu/linux during the next big refactor
12791 need_lib_prefix=no
12792 need_version=no
12793 dynamic_linker="$host_os runtime_loader"
12794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12795 soname_spec='$libname$release$shared_ext$major'
12796 shlibpath_var=LIBRARY_PATH
12797 shlibpath_overrides_runpath=no
12798 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12799 hardcode_into_libs=yes
12802 hpux9* | hpux10* | hpux11*)
12803 # Give a soname corresponding to the major version so that dld.sl refuses to
12804 # link against other versions.
12805 version_type=sunos
12806 need_lib_prefix=no
12807 need_version=no
12808 case $host_cpu in
12809 ia64*)
12810 shrext_cmds='.so'
12811 hardcode_into_libs=yes
12812 dynamic_linker="$host_os dld.so"
12813 shlibpath_var=LD_LIBRARY_PATH
12814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12816 soname_spec='$libname$release$shared_ext$major'
12817 if test 32 = "$HPUX_IA64_MODE"; then
12818 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12819 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12820 else
12821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12822 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12825 hppa*64*)
12826 shrext_cmds='.sl'
12827 hardcode_into_libs=yes
12828 dynamic_linker="$host_os dld.sl"
12829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12832 soname_spec='$libname$release$shared_ext$major'
12833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12837 shrext_cmds='.sl'
12838 dynamic_linker="$host_os dld.sl"
12839 shlibpath_var=SHLIB_PATH
12840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12842 soname_spec='$libname$release$shared_ext$major'
12844 esac
12845 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12846 postinstall_cmds='chmod 555 $lib'
12847 # or fails outright, so override atomically:
12848 install_override_mode=555
12851 interix[3-9]*)
12852 version_type=linux # correct to gnu/linux during the next big refactor
12853 need_lib_prefix=no
12854 need_version=no
12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12856 soname_spec='$libname$release$shared_ext$major'
12857 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12858 shlibpath_var=LD_LIBRARY_PATH
12859 shlibpath_overrides_runpath=no
12860 hardcode_into_libs=yes
12863 irix5* | irix6* | nonstopux*)
12864 case $host_os in
12865 nonstopux*) version_type=nonstopux ;;
12867 if test yes = "$lt_cv_prog_gnu_ld"; then
12868 version_type=linux # correct to gnu/linux during the next big refactor
12869 else
12870 version_type=irix
12871 fi ;;
12872 esac
12873 need_lib_prefix=no
12874 need_version=no
12875 soname_spec='$libname$release$shared_ext$major'
12876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12877 case $host_os in
12878 irix5* | nonstopux*)
12879 libsuff= shlibsuff=
12882 case $LD in # libtool.m4 will add one of these switches to LD
12883 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12884 libsuff= shlibsuff= libmagic=32-bit;;
12885 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12886 libsuff=32 shlibsuff=N32 libmagic=N32;;
12887 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12888 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12889 *) libsuff= shlibsuff= libmagic=never-match;;
12890 esac
12892 esac
12893 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12894 shlibpath_overrides_runpath=no
12895 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12896 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12897 hardcode_into_libs=yes
12900 # No shared lib support for Linux oldld, aout, or coff.
12901 linux*oldld* | linux*aout* | linux*coff*)
12902 dynamic_linker=no
12905 linux*android*)
12906 version_type=none # Android doesn't support versioned libraries.
12907 need_lib_prefix=no
12908 need_version=no
12909 library_names_spec='$libname$release$shared_ext'
12910 soname_spec='$libname$release$shared_ext'
12911 finish_cmds=
12912 shlibpath_var=LD_LIBRARY_PATH
12913 shlibpath_overrides_runpath=yes
12915 # This implies no fast_install, which is unacceptable.
12916 # Some rework will be needed to allow for fast_install
12917 # before this can be enabled.
12918 hardcode_into_libs=yes
12920 dynamic_linker='Android linker'
12921 # Don't embed -rpath directories since the linker doesn't support them.
12922 hardcode_libdir_flag_spec='-L$libdir'
12925 # This must be glibc/ELF.
12926 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12927 version_type=linux # correct to gnu/linux during the next big refactor
12928 need_lib_prefix=no
12929 need_version=no
12930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12931 soname_spec='$libname$release$shared_ext$major'
12932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12933 shlibpath_var=LD_LIBRARY_PATH
12934 shlibpath_overrides_runpath=no
12936 # Some binutils ld are patched to set DT_RUNPATH
12937 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 lt_cv_shlibpath_overrides_runpath=no
12941 save_LDFLAGS=$LDFLAGS
12942 save_libdir=$libdir
12943 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12944 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12949 main ()
12953 return 0;
12955 _ACEOF
12956 if ac_fn_c_try_link "$LINENO"; then :
12957 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12958 lt_cv_shlibpath_overrides_runpath=yes
12961 rm -f core conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12963 LDFLAGS=$save_LDFLAGS
12964 libdir=$save_libdir
12968 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12970 # This implies no fast_install, which is unacceptable.
12971 # Some rework will be needed to allow for fast_install
12972 # before this can be enabled.
12973 hardcode_into_libs=yes
12975 # Ideally, we could use ldconfig to report *all* directores which are
12976 # searched for libraries, however this is still not possible. Aside from not
12977 # being certain /sbin/ldconfig is available, command
12978 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12979 # even though it is searched at run-time. Try to do the best guess by
12980 # appending ld.so.conf contents (and includes) to the search path.
12981 if test -f /etc/ld.so.conf; then
12982 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' ' '`
12983 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12986 # We used to test for /lib/ld.so.1 and disable shared libraries on
12987 # powerpc, because MkLinux only supported shared libraries with the
12988 # GNU dynamic linker. Since this was broken with cross compilers,
12989 # most powerpc-linux boxes support dynamic linking these days and
12990 # people can always --disable-shared, the test was removed, and we
12991 # assume the GNU/Linux dynamic linker is in use.
12992 dynamic_linker='GNU/Linux ld.so'
12995 netbsd*)
12996 version_type=sunos
12997 need_lib_prefix=no
12998 need_version=no
12999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13000 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13002 dynamic_linker='NetBSD (a.out) ld.so'
13003 else
13004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13005 soname_spec='$libname$release$shared_ext$major'
13006 dynamic_linker='NetBSD ld.elf_so'
13008 shlibpath_var=LD_LIBRARY_PATH
13009 shlibpath_overrides_runpath=yes
13010 hardcode_into_libs=yes
13013 newsos6)
13014 version_type=linux # correct to gnu/linux during the next big refactor
13015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13016 shlibpath_var=LD_LIBRARY_PATH
13017 shlibpath_overrides_runpath=yes
13020 *nto* | *qnx*)
13021 version_type=qnx
13022 need_lib_prefix=no
13023 need_version=no
13024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13025 soname_spec='$libname$release$shared_ext$major'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 shlibpath_overrides_runpath=no
13028 hardcode_into_libs=yes
13029 dynamic_linker='ldqnx.so'
13032 openbsd* | bitrig*)
13033 version_type=sunos
13034 sys_lib_dlsearch_path_spec=/usr/lib
13035 need_lib_prefix=no
13036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13037 need_version=no
13038 else
13039 need_version=yes
13041 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13043 shlibpath_var=LD_LIBRARY_PATH
13044 shlibpath_overrides_runpath=yes
13047 os2*)
13048 libname_spec='$name'
13049 version_type=windows
13050 shrext_cmds=.dll
13051 need_version=no
13052 need_lib_prefix=no
13053 # OS/2 can only load a DLL with a base name of 8 characters or less.
13054 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13055 v=$($ECHO $release$versuffix | tr -d .-);
13056 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13057 $ECHO $n$v`$shared_ext'
13058 library_names_spec='${libname}_dll.$libext'
13059 dynamic_linker='OS/2 ld.exe'
13060 shlibpath_var=BEGINLIBPATH
13061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13063 postinstall_cmds='base_file=`basename \$file`~
13064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13065 dldir=$destdir/`dirname \$dlpath`~
13066 test -d \$dldir || mkdir -p \$dldir~
13067 $install_prog $dir/$dlname \$dldir/$dlname~
13068 chmod a+x \$dldir/$dlname~
13069 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13070 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13073 dlpath=$dir/\$dldll~
13074 $RM \$dlpath'
13077 osf3* | osf4* | osf5*)
13078 version_type=osf
13079 need_lib_prefix=no
13080 need_version=no
13081 soname_spec='$libname$release$shared_ext$major'
13082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13083 shlibpath_var=LD_LIBRARY_PATH
13084 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13088 rdos*)
13089 dynamic_linker=no
13092 solaris*)
13093 version_type=linux # correct to gnu/linux during the next big refactor
13094 need_lib_prefix=no
13095 need_version=no
13096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13097 soname_spec='$libname$release$shared_ext$major'
13098 shlibpath_var=LD_LIBRARY_PATH
13099 shlibpath_overrides_runpath=yes
13100 hardcode_into_libs=yes
13101 # ldd complains unless libraries are executable
13102 postinstall_cmds='chmod +x $lib'
13105 sunos4*)
13106 version_type=sunos
13107 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13109 shlibpath_var=LD_LIBRARY_PATH
13110 shlibpath_overrides_runpath=yes
13111 if test yes = "$with_gnu_ld"; then
13112 need_lib_prefix=no
13114 need_version=yes
13117 sysv4 | sysv4.3*)
13118 version_type=linux # correct to gnu/linux during the next big refactor
13119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13120 soname_spec='$libname$release$shared_ext$major'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 case $host_vendor in
13123 sni)
13124 shlibpath_overrides_runpath=no
13125 need_lib_prefix=no
13126 runpath_var=LD_RUN_PATH
13128 siemens)
13129 need_lib_prefix=no
13131 motorola)
13132 need_lib_prefix=no
13133 need_version=no
13134 shlibpath_overrides_runpath=no
13135 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13137 esac
13140 sysv4*MP*)
13141 if test -d /usr/nec; then
13142 version_type=linux # correct to gnu/linux during the next big refactor
13143 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13144 soname_spec='$libname$shared_ext.$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13150 version_type=sco
13151 need_lib_prefix=no
13152 need_version=no
13153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13154 soname_spec='$libname$release$shared_ext$major'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 shlibpath_overrides_runpath=yes
13157 hardcode_into_libs=yes
13158 if test yes = "$with_gnu_ld"; then
13159 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13160 else
13161 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13162 case $host_os in
13163 sco3.2v5*)
13164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13166 esac
13168 sys_lib_dlsearch_path_spec='/usr/lib'
13171 tpf*)
13172 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13173 version_type=linux # correct to gnu/linux during the next big refactor
13174 need_lib_prefix=no
13175 need_version=no
13176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13177 shlibpath_var=LD_LIBRARY_PATH
13178 shlibpath_overrides_runpath=no
13179 hardcode_into_libs=yes
13182 uts4*)
13183 version_type=linux # correct to gnu/linux during the next big refactor
13184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13185 soname_spec='$libname$release$shared_ext$major'
13186 shlibpath_var=LD_LIBRARY_PATH
13190 dynamic_linker=no
13192 esac
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13194 $as_echo "$dynamic_linker" >&6; }
13195 test no = "$dynamic_linker" && can_build_shared=no
13197 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13198 if test yes = "$GCC"; then
13199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13202 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13203 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13206 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13207 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13210 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13211 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13213 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13214 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13216 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13217 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13316 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13317 hardcode_action=
13318 if test -n "$hardcode_libdir_flag_spec" ||
13319 test -n "$runpath_var" ||
13320 test yes = "$hardcode_automatic"; then
13322 # We can hardcode non-existent directories.
13323 if test no != "$hardcode_direct" &&
13324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13325 # have to relink, otherwise we might link with an installed library
13326 # when we should be linking with a yet-to-be-installed one
13327 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13328 test no != "$hardcode_minus_L"; then
13329 # Linking always hardcodes the temporary library directory.
13330 hardcode_action=relink
13331 else
13332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13333 hardcode_action=immediate
13335 else
13336 # We cannot hardcode anything, or else we can only hardcode existing
13337 # directories.
13338 hardcode_action=unsupported
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13341 $as_echo "$hardcode_action" >&6; }
13343 if test relink = "$hardcode_action" ||
13344 test yes = "$inherit_rpath"; then
13345 # Fast installation is not supported
13346 enable_fast_install=no
13347 elif test yes = "$shlibpath_overrides_runpath" ||
13348 test no = "$enable_shared"; then
13349 # Fast installation is not necessary
13350 enable_fast_install=needless
13358 if test yes != "$enable_dlopen"; then
13359 enable_dlopen=unknown
13360 enable_dlopen_self=unknown
13361 enable_dlopen_self_static=unknown
13362 else
13363 lt_cv_dlopen=no
13364 lt_cv_dlopen_libs=
13366 case $host_os in
13367 beos*)
13368 lt_cv_dlopen=load_add_on
13369 lt_cv_dlopen_libs=
13370 lt_cv_dlopen_self=yes
13373 mingw* | pw32* | cegcc*)
13374 lt_cv_dlopen=LoadLibrary
13375 lt_cv_dlopen_libs=
13378 cygwin*)
13379 lt_cv_dlopen=dlopen
13380 lt_cv_dlopen_libs=
13383 darwin*)
13384 # if libdl is installed we need to link against it
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13386 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13387 if ${ac_cv_lib_dl_dlopen+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 ac_check_lib_save_LIBS=$LIBS
13391 LIBS="-ldl $LIBS"
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13395 /* Override any GCC internal prototype to avoid an error.
13396 Use char because int might match the return type of a GCC
13397 builtin and then its argument prototype would still apply. */
13398 #ifdef __cplusplus
13399 extern "C"
13400 #endif
13401 char dlopen ();
13403 main ()
13405 return dlopen ();
13407 return 0;
13409 _ACEOF
13410 if ac_fn_c_try_link "$LINENO"; then :
13411 ac_cv_lib_dl_dlopen=yes
13412 else
13413 ac_cv_lib_dl_dlopen=no
13415 rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 LIBS=$ac_check_lib_save_LIBS
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13420 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13421 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13422 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13423 else
13425 lt_cv_dlopen=dyld
13426 lt_cv_dlopen_libs=
13427 lt_cv_dlopen_self=yes
13433 tpf*)
13434 # Don't try to run any link tests for TPF. We know it's impossible
13435 # because TPF is a cross-compiler, and we know how we open DSOs.
13436 lt_cv_dlopen=dlopen
13437 lt_cv_dlopen_libs=
13438 lt_cv_dlopen_self=no
13442 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13443 if test "x$ac_cv_func_shl_load" = xyes; then :
13444 lt_cv_dlopen=shl_load
13445 else
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13447 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13448 if ${ac_cv_lib_dld_shl_load+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 ac_check_lib_save_LIBS=$LIBS
13452 LIBS="-ldld $LIBS"
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13459 #ifdef __cplusplus
13460 extern "C"
13461 #endif
13462 char shl_load ();
13464 main ()
13466 return shl_load ();
13468 return 0;
13470 _ACEOF
13471 if ac_fn_c_try_link "$LINENO"; then :
13472 ac_cv_lib_dld_shl_load=yes
13473 else
13474 ac_cv_lib_dld_shl_load=no
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13481 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13482 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13483 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13484 else
13485 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13486 if test "x$ac_cv_func_dlopen" = xyes; then :
13487 lt_cv_dlopen=dlopen
13488 else
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13490 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13491 if ${ac_cv_lib_dl_dlopen+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 ac_check_lib_save_LIBS=$LIBS
13495 LIBS="-ldl $LIBS"
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13502 #ifdef __cplusplus
13503 extern "C"
13504 #endif
13505 char dlopen ();
13507 main ()
13509 return dlopen ();
13511 return 0;
13513 _ACEOF
13514 if ac_fn_c_try_link "$LINENO"; then :
13515 ac_cv_lib_dl_dlopen=yes
13516 else
13517 ac_cv_lib_dl_dlopen=no
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13521 LIBS=$ac_check_lib_save_LIBS
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13524 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13525 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13526 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13527 else
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13529 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13530 if ${ac_cv_lib_svld_dlopen+:} false; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533 ac_check_lib_save_LIBS=$LIBS
13534 LIBS="-lsvld $LIBS"
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13538 /* Override any GCC internal prototype to avoid an error.
13539 Use char because int might match the return type of a GCC
13540 builtin and then its argument prototype would still apply. */
13541 #ifdef __cplusplus
13542 extern "C"
13543 #endif
13544 char dlopen ();
13546 main ()
13548 return dlopen ();
13550 return 0;
13552 _ACEOF
13553 if ac_fn_c_try_link "$LINENO"; then :
13554 ac_cv_lib_svld_dlopen=yes
13555 else
13556 ac_cv_lib_svld_dlopen=no
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13560 LIBS=$ac_check_lib_save_LIBS
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13563 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13564 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13565 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13566 else
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13568 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13569 if ${ac_cv_lib_dld_dld_link+:} false; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 ac_check_lib_save_LIBS=$LIBS
13573 LIBS="-ldld $LIBS"
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13580 #ifdef __cplusplus
13581 extern "C"
13582 #endif
13583 char dld_link ();
13585 main ()
13587 return dld_link ();
13589 return 0;
13591 _ACEOF
13592 if ac_fn_c_try_link "$LINENO"; then :
13593 ac_cv_lib_dld_dld_link=yes
13594 else
13595 ac_cv_lib_dld_dld_link=no
13597 rm -f core conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13599 LIBS=$ac_check_lib_save_LIBS
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13602 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13603 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13604 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13623 esac
13625 if test no = "$lt_cv_dlopen"; then
13626 enable_dlopen=no
13627 else
13628 enable_dlopen=yes
13631 case $lt_cv_dlopen in
13632 dlopen)
13633 save_CPPFLAGS=$CPPFLAGS
13634 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13636 save_LDFLAGS=$LDFLAGS
13637 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13639 save_LIBS=$LIBS
13640 LIBS="$lt_cv_dlopen_libs $LIBS"
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13643 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13644 if ${lt_cv_dlopen_self+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 if test yes = "$cross_compiling"; then :
13648 lt_cv_dlopen_self=cross
13649 else
13650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13651 lt_status=$lt_dlunknown
13652 cat > conftest.$ac_ext <<_LT_EOF
13653 #line $LINENO "configure"
13654 #include "confdefs.h"
13656 #if HAVE_DLFCN_H
13657 #include <dlfcn.h>
13658 #endif
13660 #include <stdio.h>
13662 #ifdef RTLD_GLOBAL
13663 # define LT_DLGLOBAL RTLD_GLOBAL
13664 #else
13665 # ifdef DL_GLOBAL
13666 # define LT_DLGLOBAL DL_GLOBAL
13667 # else
13668 # define LT_DLGLOBAL 0
13669 # endif
13670 #endif
13672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13673 find out it does not work in some platform. */
13674 #ifndef LT_DLLAZY_OR_NOW
13675 # ifdef RTLD_LAZY
13676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13677 # else
13678 # ifdef DL_LAZY
13679 # define LT_DLLAZY_OR_NOW DL_LAZY
13680 # else
13681 # ifdef RTLD_NOW
13682 # define LT_DLLAZY_OR_NOW RTLD_NOW
13683 # else
13684 # ifdef DL_NOW
13685 # define LT_DLLAZY_OR_NOW DL_NOW
13686 # else
13687 # define LT_DLLAZY_OR_NOW 0
13688 # endif
13689 # endif
13690 # endif
13691 # endif
13692 #endif
13694 /* When -fvisibility=hidden is used, assume the code has been annotated
13695 correspondingly for the symbols needed. */
13696 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13697 int fnord () __attribute__((visibility("default")));
13698 #endif
13700 int fnord () { return 42; }
13701 int main ()
13703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13704 int status = $lt_dlunknown;
13706 if (self)
13708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13709 else
13711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13712 else puts (dlerror ());
13714 /* dlclose (self); */
13716 else
13717 puts (dlerror ());
13719 return status;
13721 _LT_EOF
13722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13723 (eval $ac_link) 2>&5
13724 ac_status=$?
13725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13727 (./conftest; exit; ) >&5 2>/dev/null
13728 lt_status=$?
13729 case x$lt_status in
13730 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13731 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13732 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13733 esac
13734 else :
13735 # compilation failed
13736 lt_cv_dlopen_self=no
13739 rm -fr conftest*
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13744 $as_echo "$lt_cv_dlopen_self" >&6; }
13746 if test yes = "$lt_cv_dlopen_self"; then
13747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13749 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13750 if ${lt_cv_dlopen_self_static+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 if test yes = "$cross_compiling"; then :
13754 lt_cv_dlopen_self_static=cross
13755 else
13756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13757 lt_status=$lt_dlunknown
13758 cat > conftest.$ac_ext <<_LT_EOF
13759 #line $LINENO "configure"
13760 #include "confdefs.h"
13762 #if HAVE_DLFCN_H
13763 #include <dlfcn.h>
13764 #endif
13766 #include <stdio.h>
13768 #ifdef RTLD_GLOBAL
13769 # define LT_DLGLOBAL RTLD_GLOBAL
13770 #else
13771 # ifdef DL_GLOBAL
13772 # define LT_DLGLOBAL DL_GLOBAL
13773 # else
13774 # define LT_DLGLOBAL 0
13775 # endif
13776 #endif
13778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13779 find out it does not work in some platform. */
13780 #ifndef LT_DLLAZY_OR_NOW
13781 # ifdef RTLD_LAZY
13782 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13783 # else
13784 # ifdef DL_LAZY
13785 # define LT_DLLAZY_OR_NOW DL_LAZY
13786 # else
13787 # ifdef RTLD_NOW
13788 # define LT_DLLAZY_OR_NOW RTLD_NOW
13789 # else
13790 # ifdef DL_NOW
13791 # define LT_DLLAZY_OR_NOW DL_NOW
13792 # else
13793 # define LT_DLLAZY_OR_NOW 0
13794 # endif
13795 # endif
13796 # endif
13797 # endif
13798 #endif
13800 /* When -fvisibility=hidden is used, assume the code has been annotated
13801 correspondingly for the symbols needed. */
13802 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13803 int fnord () __attribute__((visibility("default")));
13804 #endif
13806 int fnord () { return 42; }
13807 int main ()
13809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13810 int status = $lt_dlunknown;
13812 if (self)
13814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13815 else
13817 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13818 else puts (dlerror ());
13820 /* dlclose (self); */
13822 else
13823 puts (dlerror ());
13825 return status;
13827 _LT_EOF
13828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13829 (eval $ac_link) 2>&5
13830 ac_status=$?
13831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13832 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13833 (./conftest; exit; ) >&5 2>/dev/null
13834 lt_status=$?
13835 case x$lt_status in
13836 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13837 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13838 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13839 esac
13840 else :
13841 # compilation failed
13842 lt_cv_dlopen_self_static=no
13845 rm -fr conftest*
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13850 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13853 CPPFLAGS=$save_CPPFLAGS
13854 LDFLAGS=$save_LDFLAGS
13855 LIBS=$save_LIBS
13857 esac
13859 case $lt_cv_dlopen_self in
13860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13861 *) enable_dlopen_self=unknown ;;
13862 esac
13864 case $lt_cv_dlopen_self_static in
13865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13866 *) enable_dlopen_self_static=unknown ;;
13867 esac
13886 striplib=
13887 old_striplib=
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13889 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13890 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13891 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13892 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13894 $as_echo "yes" >&6; }
13895 else
13896 # FIXME - insert some real tests, host_os isn't really good enough
13897 case $host_os in
13898 darwin*)
13899 if test -n "$STRIP"; then
13900 striplib="$STRIP -x"
13901 old_striplib="$STRIP -S"
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13903 $as_echo "yes" >&6; }
13904 else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911 $as_echo "no" >&6; }
13913 esac
13927 # Report what library types will actually be built
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13929 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13931 $as_echo "$can_build_shared" >&6; }
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13934 $as_echo_n "checking whether to build shared libraries... " >&6; }
13935 test no = "$can_build_shared" && enable_shared=no
13937 # On AIX, shared libraries and static libraries use the same namespace, and
13938 # are all built from PIC.
13939 case $host_os in
13940 aix3*)
13941 test yes = "$enable_shared" && enable_static=no
13942 if test -n "$RANLIB"; then
13943 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13944 postinstall_cmds='$RANLIB $lib'
13948 aix[4-9]*)
13949 if test ia64 != "$host_cpu"; then
13950 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13951 yes,aix,yes) ;; # shared object as lib.so file only
13952 yes,svr4,*) ;; # shared object as lib.so archive member only
13953 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13954 esac
13957 esac
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13959 $as_echo "$enable_shared" >&6; }
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13962 $as_echo_n "checking whether to build static libraries... " >&6; }
13963 # Make sure either enable_shared or enable_static is yes.
13964 test yes = "$enable_shared" || enable_static=yes
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13966 $as_echo "$enable_static" >&6; }
13972 ac_ext=c
13973 ac_cpp='$CPP $CPPFLAGS'
13974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13978 CC=$lt_save_CC
13994 ac_config_commands="$ac_config_commands libtool"
13999 # Only expand once:
14002 # Check whether --enable-largefile was given.
14003 if test "${enable_largefile+set}" = set; then :
14004 enableval=$enable_largefile;
14007 if test "$enable_largefile" != no; then
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14010 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14011 if ${ac_cv_sys_largefile_CC+:} false; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14014 ac_cv_sys_largefile_CC=no
14015 if test "$GCC" != yes; then
14016 ac_save_CC=$CC
14017 while :; do
14018 # IRIX 6.2 and later do not support large files by default,
14019 # so use the C compiler's -n32 option if that helps.
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14022 #include <sys/types.h>
14023 /* Check that off_t can represent 2**63 - 1 correctly.
14024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14025 since some C++ compilers masquerading as C compilers
14026 incorrectly reject 9223372036854775807. */
14027 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14029 && LARGE_OFF_T % 2147483647 == 1)
14030 ? 1 : -1];
14032 main ()
14036 return 0;
14038 _ACEOF
14039 if ac_fn_c_try_compile "$LINENO"; then :
14040 break
14042 rm -f core conftest.err conftest.$ac_objext
14043 CC="$CC -n32"
14044 if ac_fn_c_try_compile "$LINENO"; then :
14045 ac_cv_sys_largefile_CC=' -n32'; break
14047 rm -f core conftest.err conftest.$ac_objext
14048 break
14049 done
14050 CC=$ac_save_CC
14051 rm -f conftest.$ac_ext
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14055 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14056 if test "$ac_cv_sys_largefile_CC" != no; then
14057 CC=$CC$ac_cv_sys_largefile_CC
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14061 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14062 if ${ac_cv_sys_file_offset_bits+:} false; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065 while :; do
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14068 #include <sys/types.h>
14069 /* Check that off_t can represent 2**63 - 1 correctly.
14070 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14071 since some C++ compilers masquerading as C compilers
14072 incorrectly reject 9223372036854775807. */
14073 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14075 && LARGE_OFF_T % 2147483647 == 1)
14076 ? 1 : -1];
14078 main ()
14082 return 0;
14084 _ACEOF
14085 if ac_fn_c_try_compile "$LINENO"; then :
14086 ac_cv_sys_file_offset_bits=no; break
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 #define _FILE_OFFSET_BITS 64
14092 #include <sys/types.h>
14093 /* Check that off_t can represent 2**63 - 1 correctly.
14094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14095 since some C++ compilers masquerading as C compilers
14096 incorrectly reject 9223372036854775807. */
14097 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14099 && LARGE_OFF_T % 2147483647 == 1)
14100 ? 1 : -1];
14102 main ()
14106 return 0;
14108 _ACEOF
14109 if ac_fn_c_try_compile "$LINENO"; then :
14110 ac_cv_sys_file_offset_bits=64; break
14112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113 ac_cv_sys_file_offset_bits=unknown
14114 break
14115 done
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14118 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14119 case $ac_cv_sys_file_offset_bits in #(
14120 no | unknown) ;;
14122 cat >>confdefs.h <<_ACEOF
14123 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14124 _ACEOF
14126 esac
14127 rm -rf conftest*
14128 if test $ac_cv_sys_file_offset_bits = unknown; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14130 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14131 if ${ac_cv_sys_large_files+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 while :; do
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 #include <sys/types.h>
14138 /* Check that off_t can represent 2**63 - 1 correctly.
14139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14140 since some C++ compilers masquerading as C compilers
14141 incorrectly reject 9223372036854775807. */
14142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14144 && LARGE_OFF_T % 2147483647 == 1)
14145 ? 1 : -1];
14147 main ()
14151 return 0;
14153 _ACEOF
14154 if ac_fn_c_try_compile "$LINENO"; then :
14155 ac_cv_sys_large_files=no; break
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14160 #define _LARGE_FILES 1
14161 #include <sys/types.h>
14162 /* Check that off_t can represent 2**63 - 1 correctly.
14163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14164 since some C++ compilers masquerading as C compilers
14165 incorrectly reject 9223372036854775807. */
14166 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14168 && LARGE_OFF_T % 2147483647 == 1)
14169 ? 1 : -1];
14171 main ()
14175 return 0;
14177 _ACEOF
14178 if ac_fn_c_try_compile "$LINENO"; then :
14179 ac_cv_sys_large_files=1; break
14181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14182 ac_cv_sys_large_files=unknown
14183 break
14184 done
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14187 $as_echo "$ac_cv_sys_large_files" >&6; }
14188 case $ac_cv_sys_large_files in #(
14189 no | unknown) ;;
14191 cat >>confdefs.h <<_ACEOF
14192 #define _LARGE_FILES $ac_cv_sys_large_files
14193 _ACEOF
14195 esac
14196 rm -rf conftest*
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14203 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14204 if ${ac_cv_sys_largefile_source+:} false; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 while :; do
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 #include <sys/types.h> /* for off_t */
14211 #include <stdio.h>
14213 main ()
14215 int (*fp) (FILE *, off_t, int) = fseeko;
14216 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14218 return 0;
14220 _ACEOF
14221 if ac_fn_c_try_link "$LINENO"; then :
14222 ac_cv_sys_largefile_source=no; break
14224 rm -f core conftest.err conftest.$ac_objext \
14225 conftest$ac_exeext conftest.$ac_ext
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 #define _LARGEFILE_SOURCE 1
14229 #include <sys/types.h> /* for off_t */
14230 #include <stdio.h>
14232 main ()
14234 int (*fp) (FILE *, off_t, int) = fseeko;
14235 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14237 return 0;
14239 _ACEOF
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 ac_cv_sys_largefile_source=1; break
14243 rm -f core conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext conftest.$ac_ext
14245 ac_cv_sys_largefile_source=unknown
14246 break
14247 done
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14250 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14251 case $ac_cv_sys_largefile_source in #(
14252 no | unknown) ;;
14254 cat >>confdefs.h <<_ACEOF
14255 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14256 _ACEOF
14258 esac
14259 rm -rf conftest*
14261 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14262 # in glibc 2.1.3, but that breaks too many other things.
14263 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14264 if test $ac_cv_sys_largefile_source != unknown; then
14266 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14270 ac_header_dirent=no
14271 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14272 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14274 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14275 if eval \${$as_ac_Header+:} false; then :
14276 $as_echo_n "(cached) " >&6
14277 else
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280 #include <sys/types.h>
14281 #include <$ac_hdr>
14284 main ()
14286 if ((DIR *) 0)
14287 return 0;
14289 return 0;
14291 _ACEOF
14292 if ac_fn_c_try_compile "$LINENO"; then :
14293 eval "$as_ac_Header=yes"
14294 else
14295 eval "$as_ac_Header=no"
14297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 eval ac_res=\$$as_ac_Header
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14301 $as_echo "$ac_res" >&6; }
14302 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14303 cat >>confdefs.h <<_ACEOF
14304 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14305 _ACEOF
14307 ac_header_dirent=$ac_hdr; break
14310 done
14311 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14312 if test $ac_header_dirent = dirent.h; then
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14314 $as_echo_n "checking for library containing opendir... " >&6; }
14315 if ${ac_cv_search_opendir+:} false; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14318 ac_func_search_save_LIBS=$LIBS
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14322 /* Override any GCC internal prototype to avoid an error.
14323 Use char because int might match the return type of a GCC
14324 builtin and then its argument prototype would still apply. */
14325 #ifdef __cplusplus
14326 extern "C"
14327 #endif
14328 char opendir ();
14330 main ()
14332 return opendir ();
14334 return 0;
14336 _ACEOF
14337 for ac_lib in '' dir; do
14338 if test -z "$ac_lib"; then
14339 ac_res="none required"
14340 else
14341 ac_res=-l$ac_lib
14342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14344 if ac_fn_c_try_link "$LINENO"; then :
14345 ac_cv_search_opendir=$ac_res
14347 rm -f core conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext
14349 if ${ac_cv_search_opendir+:} false; then :
14350 break
14352 done
14353 if ${ac_cv_search_opendir+:} false; then :
14355 else
14356 ac_cv_search_opendir=no
14358 rm conftest.$ac_ext
14359 LIBS=$ac_func_search_save_LIBS
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14362 $as_echo "$ac_cv_search_opendir" >&6; }
14363 ac_res=$ac_cv_search_opendir
14364 if test "$ac_res" != no; then :
14365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14371 $as_echo_n "checking for library containing opendir... " >&6; }
14372 if ${ac_cv_search_opendir+:} false; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 ac_func_search_save_LIBS=$LIBS
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14379 /* Override any GCC internal prototype to avoid an error.
14380 Use char because int might match the return type of a GCC
14381 builtin and then its argument prototype would still apply. */
14382 #ifdef __cplusplus
14383 extern "C"
14384 #endif
14385 char opendir ();
14387 main ()
14389 return opendir ();
14391 return 0;
14393 _ACEOF
14394 for ac_lib in '' x; do
14395 if test -z "$ac_lib"; then
14396 ac_res="none required"
14397 else
14398 ac_res=-l$ac_lib
14399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14401 if ac_fn_c_try_link "$LINENO"; then :
14402 ac_cv_search_opendir=$ac_res
14404 rm -f core conftest.err conftest.$ac_objext \
14405 conftest$ac_exeext
14406 if ${ac_cv_search_opendir+:} false; then :
14407 break
14409 done
14410 if ${ac_cv_search_opendir+:} false; then :
14412 else
14413 ac_cv_search_opendir=no
14415 rm conftest.$ac_ext
14416 LIBS=$ac_func_search_save_LIBS
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14419 $as_echo "$ac_cv_search_opendir" >&6; }
14420 ac_res=$ac_cv_search_opendir
14421 if test "$ac_res" != no; then :
14422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14429 $as_echo_n "checking for ANSI C header files... " >&6; }
14430 if ${ac_cv_header_stdc+:} false; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435 #include <stdlib.h>
14436 #include <stdarg.h>
14437 #include <string.h>
14438 #include <float.h>
14441 main ()
14445 return 0;
14447 _ACEOF
14448 if ac_fn_c_try_compile "$LINENO"; then :
14449 ac_cv_header_stdc=yes
14450 else
14451 ac_cv_header_stdc=no
14453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 if test $ac_cv_header_stdc = yes; then
14456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459 #include <string.h>
14461 _ACEOF
14462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14463 $EGREP "memchr" >/dev/null 2>&1; then :
14465 else
14466 ac_cv_header_stdc=no
14468 rm -f conftest*
14472 if test $ac_cv_header_stdc = yes; then
14473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476 #include <stdlib.h>
14478 _ACEOF
14479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14480 $EGREP "free" >/dev/null 2>&1; then :
14482 else
14483 ac_cv_header_stdc=no
14485 rm -f conftest*
14489 if test $ac_cv_header_stdc = yes; then
14490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14491 if test "$cross_compiling" = yes; then :
14493 else
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 #include <ctype.h>
14497 #include <stdlib.h>
14498 #if ((' ' & 0x0FF) == 0x020)
14499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14501 #else
14502 # define ISLOWER(c) \
14503 (('a' <= (c) && (c) <= 'i') \
14504 || ('j' <= (c) && (c) <= 'r') \
14505 || ('s' <= (c) && (c) <= 'z'))
14506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14507 #endif
14509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14511 main ()
14513 int i;
14514 for (i = 0; i < 256; i++)
14515 if (XOR (islower (i), ISLOWER (i))
14516 || toupper (i) != TOUPPER (i))
14517 return 2;
14518 return 0;
14520 _ACEOF
14521 if ac_fn_c_try_run "$LINENO"; then :
14523 else
14524 ac_cv_header_stdc=no
14526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14527 conftest.$ac_objext conftest.beam conftest.$ac_ext
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14533 $as_echo "$ac_cv_header_stdc" >&6; }
14534 if test $ac_cv_header_stdc = yes; then
14536 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
14541 $as_echo_n "checking whether closedir returns void... " >&6; }
14542 if ${ac_cv_func_closedir_void+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 if test "$cross_compiling" = yes; then :
14546 ac_cv_func_closedir_void=yes
14547 else
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14550 $ac_includes_default
14551 #include <$ac_header_dirent>
14552 #ifndef __cplusplus
14553 int closedir ();
14554 #endif
14557 main ()
14559 return closedir (opendir (".")) != 0;
14561 return 0;
14563 _ACEOF
14564 if ac_fn_c_try_run "$LINENO"; then :
14565 ac_cv_func_closedir_void=no
14566 else
14567 ac_cv_func_closedir_void=yes
14569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14570 conftest.$ac_objext conftest.beam conftest.$ac_ext
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
14575 $as_echo "$ac_cv_func_closedir_void" >&6; }
14576 if test $ac_cv_func_closedir_void = yes; then
14578 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
14582 for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.h
14583 do :
14584 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14585 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14587 cat >>confdefs.h <<_ACEOF
14588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14589 _ACEOF
14593 done
14595 for ac_func in putenv
14596 do :
14597 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
14598 if test "x$ac_cv_func_putenv" = xyes; then :
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_PUTENV 1
14601 _ACEOF
14604 done
14606 for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr
14607 do :
14608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14609 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14610 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14611 cat >>confdefs.h <<_ACEOF
14612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14613 _ACEOF
14616 done
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14619 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14620 if ${ac_cv_c_const+:} false; then :
14621 $as_echo_n "(cached) " >&6
14622 else
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14627 main ()
14630 #ifndef __cplusplus
14631 /* Ultrix mips cc rejects this sort of thing. */
14632 typedef int charset[2];
14633 const charset cs = { 0, 0 };
14634 /* SunOS 4.1.1 cc rejects this. */
14635 char const *const *pcpcc;
14636 char **ppc;
14637 /* NEC SVR4.0.2 mips cc rejects this. */
14638 struct point {int x, y;};
14639 static struct point const zero = {0,0};
14640 /* AIX XL C 1.02.0.0 rejects this.
14641 It does not let you subtract one const X* pointer from another in
14642 an arm of an if-expression whose if-part is not a constant
14643 expression */
14644 const char *g = "string";
14645 pcpcc = &g + (g ? g-g : 0);
14646 /* HPUX 7.0 cc rejects these. */
14647 ++pcpcc;
14648 ppc = (char**) pcpcc;
14649 pcpcc = (char const *const *) ppc;
14650 { /* SCO 3.2v4 cc rejects this sort of thing. */
14651 char tx;
14652 char *t = &tx;
14653 char const *s = 0 ? (char *) 0 : (char const *) 0;
14655 *t++ = 0;
14656 if (s) return 0;
14658 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14659 int x[] = {25, 17};
14660 const int *foo = &x[0];
14661 ++foo;
14663 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14664 typedef const int *iptr;
14665 iptr p = 0;
14666 ++p;
14668 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14669 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14670 struct s { int j; const int *ap[3]; } bx;
14671 struct s *b = &bx; b->j = 5;
14673 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14674 const int foo = 10;
14675 if (!foo) return 0;
14677 return !cs[0] && !zero.x;
14678 #endif
14681 return 0;
14683 _ACEOF
14684 if ac_fn_c_try_compile "$LINENO"; then :
14685 ac_cv_c_const=yes
14686 else
14687 ac_cv_c_const=no
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14692 $as_echo "$ac_cv_c_const" >&6; }
14693 if test $ac_cv_c_const = no; then
14695 $as_echo "#define const /**/" >>confdefs.h
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14700 $as_echo_n "checking for inline... " >&6; }
14701 if ${ac_cv_c_inline+:} false; then :
14702 $as_echo_n "(cached) " >&6
14703 else
14704 ac_cv_c_inline=no
14705 for ac_kw in inline __inline__ __inline; do
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14708 #ifndef __cplusplus
14709 typedef int foo_t;
14710 static $ac_kw foo_t static_foo () {return 0; }
14711 $ac_kw foo_t foo () {return 0; }
14712 #endif
14714 _ACEOF
14715 if ac_fn_c_try_compile "$LINENO"; then :
14716 ac_cv_c_inline=$ac_kw
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 test "$ac_cv_c_inline" != no && break
14720 done
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14724 $as_echo "$ac_cv_c_inline" >&6; }
14726 case $ac_cv_c_inline in
14727 inline | yes) ;;
14729 case $ac_cv_c_inline in
14730 no) ac_val=;;
14731 *) ac_val=$ac_cv_c_inline;;
14732 esac
14733 cat >>confdefs.h <<_ACEOF
14734 #ifndef __cplusplus
14735 #define inline $ac_val
14736 #endif
14737 _ACEOF
14739 esac
14741 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14742 if test "x$ac_cv_type_size_t" = xyes; then :
14744 else
14746 cat >>confdefs.h <<_ACEOF
14747 #define size_t unsigned int
14748 _ACEOF
14752 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14753 case $ac_cv_c_int64_t in #(
14754 no|yes) ;; #(
14757 cat >>confdefs.h <<_ACEOF
14758 #define int64_t $ac_cv_c_int64_t
14759 _ACEOF
14761 esac
14763 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14764 case $ac_cv_c_uint64_t in #(
14765 no|yes) ;; #(
14768 $as_echo "#define _UINT64_T 1" >>confdefs.h
14771 cat >>confdefs.h <<_ACEOF
14772 #define uint64_t $ac_cv_c_uint64_t
14773 _ACEOF
14775 esac
14777 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
14778 *':no:'*) :
14779 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
14780 *) :
14782 esac
14783 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14784 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14786 cat >>confdefs.h <<_ACEOF
14787 #define HAVE_STRUCT_STAT_ST_MTIM 1
14788 _ACEOF
14794 if test "x$host_alias" != x && test "x$build_alias" = x; then :
14795 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
14797 eval kpse_build_alias=\${build_alias-$build}
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14803 $as_echo_n "checking for X... " >&6; }
14806 # Check whether --with-x was given.
14807 if test "${with_x+set}" = set; then :
14808 withval=$with_x;
14811 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14812 if test "x$with_x" = xno; then
14813 # The user explicitly disabled X.
14814 have_x=disabled
14815 else
14816 case $x_includes,$x_libraries in #(
14817 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14818 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14819 $as_echo_n "(cached) " >&6
14820 else
14821 # One or both of the vars are not set, and there is no cached value.
14822 ac_x_includes=no ac_x_libraries=no
14823 rm -f -r conftest.dir
14824 if mkdir conftest.dir; then
14825 cd conftest.dir
14826 cat >Imakefile <<'_ACEOF'
14827 incroot:
14828 @echo incroot='${INCROOT}'
14829 usrlibdir:
14830 @echo usrlibdir='${USRLIBDIR}'
14831 libdir:
14832 @echo libdir='${LIBDIR}'
14833 _ACEOF
14834 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14835 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14836 for ac_var in incroot usrlibdir libdir; do
14837 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14838 done
14839 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14840 for ac_extension in a so sl dylib la dll; do
14841 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14842 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14843 ac_im_usrlibdir=$ac_im_libdir; break
14845 done
14846 # Screen out bogus values from the imake configuration. They are
14847 # bogus both because they are the default anyway, and because
14848 # using them would break gcc on systems where it needs fixed includes.
14849 case $ac_im_incroot in
14850 /usr/include) ac_x_includes= ;;
14851 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14852 esac
14853 case $ac_im_usrlibdir in
14854 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14855 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14856 esac
14858 cd ..
14859 rm -f -r conftest.dir
14862 # Standard set of common directories for X headers.
14863 # Check X11 before X11Rn because it is often a symlink to the current release.
14864 ac_x_header_dirs='
14865 /usr/X11/include
14866 /usr/X11R7/include
14867 /usr/X11R6/include
14868 /usr/X11R5/include
14869 /usr/X11R4/include
14871 /usr/include/X11
14872 /usr/include/X11R7
14873 /usr/include/X11R6
14874 /usr/include/X11R5
14875 /usr/include/X11R4
14877 /usr/local/X11/include
14878 /usr/local/X11R7/include
14879 /usr/local/X11R6/include
14880 /usr/local/X11R5/include
14881 /usr/local/X11R4/include
14883 /usr/local/include/X11
14884 /usr/local/include/X11R7
14885 /usr/local/include/X11R6
14886 /usr/local/include/X11R5
14887 /usr/local/include/X11R4
14889 /usr/X386/include
14890 /usr/x386/include
14891 /usr/XFree86/include/X11
14893 /usr/include
14894 /usr/local/include
14895 /usr/unsupported/include
14896 /usr/athena/include
14897 /usr/local/x11r5/include
14898 /usr/lpp/Xamples/include
14900 /usr/openwin/include
14901 /usr/openwin/share/include'
14903 if test "$ac_x_includes" = no; then
14904 # Guess where to find include files, by looking for Xlib.h.
14905 # First, try using that file with no special directory specified.
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <X11/Xlib.h>
14909 _ACEOF
14910 if ac_fn_c_try_cpp "$LINENO"; then :
14911 # We can compile using X headers with no special include directory.
14912 ac_x_includes=
14913 else
14914 for ac_dir in $ac_x_header_dirs; do
14915 if test -r "$ac_dir/X11/Xlib.h"; then
14916 ac_x_includes=$ac_dir
14917 break
14919 done
14921 rm -f conftest.err conftest.i conftest.$ac_ext
14922 fi # $ac_x_includes = no
14924 if test "$ac_x_libraries" = no; then
14925 # Check for the libraries.
14926 # See if we find them without any special options.
14927 # Don't add to $LIBS permanently.
14928 ac_save_LIBS=$LIBS
14929 LIBS="-lX11 $LIBS"
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14932 #include <X11/Xlib.h>
14934 main ()
14936 XrmInitialize ()
14938 return 0;
14940 _ACEOF
14941 if ac_fn_c_try_link "$LINENO"; then :
14942 LIBS=$ac_save_LIBS
14943 # We can link X programs with no special library path.
14944 ac_x_libraries=
14945 else
14946 LIBS=$ac_save_LIBS
14947 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14949 # Don't even attempt the hair of trying to link an X program!
14950 for ac_extension in a so sl dylib la dll; do
14951 if test -r "$ac_dir/libX11.$ac_extension"; then
14952 ac_x_libraries=$ac_dir
14953 break 2
14955 done
14956 done
14958 rm -f core conftest.err conftest.$ac_objext \
14959 conftest$ac_exeext conftest.$ac_ext
14960 fi # $ac_x_libraries = no
14962 case $ac_x_includes,$ac_x_libraries in #(
14963 no,* | *,no | *\'*)
14964 # Didn't find X, or a directory has "'" in its name.
14965 ac_cv_have_x="have_x=no";; #(
14967 # Record where we found X for the cache.
14968 ac_cv_have_x="have_x=yes\
14969 ac_x_includes='$ac_x_includes'\
14970 ac_x_libraries='$ac_x_libraries'"
14971 esac
14973 ;; #(
14974 *) have_x=yes;;
14975 esac
14976 eval "$ac_cv_have_x"
14977 fi # $with_x != no
14979 if test "$have_x" != yes; then
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14981 $as_echo "$have_x" >&6; }
14982 no_x=yes
14983 else
14984 # If each of the values was on the command line, it overrides each guess.
14985 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14986 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14987 # Update the cache value to reflect the command line values.
14988 ac_cv_have_x="have_x=yes\
14989 ac_x_includes='$x_includes'\
14990 ac_x_libraries='$x_libraries'"
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14992 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14995 if test "$no_x" = yes; then
14996 # Not all programs may use this symbol, but it does not hurt to define it.
14998 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
15000 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
15001 else
15002 if test -n "$x_includes"; then
15003 X_CFLAGS="$X_CFLAGS -I$x_includes"
15006 # It would also be nice to do this for all -L options, not just this one.
15007 if test -n "$x_libraries"; then
15008 X_LIBS="$X_LIBS -L$x_libraries"
15009 # For Solaris; some versions of Sun CC require a space after -R and
15010 # others require no space. Words are not sufficient . . . .
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
15012 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
15013 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
15014 ac_xsave_c_werror_flag=$ac_c_werror_flag
15015 ac_c_werror_flag=yes
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15020 main ()
15024 return 0;
15026 _ACEOF
15027 if ac_fn_c_try_link "$LINENO"; then :
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 $as_echo "no" >&6; }
15030 X_LIBS="$X_LIBS -R$x_libraries"
15031 else
15032 LIBS="$ac_xsave_LIBS -R $x_libraries"
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15037 main ()
15041 return 0;
15043 _ACEOF
15044 if ac_fn_c_try_link "$LINENO"; then :
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15046 $as_echo "yes" >&6; }
15047 X_LIBS="$X_LIBS -R $x_libraries"
15048 else
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
15050 $as_echo "neither works" >&6; }
15052 rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15055 rm -f core conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15057 ac_c_werror_flag=$ac_xsave_c_werror_flag
15058 LIBS=$ac_xsave_LIBS
15061 # Check for system-dependent libraries X programs must link with.
15062 # Do this before checking for the system-independent R6 libraries
15063 # (-lICE), since we may need -lsocket or whatever for X linking.
15065 if test "$ISC" = yes; then
15066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
15067 else
15068 # Martyn Johnson says this is needed for Ultrix, if the X
15069 # libraries were built with DECnet support. And Karl Berry says
15070 # the Alpha needs dnet_stub (dnet does not exist).
15071 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15075 /* Override any GCC internal prototype to avoid an error.
15076 Use char because int might match the return type of a GCC
15077 builtin and then its argument prototype would still apply. */
15078 #ifdef __cplusplus
15079 extern "C"
15080 #endif
15081 char XOpenDisplay ();
15083 main ()
15085 return XOpenDisplay ();
15087 return 0;
15089 _ACEOF
15090 if ac_fn_c_try_link "$LINENO"; then :
15092 else
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
15094 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
15095 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
15096 $as_echo_n "(cached) " >&6
15097 else
15098 ac_check_lib_save_LIBS=$LIBS
15099 LIBS="-ldnet $LIBS"
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15103 /* Override any GCC internal prototype to avoid an error.
15104 Use char because int might match the return type of a GCC
15105 builtin and then its argument prototype would still apply. */
15106 #ifdef __cplusplus
15107 extern "C"
15108 #endif
15109 char dnet_ntoa ();
15111 main ()
15113 return dnet_ntoa ();
15115 return 0;
15117 _ACEOF
15118 if ac_fn_c_try_link "$LINENO"; then :
15119 ac_cv_lib_dnet_dnet_ntoa=yes
15120 else
15121 ac_cv_lib_dnet_dnet_ntoa=no
15123 rm -f core conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15125 LIBS=$ac_check_lib_save_LIBS
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
15128 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
15129 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
15130 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
15133 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
15135 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
15136 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
15137 $as_echo_n "(cached) " >&6
15138 else
15139 ac_check_lib_save_LIBS=$LIBS
15140 LIBS="-ldnet_stub $LIBS"
15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h. */
15144 /* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15147 #ifdef __cplusplus
15148 extern "C"
15149 #endif
15150 char dnet_ntoa ();
15152 main ()
15154 return dnet_ntoa ();
15156 return 0;
15158 _ACEOF
15159 if ac_fn_c_try_link "$LINENO"; then :
15160 ac_cv_lib_dnet_stub_dnet_ntoa=yes
15161 else
15162 ac_cv_lib_dnet_stub_dnet_ntoa=no
15164 rm -f core conftest.err conftest.$ac_objext \
15165 conftest$ac_exeext conftest.$ac_ext
15166 LIBS=$ac_check_lib_save_LIBS
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
15169 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
15170 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
15171 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS="$ac_xsave_LIBS"
15180 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
15181 # to get the SysV transport functions.
15182 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
15183 # needs -lnsl.
15184 # The nsl library prevents programs from opening the X display
15185 # on Irix 5.2, according to T.E. Dickey.
15186 # The functions gethostbyname, getservbyname, and inet_addr are
15187 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
15188 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15189 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15193 if test $ac_cv_func_gethostbyname = no; then
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15195 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15196 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15197 $as_echo_n "(cached) " >&6
15198 else
15199 ac_check_lib_save_LIBS=$LIBS
15200 LIBS="-lnsl $LIBS"
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15204 /* Override any GCC internal prototype to avoid an error.
15205 Use char because int might match the return type of a GCC
15206 builtin and then its argument prototype would still apply. */
15207 #ifdef __cplusplus
15208 extern "C"
15209 #endif
15210 char gethostbyname ();
15212 main ()
15214 return gethostbyname ();
15216 return 0;
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 ac_cv_lib_nsl_gethostbyname=yes
15221 else
15222 ac_cv_lib_nsl_gethostbyname=no
15224 rm -f core conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226 LIBS=$ac_check_lib_save_LIBS
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15229 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15230 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15231 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15234 if test $ac_cv_lib_nsl_gethostbyname = no; then
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
15236 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
15237 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
15238 $as_echo_n "(cached) " >&6
15239 else
15240 ac_check_lib_save_LIBS=$LIBS
15241 LIBS="-lbsd $LIBS"
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h. */
15245 /* Override any GCC internal prototype to avoid an error.
15246 Use char because int might match the return type of a GCC
15247 builtin and then its argument prototype would still apply. */
15248 #ifdef __cplusplus
15249 extern "C"
15250 #endif
15251 char gethostbyname ();
15253 main ()
15255 return gethostbyname ();
15257 return 0;
15259 _ACEOF
15260 if ac_fn_c_try_link "$LINENO"; then :
15261 ac_cv_lib_bsd_gethostbyname=yes
15262 else
15263 ac_cv_lib_bsd_gethostbyname=no
15265 rm -f core conftest.err conftest.$ac_objext \
15266 conftest$ac_exeext conftest.$ac_ext
15267 LIBS=$ac_check_lib_save_LIBS
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
15270 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
15271 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
15272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
15278 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15279 # socket/setsockopt and other routines are undefined under SCO ODT
15280 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15281 # on later versions), says Simon Leinen: it contains gethostby*
15282 # variants that don't use the name server (or something). -lsocket
15283 # must be given before -lnsl if both are needed. We assume that
15284 # if connect needs -lnsl, so does gethostbyname.
15285 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15286 if test "x$ac_cv_func_connect" = xyes; then :
15290 if test $ac_cv_func_connect = no; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15292 $as_echo_n "checking for connect in -lsocket... " >&6; }
15293 if ${ac_cv_lib_socket_connect+:} false; then :
15294 $as_echo_n "(cached) " >&6
15295 else
15296 ac_check_lib_save_LIBS=$LIBS
15297 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15301 /* Override any GCC internal prototype to avoid an error.
15302 Use char because int might match the return type of a GCC
15303 builtin and then its argument prototype would still apply. */
15304 #ifdef __cplusplus
15305 extern "C"
15306 #endif
15307 char connect ();
15309 main ()
15311 return connect ();
15313 return 0;
15315 _ACEOF
15316 if ac_fn_c_try_link "$LINENO"; then :
15317 ac_cv_lib_socket_connect=yes
15318 else
15319 ac_cv_lib_socket_connect=no
15321 rm -f core conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15326 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15327 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15328 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15333 # Guillermo Gomez says -lposix is necessary on A/UX.
15334 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
15335 if test "x$ac_cv_func_remove" = xyes; then :
15339 if test $ac_cv_func_remove = no; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
15341 $as_echo_n "checking for remove in -lposix... " >&6; }
15342 if ${ac_cv_lib_posix_remove+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345 ac_check_lib_save_LIBS=$LIBS
15346 LIBS="-lposix $LIBS"
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15350 /* Override any GCC internal prototype to avoid an error.
15351 Use char because int might match the return type of a GCC
15352 builtin and then its argument prototype would still apply. */
15353 #ifdef __cplusplus
15354 extern "C"
15355 #endif
15356 char remove ();
15358 main ()
15360 return remove ();
15362 return 0;
15364 _ACEOF
15365 if ac_fn_c_try_link "$LINENO"; then :
15366 ac_cv_lib_posix_remove=yes
15367 else
15368 ac_cv_lib_posix_remove=no
15370 rm -f core conftest.err conftest.$ac_objext \
15371 conftest$ac_exeext conftest.$ac_ext
15372 LIBS=$ac_check_lib_save_LIBS
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
15375 $as_echo "$ac_cv_lib_posix_remove" >&6; }
15376 if test "x$ac_cv_lib_posix_remove" = xyes; then :
15377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15382 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15383 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
15384 if test "x$ac_cv_func_shmat" = xyes; then :
15388 if test $ac_cv_func_shmat = no; then
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
15390 $as_echo_n "checking for shmat in -lipc... " >&6; }
15391 if ${ac_cv_lib_ipc_shmat+:} false; then :
15392 $as_echo_n "(cached) " >&6
15393 else
15394 ac_check_lib_save_LIBS=$LIBS
15395 LIBS="-lipc $LIBS"
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15399 /* Override any GCC internal prototype to avoid an error.
15400 Use char because int might match the return type of a GCC
15401 builtin and then its argument prototype would still apply. */
15402 #ifdef __cplusplus
15403 extern "C"
15404 #endif
15405 char shmat ();
15407 main ()
15409 return shmat ();
15411 return 0;
15413 _ACEOF
15414 if ac_fn_c_try_link "$LINENO"; then :
15415 ac_cv_lib_ipc_shmat=yes
15416 else
15417 ac_cv_lib_ipc_shmat=no
15419 rm -f core conftest.err conftest.$ac_objext \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
15424 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
15425 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
15426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15432 # Check for libraries that X11R6 Xt/Xaw programs need.
15433 ac_save_LDFLAGS=$LDFLAGS
15434 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15435 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15436 # check for ICE first), but we must link in the order -lSM -lICE or
15437 # we get undefined symbols. So assume we have SM if we have ICE.
15438 # These have to be linked with before -lX11, unlike the other
15439 # libraries we check for below, so use a different variable.
15440 # John Interrante, Karl Berry
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
15442 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
15443 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
15444 $as_echo_n "(cached) " >&6
15445 else
15446 ac_check_lib_save_LIBS=$LIBS
15447 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15451 /* Override any GCC internal prototype to avoid an error.
15452 Use char because int might match the return type of a GCC
15453 builtin and then its argument prototype would still apply. */
15454 #ifdef __cplusplus
15455 extern "C"
15456 #endif
15457 char IceConnectionNumber ();
15459 main ()
15461 return IceConnectionNumber ();
15463 return 0;
15465 _ACEOF
15466 if ac_fn_c_try_link "$LINENO"; then :
15467 ac_cv_lib_ICE_IceConnectionNumber=yes
15468 else
15469 ac_cv_lib_ICE_IceConnectionNumber=no
15471 rm -f core conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext conftest.$ac_ext
15473 LIBS=$ac_check_lib_save_LIBS
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
15476 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
15477 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
15478 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15481 LDFLAGS=$ac_save_LDFLAGS
15486 ac_ext=cpp
15487 ac_cpp='$CXXCPP $CPPFLAGS'
15488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15491 if test -z "$CXX"; then
15492 if test -n "$CCC"; then
15493 CXX=$CCC
15494 else
15495 if test -n "$ac_tool_prefix"; then
15496 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15501 $as_echo_n "checking for $ac_word... " >&6; }
15502 if ${ac_cv_prog_CXX+:} false; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505 if test -n "$CXX"; then
15506 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15507 else
15508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15509 for as_dir in $PATH
15511 IFS=$as_save_IFS
15512 test -z "$as_dir" && as_dir=.
15513 for ac_exec_ext in '' $ac_executable_extensions; do
15514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15515 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15517 break 2
15519 done
15520 done
15521 IFS=$as_save_IFS
15525 CXX=$ac_cv_prog_CXX
15526 if test -n "$CXX"; then
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15528 $as_echo "$CXX" >&6; }
15529 else
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15531 $as_echo "no" >&6; }
15535 test -n "$CXX" && break
15536 done
15538 if test -z "$CXX"; then
15539 ac_ct_CXX=$CXX
15540 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15542 # Extract the first word of "$ac_prog", so it can be a program name with args.
15543 set dummy $ac_prog; ac_word=$2
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15545 $as_echo_n "checking for $ac_word... " >&6; }
15546 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
15547 $as_echo_n "(cached) " >&6
15548 else
15549 if test -n "$ac_ct_CXX"; then
15550 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15551 else
15552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15553 for as_dir in $PATH
15555 IFS=$as_save_IFS
15556 test -z "$as_dir" && as_dir=.
15557 for ac_exec_ext in '' $ac_executable_extensions; do
15558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15559 ac_cv_prog_ac_ct_CXX="$ac_prog"
15560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15561 break 2
15563 done
15564 done
15565 IFS=$as_save_IFS
15569 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15570 if test -n "$ac_ct_CXX"; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15572 $as_echo "$ac_ct_CXX" >&6; }
15573 else
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15575 $as_echo "no" >&6; }
15579 test -n "$ac_ct_CXX" && break
15580 done
15582 if test "x$ac_ct_CXX" = x; then
15583 CXX="g++"
15584 else
15585 case $cross_compiling:$ac_tool_warned in
15586 yes:)
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15589 ac_tool_warned=yes ;;
15590 esac
15591 CXX=$ac_ct_CXX
15597 # Provide some information about the compiler.
15598 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15599 set X $ac_compile
15600 ac_compiler=$2
15601 for ac_option in --version -v -V -qversion; do
15602 { { ac_try="$ac_compiler $ac_option >&5"
15603 case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606 esac
15607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15608 $as_echo "$ac_try_echo"; } >&5
15609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15610 ac_status=$?
15611 if test -s conftest.err; then
15612 sed '10a\
15613 ... rest of stderr output deleted ...
15614 10q' conftest.err >conftest.er1
15615 cat conftest.er1 >&5
15617 rm -f conftest.er1 conftest.err
15618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15619 test $ac_status = 0; }
15620 done
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
15623 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15624 if ${ac_cv_cxx_compiler_gnu+:} false; then :
15625 $as_echo_n "(cached) " >&6
15626 else
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15631 main ()
15633 #ifndef __GNUC__
15634 choke me
15635 #endif
15638 return 0;
15640 _ACEOF
15641 if ac_fn_cxx_try_compile "$LINENO"; then :
15642 ac_compiler_gnu=yes
15643 else
15644 ac_compiler_gnu=no
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15651 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15652 if test $ac_compiler_gnu = yes; then
15653 GXX=yes
15654 else
15655 GXX=
15657 ac_test_CXXFLAGS=${CXXFLAGS+set}
15658 ac_save_CXXFLAGS=$CXXFLAGS
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15660 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
15661 if ${ac_cv_prog_cxx_g+:} false; then :
15662 $as_echo_n "(cached) " >&6
15663 else
15664 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15665 ac_cxx_werror_flag=yes
15666 ac_cv_prog_cxx_g=no
15667 CXXFLAGS="-g"
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15672 main ()
15676 return 0;
15678 _ACEOF
15679 if ac_fn_cxx_try_compile "$LINENO"; then :
15680 ac_cv_prog_cxx_g=yes
15681 else
15682 CXXFLAGS=""
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15687 main ()
15691 return 0;
15693 _ACEOF
15694 if ac_fn_cxx_try_compile "$LINENO"; then :
15696 else
15697 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15698 CXXFLAGS="-g"
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15703 main ()
15707 return 0;
15709 _ACEOF
15710 if ac_fn_cxx_try_compile "$LINENO"; then :
15711 ac_cv_prog_cxx_g=yes
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15721 $as_echo "$ac_cv_prog_cxx_g" >&6; }
15722 if test "$ac_test_CXXFLAGS" = set; then
15723 CXXFLAGS=$ac_save_CXXFLAGS
15724 elif test $ac_cv_prog_cxx_g = yes; then
15725 if test "$GXX" = yes; then
15726 CXXFLAGS="-g -O2"
15727 else
15728 CXXFLAGS="-g"
15730 else
15731 if test "$GXX" = yes; then
15732 CXXFLAGS="-O2"
15733 else
15734 CXXFLAGS=
15737 ac_ext=c
15738 ac_cpp='$CPP $CPPFLAGS'
15739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15743 depcc="$CXX" am_compiler_list=
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15746 $as_echo_n "checking dependency style of $depcc... " >&6; }
15747 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15750 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15751 # We make a subdir and do the tests there. Otherwise we can end up
15752 # making bogus files that we don't know about and never remove. For
15753 # instance it was reported that on HP-UX the gcc test will end up
15754 # making a dummy file named 'D' -- because '-MD' means "put the output
15755 # in D".
15756 rm -rf conftest.dir
15757 mkdir conftest.dir
15758 # Copy depcomp to subdir because otherwise we won't find it if we're
15759 # using a relative directory.
15760 cp "$am_depcomp" conftest.dir
15761 cd conftest.dir
15762 # We will build objects and dependencies in a subdirectory because
15763 # it helps to detect inapplicable dependency modes. For instance
15764 # both Tru64's cc and ICC support -MD to output dependencies as a
15765 # side effect of compilation, but ICC will put the dependencies in
15766 # the current directory while Tru64 will put them in the object
15767 # directory.
15768 mkdir sub
15770 am_cv_CXX_dependencies_compiler_type=none
15771 if test "$am_compiler_list" = ""; then
15772 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15774 am__universal=false
15775 case " $depcc " in #(
15776 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15777 esac
15779 for depmode in $am_compiler_list; do
15780 # Setup a source with many dependencies, because some compilers
15781 # like to wrap large dependency lists on column 80 (with \), and
15782 # we should not choose a depcomp mode which is confused by this.
15784 # We need to recreate these files for each test, as the compiler may
15785 # overwrite some of them when testing with obscure command lines.
15786 # This happens at least with the AIX C compiler.
15787 : > sub/conftest.c
15788 for i in 1 2 3 4 5 6; do
15789 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15790 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15791 # Solaris 10 /bin/sh.
15792 echo '/* dummy */' > sub/conftst$i.h
15793 done
15794 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15796 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15797 # mode. It turns out that the SunPro C++ compiler does not properly
15798 # handle '-M -o', and we need to detect this. Also, some Intel
15799 # versions had trouble with output in subdirs.
15800 am__obj=sub/conftest.${OBJEXT-o}
15801 am__minus_obj="-o $am__obj"
15802 case $depmode in
15803 gcc)
15804 # This depmode causes a compiler race in universal mode.
15805 test "$am__universal" = false || continue
15807 nosideeffect)
15808 # After this tag, mechanisms are not by side-effect, so they'll
15809 # only be used when explicitly requested.
15810 if test "x$enable_dependency_tracking" = xyes; then
15811 continue
15812 else
15813 break
15816 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15817 # This compiler won't grok '-c -o', but also, the minuso test has
15818 # not run yet. These depmodes are late enough in the game, and
15819 # so weak that their functioning should not be impacted.
15820 am__obj=conftest.${OBJEXT-o}
15821 am__minus_obj=
15823 none) break ;;
15824 esac
15825 if depmode=$depmode \
15826 source=sub/conftest.c object=$am__obj \
15827 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15828 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15829 >/dev/null 2>conftest.err &&
15830 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15831 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15832 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15833 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15834 # icc doesn't choke on unknown options, it will just issue warnings
15835 # or remarks (even with -Werror). So we grep stderr for any message
15836 # that says an option was ignored or not supported.
15837 # When given -MP, icc 7.0 and 7.1 complain thusly:
15838 # icc: Command line warning: ignoring option '-M'; no argument required
15839 # The diagnosis changed in icc 8.0:
15840 # icc: Command line remark: option '-MP' not supported
15841 if (grep 'ignoring option' conftest.err ||
15842 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15843 am_cv_CXX_dependencies_compiler_type=$depmode
15844 break
15847 done
15849 cd ..
15850 rm -rf conftest.dir
15851 else
15852 am_cv_CXX_dependencies_compiler_type=none
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15857 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15858 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15861 test "x$enable_dependency_tracking" != xno \
15862 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15863 am__fastdepCXX_TRUE=
15864 am__fastdepCXX_FALSE='#'
15865 else
15866 am__fastdepCXX_TRUE='#'
15867 am__fastdepCXX_FALSE=
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5
15871 $as_echo_n "checking what warning flags to pass to the C++ compiler... " >&6; }
15872 if ${kpse_cv_warning_cxxflags+:} false; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 if test "x$GXX" = xyes; then
15876 kpse_cv_warning_cxxflags=
15877 kpse_warn_strings="-Wno-write-strings"
15878 if test "x$enable_compiler_warnings" != xno; then
15879 kpse_cv_warning_cxxflags="-Wreturn-type"
15880 case `$CXX -dumpversion` in #(
15881 3.* | 4.[012345].*) :
15882 kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #(
15883 *) :
15885 esac
15886 case `$CXX -dumpversion` in #(
15887 3.[234].* | 4.*) :
15888 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #(
15889 *) :
15891 esac
15892 if test "x$enable_compiler_warnings" != xmin; then
15893 kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags"
15894 if test "x$enable_compiler_warnings" != xyes; then
15895 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
15896 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align"
15897 kpse_warn_strings="-Wwrite-strings"
15898 if test "x$enable_compiler_warnings" != xmax; then
15899 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow"
15904 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings"
15905 elif test "x$enable_compiler_warnings" = xno; then
15906 kpse_cv_warning_cxxflags=
15907 else
15908 kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5
15912 $as_echo "$kpse_cv_warning_cxxflags" >&6; }
15913 WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
15919 func_stripname_cnf ()
15921 case $2 in
15922 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15923 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15924 esac
15925 } # func_stripname_cnf
15927 if test -n "$CXX" && ( test no != "$CXX" &&
15928 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15929 (test g++ != "$CXX"))); then
15930 ac_ext=cpp
15931 ac_cpp='$CXXCPP $CPPFLAGS'
15932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15936 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15937 if test -z "$CXXCPP"; then
15938 if ${ac_cv_prog_CXXCPP+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940 else
15941 # Double quotes because CXXCPP needs to be expanded
15942 for CXXCPP in "$CXX -E" "/lib/cpp"
15944 ac_preproc_ok=false
15945 for ac_cxx_preproc_warn_flag in '' yes
15947 # Use a header file that comes with gcc, so configuring glibc
15948 # with a fresh cross-compiler works.
15949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15950 # <limits.h> exists even on freestanding compilers.
15951 # On the NeXT, cc -E runs the code through the compiler's parser,
15952 # not just through cpp. "Syntax error" is here to catch this case.
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955 #ifdef __STDC__
15956 # include <limits.h>
15957 #else
15958 # include <assert.h>
15959 #endif
15960 Syntax error
15961 _ACEOF
15962 if ac_fn_cxx_try_cpp "$LINENO"; then :
15964 else
15965 # Broken: fails on valid input.
15966 continue
15968 rm -f conftest.err conftest.i conftest.$ac_ext
15970 # OK, works on sane cases. Now check whether nonexistent headers
15971 # can be detected and how.
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15974 #include <ac_nonexistent.h>
15975 _ACEOF
15976 if ac_fn_cxx_try_cpp "$LINENO"; then :
15977 # Broken: success on invalid input.
15978 continue
15979 else
15980 # Passes both tests.
15981 ac_preproc_ok=:
15982 break
15984 rm -f conftest.err conftest.i conftest.$ac_ext
15986 done
15987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15988 rm -f conftest.i conftest.err conftest.$ac_ext
15989 if $ac_preproc_ok; then :
15990 break
15993 done
15994 ac_cv_prog_CXXCPP=$CXXCPP
15997 CXXCPP=$ac_cv_prog_CXXCPP
15998 else
15999 ac_cv_prog_CXXCPP=$CXXCPP
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16002 $as_echo "$CXXCPP" >&6; }
16003 ac_preproc_ok=false
16004 for ac_cxx_preproc_warn_flag in '' yes
16006 # Use a header file that comes with gcc, so configuring glibc
16007 # with a fresh cross-compiler works.
16008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16009 # <limits.h> exists even on freestanding compilers.
16010 # On the NeXT, cc -E runs the code through the compiler's parser,
16011 # not just through cpp. "Syntax error" is here to catch this case.
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16014 #ifdef __STDC__
16015 # include <limits.h>
16016 #else
16017 # include <assert.h>
16018 #endif
16019 Syntax error
16020 _ACEOF
16021 if ac_fn_cxx_try_cpp "$LINENO"; then :
16023 else
16024 # Broken: fails on valid input.
16025 continue
16027 rm -f conftest.err conftest.i conftest.$ac_ext
16029 # OK, works on sane cases. Now check whether nonexistent headers
16030 # can be detected and how.
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033 #include <ac_nonexistent.h>
16034 _ACEOF
16035 if ac_fn_cxx_try_cpp "$LINENO"; then :
16036 # Broken: success on invalid input.
16037 continue
16038 else
16039 # Passes both tests.
16040 ac_preproc_ok=:
16041 break
16043 rm -f conftest.err conftest.i conftest.$ac_ext
16045 done
16046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16047 rm -f conftest.i conftest.err conftest.$ac_ext
16048 if $ac_preproc_ok; then :
16050 else
16051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16053 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16054 See \`config.log' for more details" "$LINENO" 5; }
16057 ac_ext=c
16058 ac_cpp='$CPP $CPPFLAGS'
16059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16063 else
16064 _lt_caught_CXX_error=yes
16067 ac_ext=cpp
16068 ac_cpp='$CXXCPP $CPPFLAGS'
16069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16073 archive_cmds_need_lc_CXX=no
16074 allow_undefined_flag_CXX=
16075 always_export_symbols_CXX=no
16076 archive_expsym_cmds_CXX=
16077 compiler_needs_object_CXX=no
16078 export_dynamic_flag_spec_CXX=
16079 hardcode_direct_CXX=no
16080 hardcode_direct_absolute_CXX=no
16081 hardcode_libdir_flag_spec_CXX=
16082 hardcode_libdir_separator_CXX=
16083 hardcode_minus_L_CXX=no
16084 hardcode_shlibpath_var_CXX=unsupported
16085 hardcode_automatic_CXX=no
16086 inherit_rpath_CXX=no
16087 module_cmds_CXX=
16088 module_expsym_cmds_CXX=
16089 link_all_deplibs_CXX=unknown
16090 old_archive_cmds_CXX=$old_archive_cmds
16091 reload_flag_CXX=$reload_flag
16092 reload_cmds_CXX=$reload_cmds
16093 no_undefined_flag_CXX=
16094 whole_archive_flag_spec_CXX=
16095 enable_shared_with_static_runtimes_CXX=no
16097 # Source file extension for C++ test sources.
16098 ac_ext=cpp
16100 # Object file extension for compiled C++ test sources.
16101 objext=o
16102 objext_CXX=$objext
16104 # No sense in running all these tests if we already determined that
16105 # the CXX compiler isn't working. Some variables (like enable_shared)
16106 # are currently assumed to apply to all compilers on this platform,
16107 # and will be corrupted by setting them based on a non-working compiler.
16108 if test yes != "$_lt_caught_CXX_error"; then
16109 # Code to be used in simple compile tests
16110 lt_simple_compile_test_code="int some_variable = 0;"
16112 # Code to be used in simple link tests
16113 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16115 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16122 # If no C compiler was specified, use CC.
16123 LTCC=${LTCC-"$CC"}
16125 # If no C compiler flags were specified, use CFLAGS.
16126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16128 # Allow CC to be a program name with arguments.
16129 compiler=$CC
16132 # save warnings/boilerplate of simple test code
16133 ac_outfile=conftest.$ac_objext
16134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16136 _lt_compiler_boilerplate=`cat conftest.err`
16137 $RM conftest*
16139 ac_outfile=conftest.$ac_objext
16140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16142 _lt_linker_boilerplate=`cat conftest.err`
16143 $RM -r conftest*
16146 # Allow CC to be a program name with arguments.
16147 lt_save_CC=$CC
16148 lt_save_CFLAGS=$CFLAGS
16149 lt_save_LD=$LD
16150 lt_save_GCC=$GCC
16151 GCC=$GXX
16152 lt_save_with_gnu_ld=$with_gnu_ld
16153 lt_save_path_LD=$lt_cv_path_LD
16154 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16155 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16156 else
16157 $as_unset lt_cv_prog_gnu_ld
16159 if test -n "${lt_cv_path_LDCXX+set}"; then
16160 lt_cv_path_LD=$lt_cv_path_LDCXX
16161 else
16162 $as_unset lt_cv_path_LD
16164 test -z "${LDCXX+set}" || LD=$LDCXX
16165 CC=${CXX-"c++"}
16166 CFLAGS=$CXXFLAGS
16167 compiler=$CC
16168 compiler_CXX=$CC
16169 func_cc_basename $compiler
16170 cc_basename=$func_cc_basename_result
16173 if test -n "$compiler"; then
16174 # We don't want -fno-exception when compiling C++ code, so set the
16175 # no_builtin_flag separately
16176 if test yes = "$GXX"; then
16177 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16178 else
16179 lt_prog_compiler_no_builtin_flag_CXX=
16182 if test yes = "$GXX"; then
16183 # Set up default GNU C++ configuration
16187 # Check whether --with-gnu-ld was given.
16188 if test "${with_gnu_ld+set}" = set; then :
16189 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16190 else
16191 with_gnu_ld=no
16194 ac_prog=ld
16195 if test yes = "$GCC"; then
16196 # Check if gcc -print-prog-name=ld gives a path.
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16198 $as_echo_n "checking for ld used by $CC... " >&6; }
16199 case $host in
16200 *-*-mingw*)
16201 # gcc leaves a trailing carriage return, which upsets mingw
16202 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16204 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16205 esac
16206 case $ac_prog in
16207 # Accept absolute paths.
16208 [\\/]* | ?:[\\/]*)
16209 re_direlt='/[^/][^/]*/\.\./'
16210 # Canonicalize the pathname of ld
16211 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16212 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16213 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16214 done
16215 test -z "$LD" && LD=$ac_prog
16218 # If it fails, then pretend we aren't using GCC.
16219 ac_prog=ld
16222 # If it is relative, then search for the first ld in PATH.
16223 with_gnu_ld=unknown
16225 esac
16226 elif test yes = "$with_gnu_ld"; then
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16228 $as_echo_n "checking for GNU ld... " >&6; }
16229 else
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16231 $as_echo_n "checking for non-GNU ld... " >&6; }
16233 if ${lt_cv_path_LD+:} false; then :
16234 $as_echo_n "(cached) " >&6
16235 else
16236 if test -z "$LD"; then
16237 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16238 for ac_dir in $PATH; do
16239 IFS=$lt_save_ifs
16240 test -z "$ac_dir" && ac_dir=.
16241 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16242 lt_cv_path_LD=$ac_dir/$ac_prog
16243 # Check to see if the program is GNU ld. I'd rather use --version,
16244 # but apparently some variants of GNU ld only accept -v.
16245 # Break only if it was the GNU/non-GNU ld that we prefer.
16246 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16247 *GNU* | *'with BFD'*)
16248 test no != "$with_gnu_ld" && break
16251 test yes != "$with_gnu_ld" && break
16253 esac
16255 done
16256 IFS=$lt_save_ifs
16257 else
16258 lt_cv_path_LD=$LD # Let the user override the test with a path.
16262 LD=$lt_cv_path_LD
16263 if test -n "$LD"; then
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16265 $as_echo "$LD" >&6; }
16266 else
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16268 $as_echo "no" >&6; }
16270 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16272 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16273 if ${lt_cv_prog_gnu_ld+:} false; then :
16274 $as_echo_n "(cached) " >&6
16275 else
16276 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16277 case `$LD -v 2>&1 </dev/null` in
16278 *GNU* | *'with BFD'*)
16279 lt_cv_prog_gnu_ld=yes
16282 lt_cv_prog_gnu_ld=no
16284 esac
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16287 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16288 with_gnu_ld=$lt_cv_prog_gnu_ld
16296 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16297 # archiving commands below assume that GNU ld is being used.
16298 if test yes = "$with_gnu_ld"; then
16299 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16300 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16302 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16303 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16305 # If archive_cmds runs LD, not CC, wlarc should be empty
16306 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16307 # investigate it a little bit more. (MM)
16308 wlarc='$wl'
16310 # ancient GNU ld didn't support --whole-archive et. al.
16311 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16312 $GREP 'no-whole-archive' > /dev/null; then
16313 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16314 else
16315 whole_archive_flag_spec_CXX=
16317 else
16318 with_gnu_ld=no
16319 wlarc=
16321 # A generic and very simple default shared library creation
16322 # command for GNU C++ for the case where it uses the native
16323 # linker, instead of GNU ld. If possible, this setting should
16324 # overridden to take advantage of the native linker features on
16325 # the platform it is being used on.
16326 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16329 # Commands to make compiler produce verbose output that lists
16330 # what "hidden" libraries, object files and flags are used when
16331 # linking a shared library.
16332 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16334 else
16335 GXX=no
16336 with_gnu_ld=no
16337 wlarc=
16340 # PORTME: fill in a description of your system's C++ link characteristics
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16342 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16343 ld_shlibs_CXX=yes
16344 case $host_os in
16345 aix3*)
16346 # FIXME: insert proper C++ library support
16347 ld_shlibs_CXX=no
16349 aix[4-9]*)
16350 if test ia64 = "$host_cpu"; then
16351 # On IA64, the linker does run time linking by default, so we don't
16352 # have to do anything special.
16353 aix_use_runtimelinking=no
16354 exp_sym_flag='-Bexport'
16355 no_entry_flag=
16356 else
16357 aix_use_runtimelinking=no
16359 # Test if we are trying to use run time linking or normal
16360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16361 # have runtime linking enabled, and use it for executables.
16362 # For shared libraries, we enable/disable runtime linking
16363 # depending on the kind of the shared library created -
16364 # when "with_aix_soname,aix_use_runtimelinking" is:
16365 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16366 # "aix,yes" lib.so shared, rtl:yes, for executables
16367 # lib.a static archive
16368 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16369 # lib.a(lib.so.V) shared, rtl:no, for executables
16370 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16371 # lib.a(lib.so.V) shared, rtl:no
16372 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16373 # lib.a static archive
16374 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16375 for ld_flag in $LDFLAGS; do
16376 case $ld_flag in
16377 *-brtl*)
16378 aix_use_runtimelinking=yes
16379 break
16381 esac
16382 done
16383 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16384 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16385 # so we don't have lib.a shared libs to link our executables.
16386 # We have to force runtime linking in this case.
16387 aix_use_runtimelinking=yes
16388 LDFLAGS="$LDFLAGS -Wl,-brtl"
16391 esac
16393 exp_sym_flag='-bexport'
16394 no_entry_flag='-bnoentry'
16397 # When large executables or shared objects are built, AIX ld can
16398 # have problems creating the table of contents. If linking a library
16399 # or program results in "error TOC overflow" add -mminimal-toc to
16400 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16401 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16403 archive_cmds_CXX=''
16404 hardcode_direct_CXX=yes
16405 hardcode_direct_absolute_CXX=yes
16406 hardcode_libdir_separator_CXX=':'
16407 link_all_deplibs_CXX=yes
16408 file_list_spec_CXX='$wl-f,'
16409 case $with_aix_soname,$aix_use_runtimelinking in
16410 aix,*) ;; # no import file
16411 svr4,* | *,yes) # use import file
16412 # The Import File defines what to hardcode.
16413 hardcode_direct_CXX=no
16414 hardcode_direct_absolute_CXX=no
16416 esac
16418 if test yes = "$GXX"; then
16419 case $host_os in aix4.[012]|aix4.[012].*)
16420 # We only want to do this on AIX 4.2 and lower, the check
16421 # below for broken collect2 doesn't work under 4.3+
16422 collect2name=`$CC -print-prog-name=collect2`
16423 if test -f "$collect2name" &&
16424 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16425 then
16426 # We have reworked collect2
16428 else
16429 # We have old collect2
16430 hardcode_direct_CXX=unsupported
16431 # It fails to find uninstalled libraries when the uninstalled
16432 # path is not listed in the libpath. Setting hardcode_minus_L
16433 # to unsupported forces relinking
16434 hardcode_minus_L_CXX=yes
16435 hardcode_libdir_flag_spec_CXX='-L$libdir'
16436 hardcode_libdir_separator_CXX=
16438 esac
16439 shared_flag='-shared'
16440 if test yes = "$aix_use_runtimelinking"; then
16441 shared_flag=$shared_flag' $wl-G'
16443 # Need to ensure runtime linking is disabled for the traditional
16444 # shared library, or the linker may eventually find shared libraries
16445 # /with/ Import File - we do not want to mix them.
16446 shared_flag_aix='-shared'
16447 shared_flag_svr4='-shared $wl-G'
16448 else
16449 # not using gcc
16450 if test ia64 = "$host_cpu"; then
16451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16452 # chokes on -Wl,-G. The following line is correct:
16453 shared_flag='-G'
16454 else
16455 if test yes = "$aix_use_runtimelinking"; then
16456 shared_flag='$wl-G'
16457 else
16458 shared_flag='$wl-bM:SRE'
16460 shared_flag_aix='$wl-bM:SRE'
16461 shared_flag_svr4='$wl-G'
16465 export_dynamic_flag_spec_CXX='$wl-bexpall'
16466 # It seems that -bexpall does not export symbols beginning with
16467 # underscore (_), so it is better to generate a list of symbols to
16468 # export.
16469 always_export_symbols_CXX=yes
16470 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16471 # Warning - without using the other runtime loading flags (-brtl),
16472 # -berok will link without error, but may produce a broken library.
16473 # The "-G" linker flag allows undefined symbols.
16474 no_undefined_flag_CXX='-bernotok'
16475 # Determine the default libpath from the value encoded in an empty
16476 # executable.
16477 if test set = "${lt_cv_aix_libpath+set}"; then
16478 aix_libpath=$lt_cv_aix_libpath
16479 else
16480 if ${lt_cv_aix_libpath__CXX+:} false; then :
16481 $as_echo_n "(cached) " >&6
16482 else
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16487 main ()
16491 return 0;
16493 _ACEOF
16494 if ac_fn_cxx_try_link "$LINENO"; then :
16496 lt_aix_libpath_sed='
16497 /Import File Strings/,/^$/ {
16498 /^0/ {
16499 s/^0 *\([^ ]*\) *$/\1/
16503 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16504 # Check for a 64-bit object if we didn't find anything.
16505 if test -z "$lt_cv_aix_libpath__CXX"; then
16506 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16509 rm -f core conftest.err conftest.$ac_objext \
16510 conftest$ac_exeext conftest.$ac_ext
16511 if test -z "$lt_cv_aix_libpath__CXX"; then
16512 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16517 aix_libpath=$lt_cv_aix_libpath__CXX
16520 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16522 archive_expsym_cmds_CXX='$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
16523 else
16524 if test ia64 = "$host_cpu"; then
16525 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16526 allow_undefined_flag_CXX="-z nodefs"
16527 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
16528 else
16529 # Determine the default libpath from the value encoded in an
16530 # empty executable.
16531 if test set = "${lt_cv_aix_libpath+set}"; then
16532 aix_libpath=$lt_cv_aix_libpath
16533 else
16534 if ${lt_cv_aix_libpath__CXX+:} false; then :
16535 $as_echo_n "(cached) " >&6
16536 else
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16541 main ()
16545 return 0;
16547 _ACEOF
16548 if ac_fn_cxx_try_link "$LINENO"; then :
16550 lt_aix_libpath_sed='
16551 /Import File Strings/,/^$/ {
16552 /^0/ {
16553 s/^0 *\([^ ]*\) *$/\1/
16557 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16558 # Check for a 64-bit object if we didn't find anything.
16559 if test -z "$lt_cv_aix_libpath__CXX"; then
16560 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16563 rm -f core conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565 if test -z "$lt_cv_aix_libpath__CXX"; then
16566 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16571 aix_libpath=$lt_cv_aix_libpath__CXX
16574 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16575 # Warning - without using the other run time loading flags,
16576 # -berok will link without error, but may produce a broken library.
16577 no_undefined_flag_CXX=' $wl-bernotok'
16578 allow_undefined_flag_CXX=' $wl-berok'
16579 if test yes = "$with_gnu_ld"; then
16580 # We only use this code for GNU lds that support --whole-archive.
16581 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16582 else
16583 # Exported symbols can be pulled into shared objects from archives
16584 whole_archive_flag_spec_CXX='$convenience'
16586 archive_cmds_need_lc_CXX=yes
16587 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16588 # -brtl affects multiple linker settings, -berok does not and is overridden later
16589 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16590 if test svr4 != "$with_aix_soname"; then
16591 # This is similar to how AIX traditionally builds its shared
16592 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16593 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16595 if test aix != "$with_aix_soname"; then
16596 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16597 else
16598 # used by -dlpreopen to get the symbols
16599 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16601 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16606 beos*)
16607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16608 allow_undefined_flag_CXX=unsupported
16609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16610 # support --undefined. This deserves some investigation. FIXME
16611 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16612 else
16613 ld_shlibs_CXX=no
16617 chorus*)
16618 case $cc_basename in
16620 # FIXME: insert proper C++ library support
16621 ld_shlibs_CXX=no
16623 esac
16626 cygwin* | mingw* | pw32* | cegcc*)
16627 case $GXX,$cc_basename in
16628 ,cl* | no,cl*)
16629 # Native MSVC
16630 # hardcode_libdir_flag_spec is actually meaningless, as there is
16631 # no search path for DLLs.
16632 hardcode_libdir_flag_spec_CXX=' '
16633 allow_undefined_flag_CXX=unsupported
16634 always_export_symbols_CXX=yes
16635 file_list_spec_CXX='@'
16636 # Tell ltmain to make .lib files, not .a files.
16637 libext=lib
16638 # Tell ltmain to make .dll files, not .so files.
16639 shrext_cmds=.dll
16640 # FIXME: Setting linknames here is a bad hack.
16641 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16642 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16643 cp "$export_symbols" "$output_objdir/$soname.def";
16644 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16645 else
16646 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16648 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16649 linknames='
16650 # The linker will not automatically build a static lib if we build a DLL.
16651 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16652 enable_shared_with_static_runtimes_CXX=yes
16653 # Don't use ranlib
16654 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16655 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16656 lt_tool_outputfile="@TOOL_OUTPUT@"~
16657 case $lt_outputfile in
16658 *.exe|*.EXE) ;;
16660 lt_outputfile=$lt_outputfile.exe
16661 lt_tool_outputfile=$lt_tool_outputfile.exe
16663 esac~
16664 func_to_tool_file "$lt_outputfile"~
16665 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16666 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16667 $RM "$lt_outputfile.manifest";
16671 # g++
16672 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16673 # as there is no search path for DLLs.
16674 hardcode_libdir_flag_spec_CXX='-L$libdir'
16675 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16676 allow_undefined_flag_CXX=unsupported
16677 always_export_symbols_CXX=no
16678 enable_shared_with_static_runtimes_CXX=yes
16680 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16682 # If the export-symbols file already is a .def file, use it as
16683 # is; otherwise, prepend EXPORTS...
16684 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16685 cp $export_symbols $output_objdir/$soname.def;
16686 else
16687 echo EXPORTS > $output_objdir/$soname.def;
16688 cat $export_symbols >> $output_objdir/$soname.def;
16690 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16691 else
16692 ld_shlibs_CXX=no
16695 esac
16697 darwin* | rhapsody*)
16700 archive_cmds_need_lc_CXX=no
16701 hardcode_direct_CXX=no
16702 hardcode_automatic_CXX=yes
16703 hardcode_shlibpath_var_CXX=unsupported
16704 if test yes = "$lt_cv_ld_force_load"; then
16705 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16707 else
16708 whole_archive_flag_spec_CXX=''
16710 link_all_deplibs_CXX=yes
16711 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16712 case $cc_basename in
16713 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16714 *) _lt_dar_can_shared=$GCC ;;
16715 esac
16716 if test yes = "$_lt_dar_can_shared"; then
16717 output_verbose_link_cmd=func_echo_all
16718 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16719 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16720 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
16721 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
16722 if test yes != "$lt_cv_apple_cc_single_mod"; then
16723 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16724 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16727 else
16728 ld_shlibs_CXX=no
16733 os2*)
16734 hardcode_libdir_flag_spec_CXX='-L$libdir'
16735 hardcode_minus_L_CXX=yes
16736 allow_undefined_flag_CXX=unsupported
16737 shrext_cmds=.dll
16738 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16739 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16740 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16741 $ECHO EXPORTS >> $output_objdir/$libname.def~
16742 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16743 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16744 emximp -o $lib $output_objdir/$libname.def'
16745 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16746 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16747 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16748 $ECHO EXPORTS >> $output_objdir/$libname.def~
16749 prefix_cmds="$SED"~
16750 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16751 prefix_cmds="$prefix_cmds -e 1d";
16753 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16754 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16755 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16756 emximp -o $lib $output_objdir/$libname.def'
16757 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16758 enable_shared_with_static_runtimes_CXX=yes
16761 dgux*)
16762 case $cc_basename in
16763 ec++*)
16764 # FIXME: insert proper C++ library support
16765 ld_shlibs_CXX=no
16767 ghcx*)
16768 # Green Hills C++ Compiler
16769 # FIXME: insert proper C++ library support
16770 ld_shlibs_CXX=no
16773 # FIXME: insert proper C++ library support
16774 ld_shlibs_CXX=no
16776 esac
16779 freebsd2.*)
16780 # C++ shared libraries reported to be fairly broken before
16781 # switch to ELF
16782 ld_shlibs_CXX=no
16785 freebsd-elf*)
16786 archive_cmds_need_lc_CXX=no
16789 freebsd* | dragonfly*)
16790 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16791 # conventions
16792 ld_shlibs_CXX=yes
16795 haiku*)
16796 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16797 link_all_deplibs_CXX=yes
16800 hpux9*)
16801 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16802 hardcode_libdir_separator_CXX=:
16803 export_dynamic_flag_spec_CXX='$wl-E'
16804 hardcode_direct_CXX=yes
16805 hardcode_minus_L_CXX=yes # Not in the search PATH,
16806 # but as the default
16807 # location of the library.
16809 case $cc_basename in
16810 CC*)
16811 # FIXME: insert proper C++ library support
16812 ld_shlibs_CXX=no
16814 aCC*)
16815 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16816 # Commands to make compiler produce verbose output that lists
16817 # what "hidden" libraries, object files and flags are used when
16818 # linking a shared library.
16820 # There doesn't appear to be a way to prevent this compiler from
16821 # explicitly linking system object files so we need to strip them
16822 # from the output so that they don't get included in the library
16823 # dependencies.
16824 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16827 if test yes = "$GXX"; then
16828 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16829 else
16830 # FIXME: insert proper C++ library support
16831 ld_shlibs_CXX=no
16834 esac
16837 hpux10*|hpux11*)
16838 if test no = "$with_gnu_ld"; then
16839 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16840 hardcode_libdir_separator_CXX=:
16842 case $host_cpu in
16843 hppa*64*|ia64*)
16846 export_dynamic_flag_spec_CXX='$wl-E'
16848 esac
16850 case $host_cpu in
16851 hppa*64*|ia64*)
16852 hardcode_direct_CXX=no
16853 hardcode_shlibpath_var_CXX=no
16856 hardcode_direct_CXX=yes
16857 hardcode_direct_absolute_CXX=yes
16858 hardcode_minus_L_CXX=yes # Not in the search PATH,
16859 # but as the default
16860 # location of the library.
16862 esac
16864 case $cc_basename in
16865 CC*)
16866 # FIXME: insert proper C++ library support
16867 ld_shlibs_CXX=no
16869 aCC*)
16870 case $host_cpu in
16871 hppa*64*)
16872 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16874 ia64*)
16875 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16878 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16880 esac
16881 # Commands to make compiler produce verbose output that lists
16882 # what "hidden" libraries, object files and flags are used when
16883 # linking a shared library.
16885 # There doesn't appear to be a way to prevent this compiler from
16886 # explicitly linking system object files so we need to strip them
16887 # from the output so that they don't get included in the library
16888 # dependencies.
16889 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16892 if test yes = "$GXX"; then
16893 if test no = "$with_gnu_ld"; then
16894 case $host_cpu in
16895 hppa*64*)
16896 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16898 ia64*)
16899 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16902 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16904 esac
16906 else
16907 # FIXME: insert proper C++ library support
16908 ld_shlibs_CXX=no
16911 esac
16914 interix[3-9]*)
16915 hardcode_direct_CXX=no
16916 hardcode_shlibpath_var_CXX=no
16917 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16918 export_dynamic_flag_spec_CXX='$wl-E'
16919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16920 # Instead, shared libraries are loaded at an image base (0x10000000 by
16921 # default) and relocated if they conflict, which is a slow very memory
16922 # consuming and fragmenting process. To avoid this, we pick a random,
16923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16925 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16926 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16928 irix5* | irix6*)
16929 case $cc_basename in
16930 CC*)
16931 # SGI C++
16932 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16934 # Archives containing C++ object files must be created using
16935 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16936 # necessary to make sure instantiated templates are included
16937 # in the archive.
16938 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16941 if test yes = "$GXX"; then
16942 if test no = "$with_gnu_ld"; then
16943 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16944 else
16945 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16948 link_all_deplibs_CXX=yes
16950 esac
16951 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16952 hardcode_libdir_separator_CXX=:
16953 inherit_rpath_CXX=yes
16956 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16957 case $cc_basename in
16958 KCC*)
16959 # Kuck and Associates, Inc. (KAI) C++ Compiler
16961 # KCC will only create a shared library if the output file
16962 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16963 # to its proper name (with version) after linking.
16964 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16965 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16966 # Commands to make compiler produce verbose output that lists
16967 # what "hidden" libraries, object files and flags are used when
16968 # linking a shared library.
16970 # There doesn't appear to be a way to prevent this compiler from
16971 # explicitly linking system object files so we need to strip them
16972 # from the output so that they don't get included in the library
16973 # dependencies.
16974 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16976 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16977 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16979 # Archives containing C++ object files must be created using
16980 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16981 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16983 icpc* | ecpc* )
16984 # Intel C++
16985 with_gnu_ld=yes
16986 # version 8.0 and above of icpc choke on multiply defined symbols
16987 # if we add $predep_objects and $postdep_objects, however 7.1 and
16988 # earlier do not add the objects themselves.
16989 case `$CC -V 2>&1` in
16990 *"Version 7."*)
16991 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16992 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16994 *) # Version 8.0 or newer
16995 tmp_idyn=
16996 case $host_cpu in
16997 ia64*) tmp_idyn=' -i_dynamic';;
16998 esac
16999 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17000 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17002 esac
17003 archive_cmds_need_lc_CXX=no
17004 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17005 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17006 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17008 pgCC* | pgcpp*)
17009 # Portland Group C++ compiler
17010 case `$CC -V` in
17011 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17012 prelink_cmds_CXX='tpldir=Template.dir~
17013 rm -rf $tpldir~
17014 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17015 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17016 old_archive_cmds_CXX='tpldir=Template.dir~
17017 rm -rf $tpldir~
17018 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17019 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17020 $RANLIB $oldlib'
17021 archive_cmds_CXX='tpldir=Template.dir~
17022 rm -rf $tpldir~
17023 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17024 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17025 archive_expsym_cmds_CXX='tpldir=Template.dir~
17026 rm -rf $tpldir~
17027 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17028 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17030 *) # Version 6 and above use weak symbols
17031 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17032 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17034 esac
17036 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17037 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17038 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
17040 cxx*)
17041 # Compaq C++
17042 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17043 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
17045 runpath_var=LD_RUN_PATH
17046 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17047 hardcode_libdir_separator_CXX=:
17049 # Commands to make compiler produce verbose output that lists
17050 # what "hidden" libraries, object files and flags are used when
17051 # linking a shared library.
17053 # There doesn't appear to be a way to prevent this compiler from
17054 # explicitly linking system object files so we need to strip them
17055 # from the output so that they don't get included in the library
17056 # dependencies.
17057 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17059 xl* | mpixl* | bgxl*)
17060 # IBM XL 8.0 on PPC, with GNU ld
17061 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17062 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17063 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17064 if test yes = "$supports_anon_versioning"; then
17065 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17067 echo "local: *; };" >> $output_objdir/$libname.ver~
17068 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17072 case `$CC -V 2>&1 | sed 5q` in
17073 *Sun\ C*)
17074 # Sun C++ 5.9
17075 no_undefined_flag_CXX=' -zdefs'
17076 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17077 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
17078 hardcode_libdir_flag_spec_CXX='-R$libdir'
17079 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
17080 compiler_needs_object_CXX=yes
17082 # Not sure whether something based on
17083 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17084 # would be better.
17085 output_verbose_link_cmd='func_echo_all'
17087 # Archives containing C++ object files must be created using
17088 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17089 # necessary to make sure instantiated templates are included
17090 # in the archive.
17091 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17093 esac
17095 esac
17098 lynxos*)
17099 # FIXME: insert proper C++ library support
17100 ld_shlibs_CXX=no
17103 m88k*)
17104 # FIXME: insert proper C++ library support
17105 ld_shlibs_CXX=no
17108 mvs*)
17109 case $cc_basename in
17110 cxx*)
17111 # FIXME: insert proper C++ library support
17112 ld_shlibs_CXX=no
17115 # FIXME: insert proper C++ library support
17116 ld_shlibs_CXX=no
17118 esac
17121 netbsd*)
17122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17123 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17124 wlarc=
17125 hardcode_libdir_flag_spec_CXX='-R$libdir'
17126 hardcode_direct_CXX=yes
17127 hardcode_shlibpath_var_CXX=no
17129 # Workaround some broken pre-1.5 toolchains
17130 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17133 *nto* | *qnx*)
17134 ld_shlibs_CXX=yes
17137 openbsd* | bitrig*)
17138 if test -f /usr/libexec/ld.so; then
17139 hardcode_direct_CXX=yes
17140 hardcode_shlibpath_var_CXX=no
17141 hardcode_direct_absolute_CXX=yes
17142 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17143 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17145 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17146 export_dynamic_flag_spec_CXX='$wl-E'
17147 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17149 output_verbose_link_cmd=func_echo_all
17150 else
17151 ld_shlibs_CXX=no
17155 osf3* | osf4* | osf5*)
17156 case $cc_basename in
17157 KCC*)
17158 # Kuck and Associates, Inc. (KAI) C++ Compiler
17160 # KCC will only create a shared library if the output file
17161 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17162 # to its proper name (with version) after linking.
17163 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17165 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17166 hardcode_libdir_separator_CXX=:
17168 # Archives containing C++ object files must be created using
17169 # the KAI C++ compiler.
17170 case $host in
17171 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17172 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17173 esac
17175 RCC*)
17176 # Rational C++ 2.4.1
17177 # FIXME: insert proper C++ library support
17178 ld_shlibs_CXX=no
17180 cxx*)
17181 case $host in
17182 osf3*)
17183 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17184 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17185 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17188 allow_undefined_flag_CXX=' -expect_unresolved \*'
17189 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17190 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17191 echo "-hidden">> $lib.exp~
17192 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17193 $RM $lib.exp'
17194 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17196 esac
17198 hardcode_libdir_separator_CXX=:
17200 # Commands to make compiler produce verbose output that lists
17201 # what "hidden" libraries, object files and flags are used when
17202 # linking a shared library.
17204 # There doesn't appear to be a way to prevent this compiler from
17205 # explicitly linking system object files so we need to strip them
17206 # from the output so that they don't get included in the library
17207 # dependencies.
17208 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17211 if test yes,no = "$GXX,$with_gnu_ld"; then
17212 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17213 case $host in
17214 osf3*)
17215 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17218 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17220 esac
17222 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17223 hardcode_libdir_separator_CXX=:
17225 # Commands to make compiler produce verbose output that lists
17226 # what "hidden" libraries, object files and flags are used when
17227 # linking a shared library.
17228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17230 else
17231 # FIXME: insert proper C++ library support
17232 ld_shlibs_CXX=no
17235 esac
17238 psos*)
17239 # FIXME: insert proper C++ library support
17240 ld_shlibs_CXX=no
17243 sunos4*)
17244 case $cc_basename in
17245 CC*)
17246 # Sun C++ 4.x
17247 # FIXME: insert proper C++ library support
17248 ld_shlibs_CXX=no
17250 lcc*)
17251 # Lucid
17252 # FIXME: insert proper C++ library support
17253 ld_shlibs_CXX=no
17256 # FIXME: insert proper C++ library support
17257 ld_shlibs_CXX=no
17259 esac
17262 solaris*)
17263 case $cc_basename in
17264 CC* | sunCC*)
17265 # Sun C++ 4.2, 5.x and Centerline C++
17266 archive_cmds_need_lc_CXX=yes
17267 no_undefined_flag_CXX=' -zdefs'
17268 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17270 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17272 hardcode_libdir_flag_spec_CXX='-R$libdir'
17273 hardcode_shlibpath_var_CXX=no
17274 case $host_os in
17275 solaris2.[0-5] | solaris2.[0-5].*) ;;
17277 # The compiler driver will combine and reorder linker options,
17278 # but understands '-z linker_flag'.
17279 # Supported since Solaris 2.6 (maybe 2.5.1?)
17280 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17282 esac
17283 link_all_deplibs_CXX=yes
17285 output_verbose_link_cmd='func_echo_all'
17287 # Archives containing C++ object files must be created using
17288 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17289 # necessary to make sure instantiated templates are included
17290 # in the archive.
17291 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17293 gcx*)
17294 # Green Hills C++ Compiler
17295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17297 # The C++ compiler must be used to create the archive.
17298 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17301 # GNU C++ compiler with Solaris linker
17302 if test yes,no = "$GXX,$with_gnu_ld"; then
17303 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17304 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17305 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17306 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17307 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17309 # Commands to make compiler produce verbose output that lists
17310 # what "hidden" libraries, object files and flags are used when
17311 # linking a shared library.
17312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17313 else
17314 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17315 # platform.
17316 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17317 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17318 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17320 # Commands to make compiler produce verbose output that lists
17321 # what "hidden" libraries, object files and flags are used when
17322 # linking a shared library.
17323 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17326 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17327 case $host_os in
17328 solaris2.[0-5] | solaris2.[0-5].*) ;;
17330 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17332 esac
17335 esac
17338 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17339 no_undefined_flag_CXX='$wl-z,text'
17340 archive_cmds_need_lc_CXX=no
17341 hardcode_shlibpath_var_CXX=no
17342 runpath_var='LD_RUN_PATH'
17344 case $cc_basename in
17345 CC*)
17346 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17347 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17350 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17351 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17353 esac
17356 sysv5* | sco3.2v5* | sco5v6*)
17357 # Note: We CANNOT use -z defs as we might desire, because we do not
17358 # link with -lc, and that would cause any symbols used from libc to
17359 # always be unresolved, which means just about no library would
17360 # ever link correctly. If we're not using GNU ld we use -z text
17361 # though, which does catch some bad symbols but isn't as heavy-handed
17362 # as -z defs.
17363 no_undefined_flag_CXX='$wl-z,text'
17364 allow_undefined_flag_CXX='$wl-z,nodefs'
17365 archive_cmds_need_lc_CXX=no
17366 hardcode_shlibpath_var_CXX=no
17367 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17368 hardcode_libdir_separator_CXX=':'
17369 link_all_deplibs_CXX=yes
17370 export_dynamic_flag_spec_CXX='$wl-Bexport'
17371 runpath_var='LD_RUN_PATH'
17373 case $cc_basename in
17374 CC*)
17375 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17376 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17377 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17378 '"$old_archive_cmds_CXX"
17379 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17380 '"$reload_cmds_CXX"
17383 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17384 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17386 esac
17389 tandem*)
17390 case $cc_basename in
17391 NCC*)
17392 # NonStop-UX NCC 3.20
17393 # FIXME: insert proper C++ library support
17394 ld_shlibs_CXX=no
17397 # FIXME: insert proper C++ library support
17398 ld_shlibs_CXX=no
17400 esac
17403 vxworks*)
17404 # FIXME: insert proper C++ library support
17405 ld_shlibs_CXX=no
17409 # FIXME: insert proper C++ library support
17410 ld_shlibs_CXX=no
17412 esac
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17415 $as_echo "$ld_shlibs_CXX" >&6; }
17416 test no = "$ld_shlibs_CXX" && can_build_shared=no
17418 GCC_CXX=$GXX
17419 LD_CXX=$LD
17421 ## CAVEAT EMPTOR:
17422 ## There is no encapsulation within the following macros, do not change
17423 ## the running order or otherwise move them around unless you know exactly
17424 ## what you are doing...
17425 # Dependencies to place before and after the object being linked:
17426 predep_objects_CXX=
17427 postdep_objects_CXX=
17428 predeps_CXX=
17429 postdeps_CXX=
17430 compiler_lib_search_path_CXX=
17432 cat > conftest.$ac_ext <<_LT_EOF
17433 class Foo
17435 public:
17436 Foo (void) { a = 0; }
17437 private:
17438 int a;
17440 _LT_EOF
17443 _lt_libdeps_save_CFLAGS=$CFLAGS
17444 case "$CC $CFLAGS " in #(
17445 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17446 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17447 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17448 esac
17450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17451 (eval $ac_compile) 2>&5
17452 ac_status=$?
17453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17454 test $ac_status = 0; }; then
17455 # Parse the compiler output and extract the necessary
17456 # objects, libraries and library flags.
17458 # Sentinel used to keep track of whether or not we are before
17459 # the conftest object file.
17460 pre_test_object_deps_done=no
17462 for p in `eval "$output_verbose_link_cmd"`; do
17463 case $prev$p in
17465 -L* | -R* | -l*)
17466 # Some compilers place space between "-{L,R}" and the path.
17467 # Remove the space.
17468 if test x-L = "$p" ||
17469 test x-R = "$p"; then
17470 prev=$p
17471 continue
17474 # Expand the sysroot to ease extracting the directories later.
17475 if test -z "$prev"; then
17476 case $p in
17477 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17478 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17479 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17480 esac
17482 case $p in
17483 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17484 esac
17485 if test no = "$pre_test_object_deps_done"; then
17486 case $prev in
17487 -L | -R)
17488 # Internal compiler library paths should come after those
17489 # provided the user. The postdeps already come after the
17490 # user supplied libs so there is no need to process them.
17491 if test -z "$compiler_lib_search_path_CXX"; then
17492 compiler_lib_search_path_CXX=$prev$p
17493 else
17494 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17497 # The "-l" case would never come before the object being
17498 # linked, so don't bother handling this case.
17499 esac
17500 else
17501 if test -z "$postdeps_CXX"; then
17502 postdeps_CXX=$prev$p
17503 else
17504 postdeps_CXX="${postdeps_CXX} $prev$p"
17507 prev=
17510 *.lto.$objext) ;; # Ignore GCC LTO objects
17511 *.$objext)
17512 # This assumes that the test object file only shows up
17513 # once in the compiler output.
17514 if test "$p" = "conftest.$objext"; then
17515 pre_test_object_deps_done=yes
17516 continue
17519 if test no = "$pre_test_object_deps_done"; then
17520 if test -z "$predep_objects_CXX"; then
17521 predep_objects_CXX=$p
17522 else
17523 predep_objects_CXX="$predep_objects_CXX $p"
17525 else
17526 if test -z "$postdep_objects_CXX"; then
17527 postdep_objects_CXX=$p
17528 else
17529 postdep_objects_CXX="$postdep_objects_CXX $p"
17534 *) ;; # Ignore the rest.
17536 esac
17537 done
17539 # Clean up.
17540 rm -f a.out a.exe
17541 else
17542 echo "libtool.m4: error: problem compiling CXX test program"
17545 $RM -f confest.$objext
17546 CFLAGS=$_lt_libdeps_save_CFLAGS
17548 # PORTME: override above test on systems where it is broken
17549 case $host_os in
17550 interix[3-9]*)
17551 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17552 # hack all around it, let's just trust "g++" to DTRT.
17553 predep_objects_CXX=
17554 postdep_objects_CXX=
17555 postdeps_CXX=
17557 esac
17560 case " $postdeps_CXX " in
17561 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17562 esac
17563 compiler_lib_search_dirs_CXX=
17564 if test -n "${compiler_lib_search_path_CXX}"; then
17565 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17598 lt_prog_compiler_wl_CXX=
17599 lt_prog_compiler_pic_CXX=
17600 lt_prog_compiler_static_CXX=
17603 # C++ specific cases for pic, static, wl, etc.
17604 if test yes = "$GXX"; then
17605 lt_prog_compiler_wl_CXX='-Wl,'
17606 lt_prog_compiler_static_CXX='-static'
17608 case $host_os in
17609 aix*)
17610 # All AIX code is PIC.
17611 if test ia64 = "$host_cpu"; then
17612 # AIX 5 now supports IA64 processor
17613 lt_prog_compiler_static_CXX='-Bstatic'
17615 lt_prog_compiler_pic_CXX='-fPIC'
17618 amigaos*)
17619 case $host_cpu in
17620 powerpc)
17621 # see comment about AmigaOS4 .so support
17622 lt_prog_compiler_pic_CXX='-fPIC'
17624 m68k)
17625 # FIXME: we need at least 68020 code to build shared libraries, but
17626 # adding the '-m68020' flag to GCC prevents building anything better,
17627 # like '-m68040'.
17628 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17630 esac
17633 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17634 # PIC is the default for these OSes.
17636 mingw* | cygwin* | os2* | pw32* | cegcc*)
17637 # This hack is so that the source file can tell whether it is being
17638 # built for inclusion in a dll (and should export symbols for example).
17639 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17640 # (--disable-auto-import) libraries
17641 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17642 case $host_os in
17643 os2*)
17644 lt_prog_compiler_static_CXX='$wl-static'
17646 esac
17648 darwin* | rhapsody*)
17649 # PIC is the default on this platform
17650 # Common symbols not allowed in MH_DYLIB files
17651 lt_prog_compiler_pic_CXX='-fno-common'
17653 *djgpp*)
17654 # DJGPP does not support shared libraries at all
17655 lt_prog_compiler_pic_CXX=
17657 haiku*)
17658 # PIC is the default for Haiku.
17659 # The "-static" flag exists, but is broken.
17660 lt_prog_compiler_static_CXX=
17662 interix[3-9]*)
17663 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17664 # Instead, we relocate shared libraries at runtime.
17666 sysv4*MP*)
17667 if test -d /usr/nec; then
17668 lt_prog_compiler_pic_CXX=-Kconform_pic
17671 hpux*)
17672 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17673 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17674 # sets the default TLS model and affects inlining.
17675 case $host_cpu in
17676 hppa*64*)
17679 lt_prog_compiler_pic_CXX='-fPIC'
17681 esac
17683 *qnx* | *nto*)
17684 # QNX uses GNU C++, but need to define -shared option too, otherwise
17685 # it will coredump.
17686 lt_prog_compiler_pic_CXX='-fPIC -shared'
17689 lt_prog_compiler_pic_CXX='-fPIC'
17691 esac
17692 else
17693 case $host_os in
17694 aix[4-9]*)
17695 # All AIX code is PIC.
17696 if test ia64 = "$host_cpu"; then
17697 # AIX 5 now supports IA64 processor
17698 lt_prog_compiler_static_CXX='-Bstatic'
17699 else
17700 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17703 chorus*)
17704 case $cc_basename in
17705 cxch68*)
17706 # Green Hills C++ Compiler
17707 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17709 esac
17711 mingw* | cygwin* | os2* | pw32* | cegcc*)
17712 # This hack is so that the source file can tell whether it is being
17713 # built for inclusion in a dll (and should export symbols for example).
17714 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17716 dgux*)
17717 case $cc_basename in
17718 ec++*)
17719 lt_prog_compiler_pic_CXX='-KPIC'
17721 ghcx*)
17722 # Green Hills C++ Compiler
17723 lt_prog_compiler_pic_CXX='-pic'
17727 esac
17729 freebsd* | dragonfly*)
17730 # FreeBSD uses GNU C++
17732 hpux9* | hpux10* | hpux11*)
17733 case $cc_basename in
17734 CC*)
17735 lt_prog_compiler_wl_CXX='-Wl,'
17736 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17737 if test ia64 != "$host_cpu"; then
17738 lt_prog_compiler_pic_CXX='+Z'
17741 aCC*)
17742 lt_prog_compiler_wl_CXX='-Wl,'
17743 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17744 case $host_cpu in
17745 hppa*64*|ia64*)
17746 # +Z the default
17749 lt_prog_compiler_pic_CXX='+Z'
17751 esac
17755 esac
17757 interix*)
17758 # This is c89, which is MS Visual C++ (no shared libs)
17759 # Anyone wants to do a port?
17761 irix5* | irix6* | nonstopux*)
17762 case $cc_basename in
17763 CC*)
17764 lt_prog_compiler_wl_CXX='-Wl,'
17765 lt_prog_compiler_static_CXX='-non_shared'
17766 # CC pic flag -KPIC is the default.
17770 esac
17772 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17773 case $cc_basename in
17774 KCC*)
17775 # KAI C++ Compiler
17776 lt_prog_compiler_wl_CXX='--backend -Wl,'
17777 lt_prog_compiler_pic_CXX='-fPIC'
17779 ecpc* )
17780 # old Intel C++ for x86_64, which still supported -KPIC.
17781 lt_prog_compiler_wl_CXX='-Wl,'
17782 lt_prog_compiler_pic_CXX='-KPIC'
17783 lt_prog_compiler_static_CXX='-static'
17785 icpc* )
17786 # Intel C++, used to be incompatible with GCC.
17787 # ICC 10 doesn't accept -KPIC any more.
17788 lt_prog_compiler_wl_CXX='-Wl,'
17789 lt_prog_compiler_pic_CXX='-fPIC'
17790 lt_prog_compiler_static_CXX='-static'
17792 pgCC* | pgcpp*)
17793 # Portland Group C++ compiler
17794 lt_prog_compiler_wl_CXX='-Wl,'
17795 lt_prog_compiler_pic_CXX='-fpic'
17796 lt_prog_compiler_static_CXX='-Bstatic'
17798 cxx*)
17799 # Compaq C++
17800 # Make sure the PIC flag is empty. It appears that all Alpha
17801 # Linux and Compaq Tru64 Unix objects are PIC.
17802 lt_prog_compiler_pic_CXX=
17803 lt_prog_compiler_static_CXX='-non_shared'
17805 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17806 # IBM XL 8.0, 9.0 on PPC and BlueGene
17807 lt_prog_compiler_wl_CXX='-Wl,'
17808 lt_prog_compiler_pic_CXX='-qpic'
17809 lt_prog_compiler_static_CXX='-qstaticlink'
17812 case `$CC -V 2>&1 | sed 5q` in
17813 *Sun\ C*)
17814 # Sun C++ 5.9
17815 lt_prog_compiler_pic_CXX='-KPIC'
17816 lt_prog_compiler_static_CXX='-Bstatic'
17817 lt_prog_compiler_wl_CXX='-Qoption ld '
17819 esac
17821 esac
17823 lynxos*)
17825 m88k*)
17827 mvs*)
17828 case $cc_basename in
17829 cxx*)
17830 lt_prog_compiler_pic_CXX='-W c,exportall'
17834 esac
17836 netbsd*)
17838 *qnx* | *nto*)
17839 # QNX uses GNU C++, but need to define -shared option too, otherwise
17840 # it will coredump.
17841 lt_prog_compiler_pic_CXX='-fPIC -shared'
17843 osf3* | osf4* | osf5*)
17844 case $cc_basename in
17845 KCC*)
17846 lt_prog_compiler_wl_CXX='--backend -Wl,'
17848 RCC*)
17849 # Rational C++ 2.4.1
17850 lt_prog_compiler_pic_CXX='-pic'
17852 cxx*)
17853 # Digital/Compaq C++
17854 lt_prog_compiler_wl_CXX='-Wl,'
17855 # Make sure the PIC flag is empty. It appears that all Alpha
17856 # Linux and Compaq Tru64 Unix objects are PIC.
17857 lt_prog_compiler_pic_CXX=
17858 lt_prog_compiler_static_CXX='-non_shared'
17862 esac
17864 psos*)
17866 solaris*)
17867 case $cc_basename in
17868 CC* | sunCC*)
17869 # Sun C++ 4.2, 5.x and Centerline C++
17870 lt_prog_compiler_pic_CXX='-KPIC'
17871 lt_prog_compiler_static_CXX='-Bstatic'
17872 lt_prog_compiler_wl_CXX='-Qoption ld '
17874 gcx*)
17875 # Green Hills C++ Compiler
17876 lt_prog_compiler_pic_CXX='-PIC'
17880 esac
17882 sunos4*)
17883 case $cc_basename in
17884 CC*)
17885 # Sun C++ 4.x
17886 lt_prog_compiler_pic_CXX='-pic'
17887 lt_prog_compiler_static_CXX='-Bstatic'
17889 lcc*)
17890 # Lucid
17891 lt_prog_compiler_pic_CXX='-pic'
17895 esac
17897 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17898 case $cc_basename in
17899 CC*)
17900 lt_prog_compiler_wl_CXX='-Wl,'
17901 lt_prog_compiler_pic_CXX='-KPIC'
17902 lt_prog_compiler_static_CXX='-Bstatic'
17904 esac
17906 tandem*)
17907 case $cc_basename in
17908 NCC*)
17909 # NonStop-UX NCC 3.20
17910 lt_prog_compiler_pic_CXX='-KPIC'
17914 esac
17916 vxworks*)
17919 lt_prog_compiler_can_build_shared_CXX=no
17921 esac
17924 case $host_os in
17925 # For platforms that do not support PIC, -DPIC is meaningless:
17926 *djgpp*)
17927 lt_prog_compiler_pic_CXX=
17930 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17932 esac
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17935 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17936 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17937 $as_echo_n "(cached) " >&6
17938 else
17939 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17942 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17943 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17946 # Check to make sure the PIC flag actually works.
17948 if test -n "$lt_prog_compiler_pic_CXX"; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17950 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17951 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17952 $as_echo_n "(cached) " >&6
17953 else
17954 lt_cv_prog_compiler_pic_works_CXX=no
17955 ac_outfile=conftest.$ac_objext
17956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17957 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17958 # Insert the option either (1) after the last *FLAGS variable, or
17959 # (2) before a word containing "conftest.", or (3) at the end.
17960 # Note that $ac_compile itself does not contain backslashes and begins
17961 # with a dollar sign (not a hyphen), so the echo should work correctly.
17962 # The option is referenced via a variable to avoid confusing sed.
17963 lt_compile=`echo "$ac_compile" | $SED \
17964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17966 -e 's:$: $lt_compiler_flag:'`
17967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17968 (eval "$lt_compile" 2>conftest.err)
17969 ac_status=$?
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 if (exit $ac_status) && test -s "$ac_outfile"; then
17973 # The compiler can only warn and ignore the option if not recognized
17974 # So say no if there are warnings other than the usual output.
17975 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17978 lt_cv_prog_compiler_pic_works_CXX=yes
17981 $RM conftest*
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17985 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17987 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17988 case $lt_prog_compiler_pic_CXX in
17989 "" | " "*) ;;
17990 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17991 esac
17992 else
17993 lt_prog_compiler_pic_CXX=
17994 lt_prog_compiler_can_build_shared_CXX=no
18004 # Check to make sure the static flag actually works.
18006 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18008 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18009 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18010 $as_echo_n "(cached) " >&6
18011 else
18012 lt_cv_prog_compiler_static_works_CXX=no
18013 save_LDFLAGS=$LDFLAGS
18014 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18017 # The linker can only warn and ignore the option if not recognized
18018 # So say no if there are warnings
18019 if test -s conftest.err; then
18020 # Append any errors to the config.log.
18021 cat conftest.err 1>&5
18022 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18024 if diff conftest.exp conftest.er2 >/dev/null; then
18025 lt_cv_prog_compiler_static_works_CXX=yes
18027 else
18028 lt_cv_prog_compiler_static_works_CXX=yes
18031 $RM -r conftest*
18032 LDFLAGS=$save_LDFLAGS
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18036 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18038 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18040 else
18041 lt_prog_compiler_static_CXX=
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18049 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052 lt_cv_prog_compiler_c_o_CXX=no
18053 $RM -r conftest 2>/dev/null
18054 mkdir conftest
18055 cd conftest
18056 mkdir out
18057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18059 lt_compiler_flag="-o out/conftest2.$ac_objext"
18060 # Insert the option either (1) after the last *FLAGS variable, or
18061 # (2) before a word containing "conftest.", or (3) at the end.
18062 # Note that $ac_compile itself does not contain backslashes and begins
18063 # with a dollar sign (not a hyphen), so the echo should work correctly.
18064 lt_compile=`echo "$ac_compile" | $SED \
18065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18067 -e 's:$: $lt_compiler_flag:'`
18068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18069 (eval "$lt_compile" 2>out/conftest.err)
18070 ac_status=$?
18071 cat out/conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18074 then
18075 # The compiler can only warn and ignore the option if not recognized
18076 # So say no if there are warnings
18077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18080 lt_cv_prog_compiler_c_o_CXX=yes
18083 chmod u+w . 2>&5
18084 $RM conftest*
18085 # SGI C++ compiler will create directory out/ii_files/ for
18086 # template instantiation
18087 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18088 $RM out/* && rmdir out
18089 cd ..
18090 $RM -r conftest
18091 $RM conftest*
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18095 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18100 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18101 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18104 lt_cv_prog_compiler_c_o_CXX=no
18105 $RM -r conftest 2>/dev/null
18106 mkdir conftest
18107 cd conftest
18108 mkdir out
18109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18111 lt_compiler_flag="-o out/conftest2.$ac_objext"
18112 # Insert the option either (1) after the last *FLAGS variable, or
18113 # (2) before a word containing "conftest.", or (3) at the end.
18114 # Note that $ac_compile itself does not contain backslashes and begins
18115 # with a dollar sign (not a hyphen), so the echo should work correctly.
18116 lt_compile=`echo "$ac_compile" | $SED \
18117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18119 -e 's:$: $lt_compiler_flag:'`
18120 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18121 (eval "$lt_compile" 2>out/conftest.err)
18122 ac_status=$?
18123 cat out/conftest.err >&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18126 then
18127 # The compiler can only warn and ignore the option if not recognized
18128 # So say no if there are warnings
18129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18132 lt_cv_prog_compiler_c_o_CXX=yes
18135 chmod u+w . 2>&5
18136 $RM conftest*
18137 # SGI C++ compiler will create directory out/ii_files/ for
18138 # template instantiation
18139 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18140 $RM out/* && rmdir out
18141 cd ..
18142 $RM -r conftest
18143 $RM conftest*
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18147 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18152 hard_links=nottested
18153 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18154 # do not overwrite the value of need_locks provided by the user
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18156 $as_echo_n "checking if we can lock with hard links... " >&6; }
18157 hard_links=yes
18158 $RM conftest*
18159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18160 touch conftest.a
18161 ln conftest.a conftest.b 2>&5 || hard_links=no
18162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18164 $as_echo "$hard_links" >&6; }
18165 if test no = "$hard_links"; then
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18167 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18168 need_locks=warn
18170 else
18171 need_locks=no
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18179 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18180 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18181 case $host_os in
18182 aix[4-9]*)
18183 # If we're using GNU nm, then we don't want the "-C" option.
18184 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18185 # Without the "-l" option, or with the "-B" option, AIX nm treats
18186 # weak defined symbols like other global defined symbols, whereas
18187 # GNU nm marks them as "W".
18188 # While the 'weak' keyword is ignored in the Export File, we need
18189 # it in the Import File for the 'aix-soname' feature, so we have
18190 # to replace the "-B" option with "-P" for AIX nm.
18191 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18192 export_symbols_cmds_CXX='$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'
18193 else
18194 export_symbols_cmds_CXX='`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'
18197 pw32*)
18198 export_symbols_cmds_CXX=$ltdll_cmds
18200 cygwin* | mingw* | cegcc*)
18201 case $cc_basename in
18202 cl*)
18203 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18206 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18207 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18209 esac
18212 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18214 esac
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18217 $as_echo "$ld_shlibs_CXX" >&6; }
18218 test no = "$ld_shlibs_CXX" && can_build_shared=no
18220 with_gnu_ld_CXX=$with_gnu_ld
18228 # Do we need to explicitly link libc?
18230 case "x$archive_cmds_need_lc_CXX" in
18231 x|xyes)
18232 # Assume -lc should be added
18233 archive_cmds_need_lc_CXX=yes
18235 if test yes,yes = "$GCC,$enable_shared"; then
18236 case $archive_cmds_CXX in
18237 *'~'*)
18238 # FIXME: we may have to deal with multi-command sequences.
18240 '$CC '*)
18241 # Test whether the compiler implicitly links with -lc since on some
18242 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18243 # to ld, don't add -lc before -lgcc.
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18245 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18246 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18247 $as_echo_n "(cached) " >&6
18248 else
18249 $RM conftest*
18250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18253 (eval $ac_compile) 2>&5
18254 ac_status=$?
18255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18256 test $ac_status = 0; } 2>conftest.err; then
18257 soname=conftest
18258 lib=conftest
18259 libobjs=conftest.$ac_objext
18260 deplibs=
18261 wl=$lt_prog_compiler_wl_CXX
18262 pic_flag=$lt_prog_compiler_pic_CXX
18263 compiler_flags=-v
18264 linker_flags=-v
18265 verstring=
18266 output_objdir=.
18267 libname=conftest
18268 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18269 allow_undefined_flag_CXX=
18270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18271 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18272 ac_status=$?
18273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18274 test $ac_status = 0; }
18275 then
18276 lt_cv_archive_cmds_need_lc_CXX=no
18277 else
18278 lt_cv_archive_cmds_need_lc_CXX=yes
18280 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18281 else
18282 cat conftest.err 1>&5
18284 $RM conftest*
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18288 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18289 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18291 esac
18294 esac
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18358 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18360 library_names_spec=
18361 libname_spec='lib$name'
18362 soname_spec=
18363 shrext_cmds=.so
18364 postinstall_cmds=
18365 postuninstall_cmds=
18366 finish_cmds=
18367 finish_eval=
18368 shlibpath_var=
18369 shlibpath_overrides_runpath=unknown
18370 version_type=none
18371 dynamic_linker="$host_os ld.so"
18372 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18373 need_lib_prefix=unknown
18374 hardcode_into_libs=no
18376 # when you set need_version to no, make sure it does not cause -set_version
18377 # flags to be left without arguments
18378 need_version=unknown
18382 case $host_os in
18383 aix3*)
18384 version_type=linux # correct to gnu/linux during the next big refactor
18385 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18386 shlibpath_var=LIBPATH
18388 # AIX 3 has no versioning support, so we append a major version to the name.
18389 soname_spec='$libname$release$shared_ext$major'
18392 aix[4-9]*)
18393 version_type=linux # correct to gnu/linux during the next big refactor
18394 need_lib_prefix=no
18395 need_version=no
18396 hardcode_into_libs=yes
18397 if test ia64 = "$host_cpu"; then
18398 # AIX 5 supports IA64
18399 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 else
18402 # With GCC up to 2.95.x, collect2 would create an import file
18403 # for dependence libraries. The import file would start with
18404 # the line '#! .'. This would cause the generated library to
18405 # depend on '.', always an invalid library. This was fixed in
18406 # development snapshots of GCC prior to 3.0.
18407 case $host_os in
18408 aix4 | aix4.[01] | aix4.[01].*)
18409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18410 echo ' yes '
18411 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18413 else
18414 can_build_shared=no
18417 esac
18418 # Using Import Files as archive members, it is possible to support
18419 # filename-based versioning of shared library archives on AIX. While
18420 # this would work for both with and without runtime linking, it will
18421 # prevent static linking of such archives. So we do filename-based
18422 # shared library versioning with .so extension only, which is used
18423 # when both runtime linking and shared linking is enabled.
18424 # Unfortunately, runtime linking may impact performance, so we do
18425 # not want this to be the default eventually. Also, we use the
18426 # versioned .so libs for executables only if there is the -brtl
18427 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18428 # To allow for filename-based versioning support, we need to create
18429 # libNAME.so.V as an archive file, containing:
18430 # *) an Import File, referring to the versioned filename of the
18431 # archive as well as the shared archive member, telling the
18432 # bitwidth (32 or 64) of that shared object, and providing the
18433 # list of exported symbols of that shared object, eventually
18434 # decorated with the 'weak' keyword
18435 # *) the shared object with the F_LOADONLY flag set, to really avoid
18436 # it being seen by the linker.
18437 # At run time we better use the real file rather than another symlink,
18438 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18440 case $with_aix_soname,$aix_use_runtimelinking in
18441 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18442 # soname into executable. Probably we can add versioning support to
18443 # collect2, so additional links can be useful in future.
18444 aix,yes) # traditional libtool
18445 dynamic_linker='AIX unversionable lib.so'
18446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18447 # instead of lib<name>.a to let people know that these are not
18448 # typical AIX shared libraries.
18449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18451 aix,no) # traditional AIX only
18452 dynamic_linker='AIX lib.a(lib.so.V)'
18453 # We preserve .a as extension for shared libraries through AIX4.2
18454 # and later when we are not doing run time linking.
18455 library_names_spec='$libname$release.a $libname.a'
18456 soname_spec='$libname$release$shared_ext$major'
18458 svr4,*) # full svr4 only
18459 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18460 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18461 # We do not specify a path in Import Files, so LIBPATH fires.
18462 shlibpath_overrides_runpath=yes
18464 *,yes) # both, prefer svr4
18465 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18466 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18467 # unpreferred sharedlib libNAME.a needs extra handling
18468 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"'
18469 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"'
18470 # We do not specify a path in Import Files, so LIBPATH fires.
18471 shlibpath_overrides_runpath=yes
18473 *,no) # both, prefer aix
18474 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18475 library_names_spec='$libname$release.a $libname.a'
18476 soname_spec='$libname$release$shared_ext$major'
18477 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18478 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)'
18479 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"'
18481 esac
18482 shlibpath_var=LIBPATH
18486 amigaos*)
18487 case $host_cpu in
18488 powerpc)
18489 # Since July 2007 AmigaOS4 officially supports .so libraries.
18490 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18493 m68k)
18494 library_names_spec='$libname.ixlibrary $libname.a'
18495 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18496 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'
18498 esac
18501 beos*)
18502 library_names_spec='$libname$shared_ext'
18503 dynamic_linker="$host_os ld.so"
18504 shlibpath_var=LIBRARY_PATH
18507 bsdi[45]*)
18508 version_type=linux # correct to gnu/linux during the next big refactor
18509 need_version=no
18510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18511 soname_spec='$libname$release$shared_ext$major'
18512 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18513 shlibpath_var=LD_LIBRARY_PATH
18514 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18515 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18516 # the default ld.so.conf also contains /usr/contrib/lib and
18517 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18518 # libtool to hard-code these into programs
18521 cygwin* | mingw* | pw32* | cegcc*)
18522 version_type=windows
18523 shrext_cmds=.dll
18524 need_version=no
18525 need_lib_prefix=no
18527 case $GCC,$cc_basename in
18528 yes,*)
18529 # gcc
18530 library_names_spec='$libname.dll.a'
18531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18532 postinstall_cmds='base_file=`basename \$file`~
18533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18534 dldir=$destdir/`dirname \$dlpath`~
18535 test -d \$dldir || mkdir -p \$dldir~
18536 $install_prog $dir/$dlname \$dldir/$dlname~
18537 chmod a+x \$dldir/$dlname~
18538 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18539 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18541 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18542 dlpath=$dir/\$dldll~
18543 $RM \$dlpath'
18544 shlibpath_overrides_runpath=yes
18546 case $host_os in
18547 cygwin*)
18548 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18549 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18552 mingw* | cegcc*)
18553 # MinGW DLLs use traditional 'lib' prefix
18554 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18556 pw32*)
18557 # pw32 DLLs use 'pw' prefix rather than 'lib'
18558 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18560 esac
18561 dynamic_linker='Win32 ld.exe'
18564 *,cl*)
18565 # Native MSVC
18566 libname_spec='$name'
18567 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18568 library_names_spec='$libname.dll.lib'
18570 case $build_os in
18571 mingw*)
18572 sys_lib_search_path_spec=
18573 lt_save_ifs=$IFS
18574 IFS=';'
18575 for lt_path in $LIB
18577 IFS=$lt_save_ifs
18578 # Let DOS variable expansion print the short 8.3 style file name.
18579 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18580 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18581 done
18582 IFS=$lt_save_ifs
18583 # Convert to MSYS style.
18584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18586 cygwin*)
18587 # Convert to unix form, then to dos form, then back to unix form
18588 # but this time dos style (no spaces!) so that the unix form looks
18589 # like /cygdrive/c/PROGRA~1:/cygdr...
18590 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18591 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18592 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18595 sys_lib_search_path_spec=$LIB
18596 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18597 # It is most probably a Windows format PATH.
18598 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18599 else
18600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18602 # FIXME: find the short name or the path components, as spaces are
18603 # common. (e.g. "Program Files" -> "PROGRA~1")
18605 esac
18607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18608 postinstall_cmds='base_file=`basename \$file`~
18609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18610 dldir=$destdir/`dirname \$dlpath`~
18611 test -d \$dldir || mkdir -p \$dldir~
18612 $install_prog $dir/$dlname \$dldir/$dlname'
18613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18614 dlpath=$dir/\$dldll~
18615 $RM \$dlpath'
18616 shlibpath_overrides_runpath=yes
18617 dynamic_linker='Win32 link.exe'
18621 # Assume MSVC wrapper
18622 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18623 dynamic_linker='Win32 ld.exe'
18625 esac
18626 # FIXME: first we should search . and the directory the executable is in
18627 shlibpath_var=PATH
18630 darwin* | rhapsody*)
18631 dynamic_linker="$host_os dyld"
18632 version_type=darwin
18633 need_lib_prefix=no
18634 need_version=no
18635 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18636 soname_spec='$libname$release$major$shared_ext'
18637 shlibpath_overrides_runpath=yes
18638 shlibpath_var=DYLD_LIBRARY_PATH
18639 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18641 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18644 dgux*)
18645 version_type=linux # correct to gnu/linux during the next big refactor
18646 need_lib_prefix=no
18647 need_version=no
18648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18649 soname_spec='$libname$release$shared_ext$major'
18650 shlibpath_var=LD_LIBRARY_PATH
18653 freebsd* | dragonfly*)
18654 # DragonFly does not have aout. When/if they implement a new
18655 # versioning mechanism, adjust this.
18656 if test -x /usr/bin/objformat; then
18657 objformat=`/usr/bin/objformat`
18658 else
18659 case $host_os in
18660 freebsd[23].*) objformat=aout ;;
18661 *) objformat=elf ;;
18662 esac
18664 version_type=freebsd-$objformat
18665 case $version_type in
18666 freebsd-elf*)
18667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18668 soname_spec='$libname$release$shared_ext$major'
18669 need_version=no
18670 need_lib_prefix=no
18672 freebsd-*)
18673 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18674 need_version=yes
18676 esac
18677 shlibpath_var=LD_LIBRARY_PATH
18678 case $host_os in
18679 freebsd2.*)
18680 shlibpath_overrides_runpath=yes
18682 freebsd3.[01]* | freebsdelf3.[01]*)
18683 shlibpath_overrides_runpath=yes
18684 hardcode_into_libs=yes
18686 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18687 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18688 shlibpath_overrides_runpath=no
18689 hardcode_into_libs=yes
18691 *) # from 4.6 on, and DragonFly
18692 shlibpath_overrides_runpath=yes
18693 hardcode_into_libs=yes
18695 esac
18698 haiku*)
18699 version_type=linux # correct to gnu/linux during the next big refactor
18700 need_lib_prefix=no
18701 need_version=no
18702 dynamic_linker="$host_os runtime_loader"
18703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18704 soname_spec='$libname$release$shared_ext$major'
18705 shlibpath_var=LIBRARY_PATH
18706 shlibpath_overrides_runpath=no
18707 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18708 hardcode_into_libs=yes
18711 hpux9* | hpux10* | hpux11*)
18712 # Give a soname corresponding to the major version so that dld.sl refuses to
18713 # link against other versions.
18714 version_type=sunos
18715 need_lib_prefix=no
18716 need_version=no
18717 case $host_cpu in
18718 ia64*)
18719 shrext_cmds='.so'
18720 hardcode_into_libs=yes
18721 dynamic_linker="$host_os dld.so"
18722 shlibpath_var=LD_LIBRARY_PATH
18723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18725 soname_spec='$libname$release$shared_ext$major'
18726 if test 32 = "$HPUX_IA64_MODE"; then
18727 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18728 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18729 else
18730 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18731 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18734 hppa*64*)
18735 shrext_cmds='.sl'
18736 hardcode_into_libs=yes
18737 dynamic_linker="$host_os dld.sl"
18738 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18741 soname_spec='$libname$release$shared_ext$major'
18742 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18746 shrext_cmds='.sl'
18747 dynamic_linker="$host_os dld.sl"
18748 shlibpath_var=SHLIB_PATH
18749 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18751 soname_spec='$libname$release$shared_ext$major'
18753 esac
18754 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18755 postinstall_cmds='chmod 555 $lib'
18756 # or fails outright, so override atomically:
18757 install_override_mode=555
18760 interix[3-9]*)
18761 version_type=linux # correct to gnu/linux during the next big refactor
18762 need_lib_prefix=no
18763 need_version=no
18764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18765 soname_spec='$libname$release$shared_ext$major'
18766 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18767 shlibpath_var=LD_LIBRARY_PATH
18768 shlibpath_overrides_runpath=no
18769 hardcode_into_libs=yes
18772 irix5* | irix6* | nonstopux*)
18773 case $host_os in
18774 nonstopux*) version_type=nonstopux ;;
18776 if test yes = "$lt_cv_prog_gnu_ld"; then
18777 version_type=linux # correct to gnu/linux during the next big refactor
18778 else
18779 version_type=irix
18780 fi ;;
18781 esac
18782 need_lib_prefix=no
18783 need_version=no
18784 soname_spec='$libname$release$shared_ext$major'
18785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18786 case $host_os in
18787 irix5* | nonstopux*)
18788 libsuff= shlibsuff=
18791 case $LD in # libtool.m4 will add one of these switches to LD
18792 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18793 libsuff= shlibsuff= libmagic=32-bit;;
18794 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18795 libsuff=32 shlibsuff=N32 libmagic=N32;;
18796 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18797 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18798 *) libsuff= shlibsuff= libmagic=never-match;;
18799 esac
18801 esac
18802 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18803 shlibpath_overrides_runpath=no
18804 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18805 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18806 hardcode_into_libs=yes
18809 # No shared lib support for Linux oldld, aout, or coff.
18810 linux*oldld* | linux*aout* | linux*coff*)
18811 dynamic_linker=no
18814 linux*android*)
18815 version_type=none # Android doesn't support versioned libraries.
18816 need_lib_prefix=no
18817 need_version=no
18818 library_names_spec='$libname$release$shared_ext'
18819 soname_spec='$libname$release$shared_ext'
18820 finish_cmds=
18821 shlibpath_var=LD_LIBRARY_PATH
18822 shlibpath_overrides_runpath=yes
18824 # This implies no fast_install, which is unacceptable.
18825 # Some rework will be needed to allow for fast_install
18826 # before this can be enabled.
18827 hardcode_into_libs=yes
18829 dynamic_linker='Android linker'
18830 # Don't embed -rpath directories since the linker doesn't support them.
18831 hardcode_libdir_flag_spec_CXX='-L$libdir'
18834 # This must be glibc/ELF.
18835 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18836 version_type=linux # correct to gnu/linux during the next big refactor
18837 need_lib_prefix=no
18838 need_version=no
18839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18840 soname_spec='$libname$release$shared_ext$major'
18841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18842 shlibpath_var=LD_LIBRARY_PATH
18843 shlibpath_overrides_runpath=no
18845 # Some binutils ld are patched to set DT_RUNPATH
18846 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18847 $as_echo_n "(cached) " >&6
18848 else
18849 lt_cv_shlibpath_overrides_runpath=no
18850 save_LDFLAGS=$LDFLAGS
18851 save_libdir=$libdir
18852 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18853 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18858 main ()
18862 return 0;
18864 _ACEOF
18865 if ac_fn_cxx_try_link "$LINENO"; then :
18866 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18867 lt_cv_shlibpath_overrides_runpath=yes
18870 rm -f core conftest.err conftest.$ac_objext \
18871 conftest$ac_exeext conftest.$ac_ext
18872 LDFLAGS=$save_LDFLAGS
18873 libdir=$save_libdir
18877 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18879 # This implies no fast_install, which is unacceptable.
18880 # Some rework will be needed to allow for fast_install
18881 # before this can be enabled.
18882 hardcode_into_libs=yes
18884 # Ideally, we could use ldconfig to report *all* directores which are
18885 # searched for libraries, however this is still not possible. Aside from not
18886 # being certain /sbin/ldconfig is available, command
18887 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18888 # even though it is searched at run-time. Try to do the best guess by
18889 # appending ld.so.conf contents (and includes) to the search path.
18890 if test -f /etc/ld.so.conf; then
18891 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' ' '`
18892 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18895 # We used to test for /lib/ld.so.1 and disable shared libraries on
18896 # powerpc, because MkLinux only supported shared libraries with the
18897 # GNU dynamic linker. Since this was broken with cross compilers,
18898 # most powerpc-linux boxes support dynamic linking these days and
18899 # people can always --disable-shared, the test was removed, and we
18900 # assume the GNU/Linux dynamic linker is in use.
18901 dynamic_linker='GNU/Linux ld.so'
18904 netbsd*)
18905 version_type=sunos
18906 need_lib_prefix=no
18907 need_version=no
18908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18909 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18911 dynamic_linker='NetBSD (a.out) ld.so'
18912 else
18913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18914 soname_spec='$libname$release$shared_ext$major'
18915 dynamic_linker='NetBSD ld.elf_so'
18917 shlibpath_var=LD_LIBRARY_PATH
18918 shlibpath_overrides_runpath=yes
18919 hardcode_into_libs=yes
18922 newsos6)
18923 version_type=linux # correct to gnu/linux during the next big refactor
18924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18925 shlibpath_var=LD_LIBRARY_PATH
18926 shlibpath_overrides_runpath=yes
18929 *nto* | *qnx*)
18930 version_type=qnx
18931 need_lib_prefix=no
18932 need_version=no
18933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18934 soname_spec='$libname$release$shared_ext$major'
18935 shlibpath_var=LD_LIBRARY_PATH
18936 shlibpath_overrides_runpath=no
18937 hardcode_into_libs=yes
18938 dynamic_linker='ldqnx.so'
18941 openbsd* | bitrig*)
18942 version_type=sunos
18943 sys_lib_dlsearch_path_spec=/usr/lib
18944 need_lib_prefix=no
18945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18946 need_version=no
18947 else
18948 need_version=yes
18950 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18952 shlibpath_var=LD_LIBRARY_PATH
18953 shlibpath_overrides_runpath=yes
18956 os2*)
18957 libname_spec='$name'
18958 version_type=windows
18959 shrext_cmds=.dll
18960 need_version=no
18961 need_lib_prefix=no
18962 # OS/2 can only load a DLL with a base name of 8 characters or less.
18963 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18964 v=$($ECHO $release$versuffix | tr -d .-);
18965 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18966 $ECHO $n$v`$shared_ext'
18967 library_names_spec='${libname}_dll.$libext'
18968 dynamic_linker='OS/2 ld.exe'
18969 shlibpath_var=BEGINLIBPATH
18970 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18972 postinstall_cmds='base_file=`basename \$file`~
18973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18974 dldir=$destdir/`dirname \$dlpath`~
18975 test -d \$dldir || mkdir -p \$dldir~
18976 $install_prog $dir/$dlname \$dldir/$dlname~
18977 chmod a+x \$dldir/$dlname~
18978 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18979 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18982 dlpath=$dir/\$dldll~
18983 $RM \$dlpath'
18986 osf3* | osf4* | osf5*)
18987 version_type=osf
18988 need_lib_prefix=no
18989 need_version=no
18990 soname_spec='$libname$release$shared_ext$major'
18991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18992 shlibpath_var=LD_LIBRARY_PATH
18993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18997 rdos*)
18998 dynamic_linker=no
19001 solaris*)
19002 version_type=linux # correct to gnu/linux during the next big refactor
19003 need_lib_prefix=no
19004 need_version=no
19005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19006 soname_spec='$libname$release$shared_ext$major'
19007 shlibpath_var=LD_LIBRARY_PATH
19008 shlibpath_overrides_runpath=yes
19009 hardcode_into_libs=yes
19010 # ldd complains unless libraries are executable
19011 postinstall_cmds='chmod +x $lib'
19014 sunos4*)
19015 version_type=sunos
19016 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19018 shlibpath_var=LD_LIBRARY_PATH
19019 shlibpath_overrides_runpath=yes
19020 if test yes = "$with_gnu_ld"; then
19021 need_lib_prefix=no
19023 need_version=yes
19026 sysv4 | sysv4.3*)
19027 version_type=linux # correct to gnu/linux during the next big refactor
19028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19029 soname_spec='$libname$release$shared_ext$major'
19030 shlibpath_var=LD_LIBRARY_PATH
19031 case $host_vendor in
19032 sni)
19033 shlibpath_overrides_runpath=no
19034 need_lib_prefix=no
19035 runpath_var=LD_RUN_PATH
19037 siemens)
19038 need_lib_prefix=no
19040 motorola)
19041 need_lib_prefix=no
19042 need_version=no
19043 shlibpath_overrides_runpath=no
19044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19046 esac
19049 sysv4*MP*)
19050 if test -d /usr/nec; then
19051 version_type=linux # correct to gnu/linux during the next big refactor
19052 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19053 soname_spec='$libname$shared_ext.$major'
19054 shlibpath_var=LD_LIBRARY_PATH
19058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19059 version_type=sco
19060 need_lib_prefix=no
19061 need_version=no
19062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19063 soname_spec='$libname$release$shared_ext$major'
19064 shlibpath_var=LD_LIBRARY_PATH
19065 shlibpath_overrides_runpath=yes
19066 hardcode_into_libs=yes
19067 if test yes = "$with_gnu_ld"; then
19068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19069 else
19070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19071 case $host_os in
19072 sco3.2v5*)
19073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19075 esac
19077 sys_lib_dlsearch_path_spec='/usr/lib'
19080 tpf*)
19081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19082 version_type=linux # correct to gnu/linux during the next big refactor
19083 need_lib_prefix=no
19084 need_version=no
19085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19086 shlibpath_var=LD_LIBRARY_PATH
19087 shlibpath_overrides_runpath=no
19088 hardcode_into_libs=yes
19091 uts4*)
19092 version_type=linux # correct to gnu/linux during the next big refactor
19093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19094 soname_spec='$libname$release$shared_ext$major'
19095 shlibpath_var=LD_LIBRARY_PATH
19099 dynamic_linker=no
19101 esac
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19103 $as_echo "$dynamic_linker" >&6; }
19104 test no = "$dynamic_linker" && can_build_shared=no
19106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19107 if test yes = "$GCC"; then
19108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19111 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19112 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19115 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19116 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19119 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19120 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19122 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19123 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19125 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19126 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19168 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19169 hardcode_action_CXX=
19170 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19171 test -n "$runpath_var_CXX" ||
19172 test yes = "$hardcode_automatic_CXX"; then
19174 # We can hardcode non-existent directories.
19175 if test no != "$hardcode_direct_CXX" &&
19176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19177 # have to relink, otherwise we might link with an installed library
19178 # when we should be linking with a yet-to-be-installed one
19179 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19180 test no != "$hardcode_minus_L_CXX"; then
19181 # Linking always hardcodes the temporary library directory.
19182 hardcode_action_CXX=relink
19183 else
19184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19185 hardcode_action_CXX=immediate
19187 else
19188 # We cannot hardcode anything, or else we can only hardcode existing
19189 # directories.
19190 hardcode_action_CXX=unsupported
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19193 $as_echo "$hardcode_action_CXX" >&6; }
19195 if test relink = "$hardcode_action_CXX" ||
19196 test yes = "$inherit_rpath_CXX"; then
19197 # Fast installation is not supported
19198 enable_fast_install=no
19199 elif test yes = "$shlibpath_overrides_runpath" ||
19200 test no = "$enable_shared"; then
19201 # Fast installation is not necessary
19202 enable_fast_install=needless
19211 fi # test -n "$compiler"
19213 CC=$lt_save_CC
19214 CFLAGS=$lt_save_CFLAGS
19215 LDCXX=$LD
19216 LD=$lt_save_LD
19217 GCC=$lt_save_GCC
19218 with_gnu_ld=$lt_save_with_gnu_ld
19219 lt_cv_path_LDCXX=$lt_cv_path_LD
19220 lt_cv_path_LD=$lt_save_path_LD
19221 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19222 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19223 fi # test yes != "$_lt_caught_CXX_error"
19225 ac_ext=c
19226 ac_cpp='$CPP $CPPFLAGS'
19227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19234 $as_echo_n "checking whether ln -s works... " >&6; }
19235 LN_S=$as_ln_s
19236 if test "$LN_S" = "ln -s"; then
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19238 $as_echo "yes" >&6; }
19239 else
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19241 $as_echo "no, using $LN_S" >&6; }
19245 # Check whether --with-ln-s was given.
19246 if test "${with_ln_s+set}" = set; then :
19247 withval=$with_ln_s;
19249 if test "x$LN_S" != "xln -s" && test "x$kpse_cv_have_win32" = xno && test "x$with_ln_s" != xno; then
19250 as_fn_error $? "You could use \`--without-ln-s' to build without working \`ln -s'" "$LINENO" 5
19253 if test "x$enable_native_texlive_build" = xyes; then
19254 if test "x$datarootdir" = 'x${prefix}/share'; then
19255 datarootdir='${prefix}'
19256 ac_configure_args="$ac_configure_args '--datarootdir=$datarootdir'"
19258 if test "x$mandir" = 'x${datarootdir}/man'; then
19259 mandir='${prefix}/texmf-dist/doc/man'
19260 ac_configure_args="$ac_configure_args '--mandir=$mandir'"
19262 if test "x$infodir" = 'x${datarootdir}/info'; then
19263 infodir='${prefix}/texmf-dist/doc/info'
19264 ac_configure_args="$ac_configure_args '--infodir=$infodir'"
19268 if test "x$enable_web2c" = xyes && test "x$with_system_kpathsea" = xyes; then
19269 if test "x$with_kpathsea_includes" = x; then
19270 list="/usr/include /usr/local/include"
19271 else
19272 list=$with_kpathsea_includes
19274 found=no
19275 for ac_dir in $list; do
19276 if test -r "$ac_dir/kpathsea/paths.h"; then
19277 found=yes
19278 break
19280 done
19281 if test "x$found" = xno; then
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: You requested to build \`web2c' using an installed \`kpathsea' version," >&5
19283 $as_echo "$as_me: You requested to build \`web2c' using an installed \`kpathsea' version," >&6;}
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: which requires to locate the <kpathsea/paths.h> header file." >&5
19285 $as_echo "$as_me: which requires to locate the <kpathsea/paths.h> header file." >&6;}
19286 as_fn_error $? "Sorry, not found under any of: $list *****" "$LINENO" 5
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TeX specific libraries to build" >&5
19293 $as_echo_n "checking for TeX specific libraries to build... " >&6; }
19294 MAKE_SUBDIRS=
19295 CONF_SUBDIRS=
19296 if test -x $srcdir/texk/kpathsea/configure; then
19297 test "x$with_system_kpathsea" != xyes && test "x$need_kpathsea" = xyes && MAKE_SUBDIRS="texk/kpathsea $MAKE_SUBDIRS"
19298 CONF_SUBDIRS="texk/kpathsea $CONF_SUBDIRS"
19299 if false; then
19300 subdirs="$subdirs texk/kpathsea"
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_SUBDIRS" >&5
19306 $as_echo "$MAKE_SUBDIRS" >&6; }
19308 kpse_save_CPPFLAGS=$CPPFLAGS
19309 kpse_save_LIBS=$LIBS
19311 syslib_status=yes
19312 syslib_used=no
19313 if test -n "$ac_tool_prefix"; then
19314 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19315 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19317 $as_echo_n "checking for $ac_word... " >&6; }
19318 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
19319 $as_echo_n "(cached) " >&6
19320 else
19321 if test -n "$PKG_CONFIG"; then
19322 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
19323 else
19324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19325 for as_dir in $PATH
19327 IFS=$as_save_IFS
19328 test -z "$as_dir" && as_dir=.
19329 for ac_exec_ext in '' $ac_executable_extensions; do
19330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19331 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
19332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19333 break 2
19335 done
19336 done
19337 IFS=$as_save_IFS
19341 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
19342 if test -n "$PKG_CONFIG"; then
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19344 $as_echo "$PKG_CONFIG" >&6; }
19345 else
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19347 $as_echo "no" >&6; }
19352 if test -z "$ac_cv_prog_PKG_CONFIG"; then
19353 ac_ct_PKG_CONFIG=$PKG_CONFIG
19354 # Extract the first word of "pkg-config", so it can be a program name with args.
19355 set dummy pkg-config; ac_word=$2
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19357 $as_echo_n "checking for $ac_word... " >&6; }
19358 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
19359 $as_echo_n "(cached) " >&6
19360 else
19361 if test -n "$ac_ct_PKG_CONFIG"; then
19362 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
19363 else
19364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19365 for as_dir in $PATH
19367 IFS=$as_save_IFS
19368 test -z "$as_dir" && as_dir=.
19369 for ac_exec_ext in '' $ac_executable_extensions; do
19370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19371 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
19372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19373 break 2
19375 done
19376 done
19377 IFS=$as_save_IFS
19381 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
19382 if test -n "$ac_ct_PKG_CONFIG"; then
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
19384 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
19385 else
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19387 $as_echo "no" >&6; }
19390 if test "x$ac_ct_PKG_CONFIG" = x; then
19391 PKG_CONFIG="false"
19392 else
19393 case $cross_compiling:$ac_tool_warned in
19394 yes:)
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19397 ac_tool_warned=yes ;;
19398 esac
19399 PKG_CONFIG=$ac_ct_PKG_CONFIG
19401 else
19402 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
19405 if $PKG_CONFIG kpathsea; then
19406 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
19407 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
19408 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
19409 as_fn_error $? "did not find kpathsea" "$LINENO" 5
19412 if $PKG_CONFIG ptexenc; then
19413 PTEXENC_INCLUDES=`$PKG_CONFIG ptexenc --cflags`
19414 PTEXENC_LIBS=`$PKG_CONFIG ptexenc --libs`
19415 elif test "x$need_ptexenc:$with_system_ptexenc" = xyes:yes; then
19416 as_fn_error $? "did not find ptexenc" "$LINENO" 5
19419 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
19420 ZLIB_INCLUDES="-I$with_zlib_includes"
19422 ZLIB_LIBS="-lz"
19423 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
19424 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
19427 if test "x$with_libpaper_includes" != x && test "x$with_libpaper_includes" != xyes; then
19428 LIBPAPER_INCLUDES="-I$with_libpaper_includes"
19430 LIBPAPER_LIBS="-lpaper"
19431 if test "x$with_libpaper_libdir" != x && test "x$with_libpaper_libdir" != xyes; then
19432 LIBPAPER_LIBS="-L$with_libpaper_libdir $LIBPAPER_LIBS"
19435 if $PKG_CONFIG libpng; then
19436 LIBPNG_INCLUDES=`$PKG_CONFIG libpng --cflags`
19437 LIBPNG_LIBS=`$PKG_CONFIG libpng --libs`
19438 elif test "x$need_libpng:$with_system_libpng" = xyes:yes; then
19439 as_fn_error $? "did not find libpng" "$LINENO" 5
19442 if test -n "$ac_tool_prefix"; then
19443 # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
19444 set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19446 $as_echo_n "checking for $ac_word... " >&6; }
19447 if ${ac_cv_prog_FT2_CONFIG+:} false; then :
19448 $as_echo_n "(cached) " >&6
19449 else
19450 if test -n "$FT2_CONFIG"; then
19451 ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test.
19452 else
19453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19454 for as_dir in $PATH
19456 IFS=$as_save_IFS
19457 test -z "$as_dir" && as_dir=.
19458 for ac_exec_ext in '' $ac_executable_extensions; do
19459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19460 ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config"
19461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19462 break 2
19464 done
19465 done
19466 IFS=$as_save_IFS
19470 FT2_CONFIG=$ac_cv_prog_FT2_CONFIG
19471 if test -n "$FT2_CONFIG"; then
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
19473 $as_echo "$FT2_CONFIG" >&6; }
19474 else
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19476 $as_echo "no" >&6; }
19481 if test -z "$ac_cv_prog_FT2_CONFIG"; then
19482 ac_ct_FT2_CONFIG=$FT2_CONFIG
19483 # Extract the first word of "freetype-config", so it can be a program name with args.
19484 set dummy freetype-config; ac_word=$2
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19486 $as_echo_n "checking for $ac_word... " >&6; }
19487 if ${ac_cv_prog_ac_ct_FT2_CONFIG+:} false; then :
19488 $as_echo_n "(cached) " >&6
19489 else
19490 if test -n "$ac_ct_FT2_CONFIG"; then
19491 ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test.
19492 else
19493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19494 for as_dir in $PATH
19496 IFS=$as_save_IFS
19497 test -z "$as_dir" && as_dir=.
19498 for ac_exec_ext in '' $ac_executable_extensions; do
19499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19500 ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config"
19501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19502 break 2
19504 done
19505 done
19506 IFS=$as_save_IFS
19510 ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG
19511 if test -n "$ac_ct_FT2_CONFIG"; then
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5
19513 $as_echo "$ac_ct_FT2_CONFIG" >&6; }
19514 else
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19516 $as_echo "no" >&6; }
19519 if test "x$ac_ct_FT2_CONFIG" = x; then
19520 FT2_CONFIG="false"
19521 else
19522 case $cross_compiling:$ac_tool_warned in
19523 yes:)
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19526 ac_tool_warned=yes ;;
19527 esac
19528 FT2_CONFIG=$ac_ct_FT2_CONFIG
19530 else
19531 FT2_CONFIG="$ac_cv_prog_FT2_CONFIG"
19533 if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
19534 FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags`
19535 FREETYPE2_LIBS=`$FT2_CONFIG --libs`
19536 elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then
19537 as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5
19540 if test "x$with_gd_includes" != x && test "x$with_gd_includes" != xyes; then
19541 GD_INCLUDES="-I$with_gd_includes"
19543 GD_LIBS="-lgd"
19544 if test "x$with_gd_libdir" != x && test "x$with_gd_libdir" != xyes; then
19545 GD_LIBS="-L$with_gd_libdir $GD_LIBS"
19548 if test "x$with_potrace_includes" != x && test "x$with_potrace_includes" != xyes; then
19549 POTRACE_INCLUDES="-I$with_potrace_includes"
19551 POTRACE_LIBS="-lpotrace"
19552 if test "x$with_potrace_libdir" != x && test "x$with_potrace_libdir" != xyes; then
19553 POTRACE_LIBS="-L$with_potrace_libdir $POTRACE_LIBS"
19556 if $PKG_CONFIG pixman-1 --atleast-version=0.18; then
19557 PIXMAN_INCLUDES=`$PKG_CONFIG pixman-1 --cflags`
19558 PIXMAN_LIBS=`$PKG_CONFIG pixman-1 --libs`
19559 elif test "x$need_pixman:$with_system_pixman" = xyes:yes; then
19560 as_fn_error $? "did not find pixman-1 0.18 or better" "$LINENO" 5
19563 if $PKG_CONFIG cairo --atleast-version=1.12; then
19564 CAIRO_INCLUDES=`$PKG_CONFIG cairo --cflags`
19565 CAIRO_LIBS=`$PKG_CONFIG cairo --libs`
19566 elif test "x$need_cairo:$with_system_cairo" = xyes:yes; then
19567 as_fn_error $? "did not find cairo 1.12 or better" "$LINENO" 5
19570 if test "x$with_gmp_includes" != x && test "x$with_gmp_includes" != xyes; then
19571 GMP_INCLUDES="-I$with_gmp_includes"
19573 GMP_LIBS="-lgmp"
19574 if test "x$with_gmp_libdir" != x && test "x$with_gmp_libdir" != xyes; then
19575 GMP_LIBS="-L$with_gmp_libdir $GMP_LIBS"
19578 if test "x$with_mpfr_includes" != x && test "x$with_mpfr_includes" != xyes; then
19579 MPFR_INCLUDES="-I$with_mpfr_includes"
19581 MPFR_LIBS="-lmpfr"
19582 if test "x$with_mpfr_libdir" != x && test "x$with_mpfr_libdir" != xyes; then
19583 MPFR_LIBS="-L$with_mpfr_libdir $MPFR_LIBS"
19586 if $PKG_CONFIG poppler --atleast-version=0.18; then
19587 POPPLER_INCLUDES=`$PKG_CONFIG poppler --cflags`
19588 POPPLER_LIBS=`$PKG_CONFIG poppler --libs`
19589 elif test "x$need_poppler:$with_system_poppler" = xyes:yes; then
19590 as_fn_error $? "did not find poppler 0.18 or better" "$LINENO" 5
19593 POPPLER_VERSION='-DPOPPLER_VERSION=\"'`$PKG_CONFIG poppler --modversion`'\"'
19594 POPPLER_INCLUDES="$POPPLER_VERSION $POPPLER_INCLUDES"
19596 if $PKG_CONFIG poppler --atleast-version=0.12; then
19597 XPDF_INCLUDES=`$PKG_CONFIG poppler --cflags`
19598 XPDF_LIBS=`$PKG_CONFIG poppler --libs`
19599 elif test "x$need_xpdf:$with_system_xpdf" = xyes:yes; then
19600 as_fn_error $? "did not find poppler 0.12 or better" "$LINENO" 5
19603 POPPLER_VERSION='-DPOPPLER_VERSION=\"'`$PKG_CONFIG poppler --modversion`'\"'
19604 XPDF_INCLUDES="$POPPLER_VERSION $XPDF_INCLUDES"
19606 if $PKG_CONFIG zziplib --atleast-version=0.12; then
19607 ZZIPLIB_INCLUDES=`$PKG_CONFIG zziplib --cflags`
19608 ZZIPLIB_LIBS=`$PKG_CONFIG zziplib --libs`
19609 elif test "x$need_zziplib:$with_system_zziplib" = xyes:yes; then
19610 as_fn_error $? "did not find zziplib 0.12 or better" "$LINENO" 5
19613 if $PKG_CONFIG graphite2; then
19614 GRAPHITE2_INCLUDES=`$PKG_CONFIG graphite2 --cflags`
19615 GRAPHITE2_LIBS=`$PKG_CONFIG graphite2 --libs`
19616 elif test "x$need_graphite2:$with_system_graphite2" = xyes:yes; then
19617 as_fn_error $? "did not find graphite2" "$LINENO" 5
19620 if $PKG_CONFIG teckit; then
19621 TECKIT_INCLUDES=`$PKG_CONFIG teckit --cflags`
19622 TECKIT_LIBS=`$PKG_CONFIG teckit --libs`
19623 elif test "x$need_teckit:$with_system_teckit" = xyes:yes; then
19624 as_fn_error $? "did not find teckit" "$LINENO" 5
19627 if test -n "$ac_tool_prefix"; then
19628 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
19629 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19631 $as_echo_n "checking for $ac_word... " >&6; }
19632 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
19633 $as_echo_n "(cached) " >&6
19634 else
19635 if test -n "$ICU_CONFIG"; then
19636 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
19637 else
19638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19639 for as_dir in $PATH
19641 IFS=$as_save_IFS
19642 test -z "$as_dir" && as_dir=.
19643 for ac_exec_ext in '' $ac_executable_extensions; do
19644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19645 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
19646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19647 break 2
19649 done
19650 done
19651 IFS=$as_save_IFS
19655 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
19656 if test -n "$ICU_CONFIG"; then
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
19658 $as_echo "$ICU_CONFIG" >&6; }
19659 else
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661 $as_echo "no" >&6; }
19666 if test -z "$ac_cv_prog_ICU_CONFIG"; then
19667 ac_ct_ICU_CONFIG=$ICU_CONFIG
19668 # Extract the first word of "icu-config", so it can be a program name with args.
19669 set dummy icu-config; ac_word=$2
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19671 $as_echo_n "checking for $ac_word... " >&6; }
19672 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
19673 $as_echo_n "(cached) " >&6
19674 else
19675 if test -n "$ac_ct_ICU_CONFIG"; then
19676 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
19677 else
19678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19679 for as_dir in $PATH
19681 IFS=$as_save_IFS
19682 test -z "$as_dir" && as_dir=.
19683 for ac_exec_ext in '' $ac_executable_extensions; do
19684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19685 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
19686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19687 break 2
19689 done
19690 done
19691 IFS=$as_save_IFS
19695 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
19696 if test -n "$ac_ct_ICU_CONFIG"; then
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
19698 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
19699 else
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19701 $as_echo "no" >&6; }
19704 if test "x$ac_ct_ICU_CONFIG" = x; then
19705 ICU_CONFIG="false"
19706 else
19707 case $cross_compiling:$ac_tool_warned in
19708 yes:)
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19711 ac_tool_warned=yes ;;
19712 esac
19713 ICU_CONFIG=$ac_ct_ICU_CONFIG
19715 else
19716 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
19718 if $ICU_CONFIG --version >/dev/null 2>&1; then
19719 ICU_INCLUDES=`$ICU_CONFIG --cppflags`
19720 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly --ldflags-system`
19721 elif test "x$need_icu:$with_system_icu" = xyes:yes; then
19722 as_fn_error $? "did not find icu-config required for system icu libraries" "$LINENO" 5
19725 if $PKG_CONFIG harfbuzz-icu; then
19726 HARFBUZZ_INCLUDES=`$PKG_CONFIG harfbuzz-icu --cflags`
19727 HARFBUZZ_LIBS=`$PKG_CONFIG harfbuzz-icu --libs`
19728 elif test "x$need_harfbuzz:$with_system_harfbuzz" = xyes:yes; then
19729 as_fn_error $? "did not find harfbuzz-icu" "$LINENO" 5
19737 ## texk/kpathsea/ac/kpathsea.ac: configure.ac fragment for the TeX Live subdirectory texk/kpathsea/
19738 ## basic check of system kpathsea
19739 if test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`kpathsea' library" >&5
19741 $as_echo_n "checking requested system \`kpathsea' library... " >&6; }
19742 CPPFLAGS="$KPATHSEA_INCLUDES $CPPFLAGS"
19743 LIBS="$KPATHSEA_LIBS $LIBS"
19744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19745 /* end confdefs.h. */
19746 #include <kpathsea/kpathsea.h>
19747 #include <kpathsea/version.h>
19749 main ()
19751 const char *version = kpathsea_version_string;
19752 kpse_set_program_name("prog", "name");
19754 return 0;
19756 _ACEOF
19757 if ac_fn_c_try_link "$LINENO"; then :
19758 syslib_used=yes kpse_res=ok
19759 else
19760 syslib_status=no kpse_res=failed
19762 rm -f core conftest.err conftest.$ac_objext \
19763 conftest$ac_exeext conftest.$ac_ext
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19765 $as_echo "$kpse_res" >&6; }
19768 ## libs/zlib/ac/zlib.ac: configure.ac fragment for the TeX Live subdirectory libs/zlib/
19769 ## basic check of system zlib
19770 if test "x$need_zlib:$with_system_zlib" = xyes:yes; then
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`zlib' library" >&5
19772 $as_echo_n "checking requested system \`zlib' library... " >&6; }
19773 CPPFLAGS="$ZLIB_INCLUDES $CPPFLAGS"
19774 LIBS="$ZLIB_LIBS $LIBS"
19775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19776 /* end confdefs.h. */
19777 #include <zlib.h>
19779 main ()
19781 z_stream stream;
19782 const char *version = zlibVersion();
19783 deflate(&stream, 0);
19785 return 0;
19787 _ACEOF
19788 if ac_fn_c_try_link "$LINENO"; then :
19789 syslib_used=yes kpse_res=ok
19790 else
19791 syslib_status=no kpse_res=failed
19793 rm -f core conftest.err conftest.$ac_objext \
19794 conftest$ac_exeext conftest.$ac_ext
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19796 $as_echo "$kpse_res" >&6; }
19799 ## libs/libpng/ac/libpng.ac: configure.ac fragment for the TeX Live subdirectory libs/libpng/
19800 ## basic check of system libpng
19801 if test "x$need_libpng:$with_system_libpng" = xyes:yes; then
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`libpng' library" >&5
19803 $as_echo_n "checking requested system \`libpng' library... " >&6; }
19804 CPPFLAGS="$LIBPNG_INCLUDES $CPPFLAGS"
19805 LIBS="$LIBPNG_LIBS $LIBS"
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h. */
19808 #include <png.h>
19810 main ()
19812 png_structp png; png_voidp io; png_rw_ptr fn;
19813 png_set_read_fn(png, io, fn);
19815 return 0;
19817 _ACEOF
19818 if ac_fn_c_try_link "$LINENO"; then :
19819 syslib_used=yes kpse_res=ok
19820 else
19821 syslib_status=no kpse_res=failed
19823 rm -f core conftest.err conftest.$ac_objext \
19824 conftest$ac_exeext conftest.$ac_ext
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19826 $as_echo "$kpse_res" >&6; }
19829 ## libs/pixman/ac/pixman.ac: configure.ac fragment for the TeX Live subdirectory libs/pixman/
19830 ## basic check of system pixman
19831 if test "x$need_pixman:$with_system_pixman" = xyes:yes; then
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`pixman' library" >&5
19833 $as_echo_n "checking requested system \`pixman' library... " >&6; }
19834 CPPFLAGS="$PIXMAN_INCLUDES $CPPFLAGS"
19835 LIBS="$PIXMAN_LIBS $LIBS"
19836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19837 /* end confdefs.h. */
19838 #include <pixman.h>
19840 main ()
19842 const char *s = pixman_version_string();
19844 return 0;
19846 _ACEOF
19847 if ac_fn_c_try_link "$LINENO"; then :
19848 syslib_used=yes kpse_res=ok
19849 else
19850 syslib_status=no kpse_res=failed
19852 rm -f core conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext conftest.$ac_ext
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19855 $as_echo "$kpse_res" >&6; }
19858 ## libs/cairo/ac/cairo.ac: configure.ac fragment for the TeX Live subdirectory libs/cairo/
19859 ## basic check of system cairo
19860 if test "x$need_cairo:$with_system_cairo" = xyes:yes; then
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`cairo' library" >&5
19862 $as_echo_n "checking requested system \`cairo' library... " >&6; }
19863 CPPFLAGS="$CAIRO_INCLUDES $CPPFLAGS"
19864 LIBS="$CAIRO_LIBS $LIBS"
19865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866 /* end confdefs.h. */
19867 #include <cairo.h>
19869 main ()
19871 const char *s = cairo_version_string();
19873 return 0;
19875 _ACEOF
19876 if ac_fn_c_try_link "$LINENO"; then :
19877 syslib_used=yes kpse_res=ok
19878 else
19879 syslib_status=no kpse_res=failed
19881 rm -f core conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19884 $as_echo "$kpse_res" >&6; }
19887 ## libs/gmp/ac/gmp.ac: configure.ac fragment for the TeX Live subdirectory libs/gmp/
19888 ## basic check of system gmp
19889 if test "x$need_gmp:$with_system_gmp" = xyes:yes; then
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`gmp' library" >&5
19891 $as_echo_n "checking requested system \`gmp' library... " >&6; }
19892 CPPFLAGS="$GMP_INCLUDES $CPPFLAGS"
19893 LIBS="$GMP_LIBS $LIBS"
19894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19895 /* end confdefs.h. */
19896 #include <gmp.h>
19898 main ()
19900 const char *s = gmp_version;
19902 return 0;
19904 _ACEOF
19905 if ac_fn_c_try_link "$LINENO"; then :
19906 syslib_used=yes kpse_res=ok
19907 else
19908 syslib_status=no kpse_res=failed
19910 rm -f core conftest.err conftest.$ac_objext \
19911 conftest$ac_exeext conftest.$ac_ext
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19913 $as_echo "$kpse_res" >&6; }
19916 ## libs/mpfr/ac/mpfr.ac: configure.ac fragment for the TeX Live subdirectory libs/mpfr/
19917 ## basic check of system mpfr
19918 if test "x$need_mpfr:$with_system_mpfr" = xyes:yes; then
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`mpfr' library" >&5
19920 $as_echo_n "checking requested system \`mpfr' library... " >&6; }
19921 CPPFLAGS="$MPFR_INCLUDES $CPPFLAGS"
19922 LIBS="$MPFR_LIBS $LIBS"
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19925 #include <mpfr.h>
19927 main ()
19929 const char *s = mpfr_get_version();
19931 return 0;
19933 _ACEOF
19934 if ac_fn_c_try_link "$LINENO"; then :
19935 syslib_used=yes kpse_res=ok
19936 else
19937 syslib_status=no kpse_res=failed
19939 rm -f core conftest.err conftest.$ac_objext \
19940 conftest$ac_exeext conftest.$ac_ext
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19942 $as_echo "$kpse_res" >&6; }
19945 ## libs/poppler/ac/poppler.ac: configure.ac fragment for the TeX Live subdirectory libs/poppler/
19946 ## basic check of system poppler
19947 ac_ext=cpp
19948 ac_cpp='$CXXCPP $CPPFLAGS'
19949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19952 if test "x$need_poppler:$with_system_poppler" = xyes:yes; then
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`poppler' library" >&5
19954 $as_echo_n "checking requested system \`poppler' library... " >&6; }
19955 CPPFLAGS="$POPPLER_INCLUDES $CPPFLAGS"
19956 LIBS="$POPPLER_LIBS $LIBS"
19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h. */
19959 #include <GfxFont.h>
19961 main ()
19963 GfxFont *gfxFont; gfxFont->decRefCnt();
19965 return 0;
19967 _ACEOF
19968 if ac_fn_cxx_try_link "$LINENO"; then :
19969 syslib_used=yes kpse_res=ok
19970 else
19971 syslib_status=no kpse_res=failed
19973 rm -f core conftest.err conftest.$ac_objext \
19974 conftest$ac_exeext conftest.$ac_ext
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19976 $as_echo "$kpse_res" >&6; }
19978 ac_ext=c
19979 ac_cpp='$CPP $CPPFLAGS'
19980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19984 ## libs/zziplib/ac/zziplib.ac: configure.ac fragment for the TeX Live subdirectory libs/zziplib/
19985 ## basic check of system zziplib
19986 if test "x$need_zziplib:$with_system_zziplib" = xyes:yes; then
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`zziplib' library" >&5
19988 $as_echo_n "checking requested system \`zziplib' library... " >&6; }
19989 CPPFLAGS="$ZZIPLIB_INCLUDES $CPPFLAGS"
19990 LIBS="$ZZIPLIB_LIBS $LIBS"
19991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992 /* end confdefs.h. */
19993 #include <zzip/zzip.h>
19995 main ()
19997 ZZIP_FILE *z_FILE = zzip_open("file_name", 0);
19999 return 0;
20001 _ACEOF
20002 if ac_fn_c_try_link "$LINENO"; then :
20003 syslib_used=yes kpse_res=ok
20004 else
20005 syslib_status=no kpse_res=failed
20007 rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
20010 $as_echo "$kpse_res" >&6; }
20013 if test "x$syslib_status" = xno; then
20014 as_fn_error $? "some requested system libraries failed" "$LINENO" 5
20016 if test "x$syslib_used:$enable_native_texlive_build" = xyes:yes; then
20017 as_fn_error $? "you can not use system libraries for a native TeX Live build" "$LINENO" 5
20019 CPPFLAGS=$kpse_save_CPPFLAGS
20020 LIBS=$kpse_save_LIBS
20023 if test "x$cross_compiling" = xyes; then
20024 cross_TRUE=
20025 cross_FALSE='#'
20026 else
20027 cross_TRUE='#'
20028 cross_FALSE=
20032 subdirs="$subdirs auxdir/auxsub libs utils texk"
20035 ac_config_files="$ac_config_files Makefile doc/Makefile"
20038 rm -f Makefile
20039 kpse_GNU_make=`${MAKE-make} -v 2>/dev/null | grep GNU`
20041 cat >confcache <<\_ACEOF
20042 # This file is a shell script that caches the results of configure
20043 # tests run on this system so they can be shared between configure
20044 # scripts and configure runs, see configure's option --config-cache.
20045 # It is not useful on other systems. If it contains results you don't
20046 # want to keep, you may remove or edit it.
20048 # config.status only pays attention to the cache file if you give it
20049 # the --recheck option to rerun configure.
20051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20053 # following values.
20055 _ACEOF
20057 # The following way of writing the cache mishandles newlines in values,
20058 # but we know of no workaround that is simple, portable, and efficient.
20059 # So, we kill variables containing newlines.
20060 # Ultrix sh set writes to stderr and can't be redirected directly,
20061 # and sets the high bit in the cache file unless we assign to the vars.
20063 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20064 eval ac_val=\$$ac_var
20065 case $ac_val in #(
20066 *${as_nl}*)
20067 case $ac_var in #(
20068 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20069 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20070 esac
20071 case $ac_var in #(
20072 _ | IFS | as_nl) ;; #(
20073 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20074 *) { eval $ac_var=; unset $ac_var;} ;;
20075 esac ;;
20076 esac
20077 done
20079 (set) 2>&1 |
20080 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20081 *${as_nl}ac_space=\ *)
20082 # `set' does not quote correctly, so add quotes: double-quote
20083 # substitution turns \\\\ into \\, and sed turns \\ into \.
20084 sed -n \
20085 "s/'/'\\\\''/g;
20086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20087 ;; #(
20089 # `set' quotes correctly as required by POSIX, so do not add quotes.
20090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20092 esac |
20093 sort
20095 sed '
20096 /^ac_cv_env_/b end
20097 t clear
20098 :clear
20099 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20100 t end
20101 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20102 :end' >>confcache
20103 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20104 if test -w "$cache_file"; then
20105 if test "x$cache_file" != "x/dev/null"; then
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20107 $as_echo "$as_me: updating cache $cache_file" >&6;}
20108 if test ! -f "$cache_file" || test -h "$cache_file"; then
20109 cat confcache >"$cache_file"
20110 else
20111 case $cache_file in #(
20112 */* | ?:*)
20113 mv -f confcache "$cache_file"$$ &&
20114 mv -f "$cache_file"$$ "$cache_file" ;; #(
20116 mv -f confcache "$cache_file" ;;
20117 esac
20120 else
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20122 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20125 rm -f confcache
20127 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20128 # Let make expand exec_prefix.
20129 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20131 # Transform confdefs.h into DEFS.
20132 # Protect against shell expansion while executing Makefile rules.
20133 # Protect against Makefile macro expansion.
20135 # If the first sed substitution is executed (which looks for macros that
20136 # take arguments), then branch to the quote section. Otherwise,
20137 # look for a macro that doesn't take arguments.
20138 ac_script='
20139 :mline
20140 /\\$/{
20142 s,\\\n,,
20143 b mline
20145 t clear
20146 :clear
20147 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20148 t quote
20149 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20150 t quote
20151 b any
20152 :quote
20153 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20154 s/\[/\\&/g
20155 s/\]/\\&/g
20156 s/\$/$$/g
20158 :any
20161 s/^\n//
20162 s/\n/ /g
20166 DEFS=`sed -n "$ac_script" confdefs.h`
20169 ac_libobjs=
20170 ac_ltlibobjs=
20172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20173 # 1. Remove the extension, and $U if already installed.
20174 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20175 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20176 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20177 # will be set to the directory where LIBOBJS objects are built.
20178 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20179 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20180 done
20181 LIBOBJS=$ac_libobjs
20183 LTLIBOBJS=$ac_ltlibobjs
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20187 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20188 if test -n "$am_sleep_pid"; then
20189 # Hide warnings about reused PIDs.
20190 wait $am_sleep_pid 2>/dev/null
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20193 $as_echo "done" >&6; }
20194 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20195 as_fn_error $? "conditional \"AMDEP\" was never defined.
20196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20198 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20199 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20202 if test -n "$EXEEXT"; then
20203 am__EXEEXT_TRUE=
20204 am__EXEEXT_FALSE='#'
20205 else
20206 am__EXEEXT_TRUE='#'
20207 am__EXEEXT_FALSE=
20210 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20211 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20214 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20215 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20218 if test -z "${cross_TRUE}" && test -z "${cross_FALSE}"; then
20219 as_fn_error $? "conditional \"cross\" was never defined.
20220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20223 : "${CONFIG_STATUS=./config.status}"
20224 ac_write_fail=0
20225 ac_clean_files_save=$ac_clean_files
20226 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20228 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20229 as_write_fail=0
20230 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20231 #! $SHELL
20232 # Generated by $as_me.
20233 # Run this file to recreate the current configuration.
20234 # Compiler output produced by configure, useful for debugging
20235 # configure, is in config.log if it exists.
20237 debug=false
20238 ac_cs_recheck=false
20239 ac_cs_silent=false
20241 SHELL=\${CONFIG_SHELL-$SHELL}
20242 export SHELL
20243 _ASEOF
20244 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20245 ## -------------------- ##
20246 ## M4sh Initialization. ##
20247 ## -------------------- ##
20249 # Be more Bourne compatible
20250 DUALCASE=1; export DUALCASE # for MKS sh
20251 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20252 emulate sh
20253 NULLCMD=:
20254 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20255 # is contrary to our usage. Disable this feature.
20256 alias -g '${1+"$@"}'='"$@"'
20257 setopt NO_GLOB_SUBST
20258 else
20259 case `(set -o) 2>/dev/null` in #(
20260 *posix*) :
20261 set -o posix ;; #(
20262 *) :
20264 esac
20268 as_nl='
20270 export as_nl
20271 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20272 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20274 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20275 # Prefer a ksh shell builtin over an external printf program on Solaris,
20276 # but without wasting forks for bash or zsh.
20277 if test -z "$BASH_VERSION$ZSH_VERSION" \
20278 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20279 as_echo='print -r --'
20280 as_echo_n='print -rn --'
20281 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20282 as_echo='printf %s\n'
20283 as_echo_n='printf %s'
20284 else
20285 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20286 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20287 as_echo_n='/usr/ucb/echo -n'
20288 else
20289 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20290 as_echo_n_body='eval
20291 arg=$1;
20292 case $arg in #(
20293 *"$as_nl"*)
20294 expr "X$arg" : "X\\(.*\\)$as_nl";
20295 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20296 esac;
20297 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20299 export as_echo_n_body
20300 as_echo_n='sh -c $as_echo_n_body as_echo'
20302 export as_echo_body
20303 as_echo='sh -c $as_echo_body as_echo'
20306 # The user is always right.
20307 if test "${PATH_SEPARATOR+set}" != set; then
20308 PATH_SEPARATOR=:
20309 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20310 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20311 PATH_SEPARATOR=';'
20316 # IFS
20317 # We need space, tab and new line, in precisely that order. Quoting is
20318 # there to prevent editors from complaining about space-tab.
20319 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20320 # splitting by setting IFS to empty value.)
20321 IFS=" "" $as_nl"
20323 # Find who we are. Look in the path if we contain no directory separator.
20324 as_myself=
20325 case $0 in #((
20326 *[\\/]* ) as_myself=$0 ;;
20327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20328 for as_dir in $PATH
20330 IFS=$as_save_IFS
20331 test -z "$as_dir" && as_dir=.
20332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20333 done
20334 IFS=$as_save_IFS
20337 esac
20338 # We did not find ourselves, most probably we were run as `sh COMMAND'
20339 # in which case we are not to be found in the path.
20340 if test "x$as_myself" = x; then
20341 as_myself=$0
20343 if test ! -f "$as_myself"; then
20344 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20345 exit 1
20348 # Unset variables that we do not need and which cause bugs (e.g. in
20349 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20350 # suppresses any "Segmentation fault" message there. '((' could
20351 # trigger a bug in pdksh 5.2.14.
20352 for as_var in BASH_ENV ENV MAIL MAILPATH
20353 do eval test x\${$as_var+set} = xset \
20354 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20355 done
20356 PS1='$ '
20357 PS2='> '
20358 PS4='+ '
20360 # NLS nuisances.
20361 LC_ALL=C
20362 export LC_ALL
20363 LANGUAGE=C
20364 export LANGUAGE
20366 # CDPATH.
20367 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20371 # ----------------------------------------
20372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20374 # script with STATUS, using 1 if that was 0.
20375 as_fn_error ()
20377 as_status=$1; test $as_status -eq 0 && as_status=1
20378 if test "$4"; then
20379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20382 $as_echo "$as_me: error: $2" >&2
20383 as_fn_exit $as_status
20384 } # as_fn_error
20387 # as_fn_set_status STATUS
20388 # -----------------------
20389 # Set $? to STATUS, without forking.
20390 as_fn_set_status ()
20392 return $1
20393 } # as_fn_set_status
20395 # as_fn_exit STATUS
20396 # -----------------
20397 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20398 as_fn_exit ()
20400 set +e
20401 as_fn_set_status $1
20402 exit $1
20403 } # as_fn_exit
20405 # as_fn_unset VAR
20406 # ---------------
20407 # Portably unset VAR.
20408 as_fn_unset ()
20410 { eval $1=; unset $1;}
20412 as_unset=as_fn_unset
20413 # as_fn_append VAR VALUE
20414 # ----------------------
20415 # Append the text in VALUE to the end of the definition contained in VAR. Take
20416 # advantage of any shell optimizations that allow amortized linear growth over
20417 # repeated appends, instead of the typical quadratic growth present in naive
20418 # implementations.
20419 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20420 eval 'as_fn_append ()
20422 eval $1+=\$2
20424 else
20425 as_fn_append ()
20427 eval $1=\$$1\$2
20429 fi # as_fn_append
20431 # as_fn_arith ARG...
20432 # ------------------
20433 # Perform arithmetic evaluation on the ARGs, and store the result in the
20434 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20435 # must be portable across $(()) and expr.
20436 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20437 eval 'as_fn_arith ()
20439 as_val=$(( $* ))
20441 else
20442 as_fn_arith ()
20444 as_val=`expr "$@" || test $? -eq 1`
20446 fi # as_fn_arith
20449 if expr a : '\(a\)' >/dev/null 2>&1 &&
20450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20451 as_expr=expr
20452 else
20453 as_expr=false
20456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20457 as_basename=basename
20458 else
20459 as_basename=false
20462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20463 as_dirname=dirname
20464 else
20465 as_dirname=false
20468 as_me=`$as_basename -- "$0" ||
20469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20470 X"$0" : 'X\(//\)$' \| \
20471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20472 $as_echo X/"$0" |
20473 sed '/^.*\/\([^/][^/]*\)\/*$/{
20474 s//\1/
20477 /^X\/\(\/\/\)$/{
20478 s//\1/
20481 /^X\/\(\/\).*/{
20482 s//\1/
20485 s/.*/./; q'`
20487 # Avoid depending upon Character Ranges.
20488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20491 as_cr_digits='0123456789'
20492 as_cr_alnum=$as_cr_Letters$as_cr_digits
20494 ECHO_C= ECHO_N= ECHO_T=
20495 case `echo -n x` in #(((((
20496 -n*)
20497 case `echo 'xy\c'` in
20498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20499 xy) ECHO_C='\c';;
20500 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20501 ECHO_T=' ';;
20502 esac;;
20504 ECHO_N='-n';;
20505 esac
20507 rm -f conf$$ conf$$.exe conf$$.file
20508 if test -d conf$$.dir; then
20509 rm -f conf$$.dir/conf$$.file
20510 else
20511 rm -f conf$$.dir
20512 mkdir conf$$.dir 2>/dev/null
20514 if (echo >conf$$.file) 2>/dev/null; then
20515 if ln -s conf$$.file conf$$ 2>/dev/null; then
20516 as_ln_s='ln -s'
20517 # ... but there are two gotchas:
20518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20520 # In both cases, we have to default to `cp -pR'.
20521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20522 as_ln_s='cp -pR'
20523 elif ln conf$$.file conf$$ 2>/dev/null; then
20524 as_ln_s=ln
20525 else
20526 as_ln_s='cp -pR'
20528 else
20529 as_ln_s='cp -pR'
20531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20532 rmdir conf$$.dir 2>/dev/null
20535 # as_fn_mkdir_p
20536 # -------------
20537 # Create "$as_dir" as a directory, including parents if necessary.
20538 as_fn_mkdir_p ()
20541 case $as_dir in #(
20542 -*) as_dir=./$as_dir;;
20543 esac
20544 test -d "$as_dir" || eval $as_mkdir_p || {
20545 as_dirs=
20546 while :; do
20547 case $as_dir in #(
20548 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20549 *) as_qdir=$as_dir;;
20550 esac
20551 as_dirs="'$as_qdir' $as_dirs"
20552 as_dir=`$as_dirname -- "$as_dir" ||
20553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20554 X"$as_dir" : 'X\(//\)[^/]' \| \
20555 X"$as_dir" : 'X\(//\)$' \| \
20556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20557 $as_echo X"$as_dir" |
20558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20559 s//\1/
20562 /^X\(\/\/\)[^/].*/{
20563 s//\1/
20566 /^X\(\/\/\)$/{
20567 s//\1/
20570 /^X\(\/\).*/{
20571 s//\1/
20574 s/.*/./; q'`
20575 test -d "$as_dir" && break
20576 done
20577 test -z "$as_dirs" || eval "mkdir $as_dirs"
20578 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20581 } # as_fn_mkdir_p
20582 if mkdir -p . 2>/dev/null; then
20583 as_mkdir_p='mkdir -p "$as_dir"'
20584 else
20585 test -d ./-p && rmdir ./-p
20586 as_mkdir_p=false
20590 # as_fn_executable_p FILE
20591 # -----------------------
20592 # Test if FILE is an executable regular file.
20593 as_fn_executable_p ()
20595 test -f "$1" && test -x "$1"
20596 } # as_fn_executable_p
20597 as_test_x='test -x'
20598 as_executable_p=as_fn_executable_p
20600 # Sed expression to map a string onto a valid CPP name.
20601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20603 # Sed expression to map a string onto a valid variable name.
20604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20607 exec 6>&1
20608 ## ----------------------------------- ##
20609 ## Main body of $CONFIG_STATUS script. ##
20610 ## ----------------------------------- ##
20611 _ASEOF
20612 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20615 # Save the log message, to keep $0 and so on meaningful, and to
20616 # report actual input values of CONFIG_FILES etc. instead of their
20617 # values after options handling.
20618 ac_log="
20619 This file was extended by TeX Live $as_me 2015-03-07, which was
20620 generated by GNU Autoconf 2.69. Invocation command line was
20622 CONFIG_FILES = $CONFIG_FILES
20623 CONFIG_HEADERS = $CONFIG_HEADERS
20624 CONFIG_LINKS = $CONFIG_LINKS
20625 CONFIG_COMMANDS = $CONFIG_COMMANDS
20626 $ $0 $@
20628 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20631 _ACEOF
20633 case $ac_config_files in *"
20634 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20635 esac
20639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20640 # Files that config.status was made for.
20641 config_files="$ac_config_files"
20642 config_commands="$ac_config_commands"
20644 _ACEOF
20646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20647 ac_cs_usage="\
20648 \`$as_me' instantiates files and other configuration actions
20649 from templates according to the current configuration. Unless the files
20650 and actions are specified as TAGs, all are instantiated by default.
20652 Usage: $0 [OPTION]... [TAG]...
20654 -h, --help print this help, then exit
20655 -V, --version print version number and configuration settings, then exit
20656 --config print configuration, then exit
20657 -q, --quiet, --silent
20658 do not print progress messages
20659 -d, --debug don't remove temporary files
20660 --recheck update $as_me by reconfiguring in the same conditions
20661 --file=FILE[:TEMPLATE]
20662 instantiate the configuration file FILE
20664 Configuration files:
20665 $config_files
20667 Configuration commands:
20668 $config_commands
20670 Report bugs to <tex-k@tug.org>."
20672 _ACEOF
20673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20674 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20675 ac_cs_version="\\
20676 TeX Live config.status 2015-03-07
20677 configured by $0, generated by GNU Autoconf 2.69,
20678 with options \\"\$ac_cs_config\\"
20680 Copyright (C) 2012 Free Software Foundation, Inc.
20681 This config.status script is free software; the Free Software Foundation
20682 gives unlimited permission to copy, distribute and modify it."
20684 ac_pwd='$ac_pwd'
20685 srcdir='$srcdir'
20686 INSTALL='$INSTALL'
20687 MKDIR_P='$MKDIR_P'
20688 AWK='$AWK'
20689 test -n "\$AWK" || AWK=awk
20690 _ACEOF
20692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20693 # The default lists apply if the user does not specify any file.
20694 ac_need_defaults=:
20695 while test $# != 0
20697 case $1 in
20698 --*=?*)
20699 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20700 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20701 ac_shift=:
20703 --*=)
20704 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20705 ac_optarg=
20706 ac_shift=:
20709 ac_option=$1
20710 ac_optarg=$2
20711 ac_shift=shift
20713 esac
20715 case $ac_option in
20716 # Handling of the options.
20717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20718 ac_cs_recheck=: ;;
20719 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20720 $as_echo "$ac_cs_version"; exit ;;
20721 --config | --confi | --conf | --con | --co | --c )
20722 $as_echo "$ac_cs_config"; exit ;;
20723 --debug | --debu | --deb | --de | --d | -d )
20724 debug=: ;;
20725 --file | --fil | --fi | --f )
20726 $ac_shift
20727 case $ac_optarg in
20728 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20729 '') as_fn_error $? "missing file argument" ;;
20730 esac
20731 as_fn_append CONFIG_FILES " '$ac_optarg'"
20732 ac_need_defaults=false;;
20733 --he | --h | --help | --hel | -h )
20734 $as_echo "$ac_cs_usage"; exit ;;
20735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20737 ac_cs_silent=: ;;
20739 # This is an error.
20740 -*) as_fn_error $? "unrecognized option: \`$1'
20741 Try \`$0 --help' for more information." ;;
20743 *) as_fn_append ac_config_targets " $1"
20744 ac_need_defaults=false ;;
20746 esac
20747 shift
20748 done
20750 ac_configure_extra_args=
20752 if $ac_cs_silent; then
20753 exec 6>/dev/null
20754 ac_configure_extra_args="$ac_configure_extra_args --silent"
20757 _ACEOF
20758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20759 if \$ac_cs_recheck; then
20760 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20761 shift
20762 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20763 CONFIG_SHELL='$SHELL'
20764 export CONFIG_SHELL
20765 exec "\$@"
20768 _ACEOF
20769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20770 exec 5>>config.log
20772 echo
20773 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20774 ## Running $as_me. ##
20775 _ASBOX
20776 $as_echo "$ac_log"
20777 } >&5
20779 _ACEOF
20780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20782 # INIT-COMMANDS
20784 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20787 # The HP-UX ksh and POSIX shell print the target directory to stdout
20788 # if CDPATH is set.
20789 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20791 sed_quote_subst='$sed_quote_subst'
20792 double_quote_subst='$double_quote_subst'
20793 delay_variable_subst='$delay_variable_subst'
20794 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20795 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20796 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20797 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20798 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20799 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20800 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20801 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20802 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20803 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20804 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20805 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20806 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20807 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20808 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20809 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20810 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20811 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20812 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20813 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20814 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20815 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20816 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20817 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20818 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20819 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20820 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20821 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20822 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20823 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20824 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20825 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20826 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20827 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20828 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20829 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20830 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20831 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20832 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20833 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20834 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20835 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20836 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20837 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20838 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20839 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20840 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20841 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20842 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20843 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20844 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20845 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20846 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20847 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20848 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20849 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20850 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20851 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20852 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20853 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"`'
20854 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20855 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20856 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20857 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20858 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20859 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20860 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20861 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20862 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20863 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20864 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20865 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20866 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20867 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20868 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20869 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20870 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20871 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20872 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20873 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20874 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20875 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20876 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20877 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20878 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20879 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20880 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20881 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20882 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20883 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20884 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20885 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20886 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20887 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20888 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20889 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20890 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20891 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20892 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20893 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20894 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20895 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20896 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20897 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20898 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20899 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20900 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20901 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20902 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20903 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20904 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20905 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20906 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20907 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20908 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20909 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20910 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20911 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20912 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20913 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20914 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20915 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20916 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20917 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20918 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20919 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20920 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20921 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20922 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20923 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20924 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20925 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20926 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20927 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20928 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20929 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20930 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20931 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20932 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20933 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20934 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20935 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20936 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20937 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20938 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20939 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20940 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20941 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20942 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20943 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20944 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20945 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20946 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20947 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20948 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20949 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20950 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20951 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20952 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20953 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20954 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20955 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20956 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20957 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20958 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20959 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20960 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20961 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20962 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20963 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20964 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20965 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20966 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20967 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20968 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20969 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20970 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20971 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20972 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20973 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20974 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20975 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20976 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20977 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20978 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20979 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20980 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20981 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20982 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20983 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20985 LTCC='$LTCC'
20986 LTCFLAGS='$LTCFLAGS'
20987 compiler='$compiler_DEFAULT'
20989 # A function that is used when there is no print builtin or printf.
20990 func_fallback_echo ()
20992 eval 'cat <<_LTECHO_EOF
20994 _LTECHO_EOF'
20997 # Quote evaled strings.
20998 for var in AS \
20999 DLLTOOL \
21000 OBJDUMP \
21001 SHELL \
21002 ECHO \
21003 PATH_SEPARATOR \
21004 SED \
21005 GREP \
21006 EGREP \
21007 FGREP \
21008 LD \
21009 NM \
21010 LN_S \
21011 lt_SP2NL \
21012 lt_NL2SP \
21013 reload_flag \
21014 deplibs_check_method \
21015 file_magic_cmd \
21016 file_magic_glob \
21017 want_nocaseglob \
21018 sharedlib_from_linklib_cmd \
21019 AR \
21020 AR_FLAGS \
21021 archiver_list_spec \
21022 STRIP \
21023 RANLIB \
21024 CC \
21025 CFLAGS \
21026 compiler \
21027 lt_cv_sys_global_symbol_pipe \
21028 lt_cv_sys_global_symbol_to_cdecl \
21029 lt_cv_sys_global_symbol_to_import \
21030 lt_cv_sys_global_symbol_to_c_name_address \
21031 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21032 lt_cv_nm_interface \
21033 nm_file_list_spec \
21034 lt_cv_truncate_bin \
21035 lt_prog_compiler_no_builtin_flag \
21036 lt_prog_compiler_pic \
21037 lt_prog_compiler_wl \
21038 lt_prog_compiler_static \
21039 lt_cv_prog_compiler_c_o \
21040 need_locks \
21041 MANIFEST_TOOL \
21042 DSYMUTIL \
21043 NMEDIT \
21044 LIPO \
21045 OTOOL \
21046 OTOOL64 \
21047 shrext_cmds \
21048 export_dynamic_flag_spec \
21049 whole_archive_flag_spec \
21050 compiler_needs_object \
21051 with_gnu_ld \
21052 allow_undefined_flag \
21053 no_undefined_flag \
21054 hardcode_libdir_flag_spec \
21055 hardcode_libdir_separator \
21056 exclude_expsyms \
21057 include_expsyms \
21058 file_list_spec \
21059 variables_saved_for_relink \
21060 libname_spec \
21061 library_names_spec \
21062 soname_spec \
21063 install_override_mode \
21064 finish_eval \
21065 old_striplib \
21066 striplib \
21067 compiler_lib_search_dirs \
21068 predep_objects \
21069 postdep_objects \
21070 predeps \
21071 postdeps \
21072 compiler_lib_search_path \
21073 LD_CXX \
21074 reload_flag_CXX \
21075 compiler_CXX \
21076 lt_prog_compiler_no_builtin_flag_CXX \
21077 lt_prog_compiler_pic_CXX \
21078 lt_prog_compiler_wl_CXX \
21079 lt_prog_compiler_static_CXX \
21080 lt_cv_prog_compiler_c_o_CXX \
21081 export_dynamic_flag_spec_CXX \
21082 whole_archive_flag_spec_CXX \
21083 compiler_needs_object_CXX \
21084 with_gnu_ld_CXX \
21085 allow_undefined_flag_CXX \
21086 no_undefined_flag_CXX \
21087 hardcode_libdir_flag_spec_CXX \
21088 hardcode_libdir_separator_CXX \
21089 exclude_expsyms_CXX \
21090 include_expsyms_CXX \
21091 file_list_spec_CXX \
21092 compiler_lib_search_dirs_CXX \
21093 predep_objects_CXX \
21094 postdep_objects_CXX \
21095 predeps_CXX \
21096 postdeps_CXX \
21097 compiler_lib_search_path_CXX; do
21098 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21099 *[\\\\\\\`\\"\\\$]*)
21100 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21103 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21105 esac
21106 done
21108 # Double-quote double-evaled strings.
21109 for var in reload_cmds \
21110 old_postinstall_cmds \
21111 old_postuninstall_cmds \
21112 old_archive_cmds \
21113 extract_expsyms_cmds \
21114 old_archive_from_new_cmds \
21115 old_archive_from_expsyms_cmds \
21116 archive_cmds \
21117 archive_expsym_cmds \
21118 module_cmds \
21119 module_expsym_cmds \
21120 export_symbols_cmds \
21121 prelink_cmds \
21122 postlink_cmds \
21123 postinstall_cmds \
21124 postuninstall_cmds \
21125 finish_cmds \
21126 sys_lib_search_path_spec \
21127 configure_time_dlsearch_path \
21128 configure_time_lt_sys_library_path \
21129 reload_cmds_CXX \
21130 old_archive_cmds_CXX \
21131 old_archive_from_new_cmds_CXX \
21132 old_archive_from_expsyms_cmds_CXX \
21133 archive_cmds_CXX \
21134 archive_expsym_cmds_CXX \
21135 module_cmds_CXX \
21136 module_expsym_cmds_CXX \
21137 export_symbols_cmds_CXX \
21138 prelink_cmds_CXX \
21139 postlink_cmds_CXX; do
21140 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21141 *[\\\\\\\`\\"\\\$]*)
21142 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21145 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21147 esac
21148 done
21150 ac_aux_dir='$ac_aux_dir'
21152 # See if we are running on zsh, and set the options that allow our
21153 # commands through without removal of \ escapes INIT.
21154 if test -n "\${ZSH_VERSION+set}"; then
21155 setopt NO_GLOB_SUBST
21159 PACKAGE='$PACKAGE'
21160 VERSION='$VERSION'
21161 RM='$RM'
21162 ofile='$ofile'
21166 enable_libtool_hack='$enable_libtool_hack'
21170 _ACEOF
21172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21174 # Handling of arguments.
21175 for ac_config_target in $ac_config_targets
21177 case $ac_config_target in
21178 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21179 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21180 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21181 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21183 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21184 esac
21185 done
21188 # If the user did not use the arguments to specify the items to instantiate,
21189 # then the envvar interface is used. Set only those that are not.
21190 # We use the long form for the default assignment because of an extremely
21191 # bizarre bug on SunOS 4.1.3.
21192 if $ac_need_defaults; then
21193 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21194 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21197 # Have a temporary directory for convenience. Make it in the build tree
21198 # simply because there is no reason against having it here, and in addition,
21199 # creating and moving files from /tmp can sometimes cause problems.
21200 # Hook for its removal unless debugging.
21201 # Note that there is a small window in which the directory will not be cleaned:
21202 # after its creation but before its name has been assigned to `$tmp'.
21203 $debug ||
21205 tmp= ac_tmp=
21206 trap 'exit_status=$?
21207 : "${ac_tmp:=$tmp}"
21208 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21210 trap 'as_fn_exit 1' 1 2 13 15
21212 # Create a (secure) tmp directory for tmp files.
21215 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21216 test -d "$tmp"
21217 } ||
21219 tmp=./conf$$-$RANDOM
21220 (umask 077 && mkdir "$tmp")
21221 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21222 ac_tmp=$tmp
21224 # Set up the scripts for CONFIG_FILES section.
21225 # No need to generate them if there are no CONFIG_FILES.
21226 # This happens for instance with `./config.status config.h'.
21227 if test -n "$CONFIG_FILES"; then
21230 ac_cr=`echo X | tr X '\015'`
21231 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21232 # But we know of no other shell where ac_cr would be empty at this
21233 # point, so we can use a bashism as a fallback.
21234 if test "x$ac_cr" = x; then
21235 eval ac_cr=\$\'\\r\'
21237 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21238 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21239 ac_cs_awk_cr='\\r'
21240 else
21241 ac_cs_awk_cr=$ac_cr
21244 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21245 _ACEOF
21249 echo "cat >conf$$subs.awk <<_ACEOF" &&
21250 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21251 echo "_ACEOF"
21252 } >conf$$subs.sh ||
21253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21254 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21255 ac_delim='%!_!# '
21256 for ac_last_try in false false false false false :; do
21257 . ./conf$$subs.sh ||
21258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21260 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21261 if test $ac_delim_n = $ac_delim_num; then
21262 break
21263 elif $ac_last_try; then
21264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21265 else
21266 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21268 done
21269 rm -f conf$$subs.sh
21271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21272 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21273 _ACEOF
21274 sed -n '
21276 s/^/S["/; s/!.*/"]=/
21279 s/^[^!]*!//
21280 :repl
21281 t repl
21282 s/'"$ac_delim"'$//
21283 t delim
21286 s/\(.\{148\}\)..*/\1/
21287 t more1
21288 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21291 b repl
21292 :more1
21293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21296 s/.\{148\}//
21297 t nl
21298 :delim
21300 s/\(.\{148\}\)..*/\1/
21301 t more2
21302 s/["\\]/\\&/g; s/^/"/; s/$/"/
21305 :more2
21306 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21309 s/.\{148\}//
21310 t delim
21311 ' <conf$$subs.awk | sed '
21312 /^[^""]/{
21314 s/\n//
21316 ' >>$CONFIG_STATUS || ac_write_fail=1
21317 rm -f conf$$subs.awk
21318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21319 _ACAWK
21320 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21321 for (key in S) S_is_set[key] = 1
21322 FS = "\a"
21326 line = $ 0
21327 nfields = split(line, field, "@")
21328 substed = 0
21329 len = length(field[1])
21330 for (i = 2; i < nfields; i++) {
21331 key = field[i]
21332 keylen = length(key)
21333 if (S_is_set[key]) {
21334 value = S[key]
21335 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21336 len += length(value) + length(field[++i])
21337 substed = 1
21338 } else
21339 len += 1 + keylen
21342 print line
21345 _ACAWK
21346 _ACEOF
21347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21348 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21349 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21350 else
21352 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21353 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21354 _ACEOF
21356 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21357 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21358 # trailing colons and then remove the whole line if VPATH becomes empty
21359 # (actually we leave an empty line to preserve line numbers).
21360 if test "x$srcdir" = x.; then
21361 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21363 s///
21364 s/^/:/
21365 s/[ ]*$/:/
21366 s/:\$(srcdir):/:/g
21367 s/:\${srcdir}:/:/g
21368 s/:@srcdir@:/:/g
21369 s/^:*//
21370 s/:*$//
21372 s/\(=[ ]*\).*/\1/
21374 s/\n//
21375 s/^[^=]*=[ ]*$//
21379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21380 fi # test -n "$CONFIG_FILES"
21383 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21384 shift
21385 for ac_tag
21387 case $ac_tag in
21388 :[FHLC]) ac_mode=$ac_tag; continue;;
21389 esac
21390 case $ac_mode$ac_tag in
21391 :[FHL]*:*);;
21392 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21393 :[FH]-) ac_tag=-:-;;
21394 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21395 esac
21396 ac_save_IFS=$IFS
21397 IFS=:
21398 set x $ac_tag
21399 IFS=$ac_save_IFS
21400 shift
21401 ac_file=$1
21402 shift
21404 case $ac_mode in
21405 :L) ac_source=$1;;
21406 :[FH])
21407 ac_file_inputs=
21408 for ac_f
21410 case $ac_f in
21411 -) ac_f="$ac_tmp/stdin";;
21412 *) # Look for the file first in the build tree, then in the source tree
21413 # (if the path is not absolute). The absolute path cannot be DOS-style,
21414 # because $ac_f cannot contain `:'.
21415 test -f "$ac_f" ||
21416 case $ac_f in
21417 [\\/$]*) false;;
21418 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21419 esac ||
21420 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21421 esac
21422 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21423 as_fn_append ac_file_inputs " '$ac_f'"
21424 done
21426 # Let's still pretend it is `configure' which instantiates (i.e., don't
21427 # use $as_me), people would be surprised to read:
21428 # /* config.h. Generated by config.status. */
21429 configure_input='Generated from '`
21430 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21431 `' by configure.'
21432 if test x"$ac_file" != x-; then
21433 configure_input="$ac_file. $configure_input"
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21435 $as_echo "$as_me: creating $ac_file" >&6;}
21437 # Neutralize special characters interpreted by sed in replacement strings.
21438 case $configure_input in #(
21439 *\&* | *\|* | *\\* )
21440 ac_sed_conf_input=`$as_echo "$configure_input" |
21441 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21442 *) ac_sed_conf_input=$configure_input;;
21443 esac
21445 case $ac_tag in
21446 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21448 esac
21450 esac
21452 ac_dir=`$as_dirname -- "$ac_file" ||
21453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21454 X"$ac_file" : 'X\(//\)[^/]' \| \
21455 X"$ac_file" : 'X\(//\)$' \| \
21456 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21457 $as_echo X"$ac_file" |
21458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21459 s//\1/
21462 /^X\(\/\/\)[^/].*/{
21463 s//\1/
21466 /^X\(\/\/\)$/{
21467 s//\1/
21470 /^X\(\/\).*/{
21471 s//\1/
21474 s/.*/./; q'`
21475 as_dir="$ac_dir"; as_fn_mkdir_p
21476 ac_builddir=.
21478 case "$ac_dir" in
21479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21482 # A ".." for each directory in $ac_dir_suffix.
21483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21484 case $ac_top_builddir_sub in
21485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21487 esac ;;
21488 esac
21489 ac_abs_top_builddir=$ac_pwd
21490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21491 # for backward compatibility:
21492 ac_top_builddir=$ac_top_build_prefix
21494 case $srcdir in
21495 .) # We are building in place.
21496 ac_srcdir=.
21497 ac_top_srcdir=$ac_top_builddir_sub
21498 ac_abs_top_srcdir=$ac_pwd ;;
21499 [\\/]* | ?:[\\/]* ) # Absolute name.
21500 ac_srcdir=$srcdir$ac_dir_suffix;
21501 ac_top_srcdir=$srcdir
21502 ac_abs_top_srcdir=$srcdir ;;
21503 *) # Relative name.
21504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21505 ac_top_srcdir=$ac_top_build_prefix$srcdir
21506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21507 esac
21508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21511 case $ac_mode in
21514 # CONFIG_FILE
21517 case $INSTALL in
21518 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21519 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21520 esac
21521 ac_MKDIR_P=$MKDIR_P
21522 case $MKDIR_P in
21523 [\\/$]* | ?:[\\/]* ) ;;
21524 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21525 esac
21526 _ACEOF
21528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21529 # If the template does not know about datarootdir, expand it.
21530 # FIXME: This hack should be removed a few years after 2.60.
21531 ac_datarootdir_hack=; ac_datarootdir_seen=
21532 ac_sed_dataroot='
21533 /datarootdir/ {
21537 /@datadir@/p
21538 /@docdir@/p
21539 /@infodir@/p
21540 /@localedir@/p
21541 /@mandir@/p'
21542 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21543 *datarootdir*) ac_datarootdir_seen=yes;;
21544 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21546 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21547 _ACEOF
21548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21549 ac_datarootdir_hack='
21550 s&@datadir@&$datadir&g
21551 s&@docdir@&$docdir&g
21552 s&@infodir@&$infodir&g
21553 s&@localedir@&$localedir&g
21554 s&@mandir@&$mandir&g
21555 s&\\\${datarootdir}&$datarootdir&g' ;;
21556 esac
21557 _ACEOF
21559 # Neutralize VPATH when `$srcdir' = `.'.
21560 # Shell code in configure.ac might set extrasub.
21561 # FIXME: do we really want to maintain this feature?
21562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21563 ac_sed_extra="$ac_vpsub
21564 $extrasub
21565 _ACEOF
21566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21569 s|@configure_input@|$ac_sed_conf_input|;t t
21570 s&@top_builddir@&$ac_top_builddir_sub&;t t
21571 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21572 s&@srcdir@&$ac_srcdir&;t t
21573 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21574 s&@top_srcdir@&$ac_top_srcdir&;t t
21575 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21576 s&@builddir@&$ac_builddir&;t t
21577 s&@abs_builddir@&$ac_abs_builddir&;t t
21578 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21579 s&@INSTALL@&$ac_INSTALL&;t t
21580 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21581 $ac_datarootdir_hack
21583 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21584 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21586 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21587 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21588 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21589 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21591 which seems to be undefined. Please make sure it is defined" >&5
21592 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21593 which seems to be undefined. Please make sure it is defined" >&2;}
21595 rm -f "$ac_tmp/stdin"
21596 case $ac_file in
21597 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21598 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21599 esac \
21600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21604 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21605 $as_echo "$as_me: executing $ac_file commands" >&6;}
21607 esac
21610 case $ac_file$ac_mode in
21611 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21612 # Older Autoconf quotes --file arguments for eval, but not when files
21613 # are listed without --file. Let's play safe and only enable the eval
21614 # if we detect the quoting.
21615 case $CONFIG_FILES in
21616 *\'*) eval set x "$CONFIG_FILES" ;;
21617 *) set x $CONFIG_FILES ;;
21618 esac
21619 shift
21620 for mf
21622 # Strip MF so we end up with the name of the file.
21623 mf=`echo "$mf" | sed -e 's/:.*$//'`
21624 # Check whether this is an Automake generated Makefile or not.
21625 # We used to match only the files named 'Makefile.in', but
21626 # some people rename them; so instead we look at the file content.
21627 # Grep'ing the first line is not enough: some people post-process
21628 # each Makefile.in and add a new line on top of each file to say so.
21629 # Grep'ing the whole file is not good either: AIX grep has a line
21630 # limit of 2048, but all sed's we know have understand at least 4000.
21631 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21632 dirpart=`$as_dirname -- "$mf" ||
21633 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21634 X"$mf" : 'X\(//\)[^/]' \| \
21635 X"$mf" : 'X\(//\)$' \| \
21636 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21637 $as_echo X"$mf" |
21638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21639 s//\1/
21642 /^X\(\/\/\)[^/].*/{
21643 s//\1/
21646 /^X\(\/\/\)$/{
21647 s//\1/
21650 /^X\(\/\).*/{
21651 s//\1/
21654 s/.*/./; q'`
21655 else
21656 continue
21658 # Extract the definition of DEPDIR, am__include, and am__quote
21659 # from the Makefile without running 'make'.
21660 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21661 test -z "$DEPDIR" && continue
21662 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21663 test -z "$am__include" && continue
21664 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21665 # Find all dependency output files, they are included files with
21666 # $(DEPDIR) in their names. We invoke sed twice because it is the
21667 # simplest approach to changing $(DEPDIR) to its actual value in the
21668 # expansion.
21669 for file in `sed -n "
21670 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21671 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21672 # Make sure the directory exists.
21673 test -f "$dirpart/$file" && continue
21674 fdir=`$as_dirname -- "$file" ||
21675 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21676 X"$file" : 'X\(//\)[^/]' \| \
21677 X"$file" : 'X\(//\)$' \| \
21678 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21679 $as_echo X"$file" |
21680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21681 s//\1/
21684 /^X\(\/\/\)[^/].*/{
21685 s//\1/
21688 /^X\(\/\/\)$/{
21689 s//\1/
21692 /^X\(\/\).*/{
21693 s//\1/
21696 s/.*/./; q'`
21697 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21698 # echo "creating $dirpart/$file"
21699 echo '# dummy' > "$dirpart/$file"
21700 done
21701 done
21704 "libtool":C)
21706 # See if we are running on zsh, and set the options that allow our
21707 # commands through without removal of \ escapes.
21708 if test -n "${ZSH_VERSION+set}"; then
21709 setopt NO_GLOB_SUBST
21712 cfgfile=${ofile}T
21713 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21714 $RM "$cfgfile"
21716 cat <<_LT_EOF >> "$cfgfile"
21717 #! $SHELL
21718 # Generated automatically by $as_me ($PACKAGE) $VERSION
21719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21720 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21722 # Provide generalized library-building support services.
21723 # Written by Gordon Matzigkeit, 1996
21725 # Copyright (C) 2014 Free Software Foundation, Inc.
21726 # This is free software; see the source for copying conditions. There is NO
21727 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21729 # GNU Libtool is free software; you can redistribute it and/or modify
21730 # it under the terms of the GNU General Public License as published by
21731 # the Free Software Foundation; either version 2 of of the License, or
21732 # (at your option) any later version.
21734 # As a special exception to the GNU General Public License, if you
21735 # distribute this file as part of a program or library that is built
21736 # using GNU Libtool, you may include this file under the same
21737 # distribution terms that you use for the rest of that program.
21739 # GNU Libtool is distributed in the hope that it will be useful, but
21740 # WITHOUT ANY WARRANTY; without even the implied warranty of
21741 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21742 # GNU General Public License for more details.
21744 # You should have received a copy of the GNU General Public License
21745 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21748 # The names of the tagged configurations supported by this script.
21749 available_tags='CXX '
21751 # Configured defaults for sys_lib_dlsearch_path munging.
21752 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21754 # ### BEGIN LIBTOOL CONFIG
21756 # Which release of libtool.m4 was used?
21757 macro_version=$macro_version
21758 macro_revision=$macro_revision
21760 # Assembler program.
21761 AS=$lt_AS
21763 # DLL creation program.
21764 DLLTOOL=$lt_DLLTOOL
21766 # Object dumper program.
21767 OBJDUMP=$lt_OBJDUMP
21769 # Whether or not to build shared libraries.
21770 build_libtool_libs=$enable_shared
21772 # Whether or not to build static libraries.
21773 build_old_libs=$enable_static
21775 # What type of objects to build.
21776 pic_mode=$pic_mode
21778 # Whether or not to optimize for fast installation.
21779 fast_install=$enable_fast_install
21781 # Shared archive member basename,for filename based shared library versioning on AIX.
21782 shared_archive_member_spec=$shared_archive_member_spec
21784 # Shell to use when invoking shell scripts.
21785 SHELL=$lt_SHELL
21787 # An echo program that protects backslashes.
21788 ECHO=$lt_ECHO
21790 # The PATH separator for the build system.
21791 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21793 # The host system.
21794 host_alias=$host_alias
21795 host=$host
21796 host_os=$host_os
21798 # The build system.
21799 build_alias=$build_alias
21800 build=$build
21801 build_os=$build_os
21803 # A sed program that does not truncate output.
21804 SED=$lt_SED
21806 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21807 Xsed="\$SED -e 1s/^X//"
21809 # A grep program that handles long lines.
21810 GREP=$lt_GREP
21812 # An ERE matcher.
21813 EGREP=$lt_EGREP
21815 # A literal string matcher.
21816 FGREP=$lt_FGREP
21818 # A BSD- or MS-compatible name lister.
21819 NM=$lt_NM
21821 # Whether we need soft or hard links.
21822 LN_S=$lt_LN_S
21824 # What is the maximum length of a command?
21825 max_cmd_len=$max_cmd_len
21827 # Object file suffix (normally "o").
21828 objext=$ac_objext
21830 # Executable file suffix (normally "").
21831 exeext=$exeext
21833 # whether the shell understands "unset".
21834 lt_unset=$lt_unset
21836 # turn spaces into newlines.
21837 SP2NL=$lt_lt_SP2NL
21839 # turn newlines into spaces.
21840 NL2SP=$lt_lt_NL2SP
21842 # convert \$build file names to \$host format.
21843 to_host_file_cmd=$lt_cv_to_host_file_cmd
21845 # convert \$build files to toolchain format.
21846 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21848 # Method to check whether dependent libraries are shared objects.
21849 deplibs_check_method=$lt_deplibs_check_method
21851 # Command to use when deplibs_check_method = "file_magic".
21852 file_magic_cmd=$lt_file_magic_cmd
21854 # How to find potential files when deplibs_check_method = "file_magic".
21855 file_magic_glob=$lt_file_magic_glob
21857 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21858 want_nocaseglob=$lt_want_nocaseglob
21860 # Command to associate shared and link libraries.
21861 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21863 # The archiver.
21864 AR=$lt_AR
21866 # Flags to create an archive.
21867 AR_FLAGS=$lt_AR_FLAGS
21869 # How to feed a file listing to the archiver.
21870 archiver_list_spec=$lt_archiver_list_spec
21872 # A symbol stripping program.
21873 STRIP=$lt_STRIP
21875 # Commands used to install an old-style archive.
21876 RANLIB=$lt_RANLIB
21877 old_postinstall_cmds=$lt_old_postinstall_cmds
21878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21880 # Whether to use a lock for old archive extraction.
21881 lock_old_archive_extraction=$lock_old_archive_extraction
21883 # A C compiler.
21884 LTCC=$lt_CC
21886 # LTCC compiler flags.
21887 LTCFLAGS=$lt_CFLAGS
21889 # Take the output of nm and produce a listing of raw symbols and C names.
21890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21892 # Transform the output of nm in a proper C declaration.
21893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21895 # Transform the output of nm into a list of symbols to manually relocate.
21896 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21898 # Transform the output of nm in a C name address pair.
21899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21901 # Transform the output of nm in a C name address pair when lib prefix is needed.
21902 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21904 # The name lister interface.
21905 nm_interface=$lt_lt_cv_nm_interface
21907 # Specify filename containing input files for \$NM.
21908 nm_file_list_spec=$lt_nm_file_list_spec
21910 # The root where to search for dependent libraries,and where our libraries should be installed.
21911 lt_sysroot=$lt_sysroot
21913 # Command to truncate a binary pipe.
21914 lt_truncate_bin=$lt_lt_cv_truncate_bin
21916 # The name of the directory that contains temporary libtool files.
21917 objdir=$objdir
21919 # Used to examine libraries when file_magic_cmd begins with "file".
21920 MAGIC_CMD=$MAGIC_CMD
21922 # Must we lock files when doing compilation?
21923 need_locks=$lt_need_locks
21925 # Manifest tool.
21926 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21928 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21929 DSYMUTIL=$lt_DSYMUTIL
21931 # Tool to change global to local symbols on Mac OS X.
21932 NMEDIT=$lt_NMEDIT
21934 # Tool to manipulate fat objects and archives on Mac OS X.
21935 LIPO=$lt_LIPO
21937 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21938 OTOOL=$lt_OTOOL
21940 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21941 OTOOL64=$lt_OTOOL64
21943 # Old archive suffix (normally "a").
21944 libext=$libext
21946 # Shared library suffix (normally ".so").
21947 shrext_cmds=$lt_shrext_cmds
21949 # The commands to extract the exported symbol list from a shared archive.
21950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21952 # Variables whose values should be saved in libtool wrapper scripts and
21953 # restored at link time.
21954 variables_saved_for_relink=$lt_variables_saved_for_relink
21956 # Do we need the "lib" prefix for modules?
21957 need_lib_prefix=$need_lib_prefix
21959 # Do we need a version for libraries?
21960 need_version=$need_version
21962 # Library versioning type.
21963 version_type=$version_type
21965 # Shared library runtime path variable.
21966 runpath_var=$runpath_var
21968 # Shared library path variable.
21969 shlibpath_var=$shlibpath_var
21971 # Is shlibpath searched before the hard-coded library search path?
21972 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21974 # Format of library name prefix.
21975 libname_spec=$lt_libname_spec
21977 # List of archive names. First name is the real one, the rest are links.
21978 # The last name is the one that the linker finds with -lNAME
21979 library_names_spec=$lt_library_names_spec
21981 # The coded name of the library, if different from the real name.
21982 soname_spec=$lt_soname_spec
21984 # Permission mode override for installation of shared libraries.
21985 install_override_mode=$lt_install_override_mode
21987 # Command to use after installation of a shared archive.
21988 postinstall_cmds=$lt_postinstall_cmds
21990 # Command to use after uninstallation of a shared archive.
21991 postuninstall_cmds=$lt_postuninstall_cmds
21993 # Commands used to finish a libtool library installation in a directory.
21994 finish_cmds=$lt_finish_cmds
21996 # As "finish_cmds", except a single script fragment to be evaled but
21997 # not shown.
21998 finish_eval=$lt_finish_eval
22000 # Whether we should hardcode library paths into libraries.
22001 hardcode_into_libs=$hardcode_into_libs
22003 # Compile-time system search path for libraries.
22004 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22006 # Detected run-time system search path for libraries.
22007 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22009 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22010 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22012 # Whether dlopen is supported.
22013 dlopen_support=$enable_dlopen
22015 # Whether dlopen of programs is supported.
22016 dlopen_self=$enable_dlopen_self
22018 # Whether dlopen of statically linked programs is supported.
22019 dlopen_self_static=$enable_dlopen_self_static
22021 # Commands to strip libraries.
22022 old_striplib=$lt_old_striplib
22023 striplib=$lt_striplib
22026 # The linker used to build libraries.
22027 LD=$lt_LD
22029 # How to create reloadable object files.
22030 reload_flag=$lt_reload_flag
22031 reload_cmds=$lt_reload_cmds
22033 # Commands used to build an old-style archive.
22034 old_archive_cmds=$lt_old_archive_cmds
22036 # A language specific compiler.
22037 CC=$lt_compiler
22039 # Is the compiler the GNU compiler?
22040 with_gcc=$GCC
22042 # Compiler flag to turn off builtin functions.
22043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22045 # Additional compiler flags for building library objects.
22046 pic_flag=$lt_lt_prog_compiler_pic
22048 # How to pass a linker flag through the compiler.
22049 wl=$lt_lt_prog_compiler_wl
22051 # Compiler flag to prevent dynamic linking.
22052 link_static_flag=$lt_lt_prog_compiler_static
22054 # Does compiler simultaneously support -c and -o options?
22055 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22057 # Whether or not to add -lc for building shared libraries.
22058 build_libtool_need_lc=$archive_cmds_need_lc
22060 # Whether or not to disallow shared libs when runtime libs are static.
22061 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22063 # Compiler flag to allow reflexive dlopens.
22064 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22066 # Compiler flag to generate shared objects directly from archives.
22067 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22069 # Whether the compiler copes with passing no objects directly.
22070 compiler_needs_object=$lt_compiler_needs_object
22072 # Create an old-style archive from a shared archive.
22073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22075 # Create a temporary old-style archive to link instead of a shared archive.
22076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22078 # Commands used to build a shared archive.
22079 archive_cmds=$lt_archive_cmds
22080 archive_expsym_cmds=$lt_archive_expsym_cmds
22082 # Commands used to build a loadable module if different from building
22083 # a shared archive.
22084 module_cmds=$lt_module_cmds
22085 module_expsym_cmds=$lt_module_expsym_cmds
22087 # Whether we are building with GNU ld or not.
22088 with_gnu_ld=$lt_with_gnu_ld
22090 # Flag that allows shared libraries with undefined symbols to be built.
22091 allow_undefined_flag=$lt_allow_undefined_flag
22093 # Flag that enforces no undefined symbols.
22094 no_undefined_flag=$lt_no_undefined_flag
22096 # Flag to hardcode \$libdir into a binary during linking.
22097 # This must work even if \$libdir does not exist
22098 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22100 # Whether we need a single "-rpath" flag with a separated argument.
22101 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22103 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22104 # DIR into the resulting binary.
22105 hardcode_direct=$hardcode_direct
22107 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22108 # DIR into the resulting binary and the resulting library dependency is
22109 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22110 # library is relocated.
22111 hardcode_direct_absolute=$hardcode_direct_absolute
22113 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22114 # into the resulting binary.
22115 hardcode_minus_L=$hardcode_minus_L
22117 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22118 # into the resulting binary.
22119 hardcode_shlibpath_var=$hardcode_shlibpath_var
22121 # Set to "yes" if building a shared library automatically hardcodes DIR
22122 # into the library and all subsequent libraries and executables linked
22123 # against it.
22124 hardcode_automatic=$hardcode_automatic
22126 # Set to yes if linker adds runtime paths of dependent libraries
22127 # to runtime path list.
22128 inherit_rpath=$inherit_rpath
22130 # Whether libtool must link a program against all its dependency libraries.
22131 link_all_deplibs=$link_all_deplibs
22133 # Set to "yes" if exported symbols are required.
22134 always_export_symbols=$always_export_symbols
22136 # The commands to list exported symbols.
22137 export_symbols_cmds=$lt_export_symbols_cmds
22139 # Symbols that should not be listed in the preloaded symbols.
22140 exclude_expsyms=$lt_exclude_expsyms
22142 # Symbols that must always be exported.
22143 include_expsyms=$lt_include_expsyms
22145 # Commands necessary for linking programs (against libraries) with templates.
22146 prelink_cmds=$lt_prelink_cmds
22148 # Commands necessary for finishing linking programs.
22149 postlink_cmds=$lt_postlink_cmds
22151 # Specify filename containing input files.
22152 file_list_spec=$lt_file_list_spec
22154 # How to hardcode a shared library path into an executable.
22155 hardcode_action=$hardcode_action
22157 # The directories searched by this compiler when creating a shared library.
22158 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22160 # Dependencies to place before and after the objects being linked to
22161 # create a shared library.
22162 predep_objects=$lt_predep_objects
22163 postdep_objects=$lt_postdep_objects
22164 predeps=$lt_predeps
22165 postdeps=$lt_postdeps
22167 # The library search path used internally by the compiler when linking
22168 # a shared library.
22169 compiler_lib_search_path=$lt_compiler_lib_search_path
22171 # ### END LIBTOOL CONFIG
22173 _LT_EOF
22175 cat <<'_LT_EOF' >> "$cfgfile"
22177 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22179 # func_munge_path_list VARIABLE PATH
22180 # -----------------------------------
22181 # VARIABLE is name of variable containing _space_ separated list of
22182 # directories to be munged by the contents of PATH, which is string
22183 # having a format:
22184 # "DIR[:DIR]:"
22185 # string "DIR[ DIR]" will be prepended to VARIABLE
22186 # ":DIR[:DIR]"
22187 # string "DIR[ DIR]" will be appended to VARIABLE
22188 # "DIRP[:DIRP]::[DIRA:]DIRA"
22189 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22190 # "DIRA[ DIRA]" will be appended to VARIABLE
22191 # "DIR[:DIR]"
22192 # VARIABLE will be replaced by "DIR[ DIR]"
22193 func_munge_path_list ()
22195 case x$2 in
22199 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22201 x:*)
22202 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22204 *::*)
22205 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22206 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22209 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22211 esac
22215 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22216 func_cc_basename ()
22218 for cc_temp in $*""; do
22219 case $cc_temp in
22220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22222 \-*) ;;
22223 *) break;;
22224 esac
22225 done
22226 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22230 # ### END FUNCTIONS SHARED WITH CONFIGURE
22232 _LT_EOF
22234 case $host_os in
22235 aix3*)
22236 cat <<\_LT_EOF >> "$cfgfile"
22237 # AIX sometimes has problems with the GCC collect2 program. For some
22238 # reason, if we set the COLLECT_NAMES environment variable, the problems
22239 # vanish in a puff of smoke.
22240 if test set != "${COLLECT_NAMES+set}"; then
22241 COLLECT_NAMES=
22242 export COLLECT_NAMES
22244 _LT_EOF
22246 esac
22249 ltmain=$ac_aux_dir/ltmain.sh
22252 # We use sed instead of cat because bash on DJGPP gets confused if
22253 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22254 # text mode, it properly converts lines to CR/LF. This bash problem
22255 # is reportedly fixed, but why not run on old versions too?
22256 sed '$q' "$ltmain" >> "$cfgfile" \
22257 || (rm -f "$cfgfile"; exit 1)
22259 mv -f "$cfgfile" "$ofile" ||
22260 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22261 chmod +x "$ofile"
22264 cat <<_LT_EOF >> "$ofile"
22266 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22268 # The linker used to build libraries.
22269 LD=$lt_LD_CXX
22271 # How to create reloadable object files.
22272 reload_flag=$lt_reload_flag_CXX
22273 reload_cmds=$lt_reload_cmds_CXX
22275 # Commands used to build an old-style archive.
22276 old_archive_cmds=$lt_old_archive_cmds_CXX
22278 # A language specific compiler.
22279 CC=$lt_compiler_CXX
22281 # Is the compiler the GNU compiler?
22282 with_gcc=$GCC_CXX
22284 # Compiler flag to turn off builtin functions.
22285 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22287 # Additional compiler flags for building library objects.
22288 pic_flag=$lt_lt_prog_compiler_pic_CXX
22290 # How to pass a linker flag through the compiler.
22291 wl=$lt_lt_prog_compiler_wl_CXX
22293 # Compiler flag to prevent dynamic linking.
22294 link_static_flag=$lt_lt_prog_compiler_static_CXX
22296 # Does compiler simultaneously support -c and -o options?
22297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22299 # Whether or not to add -lc for building shared libraries.
22300 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22302 # Whether or not to disallow shared libs when runtime libs are static.
22303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22305 # Compiler flag to allow reflexive dlopens.
22306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22308 # Compiler flag to generate shared objects directly from archives.
22309 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22311 # Whether the compiler copes with passing no objects directly.
22312 compiler_needs_object=$lt_compiler_needs_object_CXX
22314 # Create an old-style archive from a shared archive.
22315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22317 # Create a temporary old-style archive to link instead of a shared archive.
22318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22320 # Commands used to build a shared archive.
22321 archive_cmds=$lt_archive_cmds_CXX
22322 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22324 # Commands used to build a loadable module if different from building
22325 # a shared archive.
22326 module_cmds=$lt_module_cmds_CXX
22327 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22329 # Whether we are building with GNU ld or not.
22330 with_gnu_ld=$lt_with_gnu_ld_CXX
22332 # Flag that allows shared libraries with undefined symbols to be built.
22333 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22335 # Flag that enforces no undefined symbols.
22336 no_undefined_flag=$lt_no_undefined_flag_CXX
22338 # Flag to hardcode \$libdir into a binary during linking.
22339 # This must work even if \$libdir does not exist
22340 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22342 # Whether we need a single "-rpath" flag with a separated argument.
22343 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22345 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22346 # DIR into the resulting binary.
22347 hardcode_direct=$hardcode_direct_CXX
22349 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22350 # DIR into the resulting binary and the resulting library dependency is
22351 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22352 # library is relocated.
22353 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22355 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22356 # into the resulting binary.
22357 hardcode_minus_L=$hardcode_minus_L_CXX
22359 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22360 # into the resulting binary.
22361 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22363 # Set to "yes" if building a shared library automatically hardcodes DIR
22364 # into the library and all subsequent libraries and executables linked
22365 # against it.
22366 hardcode_automatic=$hardcode_automatic_CXX
22368 # Set to yes if linker adds runtime paths of dependent libraries
22369 # to runtime path list.
22370 inherit_rpath=$inherit_rpath_CXX
22372 # Whether libtool must link a program against all its dependency libraries.
22373 link_all_deplibs=$link_all_deplibs_CXX
22375 # Set to "yes" if exported symbols are required.
22376 always_export_symbols=$always_export_symbols_CXX
22378 # The commands to list exported symbols.
22379 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22381 # Symbols that should not be listed in the preloaded symbols.
22382 exclude_expsyms=$lt_exclude_expsyms_CXX
22384 # Symbols that must always be exported.
22385 include_expsyms=$lt_include_expsyms_CXX
22387 # Commands necessary for linking programs (against libraries) with templates.
22388 prelink_cmds=$lt_prelink_cmds_CXX
22390 # Commands necessary for finishing linking programs.
22391 postlink_cmds=$lt_postlink_cmds_CXX
22393 # Specify filename containing input files.
22394 file_list_spec=$lt_file_list_spec_CXX
22396 # How to hardcode a shared library path into an executable.
22397 hardcode_action=$hardcode_action_CXX
22399 # The directories searched by this compiler when creating a shared library.
22400 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22402 # Dependencies to place before and after the objects being linked to
22403 # create a shared library.
22404 predep_objects=$lt_predep_objects_CXX
22405 postdep_objects=$lt_postdep_objects_CXX
22406 predeps=$lt_predeps_CXX
22407 postdeps=$lt_postdeps_CXX
22409 # The library search path used internally by the compiler when linking
22410 # a shared library.
22411 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22413 # ### END LIBTOOL TAG CONFIG: CXX
22414 _LT_EOF
22416 ## KPSE_LT_HACK: Prevent libtool from linking dependency_libs
22417 if test "x$enable_libtool_hack" = xyes; then
22418 $SED '/# Convert "-framework/i\
22419 ## KPSE_LT_HACK: ignore dependency_libs\
22420 test "X$installed" = Xyes && dependency_libs=\
22421 ' "$ofile" >"$cfgfile"
22422 mv "$cfgfile" "$ofile" ||
22423 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22424 chmod +x "$ofile"
22428 esac
22429 done # for ac_tag
22432 as_fn_exit 0
22433 _ACEOF
22434 ac_clean_files=$ac_clean_files_save
22436 test $ac_write_fail = 0 ||
22437 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22440 # configure is writing to config.log, and then calls config.status.
22441 # config.status does its own redirection, appending to config.log.
22442 # Unfortunately, on DOS this fails, as config.log is still kept open
22443 # by configure, so config.status won't be able to write to it; its
22444 # output is simply discarded. So we exec the FD to /dev/null,
22445 # effectively closing config.log, so it can be properly (re)opened and
22446 # appended to by config.status. When coming back to configure, we
22447 # need to make the FD available again.
22448 if test "$no_create" != yes; then
22449 ac_cs_success=:
22450 ac_config_status_args=
22451 test "$silent" = yes &&
22452 ac_config_status_args="$ac_config_status_args --quiet"
22453 exec 5>/dev/null
22454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22455 exec 5>>config.log
22456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22457 # would make configure fail if this is the last instruction.
22458 $ac_cs_success || as_fn_exit 1
22462 # CONFIG_SUBDIRS section.
22464 if test "$no_recursion" != yes; then
22466 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22467 # so they do not pile up.
22468 ac_sub_configure_args=
22469 ac_prev=
22470 eval "set x $ac_configure_args"
22471 shift
22472 for ac_arg
22474 if test -n "$ac_prev"; then
22475 ac_prev=
22476 continue
22478 case $ac_arg in
22479 -cache-file | --cache-file | --cache-fil | --cache-fi \
22480 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22481 ac_prev=cache_file ;;
22482 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22483 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22484 | --c=*)
22486 --config-cache | -C)
22488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22489 ac_prev=srcdir ;;
22490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22492 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22493 ac_prev=prefix ;;
22494 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22496 --disable-option-checking)
22499 case $ac_arg in
22500 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22501 esac
22502 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
22503 esac
22504 done
22506 # Always prepend --prefix to ensure using the same prefix
22507 # in subdir configurations.
22508 ac_arg="--prefix=$prefix"
22509 case $ac_arg in
22510 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22511 esac
22512 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22514 # Pass --silent
22515 if test "$silent" = yes; then
22516 ac_sub_configure_args="--silent $ac_sub_configure_args"
22519 # Always prepend --disable-option-checking to silence warnings, since
22520 # different subdirs can have different --enable and --with options.
22521 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22523 ac_popdir=`pwd`
22524 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22526 # Do not complain, so a configure script can configure whichever
22527 # parts of a large source tree are present.
22528 test -d "$srcdir/$ac_dir" || continue
22530 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22531 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
22532 $as_echo "$ac_msg" >&6
22533 as_dir="$ac_dir"; as_fn_mkdir_p
22534 ac_builddir=.
22536 case "$ac_dir" in
22537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22540 # A ".." for each directory in $ac_dir_suffix.
22541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22542 case $ac_top_builddir_sub in
22543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22545 esac ;;
22546 esac
22547 ac_abs_top_builddir=$ac_pwd
22548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22549 # for backward compatibility:
22550 ac_top_builddir=$ac_top_build_prefix
22552 case $srcdir in
22553 .) # We are building in place.
22554 ac_srcdir=.
22555 ac_top_srcdir=$ac_top_builddir_sub
22556 ac_abs_top_srcdir=$ac_pwd ;;
22557 [\\/]* | ?:[\\/]* ) # Absolute name.
22558 ac_srcdir=$srcdir$ac_dir_suffix;
22559 ac_top_srcdir=$srcdir
22560 ac_abs_top_srcdir=$srcdir ;;
22561 *) # Relative name.
22562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22563 ac_top_srcdir=$ac_top_build_prefix$srcdir
22564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22565 esac
22566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22569 cd "$ac_dir"
22571 # Check for guested configure; otherwise get Cygnus style configure.
22572 if test -f "$ac_srcdir/configure.gnu"; then
22573 ac_sub_configure=$ac_srcdir/configure.gnu
22574 elif test -f "$ac_srcdir/configure"; then
22575 ac_sub_configure=$ac_srcdir/configure
22576 elif test -f "$ac_srcdir/configure.in"; then
22577 # This should be Cygnus configure.
22578 ac_sub_configure=$ac_aux_dir/configure
22579 else
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
22581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22582 ac_sub_configure=
22585 # The recursion is here.
22586 if test -n "$ac_sub_configure"; then
22587 # Make the cache file name correct relative to the subdirectory.
22588 case $cache_file in
22589 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22590 *) # Relative name.
22591 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22592 esac
22594 { $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
22595 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22596 # The eval makes quoting arguments work.
22597 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22598 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22599 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
22602 cd "$ac_popdir"
22603 done
22605 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22607 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22611 if test -z "$kpse_GNU_make"; then
22612 if test "x$enable_native_texlive_build" = xno; then
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building TeX Live may require GNU make" >&5
22614 $as_echo "$as_me: WARNING: Building TeX Live may require GNU make" >&2;}
22615 else
22616 as_fn_error $? "Building TeX Live requires GNU make" "$LINENO" 5
22620 if test "x$cross_compiling" = xyes; then :
22621 msg_compiling="cross-compiling on $build_alias for $host_alias"
22622 else
22623 msg_compiling="compiling for $kpse_build_alias"
22625 kpse_bld=`pwd`
22626 kpse_src=`cd "$srcdir" && pwd`
22627 msg_compiling="$msg_compiling
22628 in $kpse_bld"
22629 test "x$srcdir" = x. || msg_compiling="$msg_compiling
22630 from sources in $kpse_src"
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22632 ** Configuration summary for $PACKAGE_STRING (2015$with_banner_add):
22634 $msg_compiling" >&5
22635 $as_echo "
22636 ** Configuration summary for $PACKAGE_STRING (2015$with_banner_add):
22638 $msg_compiling" >&6; }
22639 case $kpse_src$kpse_bld in
22640 *' '*) as_fn_error $? "Absolute source and/or build path with embedded spaces" "$LINENO" 5;;
22641 esac
22643 cc_version=`$CC --version 2>/dev/null | sed 1q`
22644 test -n "$cc_version" && cc_version=" ($cc_version)"
22646 cxx_version=`$CXX --version 2>/dev/null | sed 1q`
22647 test -n "$cxx_version" && cxx_version=" ($cxx_version)"
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22650 C compiler (CC): $CC$cc_version
22651 C++ compiler (CXX): $CXX$cxx_version
22652 PATH: $PATH
22654 enable_native_texlive_build: $enable_native_texlive_build
22655 enable_largefile: $enable_largefile
22656 enable_shared: $enable_shared
22657 enable_multiplatform: $enable_multiplatform
22658 enable_cxx_runtime_hack: $enable_cxx_runtime_hack
22659 enable_libtool_hack: $enable_libtool_hack
22660 enable_compiler_warnings: $enable_compiler_warnings
22662 prefix: $prefix
22663 includedir: $includedir
22664 datarootdir: $datarootdir
22665 mandir: $mandir
22666 infodir: $infodir
22667 exec_prefix: $exec_prefix
22668 bindir: $bindir
22669 libdir: $libdir
22671 ** Next run \`make' to configure and build each library and program.
22672 " >&5
22673 $as_echo "
22674 C compiler (CC): $CC$cc_version
22675 C++ compiler (CXX): $CXX$cxx_version
22676 PATH: $PATH
22678 enable_native_texlive_build: $enable_native_texlive_build
22679 enable_largefile: $enable_largefile
22680 enable_shared: $enable_shared
22681 enable_multiplatform: $enable_multiplatform
22682 enable_cxx_runtime_hack: $enable_cxx_runtime_hack
22683 enable_libtool_hack: $enable_libtool_hack
22684 enable_compiler_warnings: $enable_compiler_warnings
22686 prefix: $prefix
22687 includedir: $includedir
22688 datarootdir: $datarootdir
22689 mandir: $mandir
22690 infodir: $infodir
22691 exec_prefix: $exec_prefix
22692 bindir: $bindir
22693 libdir: $libdir
22695 ** Next run \`make' to configure and build each library and program.
22696 " >&6; }