changed property executable
[luatex.git] / source / configure
blobbb2b2c1ef964303081b206ecec9930115fd2142f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for TeX Live 2014-11-24.
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='2014-11-24'
594 PACKAGE_STRING='TeX Live 2014-11-24'
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 with_kpathsea_includes
847 with_kpathsea_libdir
848 enable_mktexmf_default
849 enable_mktexpk_default
850 enable_mktextfm_default
851 enable_mkocp_default
852 enable_mkofm_default
853 enable_mktexfmt_default
854 enable_mktextex_default
855 enable_dependency_tracking
856 enable_silent_rules
857 enable_maintainer_mode
858 enable_compiler_warnings
859 enable_shared
860 enable_static
861 with_pic
862 enable_fast_install
863 with_aix_soname
864 with_gnu_ld
865 with_sysroot
866 enable_libtool_lock
867 enable_largefile
868 with_x
869 with_ln_s
871 ac_precious_vars='build_alias
872 host_alias
873 target_alias
875 CFLAGS
876 LDFLAGS
877 LIBS
878 CPPFLAGS
879 LT_SYS_LIBRARY_PATH
881 XMKMF
883 CXXFLAGS
885 CXXCPP'
886 ac_subdirs_all='texk/kpathsea
887 auxdir/auxsub libs utils texk'
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
937 ac_prev=
938 ac_dashdash=
939 for ac_option
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
948 case $ac_option in
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
952 esac
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
958 ac_dashdash=yes ;;
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
977 --config-cache | -C)
978 cache_file=config.cache ;;
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1294 esac
1295 done
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error $? "missing argument to $ac_option"
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350 test "$silent" = yes && exec 6>/dev/null
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1379 /^X\(\/\/\)$/{
1380 s//\1/
1383 /^X\(\/\).*/{
1384 s//\1/
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1392 else
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1421 # Report the --help message.
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures TeX Live 2014-11-24 to adapt to many kinds of systems.
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1434 Defaults for the options are specified in brackets.
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1458 For better control, use the options below.
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/tex-live]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480 _ACEOF
1482 cat <<\_ACEOF
1484 Program names:
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1489 X features:
1490 --x-includes=DIR X include files are in DIR
1491 --x-libraries=DIR X library files are in DIR
1493 System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 _ACEOF
1499 if test -n "$ac_init_help"; then
1500 case $ac_init_help in
1501 short | recursive ) echo "Configuration of TeX Live 2014-11-24:";;
1502 esac
1503 cat <<\_ACEOF
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --disable-missing terminate if a requested program or feature must be
1510 disabled, e.g., due to missing libraries
1511 --disable-all-pkgs do not build packages unless explicitly enabled
1512 --disable-native-texlive-build
1513 do not build for the TeX Live binary distribution
1514 --enable-multiplatform put executables into bin/PLATFORM and libraries into
1515 lib/PLATFORM
1516 --enable-cxx-runtime-hack link C++ runtime statically
1517 --enable-libtool-hack ignore libtool dependency_libs
1518 --disable-web2c do not build the web2c (TeX & Co.) package
1519 --enable-auto-core cause TeX&MF to dump core, given a certain
1520 filename
1521 --disable-dump-share make fmt/base/mem files architecture-dependent
1522 --disable-ipc disable TeX's --ipc option, i.e., pipe to a
1523 program
1524 --disable-tex do not compile and install TeX
1525 --enable-tex-synctex build TeX with SyncTeX support
1526 --enable-etex compile and install e-TeX
1527 --disable-etex-synctex build e-TeX without SyncTeX support
1528 --disable-ptex do not compile and install pTeX
1529 --disable-ptex-synctex build pTeX without SyncTeX support
1530 --disable-eptex do not compile and install e-pTeX
1531 --disable-eptex-synctex build e-pTeX without SyncTeX support
1532 --disable-uptex do not compile and install upTeX
1533 --disable-uptex-synctex build upTeX without SyncTeX support
1534 --disable-euptex do not compile and install e-upTeX
1535 --disable-euptex-synctex build e-upTeX without SyncTeX support
1536 --disable-aleph do not compile and install Aleph
1537 --disable-pdftex do not compile and install pdfTeX
1538 --disable-pdftex-synctex build pdfTeX without SyncTeX support
1539 --disable-luatex do not compile and install LuaTeX
1540 --disable-luajittex do not compile and install LuaJITTeX
1541 --disable-mp do not compile and install MetaPost
1542 --disable-pmp do not compile and install pMetaPost
1543 --disable-upmp do not compile and install upMetaPost
1544 --disable-xetex do not compile and install XeTeX
1545 --disable-xetex-synctex build XeTeX without SyncTeX support
1546 --disable-mf do not build METAFONT
1547 --disable-mf-nowin do not build a separate non-windows-capable
1548 METAFONT
1549 --enable-epsfwin include EPSF pseudo window support
1550 --enable-hp2627win include HP 2627 window support
1551 --enable-mftalkwin include mftalk (generic server) window support
1552 --enable-nextwin include NeXT window support
1553 --enable-regiswin include Regis window support
1554 --enable-suntoolswin include old Suntools (not X) window support
1555 --enable-tektronixwin include Tektronix window support
1556 --enable-unitermwin include Uniterm window support
1557 --disable-web-progs do not build WEB programs bibtex ... weave
1558 --disable-synctex do not build the SyncTeX tool
1559 --disable-texlive do not build the texlive (TeX Live scripts) package
1560 --disable-linked-scripts do not install the linked scripts
1561 --disable-mktexmf-default do not run mktexmf if MF source missing
1562 --disable-mktexpk-default do not run mktexpk if PK font missing
1563 --disable-mktextfm-default do not run mktextfm if TFM file missing
1564 --disable-mkocp-default do not run mkocp if OCP file missing
1565 --disable-mkofm-default do not run mkofm if OFM file missing
1566 --disable-mktexfmt-default do not run mktexfmt if format file missing
1567 --enable-mktextex-default run mktextex if TeX source missing
1568 --enable-dependency-tracking
1569 do not reject slow dependency extractors
1570 --disable-dependency-tracking
1571 speeds up one-time build
1572 --enable-silent-rules less verbose build output (undo: "make V=1")
1573 --disable-silent-rules verbose build output (undo: "make V=0")
1574 --enable-maintainer-mode
1575 enable make rules and dependencies not useful (and
1576 sometimes confusing) to the casual installer
1577 --enable-compiler-warnings=[no|min|yes|max|all]
1578 Turn on compiler warnings [default: yes if
1579 maintainer-mode, min otherwise]
1580 --enable-shared[=PKGS] build shared libraries [default=yes]
1581 --enable-static[=PKGS] build static libraries [default=yes]
1582 --enable-fast-install[=PKGS]
1583 optimize for fast installation [default=yes]
1584 --disable-libtool-lock avoid locking (might break parallel builds)
1585 --disable-largefile omit support for large files
1587 Optional Packages:
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-banner-add=STR add STR to version string appended to banner lines
1591 --with-editor=CMD invoke CMD from the `e' option [vi +%d '%s'] or
1592 [texworks --position=%d "%s"]
1593 --with-mf-x-toolkit use X toolkit for METAFONT
1594 --with-system-zziplib use installed zziplib headers and library (requires
1595 pkg-config)
1596 --with-system-poppler use installed poppler headers and library (requires
1597 pkg-config)
1598 --with-system-mpfr use installed mpfr headers and library
1599 --with-mpfr-includes=DIR
1600 mpfr headers installed in DIR
1601 --with-mpfr-libdir=DIR mpfr library installed in DIR
1602 --with-system-gmp use installed gmp headers and library
1603 --with-gmp-includes=DIR gmp headers installed in DIR
1604 --with-gmp-libdir=DIR gmp library installed in DIR
1605 --with-system-cairo use installed cairo headers and library (requires
1606 pkg-config)
1607 --with-system-pixman use installed pixman headers and library (requires
1608 pkg-config)
1609 --with-system-libpng use installed libpng headers and library (requires
1610 pkg-config)
1611 --with-system-zlib use installed zlib headers and library
1612 --with-zlib-includes=DIR
1613 zlib headers installed in DIR
1614 --with-zlib-libdir=DIR zlib library installed in DIR
1615 --with-system-kpathsea use installed kpathsea headers and library
1616 --with-kpathsea-includes=DIR
1617 kpathsea headers installed in DIR
1618 --with-kpathsea-libdir=DIR
1619 kpathsea library installed in DIR
1620 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1621 both]
1622 --with-aix-soname=aix|svr4|both
1623 shared library versioning (aka "SONAME") variant to
1624 provide on AIX, [default=aix].
1625 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1626 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1627 compiler's sysroot if not specified).
1628 --with-x use the X Window System
1629 --without-ln-s do build even if `ln -s' does not work
1631 Some influential environment variables:
1632 CC C compiler command
1633 CFLAGS C compiler flags
1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1635 nonstandard directory <lib dir>
1636 LIBS libraries to pass to the linker, e.g. -l<library>
1637 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1638 you have headers in a nonstandard directory <include dir>
1639 LT_SYS_LIBRARY_PATH
1640 User-defined run-time library search path.
1641 CPP C preprocessor
1642 XMKMF Path to xmkmf, Makefile generator for X Window System
1643 CXX C++ compiler command
1644 CXXFLAGS C++ compiler flags
1645 CXXCPP C++ preprocessor
1647 Use these variables to override the choices made by `configure' or to help
1648 it to find libraries and programs with nonstandard names/locations.
1650 Report bugs to <tex-k@tug.org>.
1651 _ACEOF
1652 ac_status=$?
1655 if test "$ac_init_help" = "recursive"; then
1656 # If there are subdirs, report their specific --help.
1657 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658 test -d "$ac_dir" ||
1659 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1660 continue
1661 ac_builddir=.
1663 case "$ac_dir" in
1664 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1667 # A ".." for each directory in $ac_dir_suffix.
1668 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1669 case $ac_top_builddir_sub in
1670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672 esac ;;
1673 esac
1674 ac_abs_top_builddir=$ac_pwd
1675 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1676 # for backward compatibility:
1677 ac_top_builddir=$ac_top_build_prefix
1679 case $srcdir in
1680 .) # We are building in place.
1681 ac_srcdir=.
1682 ac_top_srcdir=$ac_top_builddir_sub
1683 ac_abs_top_srcdir=$ac_pwd ;;
1684 [\\/]* | ?:[\\/]* ) # Absolute name.
1685 ac_srcdir=$srcdir$ac_dir_suffix;
1686 ac_top_srcdir=$srcdir
1687 ac_abs_top_srcdir=$srcdir ;;
1688 *) # Relative name.
1689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1690 ac_top_srcdir=$ac_top_build_prefix$srcdir
1691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1692 esac
1693 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1695 cd "$ac_dir" || { ac_status=$?; continue; }
1696 # Check for guested configure.
1697 if test -f "$ac_srcdir/configure.gnu"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1700 elif test -f "$ac_srcdir/configure"; then
1701 echo &&
1702 $SHELL "$ac_srcdir/configure" --help=recursive
1703 else
1704 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1705 fi || ac_status=$?
1706 cd "$ac_pwd" || { ac_status=$?; break; }
1707 done
1710 test -n "$ac_init_help" && exit $ac_status
1711 if $ac_init_version; then
1712 cat <<\_ACEOF
1713 TeX Live configure 2014-11-24
1714 generated by GNU Autoconf 2.69
1716 Copyright (C) 2012 Free Software Foundation, Inc.
1717 This configure script is free software; the Free Software Foundation
1718 gives unlimited permission to copy, distribute and modify it.
1719 _ACEOF
1720 exit
1723 ## ------------------------ ##
1724 ## Autoconf initialization. ##
1725 ## ------------------------ ##
1727 # ac_fn_c_try_compile LINENO
1728 # --------------------------
1729 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_compile ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext
1734 if { { ac_try="$ac_compile"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_compile") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest.$ac_objext; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=1
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1763 } # ac_fn_c_try_compile
1765 # ac_fn_c_try_link LINENO
1766 # -----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_link ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext conftest$ac_exeext
1772 if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest$ac_exeext && {
1791 test "$cross_compiling" = yes ||
1792 test -x conftest$ac_exeext
1793 }; then :
1794 ac_retval=0
1795 else
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1799 ac_retval=1
1801 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1802 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1803 # interfere with the next link command; also delete a directory that is
1804 # left behind by Apple's compiler. We do this before executing the actions.
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1809 } # ac_fn_c_try_link
1811 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1812 # -------------------------------------------------------
1813 # Tests whether HEADER exists and can be compiled using the include files in
1814 # INCLUDES, setting the cache variable VAR accordingly.
1815 ac_fn_c_check_header_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1826 #include <$2>
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829 eval "$3=yes"
1830 else
1831 eval "$3=no"
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 } # ac_fn_c_check_header_compile
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_cpp ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } > conftest.i && {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 ac_retval=1
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_cpp
1879 # ac_fn_c_try_run LINENO
1880 # ----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882 # that executables *can* be run.
1883 ac_fn_c_try_run ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897 { { case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_try") 2>&5
1904 ac_status=$?
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; }; }; then :
1907 ac_retval=0
1908 else
1909 $as_echo "$as_me: program exited with status $ac_status" >&5
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=$ac_status
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_c_try_run
1921 # ac_fn_c_check_func LINENO FUNC VAR
1922 # ----------------------------------
1923 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1924 ac_fn_c_check_func ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1936 #define $2 innocuous_$2
1938 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $2 (); below.
1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941 <limits.h> exists even on freestanding compilers. */
1943 #ifdef __STDC__
1944 # include <limits.h>
1945 #else
1946 # include <assert.h>
1947 #endif
1949 #undef $2
1951 /* Override any GCC internal prototype to avoid an error.
1952 Use char because int might match the return type of a GCC
1953 builtin and then its argument prototype would still apply. */
1954 #ifdef __cplusplus
1955 extern "C"
1956 #endif
1957 char $2 ();
1958 /* The GNU C library defines this for functions which it implements
1959 to always fail with ENOSYS. Some functions are actually named
1960 something starting with __ and the normal name is an alias. */
1961 #if defined __stub_$2 || defined __stub___$2
1962 choke me
1963 #endif
1966 main ()
1968 return $2 ();
1970 return 0;
1972 _ACEOF
1973 if ac_fn_c_try_link "$LINENO"; then :
1974 eval "$3=yes"
1975 else
1976 eval "$3=no"
1978 rm -f core conftest.err conftest.$ac_objext \
1979 conftest$ac_exeext conftest.$ac_ext
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_func
1988 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1989 # -------------------------------------------------------
1990 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1991 # the include files in INCLUDES and setting the cache variable VAR
1992 # accordingly.
1993 ac_fn_c_check_header_mongrel ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if eval \${$3+:} false; then :
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2002 eval ac_res=\$$3
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 else
2006 # Is the header compilable?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2008 $as_echo_n "checking $2 usability... " >&6; }
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_header_compiler=yes
2016 else
2017 ac_header_compiler=no
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2021 $as_echo "$ac_header_compiler" >&6; }
2023 # Is the header present?
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2025 $as_echo_n "checking $2 presence... " >&6; }
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 #include <$2>
2029 _ACEOF
2030 if ac_fn_c_try_cpp "$LINENO"; then :
2031 ac_header_preproc=yes
2032 else
2033 ac_header_preproc=no
2035 rm -f conftest.err conftest.i conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2037 $as_echo "$ac_header_preproc" >&6; }
2039 # So? What about this header?
2040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2041 yes:no: )
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2043 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 no:yes:* )
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2049 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2051 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2053 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2055 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2058 ( $as_echo "## ---------------------------- ##
2059 ## Report this to tex-k@tug.org ##
2060 ## ---------------------------- ##"
2061 ) | sed "s/^/$as_me: WARNING: /" >&2
2063 esac
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 eval "$3=\$ac_header_compiler"
2071 eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_header_mongrel
2079 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2080 # -------------------------------------------
2081 # Tests whether TYPE exists after having included INCLUDES, setting cache
2082 # variable VAR accordingly.
2083 ac_fn_c_check_type ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090 else
2091 eval "$3=no"
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 if (sizeof ($2))
2099 return 0;
2101 return 0;
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 main ()
2111 if (sizeof (($2)))
2112 return 0;
2114 return 0;
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2119 else
2120 eval "$3=yes"
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 } # ac_fn_c_check_type
2133 # ac_fn_c_find_intX_t LINENO BITS VAR
2134 # -----------------------------------
2135 # Finds a signed integer type with width BITS, setting cache variable VAR
2136 # accordingly.
2137 ac_fn_c_find_intX_t ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2141 $as_echo_n "checking for int$2_t... " >&6; }
2142 if eval \${$3+:} false; then :
2143 $as_echo_n "(cached) " >&6
2144 else
2145 eval "$3=no"
2146 # Order is important - never check a type that is potentially smaller
2147 # than half of the expected target width.
2148 for ac_type in int$2_t 'int' 'long int' \
2149 'long long int' 'short int' 'signed char'; do
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $ac_includes_default
2153 enum { N = $2 / 2 - 1 };
2155 main ()
2157 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2158 test_array [0] = 0;
2159 return test_array [0];
2162 return 0;
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2168 $ac_includes_default
2169 enum { N = $2 / 2 - 1 };
2171 main ()
2173 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2174 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2175 test_array [0] = 0;
2176 return test_array [0];
2179 return 0;
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2184 else
2185 case $ac_type in #(
2186 int$2_t) :
2187 eval "$3=yes" ;; #(
2188 *) :
2189 eval "$3=\$ac_type" ;;
2190 esac
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 if eval test \"x\$"$3"\" = x"no"; then :
2197 else
2198 break
2200 done
2202 eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 } # ac_fn_c_find_intX_t
2209 # ac_fn_c_find_uintX_t LINENO BITS VAR
2210 # ------------------------------------
2211 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2212 # accordingly.
2213 ac_fn_c_find_uintX_t ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2217 $as_echo_n "checking for uint$2_t... " >&6; }
2218 if eval \${$3+:} false; then :
2219 $as_echo_n "(cached) " >&6
2220 else
2221 eval "$3=no"
2222 # Order is important - never check a type that is potentially smaller
2223 # than half of the expected target width.
2224 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2225 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 $ac_includes_default
2230 main ()
2232 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2233 test_array [0] = 0;
2234 return test_array [0];
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 case $ac_type in #(
2242 uint$2_t) :
2243 eval "$3=yes" ;; #(
2244 *) :
2245 eval "$3=\$ac_type" ;;
2246 esac
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 if eval test \"x\$"$3"\" = x"no"; then :
2251 else
2252 break
2254 done
2256 eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 } # ac_fn_c_find_uintX_t
2263 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2264 # ----------------------------------------------------
2265 # Tries to find if the field MEMBER exists in type AGGR, after including
2266 # INCLUDES, setting cache variable VAR accordingly.
2267 ac_fn_c_check_member ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2271 $as_echo_n "checking for $2.$3... " >&6; }
2272 if eval \${$4+:} false; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2279 main ()
2281 static $2 ac_aggr;
2282 if (ac_aggr.$3)
2283 return 0;
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 eval "$4=yes"
2290 else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2295 main ()
2297 static $2 ac_aggr;
2298 if (sizeof ac_aggr.$3)
2299 return 0;
2301 return 0;
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2305 eval "$4=yes"
2306 else
2307 eval "$4=no"
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 eval ac_res=\$$4
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 } # ac_fn_c_check_member
2320 # ac_fn_cxx_try_compile LINENO
2321 # ----------------------------
2322 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2323 ac_fn_cxx_try_compile ()
2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2326 rm -f conftest.$ac_objext
2327 if { { ac_try="$ac_compile"
2328 case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331 esac
2332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333 $as_echo "$ac_try_echo"; } >&5
2334 (eval "$ac_compile") 2>conftest.err
2335 ac_status=$?
2336 if test -s conftest.err; then
2337 grep -v '^ *+' conftest.err >conftest.er1
2338 cat conftest.er1 >&5
2339 mv -f conftest.er1 conftest.err
2341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2342 test $ac_status = 0; } && {
2343 test -z "$ac_cxx_werror_flag" ||
2344 test ! -s conftest.err
2345 } && test -s conftest.$ac_objext; then :
2346 ac_retval=0
2347 else
2348 $as_echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2351 ac_retval=1
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 as_fn_set_status $ac_retval
2356 } # ac_fn_cxx_try_compile
2358 # ac_fn_cxx_try_cpp LINENO
2359 # ------------------------
2360 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2361 ac_fn_cxx_try_cpp ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 if { { ac_try="$ac_cpp conftest.$ac_ext"
2365 case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370 $as_echo "$ac_try_echo"; } >&5
2371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2372 ac_status=$?
2373 if test -s conftest.err; then
2374 grep -v '^ *+' conftest.err >conftest.er1
2375 cat conftest.er1 >&5
2376 mv -f conftest.er1 conftest.err
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } > conftest.i && {
2380 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2381 test ! -s conftest.err
2382 }; then :
2383 ac_retval=0
2384 else
2385 $as_echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 ac_retval=1
2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391 as_fn_set_status $ac_retval
2393 } # ac_fn_cxx_try_cpp
2395 # ac_fn_cxx_try_link LINENO
2396 # -------------------------
2397 # Try to link conftest.$ac_ext, and return whether this succeeded.
2398 ac_fn_cxx_try_link ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 rm -f conftest.$ac_objext conftest$ac_exeext
2402 if { { ac_try="$ac_link"
2403 case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406 esac
2407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2408 $as_echo "$ac_try_echo"; } >&5
2409 (eval "$ac_link") 2>conftest.err
2410 ac_status=$?
2411 if test -s conftest.err; then
2412 grep -v '^ *+' conftest.err >conftest.er1
2413 cat conftest.er1 >&5
2414 mv -f conftest.er1 conftest.err
2416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2417 test $ac_status = 0; } && {
2418 test -z "$ac_cxx_werror_flag" ||
2419 test ! -s conftest.err
2420 } && test -s conftest$ac_exeext && {
2421 test "$cross_compiling" = yes ||
2422 test -x conftest$ac_exeext
2423 }; then :
2424 ac_retval=0
2425 else
2426 $as_echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2429 ac_retval=1
2431 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2432 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2433 # interfere with the next link command; also delete a directory that is
2434 # left behind by Apple's compiler. We do this before executing the actions.
2435 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437 as_fn_set_status $ac_retval
2439 } # ac_fn_cxx_try_link
2440 cat >config.log <<_ACEOF
2441 This file contains any messages produced by compilers while
2442 running configure, to aid debugging if configure makes a mistake.
2444 It was created by TeX Live $as_me 2014-11-24, which was
2445 generated by GNU Autoconf 2.69. Invocation command line was
2447 $ $0 $@
2449 _ACEOF
2450 exec 5>>config.log
2452 cat <<_ASUNAME
2453 ## --------- ##
2454 ## Platform. ##
2455 ## --------- ##
2457 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2458 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2459 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2460 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2461 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2463 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2464 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2466 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2467 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2468 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2469 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2470 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2471 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2472 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2474 _ASUNAME
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 $as_echo "PATH: $as_dir"
2482 done
2483 IFS=$as_save_IFS
2485 } >&5
2487 cat >&5 <<_ACEOF
2490 ## ----------- ##
2491 ## Core tests. ##
2492 ## ----------- ##
2494 _ACEOF
2497 # Keep a trace of the command line.
2498 # Strip out --no-create and --no-recursion so they do not pile up.
2499 # Strip out --silent because we don't want to record it for future runs.
2500 # Also quote any args containing shell meta-characters.
2501 # Make two passes to allow for proper duplicate-argument suppression.
2502 ac_configure_args=
2503 ac_configure_args0=
2504 ac_configure_args1=
2505 ac_must_keep_next=false
2506 for ac_pass in 1 2
2508 for ac_arg
2510 case $ac_arg in
2511 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2513 | -silent | --silent | --silen | --sile | --sil)
2514 continue ;;
2515 *\'*)
2516 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2517 esac
2518 case $ac_pass in
2519 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2521 as_fn_append ac_configure_args1 " '$ac_arg'"
2522 if test $ac_must_keep_next = true; then
2523 ac_must_keep_next=false # Got value, back to normal.
2524 else
2525 case $ac_arg in
2526 *=* | --config-cache | -C | -disable-* | --disable-* \
2527 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2528 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2529 | -with-* | --with-* | -without-* | --without-* | --x)
2530 case "$ac_configure_args0 " in
2531 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2532 esac
2534 -* ) ac_must_keep_next=true ;;
2535 esac
2537 as_fn_append ac_configure_args " '$ac_arg'"
2539 esac
2540 done
2541 done
2542 { ac_configure_args0=; unset ac_configure_args0;}
2543 { ac_configure_args1=; unset ac_configure_args1;}
2545 # When interrupted or exit'd, cleanup temporary files, and complete
2546 # config.log. We remove comments because anyway the quotes in there
2547 # would cause problems or look ugly.
2548 # WARNING: Use '\'' to represent an apostrophe within the trap.
2549 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2550 trap 'exit_status=$?
2551 # Save into config.log some information that might help in debugging.
2553 echo
2555 $as_echo "## ---------------- ##
2556 ## Cache variables. ##
2557 ## ---------------- ##"
2558 echo
2559 # The following way of writing the cache mishandles newlines in values,
2561 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2562 eval ac_val=\$$ac_var
2563 case $ac_val in #(
2564 *${as_nl}*)
2565 case $ac_var in #(
2566 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2567 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2568 esac
2569 case $ac_var in #(
2570 _ | IFS | as_nl) ;; #(
2571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2572 *) { eval $ac_var=; unset $ac_var;} ;;
2573 esac ;;
2574 esac
2575 done
2576 (set) 2>&1 |
2577 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2578 *${as_nl}ac_space=\ *)
2579 sed -n \
2580 "s/'\''/'\''\\\\'\'''\''/g;
2581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2582 ;; #(
2584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2586 esac |
2587 sort
2589 echo
2591 $as_echo "## ----------------- ##
2592 ## Output variables. ##
2593 ## ----------------- ##"
2594 echo
2595 for ac_var in $ac_subst_vars
2597 eval ac_val=\$$ac_var
2598 case $ac_val in
2599 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2600 esac
2601 $as_echo "$ac_var='\''$ac_val'\''"
2602 done | sort
2603 echo
2605 if test -n "$ac_subst_files"; then
2606 $as_echo "## ------------------- ##
2607 ## File substitutions. ##
2608 ## ------------------- ##"
2609 echo
2610 for ac_var in $ac_subst_files
2612 eval ac_val=\$$ac_var
2613 case $ac_val in
2614 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2615 esac
2616 $as_echo "$ac_var='\''$ac_val'\''"
2617 done | sort
2618 echo
2621 if test -s confdefs.h; then
2622 $as_echo "## ----------- ##
2623 ## confdefs.h. ##
2624 ## ----------- ##"
2625 echo
2626 cat confdefs.h
2627 echo
2629 test "$ac_signal" != 0 &&
2630 $as_echo "$as_me: caught signal $ac_signal"
2631 $as_echo "$as_me: exit $exit_status"
2632 } >&5
2633 rm -f core *.core core.conftest.* &&
2634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2635 exit $exit_status
2637 for ac_signal in 1 2 13 15; do
2638 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2639 done
2640 ac_signal=0
2642 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2643 rm -f -r conftest* confdefs.h
2645 $as_echo "/* confdefs.h */" > confdefs.h
2647 # Predefined preprocessor variables.
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_NAME "$PACKAGE_NAME"
2651 _ACEOF
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2655 _ACEOF
2657 cat >>confdefs.h <<_ACEOF
2658 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2659 _ACEOF
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE_STRING "$PACKAGE_STRING"
2663 _ACEOF
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2667 _ACEOF
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_URL "$PACKAGE_URL"
2671 _ACEOF
2674 # Let the site file select an alternate cache file if it wants to.
2675 # Prefer an explicitly selected file to automatically selected ones.
2676 ac_site_file1=NONE
2677 ac_site_file2=NONE
2678 if test -n "$CONFIG_SITE"; then
2679 # We do not want a PATH search for config.site.
2680 case $CONFIG_SITE in #((
2681 -*) ac_site_file1=./$CONFIG_SITE;;
2682 */*) ac_site_file1=$CONFIG_SITE;;
2683 *) ac_site_file1=./$CONFIG_SITE;;
2684 esac
2685 elif test "x$prefix" != xNONE; then
2686 ac_site_file1=$prefix/share/config.site
2687 ac_site_file2=$prefix/etc/config.site
2688 else
2689 ac_site_file1=$ac_default_prefix/share/config.site
2690 ac_site_file2=$ac_default_prefix/etc/config.site
2692 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2694 test "x$ac_site_file" = xNONE && continue
2695 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2697 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2698 sed 's/^/| /' "$ac_site_file" >&5
2699 . "$ac_site_file" \
2700 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2702 as_fn_error $? "failed to load site script $ac_site_file
2703 See \`config.log' for more details" "$LINENO" 5; }
2705 done
2707 if test -r "$cache_file"; then
2708 # Some versions of bash will fail to source /dev/null (special files
2709 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2710 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2712 $as_echo "$as_me: loading cache $cache_file" >&6;}
2713 case $cache_file in
2714 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2715 *) . "./$cache_file";;
2716 esac
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2720 $as_echo "$as_me: creating cache $cache_file" >&6;}
2721 >$cache_file
2724 # Check that the precious variables saved in the cache have kept the same
2725 # value.
2726 ac_cache_corrupted=false
2727 for ac_var in $ac_precious_vars; do
2728 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2729 eval ac_new_set=\$ac_env_${ac_var}_set
2730 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2731 eval ac_new_val=\$ac_env_${ac_var}_value
2732 case $ac_old_set,$ac_new_set in
2733 set,)
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2735 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2736 ac_cache_corrupted=: ;;
2737 ,set)
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2739 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2740 ac_cache_corrupted=: ;;
2741 ,);;
2743 if test "x$ac_old_val" != "x$ac_new_val"; then
2744 # differences in whitespace do not lead to failure.
2745 ac_old_val_w=`echo x $ac_old_val`
2746 ac_new_val_w=`echo x $ac_new_val`
2747 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2749 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2750 ac_cache_corrupted=:
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2753 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2754 eval $ac_var=\$ac_old_val
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2757 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2759 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2760 fi;;
2761 esac
2762 # Pass precious variables to config.status.
2763 if test "$ac_new_set" = set; then
2764 case $ac_new_val in
2765 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2766 *) ac_arg=$ac_var=$ac_new_val ;;
2767 esac
2768 case " $ac_configure_args " in
2769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2770 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2771 esac
2773 done
2774 if $ac_cache_corrupted; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2778 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2779 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2781 ## -------------------- ##
2782 ## Main body of script. ##
2783 ## -------------------- ##
2785 ac_ext=c
2786 ac_cpp='$CPP $CPPFLAGS'
2787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 ac_aux_dir=
2795 for ac_dir in build-aux "$srcdir"/build-aux; do
2796 if test -f "$ac_dir/install-sh"; then
2797 ac_aux_dir=$ac_dir
2798 ac_install_sh="$ac_aux_dir/install-sh -c"
2799 break
2800 elif test -f "$ac_dir/install.sh"; then
2801 ac_aux_dir=$ac_dir
2802 ac_install_sh="$ac_aux_dir/install.sh -c"
2803 break
2804 elif test -f "$ac_dir/shtool"; then
2805 ac_aux_dir=$ac_dir
2806 ac_install_sh="$ac_aux_dir/shtool install -c"
2807 break
2809 done
2810 if test -z "$ac_aux_dir"; then
2811 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2814 # These three variables are undocumented and unsupported,
2815 # and are intended to be withdrawn in a future Autoconf release.
2816 # They can cause serious problems if a builder's source tree is in a directory
2817 # whose full name contains unusual characters.
2818 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2819 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2820 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2825 if test "x$srcdir" = x. && test "x$enable_build_in_source_tree" != xyes; then
2826 rm -rf config.log
2827 as_fn_error $? "Configuring and building TeX Live in the source tree
2828 is strongly discouraged. If you really want to do that, you must
2829 specify the configure option \`--enable-build-in-source-tree', but
2830 then do not ask for help -- you have been warned." "$LINENO" 5
2833 # Make sure we can run config.sub.
2834 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2835 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2838 $as_echo_n "checking build system type... " >&6; }
2839 if ${ac_cv_build+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 ac_build_alias=$build_alias
2843 test "x$ac_build_alias" = x &&
2844 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2845 test "x$ac_build_alias" = x &&
2846 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2847 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2848 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2852 $as_echo "$ac_cv_build" >&6; }
2853 case $ac_cv_build in
2854 *-*-*) ;;
2855 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2856 esac
2857 build=$ac_cv_build
2858 ac_save_IFS=$IFS; IFS='-'
2859 set x $ac_cv_build
2860 shift
2861 build_cpu=$1
2862 build_vendor=$2
2863 shift; shift
2864 # Remember, the first character of IFS is used to create $*,
2865 # except with old shells:
2866 build_os=$*
2867 IFS=$ac_save_IFS
2868 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2872 $as_echo_n "checking host system type... " >&6; }
2873 if ${ac_cv_host+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test "x$host_alias" = x; then
2877 ac_cv_host=$ac_cv_build
2878 else
2879 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2880 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2885 $as_echo "$ac_cv_host" >&6; }
2886 case $ac_cv_host in
2887 *-*-*) ;;
2888 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2889 esac
2890 host=$ac_cv_host
2891 ac_save_IFS=$IFS; IFS='-'
2892 set x $ac_cv_host
2893 shift
2894 host_cpu=$1
2895 host_vendor=$2
2896 shift; shift
2897 # Remember, the first character of IFS is used to create $*,
2898 # except with old shells:
2899 host_os=$*
2900 IFS=$ac_save_IFS
2901 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2904 # Check whether --enable-missing was given.
2905 if test "${enable_missing+set}" = set; then :
2906 enableval=$enable_missing;
2909 # Expand $ac_aux_dir to an absolute path.
2910 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2912 ac_ext=c
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917 if test -n "$ac_tool_prefix"; then
2918 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2919 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_CC+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2939 done
2940 done
2941 IFS=$as_save_IFS
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2956 if test -z "$ac_cv_prog_CC"; then
2957 ac_ct_CC=$CC
2958 # Extract the first word of "gcc", so it can be a program name with args.
2959 set dummy gcc; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$ac_ct_CC"; then
2966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_ac_ct_CC="gcc"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2979 done
2980 done
2981 IFS=$as_save_IFS
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988 $as_echo "$ac_ct_CC" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2994 if test "x$ac_ct_CC" = x; then
2995 CC=""
2996 else
2997 case $cross_compiling:$ac_tool_warned in
2998 yes:)
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3002 esac
3003 CC=$ac_ct_CC
3005 else
3006 CC="$ac_cv_prog_CC"
3009 if test -z "$CC"; then
3010 if test -n "$ac_tool_prefix"; then
3011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3012 set dummy ${ac_tool_prefix}cc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_CC+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_CC="${ac_tool_prefix}cc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3032 done
3033 done
3034 IFS=$as_save_IFS
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 $as_echo "$CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3050 if test -z "$CC"; then
3051 # Extract the first word of "cc", so it can be a program name with args.
3052 set dummy cc; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_CC+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 ac_prog_rejected=no
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3070 ac_prog_rejected=yes
3071 continue
3073 ac_cv_prog_CC="cc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3081 if test $ac_prog_rejected = yes; then
3082 # We found a bogon in the path, so make sure we never use it.
3083 set dummy $ac_cv_prog_CC
3084 shift
3085 if test $# != 0; then
3086 # We chose a different compiler from the bogus one.
3087 # However, it has the same basename, so the bogon will be chosen
3088 # first if we set CC to just the basename; use the full file name.
3089 shift
3090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3095 CC=$ac_cv_prog_CC
3096 if test -n "$CC"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098 $as_echo "$CC" >&6; }
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3106 if test -z "$CC"; then
3107 if test -n "$ac_tool_prefix"; then
3108 for ac_prog in cl.exe
3110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3131 done
3132 done
3133 IFS=$as_save_IFS
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3147 test -n "$CC" && break
3148 done
3150 if test -z "$CC"; then
3151 ac_ct_CC=$CC
3152 for ac_prog in cl.exe
3154 # Extract the first word of "$ac_prog", so it can be a program name with args.
3155 set dummy $ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$ac_ct_CC"; then
3162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_CC="$ac_prog"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3175 done
3176 done
3177 IFS=$as_save_IFS
3181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182 if test -n "$ac_ct_CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3184 $as_echo "$ac_ct_CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3191 test -n "$ac_ct_CC" && break
3192 done
3194 if test "x$ac_ct_CC" = x; then
3195 CC=""
3196 else
3197 case $cross_compiling:$ac_tool_warned in
3198 yes:)
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201 ac_tool_warned=yes ;;
3202 esac
3203 CC=$ac_ct_CC
3210 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 as_fn_error $? "no acceptable C compiler found in \$PATH
3213 See \`config.log' for more details" "$LINENO" 5; }
3215 # Provide some information about the compiler.
3216 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3217 set X $ac_compile
3218 ac_compiler=$2
3219 for ac_option in --version -v -V -qversion; do
3220 { { ac_try="$ac_compiler $ac_option >&5"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3228 ac_status=$?
3229 if test -s conftest.err; then
3230 sed '10a\
3231 ... rest of stderr output deleted ...
3232 10q' conftest.err >conftest.er1
3233 cat conftest.er1 >&5
3235 rm -f conftest.er1 conftest.err
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }
3238 done
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3244 main ()
3248 return 0;
3250 _ACEOF
3251 ac_clean_files_save=$ac_clean_files
3252 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3253 # Try to create an executable without -o first, disregard a.out.
3254 # It will help us diagnose broken compilers, and finding out an intuition
3255 # of exeext.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3257 $as_echo_n "checking whether the C compiler works... " >&6; }
3258 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3260 # The possible output files:
3261 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3263 ac_rmfiles=
3264 for ac_file in $ac_files
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3268 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3269 esac
3270 done
3271 rm -f $ac_rmfiles
3273 if { { ac_try="$ac_link_default"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_link_default") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; then :
3284 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3285 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3286 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3287 # so that the user can short-circuit this test for compilers unknown to
3288 # Autoconf.
3289 for ac_file in $ac_files ''
3291 test -f "$ac_file" || continue
3292 case $ac_file in
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3295 [ab].out )
3296 # We found the default executable, but exeext='' is most
3297 # certainly right.
3298 break;;
3299 *.* )
3300 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3301 then :; else
3302 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304 # We set ac_cv_exeext here because the later test for it is not
3305 # safe: cross compilers may not add the suffix if given an `-o'
3306 # argument, so we may need to know it at that point already.
3307 # Even if this section looks crufty: it has the advantage of
3308 # actually working.
3309 break;;
3311 break;;
3312 esac
3313 done
3314 test "$ac_cv_exeext" = no && ac_cv_exeext=
3316 else
3317 ac_file=''
3319 if test -z "$ac_file"; then :
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error 77 "C compiler cannot create executables
3328 See \`config.log' for more details" "$LINENO" 5; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3334 $as_echo_n "checking for C compiler default output file name... " >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3336 $as_echo "$ac_file" >&6; }
3337 ac_exeext=$ac_cv_exeext
3339 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3340 ac_clean_files=$ac_clean_files_save
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3342 $as_echo_n "checking for suffix of executables... " >&6; }
3343 if { { ac_try="$ac_link"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_link") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; then :
3354 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3355 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3356 # work properly (i.e., refer to `conftest.exe'), while it won't with
3357 # `rm'.
3358 for ac_file in conftest.exe conftest conftest.*; do
3359 test -f "$ac_file" || continue
3360 case $ac_file in
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3362 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363 break;;
3364 * ) break;;
3365 esac
3366 done
3367 else
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3371 See \`config.log' for more details" "$LINENO" 5; }
3373 rm -f conftest conftest$ac_cv_exeext
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3375 $as_echo "$ac_cv_exeext" >&6; }
3377 rm -f conftest.$ac_ext
3378 EXEEXT=$ac_cv_exeext
3379 ac_exeext=$EXEEXT
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382 #include <stdio.h>
3384 main ()
3386 FILE *f = fopen ("conftest.out", "w");
3387 return ferror (f) || fclose (f) != 0;
3390 return 0;
3392 _ACEOF
3393 ac_clean_files="$ac_clean_files conftest.out"
3394 # Check that the compiler produces executables we can run. If not, either
3395 # the compiler is broken, or we cross compile.
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3397 $as_echo_n "checking whether we are cross compiling... " >&6; }
3398 if test "$cross_compiling" != yes; then
3399 { { ac_try="$ac_link"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_link") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }
3410 if { ac_try='./conftest$ac_cv_exeext'
3411 { { case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_try") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; }; then
3421 cross_compiling=no
3422 else
3423 if test "$cross_compiling" = maybe; then
3424 cross_compiling=yes
3425 else
3426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428 as_fn_error $? "cannot run C compiled programs.
3429 If you meant to cross compile, use \`--host'.
3430 See \`config.log' for more details" "$LINENO" 5; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3435 $as_echo "$cross_compiling" >&6; }
3437 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3438 ac_clean_files=$ac_clean_files_save
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3440 $as_echo_n "checking for suffix of object files... " >&6; }
3441 if ${ac_cv_objext+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3448 main ()
3452 return 0;
3454 _ACEOF
3455 rm -f conftest.o conftest.obj
3456 if { { ac_try="$ac_compile"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compile") 2>&5
3464 ac_status=$?
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; then :
3467 for ac_file in conftest.o conftest.obj conftest.*; do
3468 test -f "$ac_file" || continue;
3469 case $ac_file in
3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3471 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3472 break;;
3473 esac
3474 done
3475 else
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "cannot compute suffix of object files: cannot compile
3482 See \`config.log' for more details" "$LINENO" 5; }
3484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3487 $as_echo "$ac_cv_objext" >&6; }
3488 OBJEXT=$ac_cv_objext
3489 ac_objext=$OBJEXT
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3491 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3492 if ${ac_cv_c_compiler_gnu+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3499 main ()
3501 #ifndef __GNUC__
3502 choke me
3503 #endif
3506 return 0;
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_compiler_gnu=yes
3511 else
3512 ac_compiler_gnu=no
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3519 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3520 if test $ac_compiler_gnu = yes; then
3521 GCC=yes
3522 else
3523 GCC=
3525 ac_test_CFLAGS=${CFLAGS+set}
3526 ac_save_CFLAGS=$CFLAGS
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3528 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3529 if ${ac_cv_prog_cc_g+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 ac_save_c_werror_flag=$ac_c_werror_flag
3533 ac_c_werror_flag=yes
3534 ac_cv_prog_cc_g=no
3535 CFLAGS="-g"
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3540 main ()
3544 return 0;
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_cv_prog_cc_g=yes
3549 else
3550 CFLAGS=""
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3555 main ()
3559 return 0;
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3564 else
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3566 CFLAGS="-g"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3571 main ()
3575 return 0;
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_prog_cc_g=yes
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_c_werror_flag=$ac_save_c_werror_flag
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3589 $as_echo "$ac_cv_prog_cc_g" >&6; }
3590 if test "$ac_test_CFLAGS" = set; then
3591 CFLAGS=$ac_save_CFLAGS
3592 elif test $ac_cv_prog_cc_g = yes; then
3593 if test "$GCC" = yes; then
3594 CFLAGS="-g -O2"
3595 else
3596 CFLAGS="-g"
3598 else
3599 if test "$GCC" = yes; then
3600 CFLAGS="-O2"
3601 else
3602 CFLAGS=
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3606 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3607 if ${ac_cv_prog_cc_c89+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 ac_cv_prog_cc_c89=no
3611 ac_save_CC=$CC
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614 #include <stdarg.h>
3615 #include <stdio.h>
3616 struct stat;
3617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3618 struct buf { int x; };
3619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3620 static char *e (p, i)
3621 char **p;
3622 int i;
3624 return p[i];
3626 static char *f (char * (*g) (char **, int), char **p, ...)
3628 char *s;
3629 va_list v;
3630 va_start (v,p);
3631 s = g (p, va_arg (v,int));
3632 va_end (v);
3633 return s;
3636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3637 function prototypes and stuff, but not '\xHH' hex character constants.
3638 These don't provoke an error unfortunately, instead are silently treated
3639 as 'x'. The following induces an error, until -std is added to get
3640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3641 array size at least. It's necessary to write '\x00'==0 to get something
3642 that's true only with -std. */
3643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3645 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3646 inside strings and character constants. */
3647 #define FOO(x) 'x'
3648 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3650 int test (int i, double x);
3651 struct s1 {int (*f) (int a);};
3652 struct s2 {int (*f) (double a);};
3653 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3654 int argc;
3655 char **argv;
3657 main ()
3659 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3661 return 0;
3663 _ACEOF
3664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3665 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3667 CC="$ac_save_CC $ac_arg"
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_cv_prog_cc_c89=$ac_arg
3671 rm -f core conftest.err conftest.$ac_objext
3672 test "x$ac_cv_prog_cc_c89" != "xno" && break
3673 done
3674 rm -f conftest.$ac_ext
3675 CC=$ac_save_CC
3678 # AC_CACHE_VAL
3679 case "x$ac_cv_prog_cc_c89" in
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3682 $as_echo "none needed" >&6; } ;;
3683 xno)
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3685 $as_echo "unsupported" >&6; } ;;
3687 CC="$CC $ac_cv_prog_cc_c89"
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3689 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3690 esac
3691 if test "x$ac_cv_prog_cc_c89" != xno; then :
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3707 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3708 if ${am_cv_prog_cc_c_o+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3715 main ()
3719 return 0;
3721 _ACEOF
3722 # Make sure it works both with $CC and with simple cc.
3723 # Following AC_PROG_CC_C_O, we do the test twice because some
3724 # compilers refuse to overwrite an existing .o file with -o,
3725 # though they will create one.
3726 am_cv_prog_cc_c_o=yes
3727 for am_i in 1 2; do
3728 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3729 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } \
3733 && test -f conftest2.$ac_objext; then
3734 : OK
3735 else
3736 am_cv_prog_cc_c_o=no
3737 break
3739 done
3740 rm -f core conftest*
3741 unset am_i
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3744 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3745 if test "$am_cv_prog_cc_c_o" != yes; then
3746 # Losing compiler, so override with the script.
3747 # FIXME: It is wrong to rewrite CC.
3748 # But if we don't then we get into trouble of one sort or another.
3749 # A longer-term fix would be to have automake use am__CC in this case,
3750 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3751 CC="$am_aux_dir/compile $CC"
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 # Check whether --enable-all-pkgs was given.
3765 if test "${enable_all_pkgs+set}" = set; then :
3766 enableval=$enable_all_pkgs;
3768 test "x$enable_all_pkgs" = xno || enable_all_pkgs=yes
3769 # Check whether --enable-native-texlive-build was given.
3770 if test "${enable_native_texlive_build+set}" = set; then :
3771 enableval=$enable_native_texlive_build;
3773 case $enable_native_texlive_build in #(
3774 yes | no) :
3775 : ;; #(
3776 *) :
3777 enable_native_texlive_build=yes
3778 ac_configure_args="$ac_configure_args '--enable-native-texlive-build'" ;;
3779 esac
3780 case $enable_largefile in #(
3781 yes | no) :
3782 : ;; #(
3783 *) :
3784 enable_largefile=yes
3785 ac_configure_args="$ac_configure_args '--enable-largefile'" ;;
3786 esac
3787 case $enable_silent_rules in #(
3788 yes | no) :
3789 : ;; #(
3790 *) :
3791 enable_silent_rules=no
3792 ac_configure_args="$ac_configure_args '--disable-silent-rules'" ;;
3793 esac
3794 case $enable_multiplatform in #(
3795 yes | no) :
3796 : ;; #(
3797 *) :
3798 enable_multiplatform=$enable_native_texlive_build
3799 ac_configure_args="$ac_configure_args '--enable-multiplatform=$enable_native_texlive_build'" ;;
3800 esac
3801 case $enable_cxx_runtime_hack in #(
3802 yes | no) :
3803 : ;; #(
3804 *) :
3805 enable_cxx_runtime_hack=$enable_native_texlive_build
3806 ac_configure_args="$ac_configure_args '--enable-cxx-runtime-hack=$enable_native_texlive_build'" ;;
3807 esac
3808 case $enable_libtool_hack in #(
3809 yes | no) :
3810 : ;; #(
3811 *) :
3812 case $host_os in #(
3813 do-not-match) :
3814 enable_libtool_hack=no ;; #(
3815 *) :
3816 enable_libtool_hack=yes ;;
3817 esac
3818 ac_configure_args="$ac_configure_args '--enable-libtool-hack=$enable_libtool_hack'" ;;
3819 esac
3820 case $enable_shared in #(
3821 no) :
3822 : ;; #(
3823 yes ) :
3824 if test "x$enable_native_texlive_build" = xyes; then :
3825 as_fn_error $? "you can not use a shared Kpathsea library for a native TeX Live build" "$LINENO" 5
3826 fi ;; #(
3827 *) :
3828 enable_shared=no
3829 ac_configure_args="$ac_configure_args '--disable-shared'" ;;
3830 esac
3831 case $enable_texlive_build in #(
3832 yes) :
3833 : ;; #(
3834 no) :
3835 as_fn_error $? "you can not configure the TeX Live tree with \`--disable-texlive-build'" "$LINENO" 5 ;; #(
3836 *) :
3837 enable_texlive_build=yes
3838 ac_configure_args="$ac_configure_args '--enable-texlive-build'" ;;
3839 esac
3840 # Check whether --enable-multiplatform was given.
3841 if test "${enable_multiplatform+set}" = set; then :
3842 enableval=$enable_multiplatform;
3844 if test "x$enable_multiplatform" = xyes; then
3845 if test "x$bindir" = 'x${exec_prefix}/bin'; then
3846 bindir="$bindir/${host_alias-$host}"
3847 ac_configure_args="$ac_configure_args '--bindir=$bindir'"
3849 if test "x$libdir" = 'x${exec_prefix}/lib'; then
3850 libdir="$libdir/${host_alias-$host}"
3851 ac_configure_args="$ac_configure_args '--libdir=$libdir'"
3855 # Check whether --enable-cxx-runtime-hack was given.
3856 if test "${enable_cxx_runtime_hack+set}" = set; then :
3857 enableval=$enable_cxx_runtime_hack;
3860 # Check whether --enable-libtool-hack was given.
3861 if test "${enable_libtool_hack+set}" = set; then :
3862 enableval=$enable_libtool_hack;
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
3869 $as_echo_n "checking for native WIN32 or MINGW32... " >&6; }
3870 if ${kpse_cv_have_win32+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #ifndef WIN32
3876 choke me
3877 #endif
3879 main ()
3883 return 0;
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889 #ifndef __MINGW32__
3890 choke me
3891 #endif
3893 main ()
3897 return 0;
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 kpse_cv_have_win32=mingw32
3902 else
3903 kpse_cv_have_win32=native
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 else
3907 kpse_cv_have_win32=no
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
3912 $as_echo "$kpse_cv_have_win32" >&6; }
3914 case $with_x:$kpse_cv_have_win32 in #(
3915 yes:no | no:*) :
3916 : ;; #(
3917 yes:*) :
3918 as_fn_error $? "you can not use \`--with-x' for WIN32" "$LINENO" 5 ;; #(
3919 *:no) :
3920 with_x=yes
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--with-x'" >&5
3922 $as_echo "$as_me: Assuming \`--with-x'" >&6;}
3923 ac_configure_args="$ac_configure_args '--with-x'" ;; #(
3924 *) :
3925 with_x=no
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: WIN32 -> \`--without-x'" >&5
3927 $as_echo "$as_me: WIN32 -> \`--without-x'" >&6;}
3928 ac_configure_args="$ac_configure_args '--without-x'" ;;
3929 esac
3930 case $enable_luajittex in #(
3931 yes | no) :
3932 : ;; #(
3933 *) :
3934 case $host in #(
3935 alpha* | sparc* | x86_64-*-cygwin | powerpc-*-darwin* ) :
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-luajittex'" >&5
3937 $as_echo "$as_me: $host -> \`--disable-luajittex'" >&6;}
3938 ac_configure_args="$ac_configure_args '--disable-luajittex'" ;; #(
3939 *) :
3941 esac ;;
3942 esac
3944 ## texk/web2c/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/web2c/
3945 ## configure options and TL libraries required for web2c
3946 # Check whether --enable-web2c was given.
3947 if test "${enable_web2c+set}" = set; then :
3948 enableval=$enable_web2c;
3950 case $enable_web2c in #(
3951 yes|no) :
3952 ;; #(
3953 *) :
3955 enable_web2c=$enable_all_pkgs
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-web2c=$enable_web2c'" >&5
3957 $as_echo "$as_me: Assuming \`--enable-web2c=$enable_web2c'" >&6;}
3958 ac_configure_args="$ac_configure_args '--enable-web2c=$enable_web2c'"
3960 esac
3962 test "x$enable_web2c" = xno || {
3963 need_kpathsea=yes
3964 need_zlib=yes
3967 ## texk/web2c/ac/web2c.ac: configure.ac fragment for the TeX Live subdirectory texk/web2c/
3968 ## configure options for TeX and MF
3970 # Check whether --with-banner-add was given.
3971 if test "${with_banner_add+set}" = set; then :
3972 withval=$with_banner_add;
3975 # Check whether --with-editor was given.
3976 if test "${with_editor+set}" = set; then :
3977 withval=$with_editor;
3979 # Check whether --enable-auto-core was given.
3980 if test "${enable_auto_core+set}" = set; then :
3981 enableval=$enable_auto_core;
3983 # Check whether --enable-dump-share was given.
3984 if test "${enable_dump_share+set}" = set; then :
3985 enableval=$enable_dump_share;
3987 ## configure options for TeX
3988 # Check whether --enable-ipc was given.
3989 if test "${enable_ipc+set}" = set; then :
3990 enableval=$enable_ipc;
3992 # Check whether --enable-tex was given.
3993 if test "${enable_tex+set}" = set; then :
3994 enableval=$enable_tex;
3996 case $enable_tex in #(
3997 yes | no) :
3998 ;; #(
3999 *) :
4000 enable_tex=yes ;;
4001 esac
4003 # Check whether --enable-tex-synctex was given.
4004 if test "${enable_tex_synctex+set}" = set; then :
4005 enableval=$enable_tex_synctex;
4007 # Check whether --enable-etex was given.
4008 if test "${enable_etex+set}" = set; then :
4009 enableval=$enable_etex;
4011 case $enable_etex in #(
4012 yes | no) :
4013 ;; #(
4014 *) :
4015 enable_etex=no ;;
4016 esac
4018 # Check whether --enable-etex-synctex was given.
4019 if test "${enable_etex_synctex+set}" = set; then :
4020 enableval=$enable_etex_synctex;
4022 # Check whether --enable-ptex was given.
4023 if test "${enable_ptex+set}" = set; then :
4024 enableval=$enable_ptex;
4026 case $enable_ptex in #(
4027 yes | no) :
4028 ;; #(
4029 *) :
4030 enable_ptex=yes ;;
4031 esac
4033 # Check whether --enable-ptex-synctex was given.
4034 if test "${enable_ptex_synctex+set}" = set; then :
4035 enableval=$enable_ptex_synctex;
4038 test "x$enable_web2c:$enable_ptex" = xyes:yes && {
4039 need_ptexenc=yes
4041 # Check whether --enable-eptex was given.
4042 if test "${enable_eptex+set}" = set; then :
4043 enableval=$enable_eptex;
4045 case $enable_eptex in #(
4046 yes | no) :
4047 ;; #(
4048 *) :
4049 enable_eptex=yes ;;
4050 esac
4052 # Check whether --enable-eptex-synctex was given.
4053 if test "${enable_eptex_synctex+set}" = set; then :
4054 enableval=$enable_eptex_synctex;
4057 test "x$enable_web2c:$enable_eptex" = xyes:yes && {
4058 need_ptexenc=yes
4060 # Check whether --enable-uptex was given.
4061 if test "${enable_uptex+set}" = set; then :
4062 enableval=$enable_uptex;
4064 case $enable_uptex in #(
4065 yes | no) :
4066 ;; #(
4067 *) :
4068 enable_uptex=yes ;;
4069 esac
4071 # Check whether --enable-uptex-synctex was given.
4072 if test "${enable_uptex_synctex+set}" = set; then :
4073 enableval=$enable_uptex_synctex;
4076 test "x$enable_web2c:$enable_uptex" = xyes:yes && {
4077 need_ptexenc=yes
4079 # Check whether --enable-euptex was given.
4080 if test "${enable_euptex+set}" = set; then :
4081 enableval=$enable_euptex;
4083 case $enable_euptex in #(
4084 yes | no) :
4085 ;; #(
4086 *) :
4087 enable_euptex=yes ;;
4088 esac
4090 # Check whether --enable-euptex-synctex was given.
4091 if test "${enable_euptex_synctex+set}" = set; then :
4092 enableval=$enable_euptex_synctex;
4095 test "x$enable_web2c:$enable_euptex" = xyes:yes && {
4096 need_ptexenc=yes
4098 # Check whether --enable-aleph was given.
4099 if test "${enable_aleph+set}" = set; then :
4100 enableval=$enable_aleph;
4102 case $enable_aleph in #(
4103 yes | no) :
4104 ;; #(
4105 *) :
4106 enable_aleph=yes ;;
4107 esac
4108 # Check whether --enable-pdftex was given.
4109 if test "${enable_pdftex+set}" = set; then :
4110 enableval=$enable_pdftex;
4112 case $enable_pdftex in #(
4113 yes | no) :
4114 ;; #(
4115 *) :
4116 enable_pdftex=yes ;;
4117 esac
4119 # Check whether --enable-pdftex-synctex was given.
4120 if test "${enable_pdftex_synctex+set}" = set; then :
4121 enableval=$enable_pdftex_synctex;
4124 test "x$enable_web2c:$enable_pdftex" = xyes:yes && {
4125 need_xpdf=yes
4126 need_libpng=yes
4128 # Check whether --enable-luatex was given.
4129 if test "${enable_luatex+set}" = set; then :
4130 enableval=$enable_luatex;
4132 case $enable_luatex in #(
4133 yes | no) :
4134 ;; #(
4135 *) :
4136 enable_luatex=yes ;;
4137 esac
4139 test "x$enable_web2c:$enable_luatex" = xyes:yes && {
4140 need_poppler=yes
4141 need_mpfr=yes
4142 need_cairo=yes
4143 need_libpng=yes
4144 need_zziplib=yes
4145 need_lua52=yes
4147 # Check whether --enable-luajittex was given.
4148 if test "${enable_luajittex+set}" = set; then :
4149 enableval=$enable_luajittex;
4151 case $enable_luajittex in #(
4152 yes | no) :
4153 ;; #(
4154 *) :
4155 enable_luajittex=yes ;;
4156 esac
4158 test "x$enable_web2c:$enable_luajittex" = xyes:yes && {
4159 need_poppler=yes
4160 need_mpfr=yes
4161 need_cairo=yes
4162 need_libpng=yes
4163 need_zziplib=yes
4164 need_luajit=yes
4166 # Check whether --enable-mp was given.
4167 if test "${enable_mp+set}" = set; then :
4168 enableval=$enable_mp;
4170 case $enable_mp in #(
4171 yes | no) :
4172 ;; #(
4173 *) :
4174 enable_mp=yes ;;
4175 esac
4177 test "x$enable_web2c:$enable_mp" = xyes:yes && {
4178 need_mpfr=yes
4179 need_cairo=yes
4180 need_libpng=yes
4182 # Check whether --enable-pmp was given.
4183 if test "${enable_pmp+set}" = set; then :
4184 enableval=$enable_pmp;
4186 case $enable_pmp in #(
4187 yes | no) :
4188 ;; #(
4189 *) :
4190 enable_pmp=yes ;;
4191 esac
4193 test "x$enable_web2c:$enable_pmp" = xyes:yes && {
4194 need_mpfr=yes
4195 need_cairo=yes
4196 need_libpng=yes
4197 need_ptexenc=yes
4199 # Check whether --enable-upmp was given.
4200 if test "${enable_upmp+set}" = set; then :
4201 enableval=$enable_upmp;
4203 case $enable_upmp in #(
4204 yes | no) :
4205 ;; #(
4206 *) :
4207 enable_upmp=yes ;;
4208 esac
4210 test "x$enable_web2c:$enable_upmp" = xyes:yes && {
4211 need_mpfr=yes
4212 need_cairo=yes
4213 need_libpng=yes
4214 need_ptexenc=yes
4216 # Check whether --enable-xetex was given.
4217 if test "${enable_xetex+set}" = set; then :
4218 enableval=$enable_xetex;
4220 case $enable_xetex in #(
4221 yes | no) :
4222 ;; #(
4223 *) :
4224 enable_xetex=yes ;;
4225 esac
4227 # Check whether --enable-xetex-synctex was given.
4228 if test "${enable_xetex_synctex+set}" = set; then :
4229 enableval=$enable_xetex_synctex;
4232 test "x$enable_web2c:$enable_xetex" = xyes:yes && {
4233 need_poppler=yes
4234 need_libpng=yes
4235 need_freetype2=yes
4236 need_teckit=yes
4237 need_harfbuzz=yes
4239 ## configure options for MF
4240 # Check whether --enable-mf was given.
4241 if test "${enable_mf+set}" = set; then :
4242 enableval=$enable_mf;
4244 # Check whether --enable-mf-nowin was given.
4245 if test "${enable_mf_nowin+set}" = set; then :
4246 enableval=$enable_mf_nowin;
4249 # Check whether --with-mf-x-toolkit was given.
4250 if test "${with_mf_x_toolkit+set}" = set; then :
4251 withval=$with_mf_x_toolkit;
4253 # Check whether --enable-epsfwin was given.
4254 if test "${enable_epsfwin+set}" = set; then :
4255 enableval=$enable_epsfwin;
4257 # Check whether --enable-hp2627win was given.
4258 if test "${enable_hp2627win+set}" = set; then :
4259 enableval=$enable_hp2627win;
4261 # Check whether --enable-mftalkwin was given.
4262 if test "${enable_mftalkwin+set}" = set; then :
4263 enableval=$enable_mftalkwin;
4265 # Check whether --enable-nextwin was given.
4266 if test "${enable_nextwin+set}" = set; then :
4267 enableval=$enable_nextwin;
4269 # Check whether --enable-regiswin was given.
4270 if test "${enable_regiswin+set}" = set; then :
4271 enableval=$enable_regiswin;
4273 # Check whether --enable-suntoolswin was given.
4274 if test "${enable_suntoolswin+set}" = set; then :
4275 enableval=$enable_suntoolswin;
4277 # Check whether --enable-tektronixwin was given.
4278 if test "${enable_tektronixwin+set}" = set; then :
4279 enableval=$enable_tektronixwin;
4281 # Check whether --enable-unitermwin was given.
4282 if test "${enable_unitermwin+set}" = set; then :
4283 enableval=$enable_unitermwin;
4285 ## configure options for WEB programs
4286 # Check whether --enable-web-progs was given.
4287 if test "${enable_web_progs+set}" = set; then :
4288 enableval=$enable_web_progs;
4291 ## configure option for the SyncTeX tool
4292 # Check whether --enable-synctex was given.
4293 if test "${enable_synctex+set}" = set; then :
4294 enableval=$enable_synctex;
4298 ## texk/texlive/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/texlive/
4299 ## configure options and TL libraries required for texlive
4300 # Check whether --enable-texlive was given.
4301 if test "${enable_texlive+set}" = set; then :
4302 enableval=$enable_texlive;
4304 case $enable_texlive in #(
4305 yes|no) :
4306 ;; #(
4307 *) :
4309 enable_texlive=$enable_all_pkgs
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-texlive=$enable_texlive'" >&5
4311 $as_echo "$as_me: Assuming \`--enable-texlive=$enable_texlive'" >&6;}
4312 ac_configure_args="$ac_configure_args '--enable-texlive=$enable_texlive'"
4314 esac
4316 ## texk/texlive/ac/texlive.ac: configure.ac fragment for the TeX Live subdirectory texk/texlive/
4317 ## configure options for texlive
4318 # Check whether --enable-linked-scripts was given.
4319 if test "${enable_linked_scripts+set}" = set; then :
4320 enableval=$enable_linked_scripts;
4324 ## libs/zziplib/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/zziplib/
4325 ## configure options and TL libraries required for zziplib
4327 # Check whether --with-system-zziplib was given.
4328 if test "${with_system_zziplib+set}" = set; then :
4329 withval=$with_system_zziplib;
4331 if test "x$with_system_zziplib" = x; then
4332 if test -f $srcdir/libs/zziplib/configure; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`zziplib' headers and library from TL tree" >&5
4334 $as_echo "$as_me: Assuming \`zziplib' headers and library from TL tree" >&6;}
4335 with_system_zziplib=no
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`zziplib' headers and library" >&5
4338 $as_echo "$as_me: Assuming installed \`zziplib' headers and library" >&6;}
4339 with_system_zziplib=yes
4341 ac_configure_args="$ac_configure_args '--with-system-zziplib=$with_system_zziplib'"
4342 elif test "x$with_system_zziplib" = xyes; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`zziplib' headers and library" >&5
4344 $as_echo "$as_me: Using installed \`zziplib' headers and library" >&6;}
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`zziplib' headers and library from TL tree" >&5
4347 $as_echo "$as_me: Using \`zziplib' headers and library from TL tree" >&6;}
4348 if test "x$with_system_zziplib" != xno; then
4349 with_system_zziplib=no
4350 ac_configure_args="$ac_configure_args '--without-system-zziplib'"
4353 if test "x$with_system_zziplib" = xyes; then
4354 if test "x$with_system_zlib" = x; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`zlib' headers and library" >&5
4356 $as_echo "$as_me: -> installed \`zlib' headers and library" >&6;}
4357 with_system_zlib=yes
4358 ac_configure_args="$ac_configure_args '--with-system-zlib'"
4359 elif test "x$with_system_zlib" != xyes; then
4360 as_fn_error $? "Sorry, \`--with-system-zziplib' requires \`--with-system-zlib'" "$LINENO" 5
4364 test "x$need_zziplib" = xyes && {
4365 need_zlib=yes
4368 ## libs/poppler/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/poppler/
4369 ## configure options and TL libraries required for poppler
4371 # Check whether --with-system-poppler was given.
4372 if test "${with_system_poppler+set}" = set; then :
4373 withval=$with_system_poppler;
4375 if test "x$with_system_poppler" = x; then
4376 if test -f $srcdir/libs/poppler/configure; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`poppler' headers and library from TL tree" >&5
4378 $as_echo "$as_me: Assuming \`poppler' headers and library from TL tree" >&6;}
4379 with_system_poppler=no
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`poppler' headers and library" >&5
4382 $as_echo "$as_me: Assuming installed \`poppler' headers and library" >&6;}
4383 with_system_poppler=yes
4385 ac_configure_args="$ac_configure_args '--with-system-poppler=$with_system_poppler'"
4386 elif test "x$with_system_poppler" = xyes; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`poppler' headers and library" >&5
4388 $as_echo "$as_me: Using installed \`poppler' headers and library" >&6;}
4389 else
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`poppler' headers and library from TL tree" >&5
4391 $as_echo "$as_me: Using \`poppler' headers and library from TL tree" >&6;}
4392 if test "x$with_system_poppler" != xno; then
4393 with_system_poppler=no
4394 ac_configure_args="$ac_configure_args '--without-system-poppler'"
4397 if test "x$with_system_poppler" = xyes; then
4398 if test "x$with_system_zlib" = x; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`zlib' headers and library" >&5
4400 $as_echo "$as_me: -> installed \`zlib' headers and library" >&6;}
4401 with_system_zlib=yes
4402 ac_configure_args="$ac_configure_args '--with-system-zlib'"
4403 elif test "x$with_system_zlib" != xyes; then
4404 as_fn_error $? "Sorry, \`--with-system-poppler' requires \`--with-system-zlib'" "$LINENO" 5
4408 test "x$need_poppler" = xyes && {
4409 need_zlib=yes
4412 ## libs/mpfr/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/mpfr/
4413 ## configure options and TL libraries required for mpfr
4415 # Check whether --with-system-mpfr was given.
4416 if test "${with_system_mpfr+set}" = set; then :
4417 withval=$with_system_mpfr;
4420 # Check whether --with-mpfr-includes was given.
4421 if test "${with_mpfr_includes+set}" = set; then :
4422 withval=$with_mpfr_includes;
4425 # Check whether --with-mpfr-libdir was given.
4426 if test "${with_mpfr_libdir+set}" = set; then :
4427 withval=$with_mpfr_libdir;
4429 if test "x$with_system_mpfr" = x; then
4430 if test -f $srcdir/libs/mpfr/configure; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`mpfr' headers and library from TL tree" >&5
4432 $as_echo "$as_me: Assuming \`mpfr' headers and library from TL tree" >&6;}
4433 with_system_mpfr=no
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`mpfr' headers and library" >&5
4436 $as_echo "$as_me: Assuming installed \`mpfr' headers and library" >&6;}
4437 with_system_mpfr=yes
4439 ac_configure_args="$ac_configure_args '--with-system-mpfr=$with_system_mpfr'"
4440 elif test "x$with_system_mpfr" = xyes; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`mpfr' headers and library" >&5
4442 $as_echo "$as_me: Using installed \`mpfr' headers and library" >&6;}
4443 else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`mpfr' headers and library from TL tree" >&5
4445 $as_echo "$as_me: Using \`mpfr' headers and library from TL tree" >&6;}
4446 if test "x$with_system_mpfr" != xno; then
4447 with_system_mpfr=no
4448 ac_configure_args="$ac_configure_args '--without-system-mpfr'"
4451 if test "x$with_system_mpfr" = xyes; then
4452 if test "x$with_system_gmp" = x; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`gmp' headers and library" >&5
4454 $as_echo "$as_me: -> installed \`gmp' headers and library" >&6;}
4455 with_system_gmp=yes
4456 ac_configure_args="$ac_configure_args '--with-system-gmp'"
4457 elif test "x$with_system_gmp" != xyes; then
4458 as_fn_error $? "Sorry, \`--with-system-mpfr' requires \`--with-system-gmp'" "$LINENO" 5
4462 test "x$need_mpfr" = xyes && {
4463 need_gmp=yes
4466 ## libs/gmp/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/gmp/
4467 ## configure options and TL libraries required for gmp
4469 # Check whether --with-system-gmp was given.
4470 if test "${with_system_gmp+set}" = set; then :
4471 withval=$with_system_gmp;
4474 # Check whether --with-gmp-includes was given.
4475 if test "${with_gmp_includes+set}" = set; then :
4476 withval=$with_gmp_includes;
4479 # Check whether --with-gmp-libdir was given.
4480 if test "${with_gmp_libdir+set}" = set; then :
4481 withval=$with_gmp_libdir;
4483 if test "x$with_system_gmp" = x; then
4484 if test -f $srcdir/libs/gmp/configure; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`gmp' headers and library from TL tree" >&5
4486 $as_echo "$as_me: Assuming \`gmp' headers and library from TL tree" >&6;}
4487 with_system_gmp=no
4488 else
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`gmp' headers and library" >&5
4490 $as_echo "$as_me: Assuming installed \`gmp' headers and library" >&6;}
4491 with_system_gmp=yes
4493 ac_configure_args="$ac_configure_args '--with-system-gmp=$with_system_gmp'"
4494 elif test "x$with_system_gmp" = xyes; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`gmp' headers and library" >&5
4496 $as_echo "$as_me: Using installed \`gmp' headers and library" >&6;}
4497 else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`gmp' headers and library from TL tree" >&5
4499 $as_echo "$as_me: Using \`gmp' headers and library from TL tree" >&6;}
4500 if test "x$with_system_gmp" != xno; then
4501 with_system_gmp=no
4502 ac_configure_args="$ac_configure_args '--without-system-gmp'"
4506 ## libs/cairo/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/cairo/
4507 ## configure options and TL libraries required for cairo
4509 # Check whether --with-system-cairo was given.
4510 if test "${with_system_cairo+set}" = set; then :
4511 withval=$with_system_cairo;
4513 if test "x$with_system_cairo" = x; then
4514 if test -f $srcdir/libs/cairo/configure; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`cairo' headers and library from TL tree" >&5
4516 $as_echo "$as_me: Assuming \`cairo' headers and library from TL tree" >&6;}
4517 with_system_cairo=no
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`cairo' headers and library" >&5
4520 $as_echo "$as_me: Assuming installed \`cairo' headers and library" >&6;}
4521 with_system_cairo=yes
4523 ac_configure_args="$ac_configure_args '--with-system-cairo=$with_system_cairo'"
4524 elif test "x$with_system_cairo" = xyes; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`cairo' headers and library" >&5
4526 $as_echo "$as_me: Using installed \`cairo' headers and library" >&6;}
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`cairo' headers and library from TL tree" >&5
4529 $as_echo "$as_me: Using \`cairo' headers and library from TL tree" >&6;}
4530 if test "x$with_system_cairo" != xno; then
4531 with_system_cairo=no
4532 ac_configure_args="$ac_configure_args '--without-system-cairo'"
4535 if test "x$with_system_cairo" = xyes; then
4536 if test "x$with_system_pixman" = x; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`pixman' headers and library" >&5
4538 $as_echo "$as_me: -> installed \`pixman' headers and library" >&6;}
4539 with_system_pixman=yes
4540 ac_configure_args="$ac_configure_args '--with-system-pixman'"
4541 elif test "x$with_system_pixman" != xyes; then
4542 as_fn_error $? "Sorry, \`--with-system-cairo' requires \`--with-system-pixman'" "$LINENO" 5
4546 test "x$need_cairo" = xyes && {
4547 need_pixman=yes
4550 ## libs/pixman/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/pixman/
4551 ## configure options and TL libraries required for pixman
4553 # Check whether --with-system-pixman was given.
4554 if test "${with_system_pixman+set}" = set; then :
4555 withval=$with_system_pixman;
4557 if test "x$with_system_pixman" = x; then
4558 if test -f $srcdir/libs/pixman/configure; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`pixman' headers and library from TL tree" >&5
4560 $as_echo "$as_me: Assuming \`pixman' headers and library from TL tree" >&6;}
4561 with_system_pixman=no
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`pixman' headers and library" >&5
4564 $as_echo "$as_me: Assuming installed \`pixman' headers and library" >&6;}
4565 with_system_pixman=yes
4567 ac_configure_args="$ac_configure_args '--with-system-pixman=$with_system_pixman'"
4568 elif test "x$with_system_pixman" = xyes; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`pixman' headers and library" >&5
4570 $as_echo "$as_me: Using installed \`pixman' headers and library" >&6;}
4571 else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`pixman' headers and library from TL tree" >&5
4573 $as_echo "$as_me: Using \`pixman' headers and library from TL tree" >&6;}
4574 if test "x$with_system_pixman" != xno; then
4575 with_system_pixman=no
4576 ac_configure_args="$ac_configure_args '--without-system-pixman'"
4580 ## libs/libpng/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/libpng/
4581 ## configure options and TL libraries required for libpng
4583 # Check whether --with-system-libpng was given.
4584 if test "${with_system_libpng+set}" = set; then :
4585 withval=$with_system_libpng;
4587 if test "x$with_system_libpng" = x; then
4588 if test -f $srcdir/libs/libpng/configure; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`libpng' headers and library from TL tree" >&5
4590 $as_echo "$as_me: Assuming \`libpng' headers and library from TL tree" >&6;}
4591 with_system_libpng=no
4592 else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`libpng' headers and library" >&5
4594 $as_echo "$as_me: Assuming installed \`libpng' headers and library" >&6;}
4595 with_system_libpng=yes
4597 ac_configure_args="$ac_configure_args '--with-system-libpng=$with_system_libpng'"
4598 elif test "x$with_system_libpng" = xyes; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`libpng' headers and library" >&5
4600 $as_echo "$as_me: Using installed \`libpng' headers and library" >&6;}
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`libpng' headers and library from TL tree" >&5
4603 $as_echo "$as_me: Using \`libpng' headers and library from TL tree" >&6;}
4604 if test "x$with_system_libpng" != xno; then
4605 with_system_libpng=no
4606 ac_configure_args="$ac_configure_args '--without-system-libpng'"
4609 if test "x$with_system_libpng" = xyes; then
4610 if test "x$with_system_zlib" = x; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`zlib' headers and library" >&5
4612 $as_echo "$as_me: -> installed \`zlib' headers and library" >&6;}
4613 with_system_zlib=yes
4614 ac_configure_args="$ac_configure_args '--with-system-zlib'"
4615 elif test "x$with_system_zlib" != xyes; then
4616 as_fn_error $? "Sorry, \`--with-system-libpng' requires \`--with-system-zlib'" "$LINENO" 5
4620 test "x$need_libpng" = xyes && {
4621 need_zlib=yes
4624 ## libs/luajit/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/luajit/
4625 ## configure options and TL libraries required for luajit
4627 ## libs/lua52/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/lua52/
4628 ## configure options and TL libraries required for lua52
4630 ## libs/zlib/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/zlib/
4631 ## configure options and TL libraries required for zlib
4633 # Check whether --with-system-zlib was given.
4634 if test "${with_system_zlib+set}" = set; then :
4635 withval=$with_system_zlib;
4638 # Check whether --with-zlib-includes was given.
4639 if test "${with_zlib_includes+set}" = set; then :
4640 withval=$with_zlib_includes;
4643 # Check whether --with-zlib-libdir was given.
4644 if test "${with_zlib_libdir+set}" = set; then :
4645 withval=$with_zlib_libdir;
4647 if test "x$with_system_zlib" = x; then
4648 if test -f $srcdir/libs/zlib/configure; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`zlib' headers and library from TL tree" >&5
4650 $as_echo "$as_me: Assuming \`zlib' headers and library from TL tree" >&6;}
4651 with_system_zlib=no
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`zlib' headers and library" >&5
4654 $as_echo "$as_me: Assuming installed \`zlib' headers and library" >&6;}
4655 with_system_zlib=yes
4657 ac_configure_args="$ac_configure_args '--with-system-zlib=$with_system_zlib'"
4658 elif test "x$with_system_zlib" = xyes; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`zlib' headers and library" >&5
4660 $as_echo "$as_me: Using installed \`zlib' headers and library" >&6;}
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`zlib' headers and library from TL tree" >&5
4663 $as_echo "$as_me: Using \`zlib' headers and library from TL tree" >&6;}
4664 if test "x$with_system_zlib" != xno; then
4665 with_system_zlib=no
4666 ac_configure_args="$ac_configure_args '--without-system-zlib'"
4671 ## texk/kpathsea/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/kpathsea/
4672 ## configure options and TL libraries required for kpathsea
4674 # Check whether --with-system-kpathsea was given.
4675 if test "${with_system_kpathsea+set}" = set; then :
4676 withval=$with_system_kpathsea;
4679 # Check whether --with-kpathsea-includes was given.
4680 if test "${with_kpathsea_includes+set}" = set; then :
4681 withval=$with_kpathsea_includes;
4684 # Check whether --with-kpathsea-libdir was given.
4685 if test "${with_kpathsea_libdir+set}" = set; then :
4686 withval=$with_kpathsea_libdir;
4688 if test "x$with_system_kpathsea" = x; then
4689 if test -f $srcdir/texk/kpathsea/configure; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`kpathsea' headers and library from TL tree" >&5
4691 $as_echo "$as_me: Assuming \`kpathsea' headers and library from TL tree" >&6;}
4692 with_system_kpathsea=no
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`kpathsea' headers and library" >&5
4695 $as_echo "$as_me: Assuming installed \`kpathsea' headers and library" >&6;}
4696 with_system_kpathsea=yes
4698 ac_configure_args="$ac_configure_args '--with-system-kpathsea=$with_system_kpathsea'"
4699 elif test "x$with_system_kpathsea" = xyes; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`kpathsea' headers and library" >&5
4701 $as_echo "$as_me: Using installed \`kpathsea' headers and library" >&6;}
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`kpathsea' headers and library from TL tree" >&5
4704 $as_echo "$as_me: Using \`kpathsea' headers and library from TL tree" >&6;}
4705 if test "x$with_system_kpathsea" != xno; then
4706 with_system_kpathsea=no
4707 ac_configure_args="$ac_configure_args '--without-system-kpathsea'"
4711 ## texk/kpathsea/ac/mktex.ac: configure.ac fragment for the TeX Live
4712 ## subdirectory texk/kpathsea.
4713 ## configure defaults for mktexfmt & Co.
4714 # Check whether --enable-mktexmf-default was given.
4715 if test "${enable_mktexmf_default+set}" = set; then :
4716 enableval=$enable_mktexmf_default;
4718 # Check whether --enable-mktexpk-default was given.
4719 if test "${enable_mktexpk_default+set}" = set; then :
4720 enableval=$enable_mktexpk_default;
4722 # Check whether --enable-mktextfm-default was given.
4723 if test "${enable_mktextfm_default+set}" = set; then :
4724 enableval=$enable_mktextfm_default;
4726 # Check whether --enable-mkocp-default was given.
4727 if test "${enable_mkocp_default+set}" = set; then :
4728 enableval=$enable_mkocp_default;
4730 # Check whether --enable-mkofm-default was given.
4731 if test "${enable_mkofm_default+set}" = set; then :
4732 enableval=$enable_mkofm_default;
4734 # Check whether --enable-mktexfmt-default was given.
4735 if test "${enable_mktexfmt_default+set}" = set; then :
4736 enableval=$enable_mktexfmt_default;
4738 # Check whether --enable-mktextex-default was given.
4739 if test "${enable_mktextex_default+set}" = set; then :
4740 enableval=$enable_mktextex_default;
4746 am__api_version='1.15'
4748 # Find a good install program. We prefer a C program (faster),
4749 # so one script is as good as another. But avoid the broken or
4750 # incompatible versions:
4751 # SysV /etc/install, /usr/sbin/install
4752 # SunOS /usr/etc/install
4753 # IRIX /sbin/install
4754 # AIX /bin/install
4755 # AmigaOS /C/install, which installs bootblocks on floppy discs
4756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4759 # OS/2's system install, which has a completely different semantic
4760 # ./install, which can be erroneously created by make from ./install.sh.
4761 # Reject install programs that cannot install multiple files.
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4763 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4764 if test -z "$INSTALL"; then
4765 if ${ac_cv_path_install+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 # Account for people who put trailing slashes in PATH elements.
4774 case $as_dir/ in #((
4775 ./ | .// | /[cC]/* | \
4776 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4777 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4778 /usr/ucb/* ) ;;
4780 # OSF1 and SCO ODT 3.0 have their own names for install.
4781 # Don't use installbsd from OSF since it installs stuff as root
4782 # by default.
4783 for ac_prog in ginstall scoinst install; do
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4786 if test $ac_prog = install &&
4787 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4788 # AIX install. It has an incompatible calling convention.
4790 elif test $ac_prog = install &&
4791 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4792 # program-specific install script used by HP pwplus--don't use.
4794 else
4795 rm -rf conftest.one conftest.two conftest.dir
4796 echo one > conftest.one
4797 echo two > conftest.two
4798 mkdir conftest.dir
4799 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4800 test -s conftest.one && test -s conftest.two &&
4801 test -s conftest.dir/conftest.one &&
4802 test -s conftest.dir/conftest.two
4803 then
4804 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4805 break 3
4809 done
4810 done
4812 esac
4814 done
4815 IFS=$as_save_IFS
4817 rm -rf conftest.one conftest.two conftest.dir
4820 if test "${ac_cv_path_install+set}" = set; then
4821 INSTALL=$ac_cv_path_install
4822 else
4823 # As a last resort, use the slow shell script. Don't cache a
4824 # value for INSTALL within a source directory, because that will
4825 # break other packages using the cache if that directory is
4826 # removed, or if the value is a relative name.
4827 INSTALL=$ac_install_sh
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4831 $as_echo "$INSTALL" >&6; }
4833 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4834 # It thinks the first close brace ends the variable substitution.
4835 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4837 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4839 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4842 $as_echo_n "checking whether build environment is sane... " >&6; }
4843 # Reject unsafe characters in $srcdir or the absolute working directory
4844 # name. Accept space and tab only in the latter.
4845 am_lf='
4847 case `pwd` in
4848 *[\\\"\#\$\&\'\`$am_lf]*)
4849 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4850 esac
4851 case $srcdir in
4852 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4853 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4854 esac
4856 # Do 'set' in a subshell so we don't clobber the current shell's
4857 # arguments. Must try -L first in case configure is actually a
4858 # symlink; some systems play weird games with the mod time of symlinks
4859 # (eg FreeBSD returns the mod time of the symlink's containing
4860 # directory).
4861 if (
4862 am_has_slept=no
4863 for am_try in 1 2; do
4864 echo "timestamp, slept: $am_has_slept" > conftest.file
4865 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4866 if test "$*" = "X"; then
4867 # -L didn't work.
4868 set X `ls -t "$srcdir/configure" conftest.file`
4870 if test "$*" != "X $srcdir/configure conftest.file" \
4871 && test "$*" != "X conftest.file $srcdir/configure"; then
4873 # If neither matched, then we have a broken ls. This can happen
4874 # if, for instance, CONFIG_SHELL is bash and it inherits a
4875 # broken ls alias from the environment. This has actually
4876 # happened. Such a system could not be considered "sane".
4877 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4878 alias in your environment" "$LINENO" 5
4880 if test "$2" = conftest.file || test $am_try -eq 2; then
4881 break
4883 # Just in case.
4884 sleep 1
4885 am_has_slept=yes
4886 done
4887 test "$2" = conftest.file
4889 then
4890 # Ok.
4892 else
4893 as_fn_error $? "newly created file is older than distributed files!
4894 Check your system clock" "$LINENO" 5
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4897 $as_echo "yes" >&6; }
4898 # If we didn't sleep, we still need to ensure time stamps of config.status and
4899 # generated files are strictly newer.
4900 am_sleep_pid=
4901 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4902 ( sleep 1 ) &
4903 am_sleep_pid=$!
4906 rm -f conftest.file
4908 test "$program_prefix" != NONE &&
4909 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4910 # Use a double $ so make ignores it.
4911 test "$program_suffix" != NONE &&
4912 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4913 # Double any \ or $.
4914 # By default was `s,x,x', remove it if useless.
4915 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4916 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4918 if test x"${MISSING+set}" != xset; then
4919 case $am_aux_dir in
4920 *\ * | *\ *)
4921 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4923 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4924 esac
4926 # Use eval to expand $SHELL
4927 if eval "$MISSING --is-lightweight"; then
4928 am_missing_run="$MISSING "
4929 else
4930 am_missing_run=
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4932 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4935 if test x"${install_sh+set}" != xset; then
4936 case $am_aux_dir in
4937 *\ * | *\ *)
4938 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4940 install_sh="\${SHELL} $am_aux_dir/install-sh"
4941 esac
4944 # Installed binaries are usually stripped using 'strip' when the user
4945 # run "make install-strip". However 'strip' might not be the right
4946 # tool to use in cross-compilation environments, therefore Automake
4947 # will honor the 'STRIP' environment variable to overrule this program.
4948 if test "$cross_compiling" != no; then
4949 if test -n "$ac_tool_prefix"; then
4950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4951 set dummy ${ac_tool_prefix}strip; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_STRIP+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$STRIP"; then
4958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 STRIP=$ac_cv_prog_STRIP
4978 if test -n "$STRIP"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4980 $as_echo "$STRIP" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4988 if test -z "$ac_cv_prog_STRIP"; then
4989 ac_ct_STRIP=$STRIP
4990 # Extract the first word of "strip", so it can be a program name with args.
4991 set dummy strip; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 if test -n "$ac_ct_STRIP"; then
4998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_ac_ct_STRIP="strip"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5011 done
5012 done
5013 IFS=$as_save_IFS
5017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5018 if test -n "$ac_ct_STRIP"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5020 $as_echo "$ac_ct_STRIP" >&6; }
5021 else
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5026 if test "x$ac_ct_STRIP" = x; then
5027 STRIP=":"
5028 else
5029 case $cross_compiling:$ac_tool_warned in
5030 yes:)
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5033 ac_tool_warned=yes ;;
5034 esac
5035 STRIP=$ac_ct_STRIP
5037 else
5038 STRIP="$ac_cv_prog_STRIP"
5042 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5045 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5046 if test -z "$MKDIR_P"; then
5047 if ${ac_cv_path_mkdir+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_prog in mkdir gmkdir; do
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5058 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5059 'mkdir (GNU coreutils) '* | \
5060 'mkdir (coreutils) '* | \
5061 'mkdir (fileutils) '4.1*)
5062 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5063 break 3;;
5064 esac
5065 done
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 test -d ./--version && rmdir ./--version
5073 if test "${ac_cv_path_mkdir+set}" = set; then
5074 MKDIR_P="$ac_cv_path_mkdir -p"
5075 else
5076 # As a last resort, use the slow shell script. Don't cache a
5077 # value for MKDIR_P within a source directory, because that will
5078 # break other packages using the cache if that directory is
5079 # removed, or if the value is a relative name.
5080 MKDIR_P="$ac_install_sh -d"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5084 $as_echo "$MKDIR_P" >&6; }
5086 for ac_prog in gawk mawk nawk awk
5088 # Extract the first word of "$ac_prog", so it can be a program name with args.
5089 set dummy $ac_prog; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_AWK+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test -n "$AWK"; then
5096 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_AWK="$ac_prog"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5109 done
5110 done
5111 IFS=$as_save_IFS
5115 AWK=$ac_cv_prog_AWK
5116 if test -n "$AWK"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5118 $as_echo "$AWK" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5125 test -n "$AWK" && break
5126 done
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5129 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5130 set x ${MAKE-make}
5131 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5132 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat >conftest.make <<\_ACEOF
5136 SHELL = /bin/sh
5137 all:
5138 @echo '@@@%%%=$(MAKE)=@@@%%%'
5139 _ACEOF
5140 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5141 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5142 *@@@%%%=?*=@@@%%%*)
5143 eval ac_cv_prog_make_${ac_make}_set=yes;;
5145 eval ac_cv_prog_make_${ac_make}_set=no;;
5146 esac
5147 rm -f conftest.make
5149 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5151 $as_echo "yes" >&6; }
5152 SET_MAKE=
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 SET_MAKE="MAKE=${MAKE-make}"
5159 rm -rf .tst 2>/dev/null
5160 mkdir .tst 2>/dev/null
5161 if test -d .tst; then
5162 am__leading_dot=.
5163 else
5164 am__leading_dot=_
5166 rmdir .tst 2>/dev/null
5168 DEPDIR="${am__leading_dot}deps"
5170 ac_config_commands="$ac_config_commands depfiles"
5173 am_make=${MAKE-make}
5174 cat > confinc << 'END'
5175 am__doit:
5176 @echo this is the am__doit target
5177 .PHONY: am__doit
5179 # If we don't find an include directive, just comment out the code.
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5181 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5182 am__include="#"
5183 am__quote=
5184 _am_result=none
5185 # First try GNU make style include.
5186 echo "include confinc" > confmf
5187 # Ignore all kinds of additional output from 'make'.
5188 case `$am_make -s -f confmf 2> /dev/null` in #(
5189 *the\ am__doit\ target*)
5190 am__include=include
5191 am__quote=
5192 _am_result=GNU
5194 esac
5195 # Now try BSD make style include.
5196 if test "$am__include" = "#"; then
5197 echo '.include "confinc"' > confmf
5198 case `$am_make -s -f confmf 2> /dev/null` in #(
5199 *the\ am__doit\ target*)
5200 am__include=.include
5201 am__quote="\""
5202 _am_result=BSD
5204 esac
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5209 $as_echo "$_am_result" >&6; }
5210 rm -f confinc confmf
5212 # Check whether --enable-dependency-tracking was given.
5213 if test "${enable_dependency_tracking+set}" = set; then :
5214 enableval=$enable_dependency_tracking;
5217 if test "x$enable_dependency_tracking" != xno; then
5218 am_depcomp="$ac_aux_dir/depcomp"
5219 AMDEPBACKSLASH='\'
5220 am__nodep='_no'
5222 if test "x$enable_dependency_tracking" != xno; then
5223 AMDEP_TRUE=
5224 AMDEP_FALSE='#'
5225 else
5226 AMDEP_TRUE='#'
5227 AMDEP_FALSE=
5231 # Check whether --enable-silent-rules was given.
5232 if test "${enable_silent_rules+set}" = set; then :
5233 enableval=$enable_silent_rules;
5236 case $enable_silent_rules in # (((
5237 yes) AM_DEFAULT_VERBOSITY=0;;
5238 no) AM_DEFAULT_VERBOSITY=1;;
5239 *) AM_DEFAULT_VERBOSITY=1;;
5240 esac
5241 am_make=${MAKE-make}
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5243 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5244 if ${am_cv_make_support_nested_variables+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if $as_echo 'TRUE=$(BAR$(V))
5248 BAR0=false
5249 BAR1=true
5251 am__doit:
5252 @$(TRUE)
5253 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5254 am_cv_make_support_nested_variables=yes
5255 else
5256 am_cv_make_support_nested_variables=no
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5260 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5261 if test $am_cv_make_support_nested_variables = yes; then
5262 AM_V='$(V)'
5263 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5264 else
5265 AM_V=$AM_DEFAULT_VERBOSITY
5266 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5268 AM_BACKSLASH='\'
5270 # Check whether --enable-compiler-warnings was given.
5271 if test "${enable_compiler_warnings+set}" = set; then :
5272 enableval=$enable_compiler_warnings;
5274 case $enable_compiler_warnings in #(
5275 no | min | yes | max | all) :
5276 ;; #(
5277 *) :
5278 if test "x$enable_maintainer_mode" = xyes; then :
5279 enable_compiler_warnings=yes
5280 else
5281 enable_compiler_warnings=min
5282 fi ;;
5283 esac
5285 case `pwd` in
5286 *\ * | *\ *)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5288 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5289 esac
5293 macro_version='2.4.5'
5294 macro_revision='2.4.5'
5308 ltmain=$ac_aux_dir/ltmain.sh
5310 # Backslashify metacharacters that are still active within
5311 # double-quoted strings.
5312 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5314 # Same as above, but do not quote variable references.
5315 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5317 # Sed substitution to delay expansion of an escaped shell variable in a
5318 # double_quote_subst'ed string.
5319 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5321 # Sed substitution to delay expansion of an escaped single quote.
5322 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5324 # Sed substitution to avoid accidental globbing in evaled expressions
5325 no_glob_subst='s/\*/\\\*/g'
5327 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5328 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5329 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5332 $as_echo_n "checking how to print strings... " >&6; }
5333 # Test print first, because it will be a builtin if present.
5334 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5335 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5336 ECHO='print -r --'
5337 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5338 ECHO='printf %s\n'
5339 else
5340 # Use this function as a fallback that always works.
5341 func_fallback_echo ()
5343 eval 'cat <<_LTECHO_EOF
5345 _LTECHO_EOF'
5347 ECHO='func_fallback_echo'
5350 # func_echo_all arg...
5351 # Invoke $ECHO with all args, space-separated.
5352 func_echo_all ()
5354 $ECHO ""
5357 case $ECHO in
5358 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5359 $as_echo "printf" >&6; } ;;
5360 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5361 $as_echo "print -r" >&6; } ;;
5362 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5363 $as_echo "cat" >&6; } ;;
5364 esac
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5380 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5381 if ${ac_cv_path_SED+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5385 for ac_i in 1 2 3 4 5 6 7; do
5386 ac_script="$ac_script$as_nl$ac_script"
5387 done
5388 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5389 { ac_script=; unset ac_script;}
5390 if test -z "$SED"; then
5391 ac_path_SED_found=false
5392 # Loop through the user's path and test for each of PROGNAME-LIST
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_prog in sed gsed; do
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5401 as_fn_executable_p "$ac_path_SED" || continue
5402 # Check for GNU ac_path_SED and select it if it is found.
5403 # Check for GNU $ac_path_SED
5404 case `"$ac_path_SED" --version 2>&1` in
5405 *GNU*)
5406 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5408 ac_count=0
5409 $as_echo_n 0123456789 >"conftest.in"
5410 while :
5412 cat "conftest.in" "conftest.in" >"conftest.tmp"
5413 mv "conftest.tmp" "conftest.in"
5414 cp "conftest.in" "conftest.nl"
5415 $as_echo '' >> "conftest.nl"
5416 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418 as_fn_arith $ac_count + 1 && ac_count=$as_val
5419 if test $ac_count -gt ${ac_path_SED_max-0}; then
5420 # Best one so far, save it but keep looking for a better one
5421 ac_cv_path_SED="$ac_path_SED"
5422 ac_path_SED_max=$ac_count
5424 # 10*(2^10) chars as input seems more than enough
5425 test $ac_count -gt 10 && break
5426 done
5427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428 esac
5430 $ac_path_SED_found && break 3
5431 done
5432 done
5433 done
5434 IFS=$as_save_IFS
5435 if test -z "$ac_cv_path_SED"; then
5436 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5438 else
5439 ac_cv_path_SED=$SED
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5444 $as_echo "$ac_cv_path_SED" >&6; }
5445 SED="$ac_cv_path_SED"
5446 rm -f conftest.sed
5448 test -z "$SED" && SED=sed
5449 Xsed="$SED -e 1s/^X//"
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5462 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5463 if ${ac_cv_path_GREP+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -z "$GREP"; then
5467 ac_path_GREP_found=false
5468 # Loop through the user's path and test for each of PROGNAME-LIST
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_prog in grep ggrep; do
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5477 as_fn_executable_p "$ac_path_GREP" || continue
5478 # Check for GNU ac_path_GREP and select it if it is found.
5479 # Check for GNU $ac_path_GREP
5480 case `"$ac_path_GREP" --version 2>&1` in
5481 *GNU*)
5482 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5484 ac_count=0
5485 $as_echo_n 0123456789 >"conftest.in"
5486 while :
5488 cat "conftest.in" "conftest.in" >"conftest.tmp"
5489 mv "conftest.tmp" "conftest.in"
5490 cp "conftest.in" "conftest.nl"
5491 $as_echo 'GREP' >> "conftest.nl"
5492 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5494 as_fn_arith $ac_count + 1 && ac_count=$as_val
5495 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5496 # Best one so far, save it but keep looking for a better one
5497 ac_cv_path_GREP="$ac_path_GREP"
5498 ac_path_GREP_max=$ac_count
5500 # 10*(2^10) chars as input seems more than enough
5501 test $ac_count -gt 10 && break
5502 done
5503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504 esac
5506 $ac_path_GREP_found && break 3
5507 done
5508 done
5509 done
5510 IFS=$as_save_IFS
5511 if test -z "$ac_cv_path_GREP"; then
5512 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5514 else
5515 ac_cv_path_GREP=$GREP
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5520 $as_echo "$ac_cv_path_GREP" >&6; }
5521 GREP="$ac_cv_path_GREP"
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5525 $as_echo_n "checking for egrep... " >&6; }
5526 if ${ac_cv_path_EGREP+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5530 then ac_cv_path_EGREP="$GREP -E"
5531 else
5532 if test -z "$EGREP"; then
5533 ac_path_EGREP_found=false
5534 # Loop through the user's path and test for each of PROGNAME-LIST
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_prog in egrep; do
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5543 as_fn_executable_p "$ac_path_EGREP" || continue
5544 # Check for GNU ac_path_EGREP and select it if it is found.
5545 # Check for GNU $ac_path_EGREP
5546 case `"$ac_path_EGREP" --version 2>&1` in
5547 *GNU*)
5548 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5550 ac_count=0
5551 $as_echo_n 0123456789 >"conftest.in"
5552 while :
5554 cat "conftest.in" "conftest.in" >"conftest.tmp"
5555 mv "conftest.tmp" "conftest.in"
5556 cp "conftest.in" "conftest.nl"
5557 $as_echo 'EGREP' >> "conftest.nl"
5558 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5560 as_fn_arith $ac_count + 1 && ac_count=$as_val
5561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5562 # Best one so far, save it but keep looking for a better one
5563 ac_cv_path_EGREP="$ac_path_EGREP"
5564 ac_path_EGREP_max=$ac_count
5566 # 10*(2^10) chars as input seems more than enough
5567 test $ac_count -gt 10 && break
5568 done
5569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5570 esac
5572 $ac_path_EGREP_found && break 3
5573 done
5574 done
5575 done
5576 IFS=$as_save_IFS
5577 if test -z "$ac_cv_path_EGREP"; then
5578 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5580 else
5581 ac_cv_path_EGREP=$EGREP
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5587 $as_echo "$ac_cv_path_EGREP" >&6; }
5588 EGREP="$ac_cv_path_EGREP"
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5592 $as_echo_n "checking for fgrep... " >&6; }
5593 if ${ac_cv_path_FGREP+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5597 then ac_cv_path_FGREP="$GREP -F"
5598 else
5599 if test -z "$FGREP"; then
5600 ac_path_FGREP_found=false
5601 # Loop through the user's path and test for each of PROGNAME-LIST
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_prog in fgrep; do
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5610 as_fn_executable_p "$ac_path_FGREP" || continue
5611 # Check for GNU ac_path_FGREP and select it if it is found.
5612 # Check for GNU $ac_path_FGREP
5613 case `"$ac_path_FGREP" --version 2>&1` in
5614 *GNU*)
5615 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5617 ac_count=0
5618 $as_echo_n 0123456789 >"conftest.in"
5619 while :
5621 cat "conftest.in" "conftest.in" >"conftest.tmp"
5622 mv "conftest.tmp" "conftest.in"
5623 cp "conftest.in" "conftest.nl"
5624 $as_echo 'FGREP' >> "conftest.nl"
5625 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5627 as_fn_arith $ac_count + 1 && ac_count=$as_val
5628 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5629 # Best one so far, save it but keep looking for a better one
5630 ac_cv_path_FGREP="$ac_path_FGREP"
5631 ac_path_FGREP_max=$ac_count
5633 # 10*(2^10) chars as input seems more than enough
5634 test $ac_count -gt 10 && break
5635 done
5636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5637 esac
5639 $ac_path_FGREP_found && break 3
5640 done
5641 done
5642 done
5643 IFS=$as_save_IFS
5644 if test -z "$ac_cv_path_FGREP"; then
5645 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5647 else
5648 ac_cv_path_FGREP=$FGREP
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5654 $as_echo "$ac_cv_path_FGREP" >&6; }
5655 FGREP="$ac_cv_path_FGREP"
5658 test -z "$GREP" && GREP=grep
5678 # Check whether --with-gnu-ld was given.
5679 if test "${with_gnu_ld+set}" = set; then :
5680 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5681 else
5682 with_gnu_ld=no
5685 ac_prog=ld
5686 if test yes = "$GCC"; then
5687 # Check if gcc -print-prog-name=ld gives a path.
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5689 $as_echo_n "checking for ld used by $CC... " >&6; }
5690 case $host in
5691 *-*-mingw*)
5692 # gcc leaves a trailing carriage return, which upsets mingw
5693 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5695 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5696 esac
5697 case $ac_prog in
5698 # Accept absolute paths.
5699 [\\/]* | ?:[\\/]*)
5700 re_direlt='/[^/][^/]*/\.\./'
5701 # Canonicalize the pathname of ld
5702 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5703 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5704 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5705 done
5706 test -z "$LD" && LD=$ac_prog
5709 # If it fails, then pretend we aren't using GCC.
5710 ac_prog=ld
5713 # If it is relative, then search for the first ld in PATH.
5714 with_gnu_ld=unknown
5716 esac
5717 elif test yes = "$with_gnu_ld"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5719 $as_echo_n "checking for GNU ld... " >&6; }
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5722 $as_echo_n "checking for non-GNU ld... " >&6; }
5724 if ${lt_cv_path_LD+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if test -z "$LD"; then
5728 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5729 for ac_dir in $PATH; do
5730 IFS=$lt_save_ifs
5731 test -z "$ac_dir" && ac_dir=.
5732 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5733 lt_cv_path_LD=$ac_dir/$ac_prog
5734 # Check to see if the program is GNU ld. I'd rather use --version,
5735 # but apparently some variants of GNU ld only accept -v.
5736 # Break only if it was the GNU/non-GNU ld that we prefer.
5737 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5738 *GNU* | *'with BFD'*)
5739 test no != "$with_gnu_ld" && break
5742 test yes != "$with_gnu_ld" && break
5744 esac
5746 done
5747 IFS=$lt_save_ifs
5748 else
5749 lt_cv_path_LD=$LD # Let the user override the test with a path.
5753 LD=$lt_cv_path_LD
5754 if test -n "$LD"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5756 $as_echo "$LD" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5761 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5763 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5764 if ${lt_cv_prog_gnu_ld+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5768 case `$LD -v 2>&1 </dev/null` in
5769 *GNU* | *'with BFD'*)
5770 lt_cv_prog_gnu_ld=yes
5773 lt_cv_prog_gnu_ld=no
5775 esac
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5778 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5779 with_gnu_ld=$lt_cv_prog_gnu_ld
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5790 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5791 if ${lt_cv_path_NM+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if test -n "$NM"; then
5795 # Let the user override the test.
5796 lt_cv_path_NM=$NM
5797 else
5798 lt_nm_to_check=${ac_tool_prefix}nm
5799 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5800 lt_nm_to_check="$lt_nm_to_check nm"
5802 for lt_tmp_nm in $lt_nm_to_check; do
5803 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5804 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5805 IFS=$lt_save_ifs
5806 test -z "$ac_dir" && ac_dir=.
5807 tmp_nm=$ac_dir/$lt_tmp_nm
5808 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5809 # Check to see if the nm accepts a BSD-compat flag.
5810 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5811 # nm: unknown option "B" ignored
5812 # Tru64's nm complains that /dev/null is an invalid object file
5813 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5814 case $build_os in
5815 mingw*) lt_bad_file=conftest.nm/nofile ;;
5816 *) lt_bad_file=/dev/null ;;
5817 esac
5818 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5819 *$lt_bad_file* | *'Invalid file or object type'*)
5820 lt_cv_path_NM="$tmp_nm -B"
5821 break 2
5824 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5825 */dev/null*)
5826 lt_cv_path_NM="$tmp_nm -p"
5827 break 2
5830 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5831 continue # so that we can try to find one that supports BSD flags
5833 esac
5835 esac
5837 done
5838 IFS=$lt_save_ifs
5839 done
5840 : ${lt_cv_path_NM=no}
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5844 $as_echo "$lt_cv_path_NM" >&6; }
5845 if test no != "$lt_cv_path_NM"; then
5846 NM=$lt_cv_path_NM
5847 else
5848 # Didn't find any BSD compatible name lister, look for dumpbin.
5849 if test -n "$DUMPBIN"; then :
5850 # Let the user override the test.
5851 else
5852 if test -n "$ac_tool_prefix"; then
5853 for ac_prog in dumpbin "link -dump"
5855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_DUMPBIN+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$DUMPBIN"; then
5863 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5876 done
5877 done
5878 IFS=$as_save_IFS
5882 DUMPBIN=$ac_cv_prog_DUMPBIN
5883 if test -n "$DUMPBIN"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5885 $as_echo "$DUMPBIN" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5892 test -n "$DUMPBIN" && break
5893 done
5895 if test -z "$DUMPBIN"; then
5896 ac_ct_DUMPBIN=$DUMPBIN
5897 for ac_prog in dumpbin "link -dump"
5899 # Extract the first word of "$ac_prog", so it can be a program name with args.
5900 set dummy $ac_prog; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if test -n "$ac_ct_DUMPBIN"; then
5907 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5920 done
5921 done
5922 IFS=$as_save_IFS
5926 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5927 if test -n "$ac_ct_DUMPBIN"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5929 $as_echo "$ac_ct_DUMPBIN" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5936 test -n "$ac_ct_DUMPBIN" && break
5937 done
5939 if test "x$ac_ct_DUMPBIN" = x; then
5940 DUMPBIN=":"
5941 else
5942 case $cross_compiling:$ac_tool_warned in
5943 yes:)
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5946 ac_tool_warned=yes ;;
5947 esac
5948 DUMPBIN=$ac_ct_DUMPBIN
5952 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5953 *COFF*)
5954 DUMPBIN="$DUMPBIN -symbols -headers"
5957 DUMPBIN=:
5959 esac
5962 if test : != "$DUMPBIN"; then
5963 NM=$DUMPBIN
5966 test -z "$NM" && NM=nm
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5974 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5975 if ${lt_cv_nm_interface+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 lt_cv_nm_interface="BSD nm"
5979 echo "int some_variable = 0;" > conftest.$ac_ext
5980 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5981 (eval "$ac_compile" 2>conftest.err)
5982 cat conftest.err >&5
5983 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5984 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5985 cat conftest.err >&5
5986 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5987 cat conftest.out >&5
5988 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5989 lt_cv_nm_interface="MS dumpbin"
5991 rm -f conftest*
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5994 $as_echo "$lt_cv_nm_interface" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5997 $as_echo_n "checking whether ln -s works... " >&6; }
5998 LN_S=$as_ln_s
5999 if test "$LN_S" = "ln -s"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6001 $as_echo "yes" >&6; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6004 $as_echo "no, using $LN_S" >&6; }
6007 # find the maximum length of command line arguments
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6009 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6010 if ${lt_cv_sys_max_cmd_len+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6014 teststring=ABCD
6016 case $build_os in
6017 msdosdjgpp*)
6018 # On DJGPP, this test can blow up pretty badly due to problems in libc
6019 # (any single argument exceeding 2000 bytes causes a buffer overrun
6020 # during glob expansion). Even if it were fixed, the result of this
6021 # check would be larger than it should be.
6022 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6025 gnu*)
6026 # Under GNU Hurd, this test is not required because there is
6027 # no limit to the length of command line arguments.
6028 # Libtool will interpret -1 as no limit whatsoever
6029 lt_cv_sys_max_cmd_len=-1;
6032 cygwin* | mingw* | cegcc*)
6033 # On Win9x/ME, this test blows up -- it succeeds, but takes
6034 # about 5 minutes as the teststring grows exponentially.
6035 # Worse, since 9x/ME are not pre-emptively multitasking,
6036 # you end up with a "frozen" computer, even though with patience
6037 # the test eventually succeeds (with a max line length of 256k).
6038 # Instead, let's just punt: use the minimum linelength reported by
6039 # all of the supported platforms: 8192 (on NT/2K/XP).
6040 lt_cv_sys_max_cmd_len=8192;
6043 mint*)
6044 # On MiNT this can take a long time and run out of memory.
6045 lt_cv_sys_max_cmd_len=8192;
6048 amigaos*)
6049 # On AmigaOS with pdksh, this test takes hours, literally.
6050 # So we just punt and use a minimum line length of 8192.
6051 lt_cv_sys_max_cmd_len=8192;
6054 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6055 # This has been around since 386BSD, at least. Likely further.
6056 if test -x /sbin/sysctl; then
6057 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6058 elif test -x /usr/sbin/sysctl; then
6059 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6060 else
6061 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6063 # And add a safety zone
6064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6068 interix*)
6069 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6070 lt_cv_sys_max_cmd_len=196608
6073 os2*)
6074 # The test takes a long time on OS/2.
6075 lt_cv_sys_max_cmd_len=8192
6078 osf*)
6079 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6080 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6081 # nice to cause kernel panics so lets avoid the loop below.
6082 # First set a reasonable default.
6083 lt_cv_sys_max_cmd_len=16384
6085 if test -x /sbin/sysconfig; then
6086 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6087 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6088 esac
6091 sco3.2v5*)
6092 lt_cv_sys_max_cmd_len=102400
6094 sysv5* | sco5v6* | sysv4.2uw2*)
6095 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6096 if test -n "$kargmax"; then
6097 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6098 else
6099 lt_cv_sys_max_cmd_len=32768
6103 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6104 if test -n "$lt_cv_sys_max_cmd_len" && \
6105 test undefined != "$lt_cv_sys_max_cmd_len"; then
6106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6108 else
6109 # Make teststring a little bigger before we do anything with it.
6110 # a 1K string should be a reasonable start.
6111 for i in 1 2 3 4 5 6 7 8; do
6112 teststring=$teststring$teststring
6113 done
6114 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6115 # If test is not a shell built-in, we'll probably end up computing a
6116 # maximum length that is only half of the actual maximum length, but
6117 # we can't tell.
6118 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6119 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6120 test 17 != "$i" # 1/2 MB should be enough
6122 i=`expr $i + 1`
6123 teststring=$teststring$teststring
6124 done
6125 # Only check the string length outside the loop.
6126 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6127 teststring=
6128 # Add a significant safety factor because C++ compilers can tack on
6129 # massive amounts of additional arguments before passing them to the
6130 # linker. It appears as though 1/2 is a usable value.
6131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6134 esac
6138 if test -n "$lt_cv_sys_max_cmd_len"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6140 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6141 else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6143 $as_echo "none" >&6; }
6145 max_cmd_len=$lt_cv_sys_max_cmd_len
6152 : ${CP="cp -f"}
6153 : ${MV="mv -f"}
6154 : ${RM="rm -f"}
6156 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6157 lt_unset=unset
6158 else
6159 lt_unset=false
6166 # test EBCDIC or ASCII
6167 case `echo X|tr X '\101'` in
6168 A) # ASCII based system
6169 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6170 lt_SP2NL='tr \040 \012'
6171 lt_NL2SP='tr \015\012 \040\040'
6173 *) # EBCDIC based system
6174 lt_SP2NL='tr \100 \n'
6175 lt_NL2SP='tr \r\n \100\100'
6177 esac
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6188 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6189 if ${lt_cv_to_host_file_cmd+:} false; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6192 case $host in
6193 *-*-mingw* )
6194 case $build in
6195 *-*-mingw* ) # actually msys
6196 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6198 *-*-cygwin* )
6199 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6201 * ) # otherwise, assume *nix
6202 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6204 esac
6206 *-*-cygwin* )
6207 case $build in
6208 *-*-mingw* ) # actually msys
6209 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6211 *-*-cygwin* )
6212 lt_cv_to_host_file_cmd=func_convert_file_noop
6214 * ) # otherwise, assume *nix
6215 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6217 esac
6219 * ) # unhandled hosts (and "normal" native builds)
6220 lt_cv_to_host_file_cmd=func_convert_file_noop
6222 esac
6226 to_host_file_cmd=$lt_cv_to_host_file_cmd
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6228 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6235 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6236 if ${lt_cv_to_tool_file_cmd+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 #assume ordinary cross tools, or native build.
6240 lt_cv_to_tool_file_cmd=func_convert_file_noop
6241 case $host in
6242 *-*-mingw* )
6243 case $build in
6244 *-*-mingw* ) # actually msys
6245 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6247 esac
6249 esac
6253 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6255 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6262 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6263 if ${lt_cv_ld_reload_flag+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 lt_cv_ld_reload_flag='-r'
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6269 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6270 reload_flag=$lt_cv_ld_reload_flag
6271 case $reload_flag in
6272 "" | " "*) ;;
6273 *) reload_flag=" $reload_flag" ;;
6274 esac
6275 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6276 case $host_os in
6277 cygwin* | mingw* | pw32* | cegcc*)
6278 if test yes != "$GCC"; then
6279 reload_cmds=false
6282 darwin*)
6283 if test yes = "$GCC"; then
6284 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6285 else
6286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6289 esac
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_OBJDUMP+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$OBJDUMP"; then
6308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6321 done
6322 done
6323 IFS=$as_save_IFS
6327 OBJDUMP=$ac_cv_prog_OBJDUMP
6328 if test -n "$OBJDUMP"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6330 $as_echo "$OBJDUMP" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6338 if test -z "$ac_cv_prog_OBJDUMP"; then
6339 ac_ct_OBJDUMP=$OBJDUMP
6340 # Extract the first word of "objdump", so it can be a program name with args.
6341 set dummy objdump; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$ac_ct_OBJDUMP"; then
6348 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6361 done
6362 done
6363 IFS=$as_save_IFS
6367 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6368 if test -n "$ac_ct_OBJDUMP"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6370 $as_echo "$ac_ct_OBJDUMP" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6376 if test "x$ac_ct_OBJDUMP" = x; then
6377 OBJDUMP="false"
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385 OBJDUMP=$ac_ct_OBJDUMP
6387 else
6388 OBJDUMP="$ac_cv_prog_OBJDUMP"
6391 test -z "$OBJDUMP" && OBJDUMP=objdump
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6399 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6400 if ${lt_cv_deplibs_check_method+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 lt_cv_file_magic_cmd='$MAGIC_CMD'
6404 lt_cv_file_magic_test_file=
6405 lt_cv_deplibs_check_method='unknown'
6406 # Need to set the preceding variable on all platforms that support
6407 # interlibrary dependencies.
6408 # 'none' -- dependencies not supported.
6409 # 'unknown' -- same as none, but documents that we really don't know.
6410 # 'pass_all' -- all dependencies passed with no checks.
6411 # 'test_compile' -- check by making test program.
6412 # 'file_magic [[regex]]' -- check by looking for files in library path
6413 # that responds to the $file_magic_cmd with a given extended regex.
6414 # If you have 'file' or equivalent on your system and you're not sure
6415 # whether 'pass_all' will *always* work, you probably want this one.
6417 case $host_os in
6418 aix[4-9]*)
6419 lt_cv_deplibs_check_method=pass_all
6422 beos*)
6423 lt_cv_deplibs_check_method=pass_all
6426 bsdi[45]*)
6427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6428 lt_cv_file_magic_cmd='/usr/bin/file -L'
6429 lt_cv_file_magic_test_file=/shlib/libc.so
6432 cygwin*)
6433 # func_win32_libid is a shell function defined in ltmain.sh
6434 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6435 lt_cv_file_magic_cmd='func_win32_libid'
6438 mingw* | pw32*)
6439 # Base MSYS/MinGW do not provide the 'file' command needed by
6440 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6441 # unless we find 'file', for example because we are cross-compiling.
6442 if ( file / ) >/dev/null 2>&1; then
6443 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6444 lt_cv_file_magic_cmd='func_win32_libid'
6445 else
6446 # Keep this pattern in sync with the one in func_win32_libid.
6447 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6448 lt_cv_file_magic_cmd='$OBJDUMP -f'
6452 cegcc*)
6453 # use the weaker test based on 'objdump'. See mingw*.
6454 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6455 lt_cv_file_magic_cmd='$OBJDUMP -f'
6458 darwin* | rhapsody*)
6459 lt_cv_deplibs_check_method=pass_all
6462 freebsd* | dragonfly*)
6463 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6464 case $host_cpu in
6465 i*86 )
6466 # Not sure whether the presence of OpenBSD here was a mistake.
6467 # Let's accept both of them until this is cleared up.
6468 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6469 lt_cv_file_magic_cmd=/usr/bin/file
6470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6472 esac
6473 else
6474 lt_cv_deplibs_check_method=pass_all
6478 haiku*)
6479 lt_cv_deplibs_check_method=pass_all
6482 hpux10.20* | hpux11*)
6483 lt_cv_file_magic_cmd=/usr/bin/file
6484 case $host_cpu in
6485 ia64*)
6486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6487 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6489 hppa*64*)
6490 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]'
6491 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6495 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6497 esac
6500 interix[3-9]*)
6501 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6505 irix5* | irix6* | nonstopux*)
6506 case $LD in
6507 *-32|*"-32 ") libmagic=32-bit;;
6508 *-n32|*"-n32 ") libmagic=N32;;
6509 *-64|*"-64 ") libmagic=64-bit;;
6510 *) libmagic=never-match;;
6511 esac
6512 lt_cv_deplibs_check_method=pass_all
6515 # This must be glibc/ELF.
6516 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6517 lt_cv_deplibs_check_method=pass_all
6520 netbsd*)
6521 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6523 else
6524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6528 newos6*)
6529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6530 lt_cv_file_magic_cmd=/usr/bin/file
6531 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6534 *nto* | *qnx*)
6535 lt_cv_deplibs_check_method=pass_all
6538 openbsd* | bitrig*)
6539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6541 else
6542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6546 osf3* | osf4* | osf5*)
6547 lt_cv_deplibs_check_method=pass_all
6550 rdos*)
6551 lt_cv_deplibs_check_method=pass_all
6554 solaris*)
6555 lt_cv_deplibs_check_method=pass_all
6558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6559 lt_cv_deplibs_check_method=pass_all
6562 sysv4 | sysv4.3*)
6563 case $host_vendor in
6564 motorola)
6565 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]'
6566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6568 ncr)
6569 lt_cv_deplibs_check_method=pass_all
6571 sequent)
6572 lt_cv_file_magic_cmd='/bin/file'
6573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6575 sni)
6576 lt_cv_file_magic_cmd='/bin/file'
6577 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6578 lt_cv_file_magic_test_file=/lib/libc.so
6580 siemens)
6581 lt_cv_deplibs_check_method=pass_all
6584 lt_cv_deplibs_check_method=pass_all
6586 esac
6589 tpf*)
6590 lt_cv_deplibs_check_method=pass_all
6592 os2*)
6593 lt_cv_deplibs_check_method=pass_all
6595 esac
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6599 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6601 file_magic_glob=
6602 want_nocaseglob=no
6603 if test "$build" = "$host"; then
6604 case $host_os in
6605 mingw* | pw32*)
6606 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6607 want_nocaseglob=yes
6608 else
6609 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6612 esac
6615 file_magic_cmd=$lt_cv_file_magic_cmd
6616 deplibs_check_method=$lt_cv_deplibs_check_method
6617 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6640 if test -n "$ac_tool_prefix"; then
6641 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6642 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_DLLTOOL+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 if test -n "$DLLTOOL"; then
6649 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6662 done
6663 done
6664 IFS=$as_save_IFS
6668 DLLTOOL=$ac_cv_prog_DLLTOOL
6669 if test -n "$DLLTOOL"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6671 $as_echo "$DLLTOOL" >&6; }
6672 else
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6679 if test -z "$ac_cv_prog_DLLTOOL"; then
6680 ac_ct_DLLTOOL=$DLLTOOL
6681 # Extract the first word of "dlltool", so it can be a program name with args.
6682 set dummy dlltool; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 if test -n "$ac_ct_DLLTOOL"; then
6689 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6702 done
6703 done
6704 IFS=$as_save_IFS
6708 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6709 if test -n "$ac_ct_DLLTOOL"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6711 $as_echo "$ac_ct_DLLTOOL" >&6; }
6712 else
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6717 if test "x$ac_ct_DLLTOOL" = x; then
6718 DLLTOOL="false"
6719 else
6720 case $cross_compiling:$ac_tool_warned in
6721 yes:)
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724 ac_tool_warned=yes ;;
6725 esac
6726 DLLTOOL=$ac_ct_DLLTOOL
6728 else
6729 DLLTOOL="$ac_cv_prog_DLLTOOL"
6732 test -z "$DLLTOOL" && DLLTOOL=dlltool
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6741 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6742 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 lt_cv_sharedlib_from_linklib_cmd='unknown'
6747 case $host_os in
6748 cygwin* | mingw* | pw32* | cegcc*)
6749 # two different shell functions defined in ltmain.sh;
6750 # decide which one to use based on capabilities of $DLLTOOL
6751 case `$DLLTOOL --help 2>&1` in
6752 *--identify-strict*)
6753 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6756 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6758 esac
6761 # fallback: assume linklib IS sharedlib
6762 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6764 esac
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6768 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6769 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6770 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6778 if test -n "$ac_tool_prefix"; then
6779 for ac_prog in ar
6781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if ${ac_cv_prog_AR+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$AR"; then
6789 ac_cv_prog_AR="$AR" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6802 done
6803 done
6804 IFS=$as_save_IFS
6808 AR=$ac_cv_prog_AR
6809 if test -n "$AR"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6811 $as_echo "$AR" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6818 test -n "$AR" && break
6819 done
6821 if test -z "$AR"; then
6822 ac_ct_AR=$AR
6823 for ac_prog in ar
6825 # Extract the first word of "$ac_prog", so it can be a program name with args.
6826 set dummy $ac_prog; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 if test -n "$ac_ct_AR"; then
6833 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_ac_ct_AR="$ac_prog"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6846 done
6847 done
6848 IFS=$as_save_IFS
6852 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6853 if test -n "$ac_ct_AR"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6855 $as_echo "$ac_ct_AR" >&6; }
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6862 test -n "$ac_ct_AR" && break
6863 done
6865 if test "x$ac_ct_AR" = x; then
6866 AR="false"
6867 else
6868 case $cross_compiling:$ac_tool_warned in
6869 yes:)
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872 ac_tool_warned=yes ;;
6873 esac
6874 AR=$ac_ct_AR
6878 : ${AR=ar}
6879 : ${AR_FLAGS=cru}
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6892 $as_echo_n "checking for archiver @FILE support... " >&6; }
6893 if ${lt_cv_ar_at_file+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 lt_cv_ar_at_file=no
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6901 main ()
6905 return 0;
6907 _ACEOF
6908 if ac_fn_c_try_compile "$LINENO"; then :
6909 echo conftest.$ac_objext > conftest.lst
6910 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6912 (eval $lt_ar_try) 2>&5
6913 ac_status=$?
6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; }
6916 if test 0 -eq "$ac_status"; then
6917 # Ensure the archiver fails upon bogus file names.
6918 rm -f conftest.$ac_objext libconftest.a
6919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6920 (eval $lt_ar_try) 2>&5
6921 ac_status=$?
6922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6923 test $ac_status = 0; }
6924 if test 0 -ne "$ac_status"; then
6925 lt_cv_ar_at_file=@
6928 rm -f conftest.* libconftest.a
6931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6935 $as_echo "$lt_cv_ar_at_file" >&6; }
6937 if test no = "$lt_cv_ar_at_file"; then
6938 archiver_list_spec=
6939 else
6940 archiver_list_spec=$lt_cv_ar_at_file
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}strip; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_STRIP+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 if test -n "$STRIP"; then
6958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6971 done
6972 done
6973 IFS=$as_save_IFS
6977 STRIP=$ac_cv_prog_STRIP
6978 if test -n "$STRIP"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6980 $as_echo "$STRIP" >&6; }
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6988 if test -z "$ac_cv_prog_STRIP"; then
6989 ac_ct_STRIP=$STRIP
6990 # Extract the first word of "strip", so it can be a program name with args.
6991 set dummy strip; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 if test -n "$ac_ct_STRIP"; then
6998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_ac_ct_STRIP="strip"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7011 done
7012 done
7013 IFS=$as_save_IFS
7017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7018 if test -n "$ac_ct_STRIP"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7020 $as_echo "$ac_ct_STRIP" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7026 if test "x$ac_ct_STRIP" = x; then
7027 STRIP=":"
7028 else
7029 case $cross_compiling:$ac_tool_warned in
7030 yes:)
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033 ac_tool_warned=yes ;;
7034 esac
7035 STRIP=$ac_ct_STRIP
7037 else
7038 STRIP="$ac_cv_prog_STRIP"
7041 test -z "$STRIP" && STRIP=:
7048 if test -n "$ac_tool_prefix"; then
7049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if ${ac_cv_prog_RANLIB+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 if test -n "$RANLIB"; then
7057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7070 done
7071 done
7072 IFS=$as_save_IFS
7076 RANLIB=$ac_cv_prog_RANLIB
7077 if test -n "$RANLIB"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7079 $as_echo "$RANLIB" >&6; }
7080 else
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7087 if test -z "$ac_cv_prog_RANLIB"; then
7088 ac_ct_RANLIB=$RANLIB
7089 # Extract the first word of "ranlib", so it can be a program name with args.
7090 set dummy ranlib; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if test -n "$ac_ct_RANLIB"; then
7097 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_ac_ct_RANLIB="ranlib"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7110 done
7111 done
7112 IFS=$as_save_IFS
7116 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7117 if test -n "$ac_ct_RANLIB"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7119 $as_echo "$ac_ct_RANLIB" >&6; }
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7125 if test "x$ac_ct_RANLIB" = x; then
7126 RANLIB=":"
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134 RANLIB=$ac_ct_RANLIB
7136 else
7137 RANLIB="$ac_cv_prog_RANLIB"
7140 test -z "$RANLIB" && RANLIB=:
7147 # Determine commands to create old-style static archives.
7148 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7149 old_postinstall_cmds='chmod 644 $oldlib'
7150 old_postuninstall_cmds=
7152 if test -n "$RANLIB"; then
7153 case $host_os in
7154 bitrig* | openbsd*)
7155 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7158 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7160 esac
7161 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7164 case $host_os in
7165 darwin*)
7166 lock_old_archive_extraction=yes ;;
7168 lock_old_archive_extraction=no ;;
7169 esac
7209 # If no C compiler was specified, use CC.
7210 LTCC=${LTCC-"$CC"}
7212 # If no C compiler flags were specified, use CFLAGS.
7213 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7215 # Allow CC to be a program name with arguments.
7216 compiler=$CC
7219 # Check for command to grab the raw symbol name followed by C symbol from nm.
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7221 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7222 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7226 # These are sane defaults that work on at least a few old systems.
7227 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7229 # Character class describing NM global symbol codes.
7230 symcode='[BCDEGRST]'
7232 # Regexp to match symbols that can be accessed directly from C.
7233 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7235 # Define system-specific variables.
7236 case $host_os in
7237 aix*)
7238 symcode='[BCDT]'
7240 cygwin* | mingw* | pw32* | cegcc*)
7241 symcode='[ABCDGISTW]'
7243 hpux*)
7244 if test ia64 = "$host_cpu"; then
7245 symcode='[ABCDEGRST]'
7248 irix* | nonstopux*)
7249 symcode='[BCDEGRST]'
7251 osf*)
7252 symcode='[BCDEGQRST]'
7254 solaris*)
7255 symcode='[BDRT]'
7257 sco3.2v5*)
7258 symcode='[DT]'
7260 sysv4.2uw2*)
7261 symcode='[DT]'
7263 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7264 symcode='[ABDT]'
7266 sysv4)
7267 symcode='[DFNSTU]'
7269 esac
7271 # If we're using GNU nm, then use its standard symbol codes.
7272 case `$NM -V 2>&1` in
7273 *GNU* | *'with BFD'*)
7274 symcode='[ABCDGIRSTW]' ;;
7275 esac
7277 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7278 # Gets list of data symbols to import.
7279 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7280 # Adjust the below global symbol transforms to fixup imported variables.
7281 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7282 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7283 lt_c_name_lib_hook="\
7284 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7285 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7286 else
7287 # Disable hooks by default.
7288 lt_cv_sys_global_symbol_to_import=
7289 lt_cdecl_hook=
7290 lt_c_name_hook=
7291 lt_c_name_lib_hook=
7294 # Transform an extracted symbol line into a proper C declaration.
7295 # Some systems (esp. on ia64) link data and code symbols differently,
7296 # so use this general approach.
7297 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7298 $lt_cdecl_hook\
7299 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7300 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7302 # Transform an extracted symbol line into symbol name and symbol address
7303 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7304 $lt_c_name_hook\
7305 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7306 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7308 # Transform an extracted symbol line into symbol name with lib prefix and
7309 # symbol address.
7310 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7311 $lt_c_name_lib_hook\
7312 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7313 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7314 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7316 # Handle CRLF in mingw tool chain
7317 opt_cr=
7318 case $build_os in
7319 mingw*)
7320 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7322 esac
7324 # Try without a prefix underscore, then with it.
7325 for ac_symprfx in "" "_"; do
7327 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7328 symxfrm="\\1 $ac_symprfx\\2 \\2"
7330 # Write the raw and C identifiers.
7331 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7332 # Fake it for dumpbin and say T for any non-static function,
7333 # D for any global variable and I for any imported variable.
7334 # Also find C++ and __fastcall symbols from MSVC++,
7335 # which start with @ or ?.
7336 lt_cv_sys_global_symbol_pipe="$AWK '"\
7337 " {last_section=section; section=\$ 3};"\
7338 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7339 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7340 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7341 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7342 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7343 " \$ 0!~/External *\|/{next};"\
7344 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7345 " {if(hide[section]) next};"\
7346 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7347 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7348 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7349 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7350 " ' prfx=^$ac_symprfx"
7351 else
7352 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7354 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7356 # Check to see that the pipe works correctly.
7357 pipe_works=no
7359 rm -f conftest*
7360 cat > conftest.$ac_ext <<_LT_EOF
7361 #ifdef __cplusplus
7362 extern "C" {
7363 #endif
7364 char nm_test_var;
7365 void nm_test_func(void);
7366 void nm_test_func(void){}
7367 #ifdef __cplusplus
7369 #endif
7370 int main(){nm_test_var='a';nm_test_func();return(0);}
7371 _LT_EOF
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7375 ac_status=$?
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 # Now try to grab the symbols.
7379 nlist=conftest.nm
7380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7381 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7382 ac_status=$?
7383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7384 test $ac_status = 0; } && test -s "$nlist"; then
7385 # Try sorting and uniquifying the output.
7386 if sort "$nlist" | uniq > "$nlist"T; then
7387 mv -f "$nlist"T "$nlist"
7388 else
7389 rm -f "$nlist"T
7392 # Make sure that we snagged all the symbols we need.
7393 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7394 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7395 cat <<_LT_EOF > conftest.$ac_ext
7396 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7397 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7398 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7399 relocations are performed -- see ld's documentation on pseudo-relocs. */
7400 # define LT_DLSYM_CONST
7401 #elif defined __osf__
7402 /* This system does not cope well with relocations in const data. */
7403 # define LT_DLSYM_CONST
7404 #else
7405 # define LT_DLSYM_CONST const
7406 #endif
7408 #ifdef __cplusplus
7409 extern "C" {
7410 #endif
7412 _LT_EOF
7413 # Now generate the symbol file.
7414 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7416 cat <<_LT_EOF >> conftest.$ac_ext
7418 /* The mapping between symbol names and symbols. */
7419 LT_DLSYM_CONST struct {
7420 const char *name;
7421 void *address;
7423 lt__PROGRAM__LTX_preloaded_symbols[] =
7425 { "@PROGRAM@", (void *) 0 },
7426 _LT_EOF
7427 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7428 cat <<\_LT_EOF >> conftest.$ac_ext
7429 {0, (void *) 0}
7432 /* This works around a problem in FreeBSD linker */
7433 #ifdef FREEBSD_WORKAROUND
7434 static const void *lt_preloaded_setup() {
7435 return lt__PROGRAM__LTX_preloaded_symbols;
7437 #endif
7439 #ifdef __cplusplus
7441 #endif
7442 _LT_EOF
7443 # Now try linking the two files.
7444 mv conftest.$ac_objext conftstm.$ac_objext
7445 lt_globsym_save_LIBS=$LIBS
7446 lt_globsym_save_CFLAGS=$CFLAGS
7447 LIBS=conftstm.$ac_objext
7448 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7450 (eval $ac_link) 2>&5
7451 ac_status=$?
7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7454 pipe_works=yes
7456 LIBS=$lt_globsym_save_LIBS
7457 CFLAGS=$lt_globsym_save_CFLAGS
7458 else
7459 echo "cannot find nm_test_func in $nlist" >&5
7461 else
7462 echo "cannot find nm_test_var in $nlist" >&5
7464 else
7465 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7467 else
7468 echo "$progname: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7471 rm -rf conftest* conftst*
7473 # Do not use the global_symbol_pipe unless it works.
7474 if test yes = "$pipe_works"; then
7475 break
7476 else
7477 lt_cv_sys_global_symbol_pipe=
7479 done
7483 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7484 lt_cv_sys_global_symbol_to_cdecl=
7486 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7488 $as_echo "failed" >&6; }
7489 else
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7491 $as_echo "ok" >&6; }
7494 # Response file support.
7495 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7496 nm_file_list_spec='@'
7497 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7498 nm_file_list_spec='@'
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7538 $as_echo_n "checking for sysroot... " >&6; }
7540 # Check whether --with-sysroot was given.
7541 if test "${with_sysroot+set}" = set; then :
7542 withval=$with_sysroot;
7543 else
7544 with_sysroot=no
7548 lt_sysroot=
7549 case $with_sysroot in #(
7550 yes)
7551 if test yes = "$GCC"; then
7552 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7554 ;; #(
7556 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7557 ;; #(
7558 no|'')
7559 ;; #(
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7562 $as_echo "$with_sysroot" >&6; }
7563 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7565 esac
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7568 $as_echo "${lt_sysroot:-no}" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7575 $as_echo_n "checking for a working dd... " >&6; }
7576 if ${ac_cv_path_lt_DD+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 printf 0123456789abcdef0123456789abcdef >conftest.i
7580 cat conftest.i conftest.i >conftest2.i
7581 : ${lt_DD:=$DD}
7582 if test -z "$lt_DD"; then
7583 ac_path_lt_DD_found=false
7584 # Loop through the user's path and test for each of PROGNAME-LIST
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_prog in dd; do
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7593 as_fn_executable_p "$ac_path_lt_DD" || continue
7594 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7595 cmp -s conftest.i conftest.out \
7596 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7598 $ac_path_lt_DD_found && break 3
7599 done
7600 done
7601 done
7602 IFS=$as_save_IFS
7603 if test -z "$ac_cv_path_lt_DD"; then
7606 else
7607 ac_cv_path_lt_DD=$lt_DD
7610 rm -f conftest.i conftest2.i conftest.out
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7613 $as_echo "$ac_cv_path_lt_DD" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7617 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7618 if ${lt_cv_truncate_bin+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 printf 0123456789abcdef0123456789abcdef >conftest.i
7622 cat conftest.i conftest.i >conftest2.i
7623 lt_cv_truncate_bin=
7624 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7625 cmp -s conftest.i conftest.out \
7626 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7628 rm -f conftest.i conftest2.i conftest.out
7629 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7632 $as_echo "$lt_cv_truncate_bin" >&6; }
7640 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7641 func_cc_basename ()
7643 for cc_temp in $*""; do
7644 case $cc_temp in
7645 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7646 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7647 \-*) ;;
7648 *) break;;
7649 esac
7650 done
7651 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7654 # Check whether --enable-libtool-lock was given.
7655 if test "${enable_libtool_lock+set}" = set; then :
7656 enableval=$enable_libtool_lock;
7659 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7661 # Some flags need to be propagated to the compiler or linker for good
7662 # libtool support.
7663 case $host in
7664 ia64-*-hpux*)
7665 # Find out what ABI is being produced by ac_compile, and set mode
7666 # options accordingly.
7667 echo 'int i;' > conftest.$ac_ext
7668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7669 (eval $ac_compile) 2>&5
7670 ac_status=$?
7671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7672 test $ac_status = 0; }; then
7673 case `/usr/bin/file conftest.$ac_objext` in
7674 *ELF-32*)
7675 HPUX_IA64_MODE=32
7677 *ELF-64*)
7678 HPUX_IA64_MODE=64
7680 esac
7682 rm -rf conftest*
7684 *-*-irix6*)
7685 # Find out what ABI is being produced by ac_compile, and set linker
7686 # options accordingly.
7687 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7689 (eval $ac_compile) 2>&5
7690 ac_status=$?
7691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7692 test $ac_status = 0; }; then
7693 if test yes = "$lt_cv_prog_gnu_ld"; then
7694 case `/usr/bin/file conftest.$ac_objext` in
7695 *32-bit*)
7696 LD="${LD-ld} -melf32bsmip"
7698 *N32*)
7699 LD="${LD-ld} -melf32bmipn32"
7701 *64-bit*)
7702 LD="${LD-ld} -melf64bmip"
7704 esac
7705 else
7706 case `/usr/bin/file conftest.$ac_objext` in
7707 *32-bit*)
7708 LD="${LD-ld} -32"
7710 *N32*)
7711 LD="${LD-ld} -n32"
7713 *64-bit*)
7714 LD="${LD-ld} -64"
7716 esac
7719 rm -rf conftest*
7722 mips64*-*linux*)
7723 # Find out what ABI is being produced by ac_compile, and set linker
7724 # options accordingly.
7725 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727 (eval $ac_compile) 2>&5
7728 ac_status=$?
7729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then
7731 emul=elf
7732 case `/usr/bin/file conftest.$ac_objext` in
7733 *32-bit*)
7734 emul="${emul}32"
7736 *64-bit*)
7737 emul="${emul}64"
7739 esac
7740 case `/usr/bin/file conftest.$ac_objext` in
7741 *MSB*)
7742 emul="${emul}btsmip"
7744 *LSB*)
7745 emul="${emul}ltsmip"
7747 esac
7748 case `/usr/bin/file conftest.$ac_objext` in
7749 *N32*)
7750 emul="${emul}n32"
7752 esac
7753 LD="${LD-ld} -m $emul"
7755 rm -rf conftest*
7758 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7759 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7760 # Find out what ABI is being produced by ac_compile, and set linker
7761 # options accordingly. Note that the listed cases only cover the
7762 # situations where additional linker options are needed (such as when
7763 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7764 # vice versa); the common cases where no linker options are needed do
7765 # not appear in the list.
7766 echo 'int i;' > conftest.$ac_ext
7767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7768 (eval $ac_compile) 2>&5
7769 ac_status=$?
7770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7771 test $ac_status = 0; }; then
7772 case `/usr/bin/file conftest.o` in
7773 *32-bit*)
7774 case $host in
7775 x86_64-*kfreebsd*-gnu)
7776 LD="${LD-ld} -m elf_i386_fbsd"
7778 x86_64-*linux*)
7779 case `/usr/bin/file conftest.o` in
7780 *x86-64*)
7781 LD="${LD-ld} -m elf32_x86_64"
7784 LD="${LD-ld} -m elf_i386"
7786 esac
7788 powerpc64le-*linux*)
7789 LD="${LD-ld} -m elf32lppclinux"
7791 powerpc64-*linux*)
7792 LD="${LD-ld} -m elf32ppclinux"
7794 s390x-*linux*)
7795 LD="${LD-ld} -m elf_s390"
7797 sparc64-*linux*)
7798 LD="${LD-ld} -m elf32_sparc"
7800 esac
7802 *64-bit*)
7803 case $host in
7804 x86_64-*kfreebsd*-gnu)
7805 LD="${LD-ld} -m elf_x86_64_fbsd"
7807 x86_64-*linux*)
7808 LD="${LD-ld} -m elf_x86_64"
7810 powerpcle-*linux*)
7811 LD="${LD-ld} -m elf64lppc"
7813 powerpc-*linux*)
7814 LD="${LD-ld} -m elf64ppc"
7816 s390*-*linux*|s390*-*tpf*)
7817 LD="${LD-ld} -m elf64_s390"
7819 sparc*-*linux*)
7820 LD="${LD-ld} -m elf64_sparc"
7822 esac
7824 esac
7826 rm -rf conftest*
7829 *-*-sco3.2v5*)
7830 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7831 SAVE_CFLAGS=$CFLAGS
7832 CFLAGS="$CFLAGS -belf"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7834 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7835 if ${lt_cv_cc_needs_belf+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 ac_ext=c
7839 ac_cpp='$CPP $CPPFLAGS'
7840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7848 main ()
7852 return 0;
7854 _ACEOF
7855 if ac_fn_c_try_link "$LINENO"; then :
7856 lt_cv_cc_needs_belf=yes
7857 else
7858 lt_cv_cc_needs_belf=no
7860 rm -f core conftest.err conftest.$ac_objext \
7861 conftest$ac_exeext conftest.$ac_ext
7862 ac_ext=c
7863 ac_cpp='$CPP $CPPFLAGS'
7864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7870 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7871 if test yes != "$lt_cv_cc_needs_belf"; then
7872 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7873 CFLAGS=$SAVE_CFLAGS
7876 *-*solaris*)
7877 # Find out what ABI is being produced by ac_compile, and set linker
7878 # options accordingly.
7879 echo 'int i;' > conftest.$ac_ext
7880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7881 (eval $ac_compile) 2>&5
7882 ac_status=$?
7883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884 test $ac_status = 0; }; then
7885 case `/usr/bin/file conftest.o` in
7886 *64-bit*)
7887 case $lt_cv_prog_gnu_ld in
7888 yes*)
7889 case $host in
7890 i?86-*-solaris*|x86_64-*-solaris*)
7891 LD="${LD-ld} -m elf_x86_64"
7893 sparc*-*-solaris*)
7894 LD="${LD-ld} -m elf64_sparc"
7896 esac
7897 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7898 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7899 LD=${LD-ld}_sol2
7903 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7904 LD="${LD-ld} -64"
7907 esac
7909 esac
7911 rm -rf conftest*
7913 esac
7915 need_locks=$enable_libtool_lock
7917 if test -n "$ac_tool_prefix"; then
7918 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7919 set dummy ${ac_tool_prefix}mt; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 if test -n "$MANIFEST_TOOL"; then
7926 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7935 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7939 done
7940 done
7941 IFS=$as_save_IFS
7945 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7946 if test -n "$MANIFEST_TOOL"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7948 $as_echo "$MANIFEST_TOOL" >&6; }
7949 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7956 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7957 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7958 # Extract the first word of "mt", so it can be a program name with args.
7959 set dummy mt; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$ac_ct_MANIFEST_TOOL"; then
7966 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7979 done
7980 done
7981 IFS=$as_save_IFS
7985 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7986 if test -n "$ac_ct_MANIFEST_TOOL"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7988 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7994 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7995 MANIFEST_TOOL=":"
7996 else
7997 case $cross_compiling:$ac_tool_warned in
7998 yes:)
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001 ac_tool_warned=yes ;;
8002 esac
8003 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8005 else
8006 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8009 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8011 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8012 if ${lt_cv_path_mainfest_tool+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 lt_cv_path_mainfest_tool=no
8016 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8017 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8018 cat conftest.err >&5
8019 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8020 lt_cv_path_mainfest_tool=yes
8022 rm -f conftest*
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8025 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8026 if test yes != "$lt_cv_path_mainfest_tool"; then
8027 MANIFEST_TOOL=:
8035 case $host_os in
8036 rhapsody* | darwin*)
8037 if test -n "$ac_tool_prefix"; then
8038 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8039 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 if test -n "$DSYMUTIL"; then
8046 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 break 2
8059 done
8060 done
8061 IFS=$as_save_IFS
8065 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8066 if test -n "$DSYMUTIL"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8068 $as_echo "$DSYMUTIL" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8076 if test -z "$ac_cv_prog_DSYMUTIL"; then
8077 ac_ct_DSYMUTIL=$DSYMUTIL
8078 # Extract the first word of "dsymutil", so it can be a program name with args.
8079 set dummy dsymutil; ac_word=$2
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 $as_echo_n "checking for $ac_word... " >&6; }
8082 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 if test -n "$ac_ct_DSYMUTIL"; then
8086 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8087 else
8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 for as_dir in $PATH
8091 IFS=$as_save_IFS
8092 test -z "$as_dir" && as_dir=.
8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8095 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 break 2
8099 done
8100 done
8101 IFS=$as_save_IFS
8105 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8106 if test -n "$ac_ct_DSYMUTIL"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8108 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8109 else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8114 if test "x$ac_ct_DSYMUTIL" = x; then
8115 DSYMUTIL=":"
8116 else
8117 case $cross_compiling:$ac_tool_warned in
8118 yes:)
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8121 ac_tool_warned=yes ;;
8122 esac
8123 DSYMUTIL=$ac_ct_DSYMUTIL
8125 else
8126 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8129 if test -n "$ac_tool_prefix"; then
8130 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8131 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_NMEDIT+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$NMEDIT"; then
8138 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8151 done
8152 done
8153 IFS=$as_save_IFS
8157 NMEDIT=$ac_cv_prog_NMEDIT
8158 if test -n "$NMEDIT"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8160 $as_echo "$NMEDIT" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8168 if test -z "$ac_cv_prog_NMEDIT"; then
8169 ac_ct_NMEDIT=$NMEDIT
8170 # Extract the first word of "nmedit", so it can be a program name with args.
8171 set dummy nmedit; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 if test -n "$ac_ct_NMEDIT"; then
8178 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8191 done
8192 done
8193 IFS=$as_save_IFS
8197 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8198 if test -n "$ac_ct_NMEDIT"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8200 $as_echo "$ac_ct_NMEDIT" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8206 if test "x$ac_ct_NMEDIT" = x; then
8207 NMEDIT=":"
8208 else
8209 case $cross_compiling:$ac_tool_warned in
8210 yes:)
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213 ac_tool_warned=yes ;;
8214 esac
8215 NMEDIT=$ac_ct_NMEDIT
8217 else
8218 NMEDIT="$ac_cv_prog_NMEDIT"
8221 if test -n "$ac_tool_prefix"; then
8222 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8223 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if ${ac_cv_prog_LIPO+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 if test -n "$LIPO"; then
8230 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8243 done
8244 done
8245 IFS=$as_save_IFS
8249 LIPO=$ac_cv_prog_LIPO
8250 if test -n "$LIPO"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8252 $as_echo "$LIPO" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8260 if test -z "$ac_cv_prog_LIPO"; then
8261 ac_ct_LIPO=$LIPO
8262 # Extract the first word of "lipo", so it can be a program name with args.
8263 set dummy lipo; ac_word=$2
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 $as_echo_n "checking for $ac_word... " >&6; }
8266 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 if test -n "$ac_ct_LIPO"; then
8270 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279 ac_cv_prog_ac_ct_LIPO="lipo"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8283 done
8284 done
8285 IFS=$as_save_IFS
8289 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8290 if test -n "$ac_ct_LIPO"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8292 $as_echo "$ac_ct_LIPO" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8298 if test "x$ac_ct_LIPO" = x; then
8299 LIPO=":"
8300 else
8301 case $cross_compiling:$ac_tool_warned in
8302 yes:)
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8305 ac_tool_warned=yes ;;
8306 esac
8307 LIPO=$ac_ct_LIPO
8309 else
8310 LIPO="$ac_cv_prog_LIPO"
8313 if test -n "$ac_tool_prefix"; then
8314 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8315 set dummy ${ac_tool_prefix}otool; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_prog_OTOOL+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$OTOOL"; then
8322 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8337 IFS=$as_save_IFS
8341 OTOOL=$ac_cv_prog_OTOOL
8342 if test -n "$OTOOL"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8344 $as_echo "$OTOOL" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8352 if test -z "$ac_cv_prog_OTOOL"; then
8353 ac_ct_OTOOL=$OTOOL
8354 # Extract the first word of "otool", so it can be a program name with args.
8355 set dummy otool; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$ac_ct_OTOOL"; then
8362 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_ac_ct_OTOOL="otool"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8377 IFS=$as_save_IFS
8381 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8382 if test -n "$ac_ct_OTOOL"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8384 $as_echo "$ac_ct_OTOOL" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8390 if test "x$ac_ct_OTOOL" = x; then
8391 OTOOL=":"
8392 else
8393 case $cross_compiling:$ac_tool_warned in
8394 yes:)
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8397 ac_tool_warned=yes ;;
8398 esac
8399 OTOOL=$ac_ct_OTOOL
8401 else
8402 OTOOL="$ac_cv_prog_OTOOL"
8405 if test -n "$ac_tool_prefix"; then
8406 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8407 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if ${ac_cv_prog_OTOOL64+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 if test -n "$OTOOL64"; then
8414 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8427 done
8428 done
8429 IFS=$as_save_IFS
8433 OTOOL64=$ac_cv_prog_OTOOL64
8434 if test -n "$OTOOL64"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8436 $as_echo "$OTOOL64" >&6; }
8437 else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8444 if test -z "$ac_cv_prog_OTOOL64"; then
8445 ac_ct_OTOOL64=$OTOOL64
8446 # Extract the first word of "otool64", so it can be a program name with args.
8447 set dummy otool64; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 if test -n "$ac_ct_OTOOL64"; then
8454 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8463 ac_cv_prog_ac_ct_OTOOL64="otool64"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8467 done
8468 done
8469 IFS=$as_save_IFS
8473 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8474 if test -n "$ac_ct_OTOOL64"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8476 $as_echo "$ac_ct_OTOOL64" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8482 if test "x$ac_ct_OTOOL64" = x; then
8483 OTOOL64=":"
8484 else
8485 case $cross_compiling:$ac_tool_warned in
8486 yes:)
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8489 ac_tool_warned=yes ;;
8490 esac
8491 OTOOL64=$ac_ct_OTOOL64
8493 else
8494 OTOOL64="$ac_cv_prog_OTOOL64"
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8524 $as_echo_n "checking for -single_module linker flag... " >&6; }
8525 if ${lt_cv_apple_cc_single_mod+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 lt_cv_apple_cc_single_mod=no
8529 if test -z "$LT_MULTI_MODULE"; then
8530 # By default we will add the -single_module flag. You can override
8531 # by either setting the environment variable LT_MULTI_MODULE
8532 # non-empty at configure time, or by adding -multi_module to the
8533 # link flags.
8534 rm -rf libconftest.dylib*
8535 echo "int foo(void){return 1;}" > conftest.c
8536 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8537 -dynamiclib -Wl,-single_module conftest.c" >&5
8538 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8539 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8540 _lt_result=$?
8541 # If there is a non-empty error log, and "single_module"
8542 # appears in it, assume the flag caused a linker warning
8543 if test -s conftest.err && $GREP single_module conftest.err; then
8544 cat conftest.err >&5
8545 # Otherwise, if the output was created with a 0 exit code from
8546 # the compiler, it worked.
8547 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8548 lt_cv_apple_cc_single_mod=yes
8549 else
8550 cat conftest.err >&5
8552 rm -rf libconftest.dylib*
8553 rm -f conftest.*
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8557 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8560 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8561 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 lt_cv_ld_exported_symbols_list=no
8565 save_LDFLAGS=$LDFLAGS
8566 echo "_main" > conftest.sym
8567 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8572 main ()
8576 return 0;
8578 _ACEOF
8579 if ac_fn_c_try_link "$LINENO"; then :
8580 lt_cv_ld_exported_symbols_list=yes
8581 else
8582 lt_cv_ld_exported_symbols_list=no
8584 rm -f core conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8586 LDFLAGS=$save_LDFLAGS
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8590 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8593 $as_echo_n "checking for -force_load linker flag... " >&6; }
8594 if ${lt_cv_ld_force_load+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 lt_cv_ld_force_load=no
8598 cat > conftest.c << _LT_EOF
8599 int forced_loaded() { return 2;}
8600 _LT_EOF
8601 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8602 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8603 echo "$AR cru libconftest.a conftest.o" >&5
8604 $AR cru libconftest.a conftest.o 2>&5
8605 echo "$RANLIB libconftest.a" >&5
8606 $RANLIB libconftest.a 2>&5
8607 cat > conftest.c << _LT_EOF
8608 int main() { return 0;}
8609 _LT_EOF
8610 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8611 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8612 _lt_result=$?
8613 if test -s conftest.err && $GREP force_load conftest.err; then
8614 cat conftest.err >&5
8615 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8616 lt_cv_ld_force_load=yes
8617 else
8618 cat conftest.err >&5
8620 rm -f conftest.err libconftest.a conftest conftest.c
8621 rm -rf conftest.dSYM
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8625 $as_echo "$lt_cv_ld_force_load" >&6; }
8626 case $host_os in
8627 rhapsody* | darwin1.[012])
8628 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8629 darwin1.*)
8630 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8631 darwin*) # darwin 5.x on
8632 # if running on 10.5 or later, the deployment target defaults
8633 # to the OS version, if on x86, and 10.4, the deployment
8634 # target defaults to 10.4. Don't you love it?
8635 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8636 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8637 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8638 10.[012][,.]*)
8639 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8640 10.*)
8641 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8642 esac
8644 esac
8645 if test yes = "$lt_cv_apple_cc_single_mod"; then
8646 _lt_dar_single_mod='$single_module'
8648 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8649 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8650 else
8651 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8653 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8654 _lt_dsymutil='~$DSYMUTIL $lib || :'
8655 else
8656 _lt_dsymutil=
8659 esac
8661 # func_munge_path_list VARIABLE PATH
8662 # -----------------------------------
8663 # VARIABLE is name of variable containing _space_ separated list of
8664 # directories to be munged by the contents of PATH, which is string
8665 # having a format:
8666 # "DIR[:DIR]:"
8667 # string "DIR[ DIR]" will be prepended to VARIABLE
8668 # ":DIR[:DIR]"
8669 # string "DIR[ DIR]" will be appended to VARIABLE
8670 # "DIRP[:DIRP]::[DIRA:]DIRA"
8671 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8672 # "DIRA[ DIRA]" will be appended to VARIABLE
8673 # "DIR[:DIR]"
8674 # VARIABLE will be replaced by "DIR[ DIR]"
8675 func_munge_path_list ()
8677 case x$2 in
8681 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \S|@1\"
8683 x:*)
8684 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8686 *::*)
8687 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8688 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8691 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8693 esac
8696 ac_ext=c
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8702 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8703 # On Suns, sometimes $CPP names a directory.
8704 if test -n "$CPP" && test -d "$CPP"; then
8705 CPP=
8707 if test -z "$CPP"; then
8708 if ${ac_cv_prog_CPP+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 # Double quotes because CPP needs to be expanded
8712 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8714 ac_preproc_ok=false
8715 for ac_c_preproc_warn_flag in '' yes
8717 # Use a header file that comes with gcc, so configuring glibc
8718 # with a fresh cross-compiler works.
8719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 # <limits.h> exists even on freestanding compilers.
8721 # On the NeXT, cc -E runs the code through the compiler's parser,
8722 # not just through cpp. "Syntax error" is here to catch this case.
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8725 #ifdef __STDC__
8726 # include <limits.h>
8727 #else
8728 # include <assert.h>
8729 #endif
8730 Syntax error
8731 _ACEOF
8732 if ac_fn_c_try_cpp "$LINENO"; then :
8734 else
8735 # Broken: fails on valid input.
8736 continue
8738 rm -f conftest.err conftest.i conftest.$ac_ext
8740 # OK, works on sane cases. Now check whether nonexistent headers
8741 # can be detected and how.
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <ac_nonexistent.h>
8745 _ACEOF
8746 if ac_fn_c_try_cpp "$LINENO"; then :
8747 # Broken: success on invalid input.
8748 continue
8749 else
8750 # Passes both tests.
8751 ac_preproc_ok=:
8752 break
8754 rm -f conftest.err conftest.i conftest.$ac_ext
8756 done
8757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8758 rm -f conftest.i conftest.err conftest.$ac_ext
8759 if $ac_preproc_ok; then :
8760 break
8763 done
8764 ac_cv_prog_CPP=$CPP
8767 CPP=$ac_cv_prog_CPP
8768 else
8769 ac_cv_prog_CPP=$CPP
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8772 $as_echo "$CPP" >&6; }
8773 ac_preproc_ok=false
8774 for ac_c_preproc_warn_flag in '' yes
8776 # Use a header file that comes with gcc, so configuring glibc
8777 # with a fresh cross-compiler works.
8778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8779 # <limits.h> exists even on freestanding compilers.
8780 # On the NeXT, cc -E runs the code through the compiler's parser,
8781 # not just through cpp. "Syntax error" is here to catch this case.
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 #ifdef __STDC__
8785 # include <limits.h>
8786 #else
8787 # include <assert.h>
8788 #endif
8789 Syntax error
8790 _ACEOF
8791 if ac_fn_c_try_cpp "$LINENO"; then :
8793 else
8794 # Broken: fails on valid input.
8795 continue
8797 rm -f conftest.err conftest.i conftest.$ac_ext
8799 # OK, works on sane cases. Now check whether nonexistent headers
8800 # can be detected and how.
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 #include <ac_nonexistent.h>
8804 _ACEOF
8805 if ac_fn_c_try_cpp "$LINENO"; then :
8806 # Broken: success on invalid input.
8807 continue
8808 else
8809 # Passes both tests.
8810 ac_preproc_ok=:
8811 break
8813 rm -f conftest.err conftest.i conftest.$ac_ext
8815 done
8816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8817 rm -f conftest.i conftest.err conftest.$ac_ext
8818 if $ac_preproc_ok; then :
8820 else
8821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8823 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8824 See \`config.log' for more details" "$LINENO" 5; }
8827 ac_ext=c
8828 ac_cpp='$CPP $CPPFLAGS'
8829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8835 $as_echo_n "checking for ANSI C header files... " >&6; }
8836 if ${ac_cv_header_stdc+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 #include <stdlib.h>
8842 #include <stdarg.h>
8843 #include <string.h>
8844 #include <float.h>
8847 main ()
8851 return 0;
8853 _ACEOF
8854 if ac_fn_c_try_compile "$LINENO"; then :
8855 ac_cv_header_stdc=yes
8856 else
8857 ac_cv_header_stdc=no
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 if test $ac_cv_header_stdc = yes; then
8862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 #include <string.h>
8867 _ACEOF
8868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8869 $EGREP "memchr" >/dev/null 2>&1; then :
8871 else
8872 ac_cv_header_stdc=no
8874 rm -f conftest*
8878 if test $ac_cv_header_stdc = yes; then
8879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #include <stdlib.h>
8884 _ACEOF
8885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8886 $EGREP "free" >/dev/null 2>&1; then :
8888 else
8889 ac_cv_header_stdc=no
8891 rm -f conftest*
8895 if test $ac_cv_header_stdc = yes; then
8896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8897 if test "$cross_compiling" = yes; then :
8899 else
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 #include <ctype.h>
8903 #include <stdlib.h>
8904 #if ((' ' & 0x0FF) == 0x020)
8905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8907 #else
8908 # define ISLOWER(c) \
8909 (('a' <= (c) && (c) <= 'i') \
8910 || ('j' <= (c) && (c) <= 'r') \
8911 || ('s' <= (c) && (c) <= 'z'))
8912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8913 #endif
8915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8917 main ()
8919 int i;
8920 for (i = 0; i < 256; i++)
8921 if (XOR (islower (i), ISLOWER (i))
8922 || toupper (i) != TOUPPER (i))
8923 return 2;
8924 return 0;
8926 _ACEOF
8927 if ac_fn_c_try_run "$LINENO"; then :
8929 else
8930 ac_cv_header_stdc=no
8932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8933 conftest.$ac_objext conftest.beam conftest.$ac_ext
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8939 $as_echo "$ac_cv_header_stdc" >&6; }
8940 if test $ac_cv_header_stdc = yes; then
8942 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8946 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8948 inttypes.h stdint.h unistd.h
8949 do :
8950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8951 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8954 cat >>confdefs.h <<_ACEOF
8955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8956 _ACEOF
8960 done
8963 for ac_header in dlfcn.h
8964 do :
8965 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8967 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8968 cat >>confdefs.h <<_ACEOF
8969 #define HAVE_DLFCN_H 1
8970 _ACEOF
8974 done
8977 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8978 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8979 # is not polluted with repeated "-I."
8980 am__isrc=' -I$(srcdir)'
8981 # test to see if srcdir already configured
8982 if test -f $srcdir/config.status; then
8983 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8987 # test whether we have cygpath
8988 if test -z "$CYGPATH_W"; then
8989 if (cygpath --version) >/dev/null 2>/dev/null; then
8990 CYGPATH_W='cygpath -w'
8991 else
8992 CYGPATH_W=echo
8997 # Define the identity of the package.
8998 PACKAGE='tex-live'
8999 VERSION='2014-11-24'
9002 cat >>confdefs.h <<_ACEOF
9003 #define PACKAGE "$PACKAGE"
9004 _ACEOF
9007 cat >>confdefs.h <<_ACEOF
9008 #define VERSION "$VERSION"
9009 _ACEOF
9011 # Some tools Automake needs.
9013 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9016 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9019 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9022 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9025 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9027 # For better backward compatibility. To be removed once Automake 1.9.x
9028 # dies out for good. For more background, see:
9029 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9030 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9031 mkdir_p='$(MKDIR_P)'
9033 # We need awk for the "check" target (and possibly the TAP driver). The
9034 # system "awk" is bad on some platforms.
9035 # Always define AMTAR for backward compatibility. Yes, it's still used
9036 # in the wild :-( We should find a proper way to deprecate it ...
9037 AMTAR='$${TAR-tar}'
9040 # We'll loop over all known methods to create a tar archive until one works.
9041 _am_tools='gnutar pax cpio none'
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
9046 $as_echo_n "checking how to create a pax tar archive... " >&6; }
9048 # Go ahead even if we have the value already cached. We do so because we
9049 # need to set the values for the 'am__tar' and 'am__untar' variables.
9050 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
9052 for _am_tool in $_am_tools; do
9053 case $_am_tool in
9054 gnutar)
9055 for _am_tar in tar gnutar gtar; do
9056 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9057 ($_am_tar --version) >&5 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } && break
9061 done
9062 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
9063 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
9064 am__untar="$_am_tar -xf -"
9066 plaintar)
9067 # Must skip GNU tar: if it does not support --format= it doesn't create
9068 # ustar tarball either.
9069 (tar --version) >/dev/null 2>&1 && continue
9070 am__tar='tar chf - "$$tardir"'
9071 am__tar_='tar chf - "$tardir"'
9072 am__untar='tar xf -'
9074 pax)
9075 am__tar='pax -L -x pax -w "$$tardir"'
9076 am__tar_='pax -L -x pax -w "$tardir"'
9077 am__untar='pax -r'
9079 cpio)
9080 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
9081 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
9082 am__untar='cpio -i -H pax -d'
9084 none)
9085 am__tar=false
9086 am__tar_=false
9087 am__untar=false
9089 esac
9091 # If the value was cached, stop now. We just wanted to have am__tar
9092 # and am__untar set.
9093 test -n "${am_cv_prog_tar_pax}" && break
9095 # tar/untar a dummy directory, and stop if the command works.
9096 rm -rf conftest.dir
9097 mkdir conftest.dir
9098 echo GrepMe > conftest.dir/file
9099 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9100 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }
9104 rm -rf conftest.dir
9105 if test -s conftest.tar; then
9106 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9107 ($am__untar <conftest.tar) >&5 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }
9111 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9112 (cat conftest.dir/file) >&5 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }
9116 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9118 done
9119 rm -rf conftest.dir
9121 if ${am_cv_prog_tar_pax+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 am_cv_prog_tar_pax=$_am_tool
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
9128 $as_echo "$am_cv_prog_tar_pax" >&6; }
9134 depcc="$CC" am_compiler_list=
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9137 $as_echo_n "checking dependency style of $depcc... " >&6; }
9138 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9142 # We make a subdir and do the tests there. Otherwise we can end up
9143 # making bogus files that we don't know about and never remove. For
9144 # instance it was reported that on HP-UX the gcc test will end up
9145 # making a dummy file named 'D' -- because '-MD' means "put the output
9146 # in D".
9147 rm -rf conftest.dir
9148 mkdir conftest.dir
9149 # Copy depcomp to subdir because otherwise we won't find it if we're
9150 # using a relative directory.
9151 cp "$am_depcomp" conftest.dir
9152 cd conftest.dir
9153 # We will build objects and dependencies in a subdirectory because
9154 # it helps to detect inapplicable dependency modes. For instance
9155 # both Tru64's cc and ICC support -MD to output dependencies as a
9156 # side effect of compilation, but ICC will put the dependencies in
9157 # the current directory while Tru64 will put them in the object
9158 # directory.
9159 mkdir sub
9161 am_cv_CC_dependencies_compiler_type=none
9162 if test "$am_compiler_list" = ""; then
9163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9165 am__universal=false
9166 case " $depcc " in #(
9167 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9168 esac
9170 for depmode in $am_compiler_list; do
9171 # Setup a source with many dependencies, because some compilers
9172 # like to wrap large dependency lists on column 80 (with \), and
9173 # we should not choose a depcomp mode which is confused by this.
9175 # We need to recreate these files for each test, as the compiler may
9176 # overwrite some of them when testing with obscure command lines.
9177 # This happens at least with the AIX C compiler.
9178 : > sub/conftest.c
9179 for i in 1 2 3 4 5 6; do
9180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9181 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9182 # Solaris 10 /bin/sh.
9183 echo '/* dummy */' > sub/conftst$i.h
9184 done
9185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9187 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9188 # mode. It turns out that the SunPro C++ compiler does not properly
9189 # handle '-M -o', and we need to detect this. Also, some Intel
9190 # versions had trouble with output in subdirs.
9191 am__obj=sub/conftest.${OBJEXT-o}
9192 am__minus_obj="-o $am__obj"
9193 case $depmode in
9194 gcc)
9195 # This depmode causes a compiler race in universal mode.
9196 test "$am__universal" = false || continue
9198 nosideeffect)
9199 # After this tag, mechanisms are not by side-effect, so they'll
9200 # only be used when explicitly requested.
9201 if test "x$enable_dependency_tracking" = xyes; then
9202 continue
9203 else
9204 break
9207 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9208 # This compiler won't grok '-c -o', but also, the minuso test has
9209 # not run yet. These depmodes are late enough in the game, and
9210 # so weak that their functioning should not be impacted.
9211 am__obj=conftest.${OBJEXT-o}
9212 am__minus_obj=
9214 none) break ;;
9215 esac
9216 if depmode=$depmode \
9217 source=sub/conftest.c object=$am__obj \
9218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9220 >/dev/null 2>conftest.err &&
9221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9225 # icc doesn't choke on unknown options, it will just issue warnings
9226 # or remarks (even with -Werror). So we grep stderr for any message
9227 # that says an option was ignored or not supported.
9228 # When given -MP, icc 7.0 and 7.1 complain thusly:
9229 # icc: Command line warning: ignoring option '-M'; no argument required
9230 # The diagnosis changed in icc 8.0:
9231 # icc: Command line remark: option '-MP' not supported
9232 if (grep 'ignoring option' conftest.err ||
9233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9234 am_cv_CC_dependencies_compiler_type=$depmode
9235 break
9238 done
9240 cd ..
9241 rm -rf conftest.dir
9242 else
9243 am_cv_CC_dependencies_compiler_type=none
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9248 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9252 test "x$enable_dependency_tracking" != xno \
9253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9254 am__fastdepCC_TRUE=
9255 am__fastdepCC_FALSE='#'
9256 else
9257 am__fastdepCC_TRUE='#'
9258 am__fastdepCC_FALSE=
9263 # POSIX will say in a future version that running "rm -f" with no argument
9264 # is OK; and we want to be able to make that assumption in our Makefile
9265 # recipes. So use an aggressive probe to check that the usage we want is
9266 # actually supported "in the wild" to an acceptable degree.
9267 # See automake bug#10828.
9268 # To make any issue more visible, cause the running configure to be aborted
9269 # by default if the 'rm' program in use doesn't match our expectations; the
9270 # user can still override this though.
9271 if rm -f && rm -fr && rm -rf; then : OK; else
9272 cat >&2 <<'END'
9273 Oops!
9275 Your 'rm' program seems unable to run without file operands specified
9276 on the command line, even when the '-f' option is present. This is contrary
9277 to the behaviour of most rm programs out there, and not conforming with
9278 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9280 Please tell bug-automake@gnu.org about your system, including the value
9281 of your $PATH and any error possibly output before this message. This
9282 can help us improve future automake versions.
9285 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9286 echo 'Configuration will proceed anyway, since you have set the' >&2
9287 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9288 echo >&2
9289 else
9290 cat >&2 <<'END'
9291 Aborting the configuration process, to ensure you take notice of the issue.
9293 You can download and install GNU coreutils to get an 'rm' implementation
9294 that behaves properly: <http://www.gnu.org/software/coreutils/>.
9296 If you want to complete the configuration process using your problematic
9297 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9298 to "yes", and re-run configure.
9301 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9307 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9308 # Check whether --enable-maintainer-mode was given.
9309 if test "${enable_maintainer_mode+set}" = set; then :
9310 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9311 else
9312 USE_MAINTAINER_MODE=no
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9316 $as_echo "$USE_MAINTAINER_MODE" >&6; }
9317 if test $USE_MAINTAINER_MODE = yes; then
9318 MAINTAINER_MODE_TRUE=
9319 MAINTAINER_MODE_FALSE='#'
9320 else
9321 MAINTAINER_MODE_TRUE='#'
9322 MAINTAINER_MODE_FALSE=
9325 MAINT=$MAINTAINER_MODE_TRUE
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9329 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
9330 if ${kb_cv_c_prototypes+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 #include <stdarg.h>
9337 main ()
9339 extern void foo(int i,...);
9341 return 0;
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9345 kb_cv_c_prototypes=yes
9346 else
9347 kb_cv_c_prototypes=no
9349 rm -f core conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9353 $as_echo "$kb_cv_c_prototypes" >&6; }
9354 if test "x$kb_cv_c_prototypes" = xno; then
9355 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9358 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
9359 if ${kpse_cv_warning_cflags+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 if test "x$GCC" = xyes; then
9363 kpse_cv_warning_cflags=
9364 if test "x$enable_compiler_warnings" != xno; then
9365 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9366 case `$CC -dumpversion` in #(
9367 3.4.* | 4.*) :
9368 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9369 *) :
9371 esac
9372 case `$CC -dumpversion` in #(
9373 3.[234].* | 4.*) :
9374 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9375 *) :
9377 esac
9378 if test "x$enable_compiler_warnings" != xmin; then
9379 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9380 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9381 if test "x$enable_compiler_warnings" != xyes; then
9382 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9383 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9384 case `$CC -dumpversion` in #(
9385 3.4.* | 4.*) :
9386 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9387 *) :
9389 esac
9390 if test "x$enable_compiler_warnings" != xmax; then
9391 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9396 elif test "x$enable_compiler_warnings" = xno; then
9397 kpse_cv_warning_cflags=
9398 else
9399 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9403 $as_echo "$kpse_cv_warning_cflags" >&6; }
9404 WARNING_CFLAGS=$kpse_cv_warning_cflags
9417 # Set options
9418 enable_win32_dll=yes
9420 case $host in
9421 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9422 if test -n "$ac_tool_prefix"; then
9423 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9424 set dummy ${ac_tool_prefix}as; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if ${ac_cv_prog_AS+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 if test -n "$AS"; then
9431 ac_cv_prog_AS="$AS" # Let the user override the test.
9432 else
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9440 ac_cv_prog_AS="${ac_tool_prefix}as"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9444 done
9445 done
9446 IFS=$as_save_IFS
9450 AS=$ac_cv_prog_AS
9451 if test -n "$AS"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9453 $as_echo "$AS" >&6; }
9454 else
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9461 if test -z "$ac_cv_prog_AS"; then
9462 ac_ct_AS=$AS
9463 # Extract the first word of "as", so it can be a program name with args.
9464 set dummy as; ac_word=$2
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466 $as_echo_n "checking for $ac_word... " >&6; }
9467 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 if test -n "$ac_ct_AS"; then
9471 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9472 else
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 for as_dir in $PATH
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480 ac_cv_prog_ac_ct_AS="as"
9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9484 done
9485 done
9486 IFS=$as_save_IFS
9490 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9491 if test -n "$ac_ct_AS"; then
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9493 $as_echo "$ac_ct_AS" >&6; }
9494 else
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496 $as_echo "no" >&6; }
9499 if test "x$ac_ct_AS" = x; then
9500 AS="false"
9501 else
9502 case $cross_compiling:$ac_tool_warned in
9503 yes:)
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9506 ac_tool_warned=yes ;;
9507 esac
9508 AS=$ac_ct_AS
9510 else
9511 AS="$ac_cv_prog_AS"
9514 if test -n "$ac_tool_prefix"; then
9515 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9516 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if ${ac_cv_prog_DLLTOOL+:} false; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 if test -n "$DLLTOOL"; then
9523 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9524 else
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9528 IFS=$as_save_IFS
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9532 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534 break 2
9536 done
9537 done
9538 IFS=$as_save_IFS
9542 DLLTOOL=$ac_cv_prog_DLLTOOL
9543 if test -n "$DLLTOOL"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9545 $as_echo "$DLLTOOL" >&6; }
9546 else
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9553 if test -z "$ac_cv_prog_DLLTOOL"; then
9554 ac_ct_DLLTOOL=$DLLTOOL
9555 # Extract the first word of "dlltool", so it can be a program name with args.
9556 set dummy dlltool; ac_word=$2
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558 $as_echo_n "checking for $ac_word... " >&6; }
9559 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 if test -n "$ac_ct_DLLTOOL"; then
9563 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9564 else
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566 for as_dir in $PATH
9568 IFS=$as_save_IFS
9569 test -z "$as_dir" && as_dir=.
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9572 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 break 2
9576 done
9577 done
9578 IFS=$as_save_IFS
9582 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9583 if test -n "$ac_ct_DLLTOOL"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9585 $as_echo "$ac_ct_DLLTOOL" >&6; }
9586 else
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9591 if test "x$ac_ct_DLLTOOL" = x; then
9592 DLLTOOL="false"
9593 else
9594 case $cross_compiling:$ac_tool_warned in
9595 yes:)
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9598 ac_tool_warned=yes ;;
9599 esac
9600 DLLTOOL=$ac_ct_DLLTOOL
9602 else
9603 DLLTOOL="$ac_cv_prog_DLLTOOL"
9606 if test -n "$ac_tool_prefix"; then
9607 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9608 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_prog_OBJDUMP+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 if test -n "$OBJDUMP"; then
9615 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9616 else
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 for as_dir in $PATH
9620 IFS=$as_save_IFS
9621 test -z "$as_dir" && as_dir=.
9622 for ac_exec_ext in '' $ac_executable_extensions; do
9623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9624 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9626 break 2
9628 done
9629 done
9630 IFS=$as_save_IFS
9634 OBJDUMP=$ac_cv_prog_OBJDUMP
9635 if test -n "$OBJDUMP"; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9637 $as_echo "$OBJDUMP" >&6; }
9638 else
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640 $as_echo "no" >&6; }
9645 if test -z "$ac_cv_prog_OBJDUMP"; then
9646 ac_ct_OBJDUMP=$OBJDUMP
9647 # Extract the first word of "objdump", so it can be a program name with args.
9648 set dummy objdump; ac_word=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 if test -n "$ac_ct_OBJDUMP"; then
9655 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9656 else
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9664 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9668 done
9669 done
9670 IFS=$as_save_IFS
9674 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9675 if test -n "$ac_ct_OBJDUMP"; then
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9677 $as_echo "$ac_ct_OBJDUMP" >&6; }
9678 else
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9683 if test "x$ac_ct_OBJDUMP" = x; then
9684 OBJDUMP="false"
9685 else
9686 case $cross_compiling:$ac_tool_warned in
9687 yes:)
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9690 ac_tool_warned=yes ;;
9691 esac
9692 OBJDUMP=$ac_ct_OBJDUMP
9694 else
9695 OBJDUMP="$ac_cv_prog_OBJDUMP"
9699 esac
9701 test -z "$AS" && AS=as
9707 test -z "$DLLTOOL" && DLLTOOL=dlltool
9713 test -z "$OBJDUMP" && OBJDUMP=objdump
9721 enable_dlopen=no
9725 # Check whether --enable-shared was given.
9726 if test "${enable_shared+set}" = set; then :
9727 enableval=$enable_shared; p=${PACKAGE-default}
9728 case $enableval in
9729 yes) enable_shared=yes ;;
9730 no) enable_shared=no ;;
9732 enable_shared=no
9733 # Look at the argument we got. We use all the common list separators.
9734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9735 for pkg in $enableval; do
9736 IFS=$lt_save_ifs
9737 if test "X$pkg" = "X$p"; then
9738 enable_shared=yes
9740 done
9741 IFS=$lt_save_ifs
9743 esac
9744 else
9745 enable_shared=yes
9756 # Check whether --enable-static was given.
9757 if test "${enable_static+set}" = set; then :
9758 enableval=$enable_static; p=${PACKAGE-default}
9759 case $enableval in
9760 yes) enable_static=yes ;;
9761 no) enable_static=no ;;
9763 enable_static=no
9764 # Look at the argument we got. We use all the common list separators.
9765 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9766 for pkg in $enableval; do
9767 IFS=$lt_save_ifs
9768 if test "X$pkg" = "X$p"; then
9769 enable_static=yes
9771 done
9772 IFS=$lt_save_ifs
9774 esac
9775 else
9776 enable_static=yes
9788 # Check whether --with-pic was given.
9789 if test "${with_pic+set}" = set; then :
9790 withval=$with_pic; lt_p=${PACKAGE-default}
9791 case $withval in
9792 yes|no) pic_mode=$withval ;;
9794 pic_mode=default
9795 # Look at the argument we got. We use all the common list separators.
9796 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9797 for lt_pkg in $withval; do
9798 IFS=$lt_save_ifs
9799 if test "X$lt_pkg" = "X$lt_p"; then
9800 pic_mode=yes
9802 done
9803 IFS=$lt_save_ifs
9805 esac
9806 else
9807 pic_mode=default
9817 # Check whether --enable-fast-install was given.
9818 if test "${enable_fast_install+set}" = set; then :
9819 enableval=$enable_fast_install; p=${PACKAGE-default}
9820 case $enableval in
9821 yes) enable_fast_install=yes ;;
9822 no) enable_fast_install=no ;;
9824 enable_fast_install=no
9825 # Look at the argument we got. We use all the common list separators.
9826 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9827 for pkg in $enableval; do
9828 IFS=$lt_save_ifs
9829 if test "X$pkg" = "X$p"; then
9830 enable_fast_install=yes
9832 done
9833 IFS=$lt_save_ifs
9835 esac
9836 else
9837 enable_fast_install=yes
9847 shared_archive_member_spec=
9848 case $host,$enable_shared in
9849 power*-*-aix[5-9]*,yes)
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9851 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9853 # Check whether --with-aix-soname was given.
9854 if test "${with_aix_soname+set}" = set; then :
9855 withval=$with_aix_soname; case $withval in
9856 aix|svr4|both)
9859 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9861 esac
9862 lt_cv_with_aix_soname=$with_aix_soname
9863 else
9864 if ${lt_cv_with_aix_soname+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 lt_cv_with_aix_soname=aix
9870 with_aix_soname=$lt_cv_with_aix_soname
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9874 $as_echo "$with_aix_soname" >&6; }
9875 if test aix != "$with_aix_soname"; then
9876 # For the AIX way of multilib, we name the shared archive member
9877 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9878 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9879 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9880 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9881 if test 64 = "${OBJECT_MODE-32}"; then
9882 shared_archive_member_spec=shr_64
9883 else
9884 shared_archive_member_spec=shr
9889 with_aix_soname=aix
9891 esac
9902 # This can be used to rebuild libtool when needed
9903 LIBTOOL_DEPS=$ltmain
9905 # Always use our own libtool.
9906 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9937 test -z "$LN_S" && LN_S="ln -s"
9952 if test -n "${ZSH_VERSION+set}"; then
9953 setopt NO_GLOB_SUBST
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9957 $as_echo_n "checking for objdir... " >&6; }
9958 if ${lt_cv_objdir+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 rm -f .libs 2>/dev/null
9962 mkdir .libs 2>/dev/null
9963 if test -d .libs; then
9964 lt_cv_objdir=.libs
9965 else
9966 # MS-DOS does not allow filenames that begin with a dot.
9967 lt_cv_objdir=_libs
9969 rmdir .libs 2>/dev/null
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9972 $as_echo "$lt_cv_objdir" >&6; }
9973 objdir=$lt_cv_objdir
9979 cat >>confdefs.h <<_ACEOF
9980 #define LT_OBJDIR "$lt_cv_objdir/"
9981 _ACEOF
9986 case $host_os in
9987 aix3*)
9988 # AIX sometimes has problems with the GCC collect2 program. For some
9989 # reason, if we set the COLLECT_NAMES environment variable, the problems
9990 # vanish in a puff of smoke.
9991 if test set != "${COLLECT_NAMES+set}"; then
9992 COLLECT_NAMES=
9993 export COLLECT_NAMES
9996 esac
9998 # Global variables:
9999 ofile=libtool
10000 can_build_shared=yes
10002 # All known linkers require a '.a' archive for static linking (except MSVC,
10003 # which needs '.lib').
10004 libext=a
10006 with_gnu_ld=$lt_cv_prog_gnu_ld
10008 old_CC=$CC
10009 old_CFLAGS=$CFLAGS
10011 # Set sane defaults for various variables
10012 test -z "$CC" && CC=cc
10013 test -z "$LTCC" && LTCC=$CC
10014 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10015 test -z "$LD" && LD=ld
10016 test -z "$ac_objext" && ac_objext=o
10018 func_cc_basename $compiler
10019 cc_basename=$func_cc_basename_result
10022 # Only perform the check for file, if the check method requires it
10023 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10024 case $deplibs_check_method in
10025 file_magic*)
10026 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10028 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10029 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 case $MAGIC_CMD in
10033 [\\/*] | ?:[\\/]*)
10034 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10037 lt_save_MAGIC_CMD=$MAGIC_CMD
10038 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10039 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10040 for ac_dir in $ac_dummy; do
10041 IFS=$lt_save_ifs
10042 test -z "$ac_dir" && ac_dir=.
10043 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10044 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10045 if test -n "$file_magic_test_file"; then
10046 case $deplibs_check_method in
10047 "file_magic "*)
10048 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10049 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10050 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10051 $EGREP "$file_magic_regex" > /dev/null; then
10053 else
10054 cat <<_LT_EOF 1>&2
10056 *** Warning: the command libtool uses to detect shared libraries,
10057 *** $file_magic_cmd, produces output that libtool cannot recognize.
10058 *** The result is that libtool may fail to recognize shared libraries
10059 *** as such. This will affect the creation of libtool libraries that
10060 *** depend on shared libraries, but programs linked with such libtool
10061 *** libraries will work regardless of this problem. Nevertheless, you
10062 *** may want to report the problem to your system manager and/or to
10063 *** bug-libtool@gnu.org
10065 _LT_EOF
10066 fi ;;
10067 esac
10069 break
10071 done
10072 IFS=$lt_save_ifs
10073 MAGIC_CMD=$lt_save_MAGIC_CMD
10075 esac
10078 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10079 if test -n "$MAGIC_CMD"; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10081 $as_echo "$MAGIC_CMD" >&6; }
10082 else
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 $as_echo "no" >&6; }
10091 if test -z "$lt_cv_path_MAGIC_CMD"; then
10092 if test -n "$ac_tool_prefix"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10094 $as_echo_n "checking for file... " >&6; }
10095 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 case $MAGIC_CMD in
10099 [\\/*] | ?:[\\/]*)
10100 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10103 lt_save_MAGIC_CMD=$MAGIC_CMD
10104 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10105 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10106 for ac_dir in $ac_dummy; do
10107 IFS=$lt_save_ifs
10108 test -z "$ac_dir" && ac_dir=.
10109 if test -f "$ac_dir/file"; then
10110 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10111 if test -n "$file_magic_test_file"; then
10112 case $deplibs_check_method in
10113 "file_magic "*)
10114 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10115 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10116 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10117 $EGREP "$file_magic_regex" > /dev/null; then
10119 else
10120 cat <<_LT_EOF 1>&2
10122 *** Warning: the command libtool uses to detect shared libraries,
10123 *** $file_magic_cmd, produces output that libtool cannot recognize.
10124 *** The result is that libtool may fail to recognize shared libraries
10125 *** as such. This will affect the creation of libtool libraries that
10126 *** depend on shared libraries, but programs linked with such libtool
10127 *** libraries will work regardless of this problem. Nevertheless, you
10128 *** may want to report the problem to your system manager and/or to
10129 *** bug-libtool@gnu.org
10131 _LT_EOF
10132 fi ;;
10133 esac
10135 break
10137 done
10138 IFS=$lt_save_ifs
10139 MAGIC_CMD=$lt_save_MAGIC_CMD
10141 esac
10144 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10145 if test -n "$MAGIC_CMD"; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10147 $as_echo "$MAGIC_CMD" >&6; }
10148 else
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10154 else
10155 MAGIC_CMD=:
10161 esac
10163 # Use C for the default configuration in the libtool script
10165 lt_save_CC=$CC
10166 ac_ext=c
10167 ac_cpp='$CPP $CPPFLAGS'
10168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10173 # Source file extension for C test sources.
10174 ac_ext=c
10176 # Object file extension for compiled C test sources.
10177 objext=o
10178 objext=$objext
10180 # Code to be used in simple compile tests
10181 lt_simple_compile_test_code="int some_variable = 0;"
10183 # Code to be used in simple link tests
10184 lt_simple_link_test_code='int main(){return(0);}'
10192 # If no C compiler was specified, use CC.
10193 LTCC=${LTCC-"$CC"}
10195 # If no C compiler flags were specified, use CFLAGS.
10196 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10198 # Allow CC to be a program name with arguments.
10199 compiler=$CC
10201 # Save the default compiler, since it gets overwritten when the other
10202 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10203 compiler_DEFAULT=$CC
10205 # save warnings/boilerplate of simple test code
10206 ac_outfile=conftest.$ac_objext
10207 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10208 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10209 _lt_compiler_boilerplate=`cat conftest.err`
10210 $RM conftest*
10212 ac_outfile=conftest.$ac_objext
10213 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10214 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10215 _lt_linker_boilerplate=`cat conftest.err`
10216 $RM -r conftest*
10219 ## CAVEAT EMPTOR:
10220 ## There is no encapsulation within the following macros, do not change
10221 ## the running order or otherwise move them around unless you know exactly
10222 ## what you are doing...
10223 if test -n "$compiler"; then
10225 lt_prog_compiler_no_builtin_flag=
10227 if test yes = "$GCC"; then
10228 case $cc_basename in
10229 nvcc*)
10230 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10232 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10233 esac
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10236 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10237 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 lt_cv_prog_compiler_rtti_exceptions=no
10241 ac_outfile=conftest.$ac_objext
10242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10243 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10244 # Insert the option either (1) after the last *FLAGS variable, or
10245 # (2) before a word containing "conftest.", or (3) at the end.
10246 # Note that $ac_compile itself does not contain backslashes and begins
10247 # with a dollar sign (not a hyphen), so the echo should work correctly.
10248 # The option is referenced via a variable to avoid confusing sed.
10249 lt_compile=`echo "$ac_compile" | $SED \
10250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10252 -e 's:$: $lt_compiler_flag:'`
10253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10254 (eval "$lt_compile" 2>conftest.err)
10255 ac_status=$?
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 if (exit $ac_status) && test -s "$ac_outfile"; then
10259 # The compiler can only warn and ignore the option if not recognized
10260 # So say no if there are warnings other than the usual output.
10261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10264 lt_cv_prog_compiler_rtti_exceptions=yes
10267 $RM conftest*
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10271 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10273 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10274 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10275 else
10286 lt_prog_compiler_wl=
10287 lt_prog_compiler_pic=
10288 lt_prog_compiler_static=
10291 if test yes = "$GCC"; then
10292 lt_prog_compiler_wl='-Wl,'
10293 lt_prog_compiler_static='-static'
10295 case $host_os in
10296 aix*)
10297 # All AIX code is PIC.
10298 if test ia64 = "$host_cpu"; then
10299 # AIX 5 now supports IA64 processor
10300 lt_prog_compiler_static='-Bstatic'
10302 lt_prog_compiler_pic='-fPIC'
10305 amigaos*)
10306 case $host_cpu in
10307 powerpc)
10308 # see comment about AmigaOS4 .so support
10309 lt_prog_compiler_pic='-fPIC'
10311 m68k)
10312 # FIXME: we need at least 68020 code to build shared libraries, but
10313 # adding the '-m68020' flag to GCC prevents building anything better,
10314 # like '-m68040'.
10315 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10317 esac
10320 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10321 # PIC is the default for these OSes.
10324 mingw* | cygwin* | pw32* | os2* | cegcc*)
10325 # This hack is so that the source file can tell whether it is being
10326 # built for inclusion in a dll (and should export symbols for example).
10327 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10328 # (--disable-auto-import) libraries
10329 lt_prog_compiler_pic='-DDLL_EXPORT'
10330 case $host_os in
10331 os2*)
10332 lt_prog_compiler_static='$wl-static'
10334 esac
10337 darwin* | rhapsody*)
10338 # PIC is the default on this platform
10339 # Common symbols not allowed in MH_DYLIB files
10340 lt_prog_compiler_pic='-fno-common'
10343 haiku*)
10344 # PIC is the default for Haiku.
10345 # The "-static" flag exists, but is broken.
10346 lt_prog_compiler_static=
10349 hpux*)
10350 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10351 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10352 # sets the default TLS model and affects inlining.
10353 case $host_cpu in
10354 hppa*64*)
10355 # +Z the default
10358 lt_prog_compiler_pic='-fPIC'
10360 esac
10363 interix[3-9]*)
10364 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10365 # Instead, we relocate shared libraries at runtime.
10368 msdosdjgpp*)
10369 # Just because we use GCC doesn't mean we suddenly get shared libraries
10370 # on systems that don't support them.
10371 lt_prog_compiler_can_build_shared=no
10372 enable_shared=no
10375 *nto* | *qnx*)
10376 # QNX uses GNU C++, but need to define -shared option too, otherwise
10377 # it will coredump.
10378 lt_prog_compiler_pic='-fPIC -shared'
10381 sysv4*MP*)
10382 if test -d /usr/nec; then
10383 lt_prog_compiler_pic=-Kconform_pic
10388 lt_prog_compiler_pic='-fPIC'
10390 esac
10392 case $cc_basename in
10393 nvcc*) # Cuda Compiler Driver 2.2
10394 lt_prog_compiler_wl='-Xlinker '
10395 if test -n "$lt_prog_compiler_pic"; then
10396 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10399 esac
10400 else
10401 # PORTME Check for flag to pass linker flags through the system compiler.
10402 case $host_os in
10403 aix*)
10404 lt_prog_compiler_wl='-Wl,'
10405 if test ia64 = "$host_cpu"; then
10406 # AIX 5 now supports IA64 processor
10407 lt_prog_compiler_static='-Bstatic'
10408 else
10409 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10413 darwin* | rhapsody*)
10414 # PIC is the default on this platform
10415 # Common symbols not allowed in MH_DYLIB files
10416 lt_prog_compiler_pic='-fno-common'
10417 case $cc_basename in
10418 nagfor*)
10419 # NAG Fortran compiler
10420 lt_prog_compiler_wl='-Wl,-Wl,,'
10421 lt_prog_compiler_pic='-PIC'
10422 lt_prog_compiler_static='-Bstatic'
10424 esac
10427 mingw* | cygwin* | pw32* | os2* | cegcc*)
10428 # This hack is so that the source file can tell whether it is being
10429 # built for inclusion in a dll (and should export symbols for example).
10430 lt_prog_compiler_pic='-DDLL_EXPORT'
10431 case $host_os in
10432 os2*)
10433 lt_prog_compiler_static='$wl-static'
10435 esac
10438 hpux9* | hpux10* | hpux11*)
10439 lt_prog_compiler_wl='-Wl,'
10440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10441 # not for PA HP-UX.
10442 case $host_cpu in
10443 hppa*64*|ia64*)
10444 # +Z the default
10447 lt_prog_compiler_pic='+Z'
10449 esac
10450 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10451 lt_prog_compiler_static='$wl-a ${wl}archive'
10454 irix5* | irix6* | nonstopux*)
10455 lt_prog_compiler_wl='-Wl,'
10456 # PIC (with -KPIC) is the default.
10457 lt_prog_compiler_static='-non_shared'
10460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10461 case $cc_basename in
10462 # old Intel for x86_64, which still supported -KPIC.
10463 ecc*)
10464 lt_prog_compiler_wl='-Wl,'
10465 lt_prog_compiler_pic='-KPIC'
10466 lt_prog_compiler_static='-static'
10468 # icc used to be incompatible with GCC.
10469 # ICC 10 doesn't accept -KPIC any more.
10470 icc* | ifort*)
10471 lt_prog_compiler_wl='-Wl,'
10472 lt_prog_compiler_pic='-fPIC'
10473 lt_prog_compiler_static='-static'
10475 # Lahey Fortran 8.1.
10476 lf95*)
10477 lt_prog_compiler_wl='-Wl,'
10478 lt_prog_compiler_pic='--shared'
10479 lt_prog_compiler_static='--static'
10481 nagfor*)
10482 # NAG Fortran compiler
10483 lt_prog_compiler_wl='-Wl,-Wl,,'
10484 lt_prog_compiler_pic='-PIC'
10485 lt_prog_compiler_static='-Bstatic'
10487 tcc*)
10488 # Fabrice Bellard et al's Tiny C Compiler
10489 lt_prog_compiler_wl='-Wl,'
10490 lt_prog_compiler_pic='-fPIC'
10491 lt_prog_compiler_static='-static'
10493 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10494 # Portland Group compilers (*not* the Pentium gcc compiler,
10495 # which looks to be a dead project)
10496 lt_prog_compiler_wl='-Wl,'
10497 lt_prog_compiler_pic='-fpic'
10498 lt_prog_compiler_static='-Bstatic'
10500 ccc*)
10501 lt_prog_compiler_wl='-Wl,'
10502 # All Alpha code is PIC.
10503 lt_prog_compiler_static='-non_shared'
10505 xl* | bgxl* | bgf* | mpixl*)
10506 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10507 lt_prog_compiler_wl='-Wl,'
10508 lt_prog_compiler_pic='-qpic'
10509 lt_prog_compiler_static='-qstaticlink'
10512 case `$CC -V 2>&1 | sed 5q` in
10513 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10514 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10515 lt_prog_compiler_pic='-KPIC'
10516 lt_prog_compiler_static='-Bstatic'
10517 lt_prog_compiler_wl=''
10519 *Sun\ F* | *Sun*Fortran*)
10520 lt_prog_compiler_pic='-KPIC'
10521 lt_prog_compiler_static='-Bstatic'
10522 lt_prog_compiler_wl='-Qoption ld '
10524 *Sun\ C*)
10525 # Sun C 5.9
10526 lt_prog_compiler_pic='-KPIC'
10527 lt_prog_compiler_static='-Bstatic'
10528 lt_prog_compiler_wl='-Wl,'
10530 *Intel*\ [CF]*Compiler*)
10531 lt_prog_compiler_wl='-Wl,'
10532 lt_prog_compiler_pic='-fPIC'
10533 lt_prog_compiler_static='-static'
10535 *Portland\ Group*)
10536 lt_prog_compiler_wl='-Wl,'
10537 lt_prog_compiler_pic='-fpic'
10538 lt_prog_compiler_static='-Bstatic'
10540 esac
10542 esac
10545 newsos6)
10546 lt_prog_compiler_pic='-KPIC'
10547 lt_prog_compiler_static='-Bstatic'
10550 *nto* | *qnx*)
10551 # QNX uses GNU C++, but need to define -shared option too, otherwise
10552 # it will coredump.
10553 lt_prog_compiler_pic='-fPIC -shared'
10556 osf3* | osf4* | osf5*)
10557 lt_prog_compiler_wl='-Wl,'
10558 # All OSF/1 code is PIC.
10559 lt_prog_compiler_static='-non_shared'
10562 rdos*)
10563 lt_prog_compiler_static='-non_shared'
10566 solaris*)
10567 lt_prog_compiler_pic='-KPIC'
10568 lt_prog_compiler_static='-Bstatic'
10569 case $cc_basename in
10570 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10571 lt_prog_compiler_wl='-Qoption ld ';;
10573 lt_prog_compiler_wl='-Wl,';;
10574 esac
10577 sunos4*)
10578 lt_prog_compiler_wl='-Qoption ld '
10579 lt_prog_compiler_pic='-PIC'
10580 lt_prog_compiler_static='-Bstatic'
10583 sysv4 | sysv4.2uw2* | sysv4.3*)
10584 lt_prog_compiler_wl='-Wl,'
10585 lt_prog_compiler_pic='-KPIC'
10586 lt_prog_compiler_static='-Bstatic'
10589 sysv4*MP*)
10590 if test -d /usr/nec; then
10591 lt_prog_compiler_pic='-Kconform_pic'
10592 lt_prog_compiler_static='-Bstatic'
10596 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10597 lt_prog_compiler_wl='-Wl,'
10598 lt_prog_compiler_pic='-KPIC'
10599 lt_prog_compiler_static='-Bstatic'
10602 unicos*)
10603 lt_prog_compiler_wl='-Wl,'
10604 lt_prog_compiler_can_build_shared=no
10607 uts4*)
10608 lt_prog_compiler_pic='-pic'
10609 lt_prog_compiler_static='-Bstatic'
10613 lt_prog_compiler_can_build_shared=no
10615 esac
10618 case $host_os in
10619 # For platforms that do not support PIC, -DPIC is meaningless:
10620 *djgpp*)
10621 lt_prog_compiler_pic=
10624 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10626 esac
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10629 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10630 if ${lt_cv_prog_compiler_pic+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10636 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10637 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10640 # Check to make sure the PIC flag actually works.
10642 if test -n "$lt_prog_compiler_pic"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10644 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10645 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 lt_cv_prog_compiler_pic_works=no
10649 ac_outfile=conftest.$ac_objext
10650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10651 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10652 # Insert the option either (1) after the last *FLAGS variable, or
10653 # (2) before a word containing "conftest.", or (3) at the end.
10654 # Note that $ac_compile itself does not contain backslashes and begins
10655 # with a dollar sign (not a hyphen), so the echo should work correctly.
10656 # The option is referenced via a variable to avoid confusing sed.
10657 lt_compile=`echo "$ac_compile" | $SED \
10658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10660 -e 's:$: $lt_compiler_flag:'`
10661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10662 (eval "$lt_compile" 2>conftest.err)
10663 ac_status=$?
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 if (exit $ac_status) && test -s "$ac_outfile"; then
10667 # The compiler can only warn and ignore the option if not recognized
10668 # So say no if there are warnings other than the usual output.
10669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10672 lt_cv_prog_compiler_pic_works=yes
10675 $RM conftest*
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10679 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10681 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10682 case $lt_prog_compiler_pic in
10683 "" | " "*) ;;
10684 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10685 esac
10686 else
10687 lt_prog_compiler_pic=
10688 lt_prog_compiler_can_build_shared=no
10704 # Check to make sure the static flag actually works.
10706 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10708 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10709 if ${lt_cv_prog_compiler_static_works+:} false; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 lt_cv_prog_compiler_static_works=no
10713 save_LDFLAGS=$LDFLAGS
10714 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10717 # The linker can only warn and ignore the option if not recognized
10718 # So say no if there are warnings
10719 if test -s conftest.err; then
10720 # Append any errors to the config.log.
10721 cat conftest.err 1>&5
10722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10724 if diff conftest.exp conftest.er2 >/dev/null; then
10725 lt_cv_prog_compiler_static_works=yes
10727 else
10728 lt_cv_prog_compiler_static_works=yes
10731 $RM -r conftest*
10732 LDFLAGS=$save_LDFLAGS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10736 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10738 if test yes = "$lt_cv_prog_compiler_static_works"; then
10740 else
10741 lt_prog_compiler_static=
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10751 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10752 if ${lt_cv_prog_compiler_c_o+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 lt_cv_prog_compiler_c_o=no
10756 $RM -r conftest 2>/dev/null
10757 mkdir conftest
10758 cd conftest
10759 mkdir out
10760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10762 lt_compiler_flag="-o out/conftest2.$ac_objext"
10763 # Insert the option either (1) after the last *FLAGS variable, or
10764 # (2) before a word containing "conftest.", or (3) at the end.
10765 # Note that $ac_compile itself does not contain backslashes and begins
10766 # with a dollar sign (not a hyphen), so the echo should work correctly.
10767 lt_compile=`echo "$ac_compile" | $SED \
10768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10770 -e 's:$: $lt_compiler_flag:'`
10771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10772 (eval "$lt_compile" 2>out/conftest.err)
10773 ac_status=$?
10774 cat out/conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10777 then
10778 # The compiler can only warn and ignore the option if not recognized
10779 # So say no if there are warnings
10780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10783 lt_cv_prog_compiler_c_o=yes
10786 chmod u+w . 2>&5
10787 $RM conftest*
10788 # SGI C++ compiler will create directory out/ii_files/ for
10789 # template instantiation
10790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10791 $RM out/* && rmdir out
10792 cd ..
10793 $RM -r conftest
10794 $RM conftest*
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10798 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10806 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10807 if ${lt_cv_prog_compiler_c_o+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 lt_cv_prog_compiler_c_o=no
10811 $RM -r conftest 2>/dev/null
10812 mkdir conftest
10813 cd conftest
10814 mkdir out
10815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10817 lt_compiler_flag="-o out/conftest2.$ac_objext"
10818 # Insert the option either (1) after the last *FLAGS variable, or
10819 # (2) before a word containing "conftest.", or (3) at the end.
10820 # Note that $ac_compile itself does not contain backslashes and begins
10821 # with a dollar sign (not a hyphen), so the echo should work correctly.
10822 lt_compile=`echo "$ac_compile" | $SED \
10823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10825 -e 's:$: $lt_compiler_flag:'`
10826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10827 (eval "$lt_compile" 2>out/conftest.err)
10828 ac_status=$?
10829 cat out/conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10832 then
10833 # The compiler can only warn and ignore the option if not recognized
10834 # So say no if there are warnings
10835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10838 lt_cv_prog_compiler_c_o=yes
10841 chmod u+w . 2>&5
10842 $RM conftest*
10843 # SGI C++ compiler will create directory out/ii_files/ for
10844 # template instantiation
10845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10846 $RM out/* && rmdir out
10847 cd ..
10848 $RM -r conftest
10849 $RM conftest*
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10853 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10858 hard_links=nottested
10859 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10860 # do not overwrite the value of need_locks provided by the user
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10862 $as_echo_n "checking if we can lock with hard links... " >&6; }
10863 hard_links=yes
10864 $RM conftest*
10865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10866 touch conftest.a
10867 ln conftest.a conftest.b 2>&5 || hard_links=no
10868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10870 $as_echo "$hard_links" >&6; }
10871 if test no = "$hard_links"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10873 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10874 need_locks=warn
10876 else
10877 need_locks=no
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10886 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10888 runpath_var=
10889 allow_undefined_flag=
10890 always_export_symbols=no
10891 archive_cmds=
10892 archive_expsym_cmds=
10893 compiler_needs_object=no
10894 enable_shared_with_static_runtimes=no
10895 export_dynamic_flag_spec=
10896 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10897 hardcode_automatic=no
10898 hardcode_direct=no
10899 hardcode_direct_absolute=no
10900 hardcode_libdir_flag_spec=
10901 hardcode_libdir_separator=
10902 hardcode_minus_L=no
10903 hardcode_shlibpath_var=unsupported
10904 inherit_rpath=no
10905 link_all_deplibs=unknown
10906 module_cmds=
10907 module_expsym_cmds=
10908 old_archive_from_new_cmds=
10909 old_archive_from_expsyms_cmds=
10910 thread_safe_flag_spec=
10911 whole_archive_flag_spec=
10912 # include_expsyms should be a list of space-separated symbols to be *always*
10913 # included in the symbol list
10914 include_expsyms=
10915 # exclude_expsyms can be an extended regexp of symbols to exclude
10916 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10917 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10918 # as well as any symbol that contains 'd'.
10919 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10921 # platforms (ab)use it in PIC code, but their linkers get confused if
10922 # the symbol is explicitly referenced. Since portable code cannot
10923 # rely on this symbol name, it's probably fine to never include it in
10924 # preloaded symbol tables.
10925 # Exclude shared library initialization/finalization symbols.
10926 extract_expsyms_cmds=
10928 case $host_os in
10929 cygwin* | mingw* | pw32* | cegcc*)
10930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10931 # When not using gcc, we currently assume that we are using
10932 # Microsoft Visual C++.
10933 if test yes != "$GCC"; then
10934 with_gnu_ld=no
10937 interix*)
10938 # we just hope/assume this is gcc and not c89 (= MSVC++)
10939 with_gnu_ld=yes
10941 openbsd* | bitrig*)
10942 with_gnu_ld=no
10944 esac
10946 ld_shlibs=yes
10948 # On some targets, GNU ld is compatible enough with the native linker
10949 # that we're better off using the native interface for both.
10950 lt_use_gnu_ld_interface=no
10951 if test yes = "$with_gnu_ld"; then
10952 case $host_os in
10953 aix*)
10954 # The AIX port of GNU ld has always aspired to compatibility
10955 # with the native linker. However, as the warning in the GNU ld
10956 # block says, versions before 2.19.5* couldn't really create working
10957 # shared libraries, regardless of the interface used.
10958 case `$LD -v 2>&1` in
10959 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10960 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10961 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10963 lt_use_gnu_ld_interface=yes
10965 esac
10968 lt_use_gnu_ld_interface=yes
10970 esac
10973 if test yes = "$lt_use_gnu_ld_interface"; then
10974 # If archive_cmds runs LD, not CC, wlarc should be empty
10975 wlarc='$wl'
10977 # Set some defaults for GNU ld with shared library support. These
10978 # are reset later if shared libraries are not supported. Putting them
10979 # here allows them to be overridden if necessary.
10980 runpath_var=LD_RUN_PATH
10981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10982 export_dynamic_flag_spec='$wl--export-dynamic'
10983 # ancient GNU ld didn't support --whole-archive et. al.
10984 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10985 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10986 else
10987 whole_archive_flag_spec=
10989 supports_anon_versioning=no
10990 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10991 *GNU\ gold*) supports_anon_versioning=yes ;;
10992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10995 *\ 2.11.*) ;; # other 2.11 versions
10996 *) supports_anon_versioning=yes ;;
10997 esac
10999 # See if GNU ld supports shared libraries.
11000 case $host_os in
11001 aix[3-9]*)
11002 # On AIX/PPC, the GNU linker is very broken
11003 if test ia64 != "$host_cpu"; then
11004 ld_shlibs=no
11005 cat <<_LT_EOF 1>&2
11007 *** Warning: the GNU linker, at least up to release 2.19, is reported
11008 *** to be unable to reliably create shared libraries on AIX.
11009 *** Therefore, libtool is disabling shared libraries support. If you
11010 *** really care for shared libraries, you may want to install binutils
11011 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11012 *** You will then need to restart the configuration process.
11014 _LT_EOF
11018 amigaos*)
11019 case $host_cpu in
11020 powerpc)
11021 # see comment about AmigaOS4 .so support
11022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11023 archive_expsym_cmds=''
11025 m68k)
11026 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)'
11027 hardcode_libdir_flag_spec='-L$libdir'
11028 hardcode_minus_L=yes
11030 esac
11033 beos*)
11034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11035 allow_undefined_flag=unsupported
11036 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11037 # support --undefined. This deserves some investigation. FIXME
11038 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11039 else
11040 ld_shlibs=no
11044 cygwin* | mingw* | pw32* | cegcc*)
11045 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11046 # as there is no search path for DLLs.
11047 hardcode_libdir_flag_spec='-L$libdir'
11048 export_dynamic_flag_spec='$wl--export-all-symbols'
11049 allow_undefined_flag=unsupported
11050 always_export_symbols=no
11051 enable_shared_with_static_runtimes=yes
11052 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'
11053 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11055 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11057 # If the export-symbols file already is a .def file, use it as
11058 # is; otherwise, prepend EXPORTS...
11059 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11060 cp $export_symbols $output_objdir/$soname.def;
11061 else
11062 echo EXPORTS > $output_objdir/$soname.def;
11063 cat $export_symbols >> $output_objdir/$soname.def;
11065 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11066 else
11067 ld_shlibs=no
11071 haiku*)
11072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11073 link_all_deplibs=yes
11076 os2*)
11077 hardcode_libdir_flag_spec='-L$libdir'
11078 hardcode_minus_L=yes
11079 allow_undefined_flag=unsupported
11080 shrext_cmds=.dll
11081 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11082 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11083 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11084 $ECHO EXPORTS >> $output_objdir/$libname.def~
11085 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11086 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11087 emximp -o $lib $output_objdir/$libname.def'
11088 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11091 $ECHO EXPORTS >> $output_objdir/$libname.def~
11092 prefix_cmds="$SED"~
11093 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11094 prefix_cmds="$prefix_cmds -e 1d";
11096 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11097 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11098 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11099 emximp -o $lib $output_objdir/$libname.def'
11100 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11101 enable_shared_with_static_runtimes=yes
11104 interix[3-9]*)
11105 hardcode_direct=no
11106 hardcode_shlibpath_var=no
11107 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11108 export_dynamic_flag_spec='$wl-E'
11109 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11110 # Instead, shared libraries are loaded at an image base (0x10000000 by
11111 # default) and relocated if they conflict, which is a slow very memory
11112 # consuming and fragmenting process. To avoid this, we pick a random,
11113 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11114 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11115 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11116 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'
11119 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11120 tmp_diet=no
11121 if test linux-dietlibc = "$host_os"; then
11122 case $cc_basename in
11123 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11124 esac
11126 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11127 && test no = "$tmp_diet"
11128 then
11129 tmp_addflag=' $pic_flag'
11130 tmp_sharedflag='-shared'
11131 case $cc_basename,$host_cpu in
11132 pgcc*) # Portland Group C compiler
11133 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'
11134 tmp_addflag=' $pic_flag'
11136 pgf77* | pgf90* | pgf95* | pgfortran*)
11137 # Portland Group f77 and f90 compilers
11138 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'
11139 tmp_addflag=' $pic_flag -Mnomain' ;;
11140 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11141 tmp_addflag=' -i_dynamic' ;;
11142 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11143 tmp_addflag=' -i_dynamic -nofor_main' ;;
11144 ifc* | ifort*) # Intel Fortran compiler
11145 tmp_addflag=' -nofor_main' ;;
11146 lf95*) # Lahey Fortran 8.1
11147 whole_archive_flag_spec=
11148 tmp_sharedflag='--shared' ;;
11149 nagfor*) # NAGFOR 5.3
11150 tmp_sharedflag='-Wl,-shared' ;;
11151 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11152 tmp_sharedflag='-qmkshrobj'
11153 tmp_addflag= ;;
11154 nvcc*) # Cuda Compiler Driver 2.2
11155 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'
11156 compiler_needs_object=yes
11158 esac
11159 case `$CC -V 2>&1 | sed 5q` in
11160 *Sun\ C*) # Sun C 5.9
11161 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'
11162 compiler_needs_object=yes
11163 tmp_sharedflag='-G' ;;
11164 *Sun\ F*) # Sun Fortran 8.3
11165 tmp_sharedflag='-G' ;;
11166 esac
11167 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11169 if test yes = "$supports_anon_versioning"; then
11170 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11172 echo "local: *; };" >> $output_objdir/$libname.ver~
11173 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11176 case $cc_basename in
11177 tcc*)
11178 export_dynamic_flag_spec='-rdynamic'
11180 xlf* | bgf* | bgxlf* | mpixlf*)
11181 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11182 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11183 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11184 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11185 if test yes = "$supports_anon_versioning"; then
11186 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11188 echo "local: *; };" >> $output_objdir/$libname.ver~
11189 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11192 esac
11193 else
11194 ld_shlibs=no
11198 netbsd*)
11199 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11201 wlarc=
11202 else
11203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11204 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11208 solaris*)
11209 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11210 ld_shlibs=no
11211 cat <<_LT_EOF 1>&2
11213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11214 *** create shared libraries on Solaris systems. Therefore, libtool
11215 *** is disabling shared libraries support. We urge you to upgrade GNU
11216 *** binutils to release 2.9.1 or newer. Another option is to modify
11217 *** your PATH or compiler configuration so that the native linker is
11218 *** used, and then restart.
11220 _LT_EOF
11221 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11224 else
11225 ld_shlibs=no
11229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11230 case `$LD -v 2>&1` in
11231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11232 ld_shlibs=no
11233 cat <<_LT_EOF 1>&2
11235 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11236 *** reliably create shared libraries on SCO systems. Therefore, libtool
11237 *** is disabling shared libraries support. We urge you to upgrade GNU
11238 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11239 *** your PATH or compiler configuration so that the native linker is
11240 *** used, and then restart.
11242 _LT_EOF
11245 # For security reasons, it is highly recommended that you always
11246 # use absolute paths for naming shared libraries, and exclude the
11247 # DT_RUNPATH tag from executables and libraries. But doing so
11248 # requires that you compile everything twice, which is a pain.
11249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11250 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11253 else
11254 ld_shlibs=no
11257 esac
11260 sunos4*)
11261 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11262 wlarc=
11263 hardcode_direct=yes
11264 hardcode_shlibpath_var=no
11268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11270 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11271 else
11272 ld_shlibs=no
11275 esac
11277 if test no = "$ld_shlibs"; then
11278 runpath_var=
11279 hardcode_libdir_flag_spec=
11280 export_dynamic_flag_spec=
11281 whole_archive_flag_spec=
11283 else
11284 # PORTME fill in a description of your system's linker (not GNU ld)
11285 case $host_os in
11286 aix3*)
11287 allow_undefined_flag=unsupported
11288 always_export_symbols=yes
11289 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'
11290 # Note: this linker hardcodes the directories in LIBPATH if there
11291 # are no directories specified by -L.
11292 hardcode_minus_L=yes
11293 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11294 # Neither direct hardcoding nor static linking is supported with a
11295 # broken collect2.
11296 hardcode_direct=unsupported
11300 aix[4-9]*)
11301 if test ia64 = "$host_cpu"; then
11302 # On IA64, the linker does run time linking by default, so we don't
11303 # have to do anything special.
11304 aix_use_runtimelinking=no
11305 exp_sym_flag='-Bexport'
11306 no_entry_flag=
11307 else
11308 # If we're using GNU nm, then we don't want the "-C" option.
11309 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11310 # Without the "-l" option, or with the "-B" option, AIX nm treats
11311 # weak defined symbols like other global defined symbols, whereas
11312 # GNU nm marks them as "W".
11313 # While the 'weak' keyword is ignored in the Export File, we need
11314 # it in the Import File for the 'aix-soname' feature, so we have
11315 # to replace the "-B" option with "-P" for AIX nm.
11316 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11317 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'
11318 else
11319 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'
11321 aix_use_runtimelinking=no
11323 # Test if we are trying to use run time linking or normal
11324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11325 # have runtime linking enabled, and use it for executables.
11326 # For shared libraries, we enable/disable runtime linking
11327 # depending on the kind of the shared library created -
11328 # when "with_aix_soname,aix_use_runtimelinking" is:
11329 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11330 # "aix,yes" lib.so shared, rtl:yes, for executables
11331 # lib.a static archive
11332 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11333 # lib.a(lib.so.V) shared, rtl:no, for executables
11334 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11335 # lib.a(lib.so.V) shared, rtl:no
11336 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11337 # lib.a static archive
11338 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11339 for ld_flag in $LDFLAGS; do
11340 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11341 aix_use_runtimelinking=yes
11342 break
11344 done
11345 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11346 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11347 # so we don't have lib.a shared libs to link our executables.
11348 # We have to force runtime linking in this case.
11349 aix_use_runtimelinking=yes
11350 LDFLAGS="$LDFLAGS -Wl,-brtl"
11353 esac
11355 exp_sym_flag='-bexport'
11356 no_entry_flag='-bnoentry'
11359 # When large executables or shared objects are built, AIX ld can
11360 # have problems creating the table of contents. If linking a library
11361 # or program results in "error TOC overflow" add -mminimal-toc to
11362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11365 archive_cmds=''
11366 hardcode_direct=yes
11367 hardcode_direct_absolute=yes
11368 hardcode_libdir_separator=':'
11369 link_all_deplibs=yes
11370 file_list_spec='$wl-f,'
11371 case $with_aix_soname,$aix_use_runtimelinking in
11372 aix,*) ;; # traditional, no import file
11373 svr4,* | *,yes) # use import file
11374 # The Import File defines what to hardcode.
11375 hardcode_direct=no
11376 hardcode_direct_absolute=no
11378 esac
11380 if test yes = "$GCC"; then
11381 case $host_os in aix4.[012]|aix4.[012].*)
11382 # We only want to do this on AIX 4.2 and lower, the check
11383 # below for broken collect2 doesn't work under 4.3+
11384 collect2name=`$CC -print-prog-name=collect2`
11385 if test -f "$collect2name" &&
11386 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11387 then
11388 # We have reworked collect2
11390 else
11391 # We have old collect2
11392 hardcode_direct=unsupported
11393 # It fails to find uninstalled libraries when the uninstalled
11394 # path is not listed in the libpath. Setting hardcode_minus_L
11395 # to unsupported forces relinking
11396 hardcode_minus_L=yes
11397 hardcode_libdir_flag_spec='-L$libdir'
11398 hardcode_libdir_separator=
11401 esac
11402 shared_flag='-shared'
11403 if test yes = "$aix_use_runtimelinking"; then
11404 shared_flag="$shared_flag "'$wl-G'
11406 # Need to ensure runtime linking is disabled for the traditional
11407 # shared library, or the linker may eventually find shared libraries
11408 # /with/ Import File - we do not want to mix them.
11409 shared_flag_aix='-shared'
11410 shared_flag_svr4='-shared $wl-G'
11411 else
11412 # not using gcc
11413 if test ia64 = "$host_cpu"; then
11414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11415 # chokes on -Wl,-G. The following line is correct:
11416 shared_flag='-G'
11417 else
11418 if test yes = "$aix_use_runtimelinking"; then
11419 shared_flag='$wl-G'
11420 else
11421 shared_flag='$wl-bM:SRE'
11423 shared_flag_aix='$wl-bM:SRE'
11424 shared_flag_svr4='$wl-G'
11428 export_dynamic_flag_spec='$wl-bexpall'
11429 # It seems that -bexpall does not export symbols beginning with
11430 # underscore (_), so it is better to generate a list of symbols to export.
11431 always_export_symbols=yes
11432 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11433 # Warning - without using the other runtime loading flags (-brtl),
11434 # -berok will link without error, but may produce a broken library.
11435 allow_undefined_flag='-berok'
11436 # Determine the default libpath from the value encoded in an
11437 # empty executable.
11438 if test set = "${lt_cv_aix_libpath+set}"; then
11439 aix_libpath=$lt_cv_aix_libpath
11440 else
11441 if ${lt_cv_aix_libpath_+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h. */
11448 main ()
11452 return 0;
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11457 lt_aix_libpath_sed='
11458 /Import File Strings/,/^$/ {
11459 /^0/ {
11460 s/^0 *\([^ ]*\) *$/\1/
11464 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11465 # Check for a 64-bit object if we didn't find anything.
11466 if test -z "$lt_cv_aix_libpath_"; then
11467 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 if test -z "$lt_cv_aix_libpath_"; then
11473 lt_cv_aix_libpath_=/usr/lib:/lib
11478 aix_libpath=$lt_cv_aix_libpath_
11481 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11482 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
11483 else
11484 if test ia64 = "$host_cpu"; then
11485 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11486 allow_undefined_flag="-z nodefs"
11487 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"
11488 else
11489 # Determine the default libpath from the value encoded in an
11490 # empty executable.
11491 if test set = "${lt_cv_aix_libpath+set}"; then
11492 aix_libpath=$lt_cv_aix_libpath
11493 else
11494 if ${lt_cv_aix_libpath_+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11501 main ()
11505 return 0;
11507 _ACEOF
11508 if ac_fn_c_try_link "$LINENO"; then :
11510 lt_aix_libpath_sed='
11511 /Import File Strings/,/^$/ {
11512 /^0/ {
11513 s/^0 *\([^ ]*\) *$/\1/
11517 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11518 # Check for a 64-bit object if we didn't find anything.
11519 if test -z "$lt_cv_aix_libpath_"; then
11520 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 if test -z "$lt_cv_aix_libpath_"; then
11526 lt_cv_aix_libpath_=/usr/lib:/lib
11531 aix_libpath=$lt_cv_aix_libpath_
11534 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11535 # Warning - without using the other run time loading flags,
11536 # -berok will link without error, but may produce a broken library.
11537 no_undefined_flag=' $wl-bernotok'
11538 allow_undefined_flag=' $wl-berok'
11539 if test yes = "$with_gnu_ld"; then
11540 # We only use this code for GNU lds that support --whole-archive.
11541 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11542 else
11543 # Exported symbols can be pulled into shared objects from archives
11544 whole_archive_flag_spec='$convenience'
11546 archive_cmds_need_lc=yes
11547 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11548 # -brtl affects multiple linker settings, -berok does not and is overridden later
11549 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11550 if test svr4 != "$with_aix_soname"; then
11551 # This is similar to how AIX traditionally builds its shared libraries.
11552 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'
11554 if test aix != "$with_aix_soname"; then
11555 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'
11556 else
11557 # used by -dlpreopen to get the symbols
11558 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11560 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11565 amigaos*)
11566 case $host_cpu in
11567 powerpc)
11568 # see comment about AmigaOS4 .so support
11569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11570 archive_expsym_cmds=''
11572 m68k)
11573 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)'
11574 hardcode_libdir_flag_spec='-L$libdir'
11575 hardcode_minus_L=yes
11577 esac
11580 bsdi[45]*)
11581 export_dynamic_flag_spec=-rdynamic
11584 cygwin* | mingw* | pw32* | cegcc*)
11585 # When not using gcc, we currently assume that we are using
11586 # Microsoft Visual C++.
11587 # hardcode_libdir_flag_spec is actually meaningless, as there is
11588 # no search path for DLLs.
11589 case $cc_basename in
11590 cl*)
11591 # Native MSVC
11592 hardcode_libdir_flag_spec=' '
11593 allow_undefined_flag=unsupported
11594 always_export_symbols=yes
11595 file_list_spec='@'
11596 # Tell ltmain to make .lib files, not .a files.
11597 libext=lib
11598 # Tell ltmain to make .dll files, not .so files.
11599 shrext_cmds=.dll
11600 # FIXME: Setting linknames here is a bad hack.
11601 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11602 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11603 cp "$export_symbols" "$output_objdir/$soname.def";
11604 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11605 else
11606 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11608 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11609 linknames='
11610 # The linker will not automatically build a static lib if we build a DLL.
11611 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11612 enable_shared_with_static_runtimes=yes
11613 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11615 # Don't use ranlib
11616 old_postinstall_cmds='chmod 644 $oldlib'
11617 postlink_cmds='lt_outputfile="@OUTPUT@"~
11618 lt_tool_outputfile="@TOOL_OUTPUT@"~
11619 case $lt_outputfile in
11620 *.exe|*.EXE) ;;
11622 lt_outputfile=$lt_outputfile.exe
11623 lt_tool_outputfile=$lt_tool_outputfile.exe
11625 esac~
11626 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11627 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11628 $RM "$lt_outputfile.manifest";
11632 # Assume MSVC wrapper
11633 hardcode_libdir_flag_spec=' '
11634 allow_undefined_flag=unsupported
11635 # Tell ltmain to make .lib files, not .a files.
11636 libext=lib
11637 # Tell ltmain to make .dll files, not .so files.
11638 shrext_cmds=.dll
11639 # FIXME: Setting linknames here is a bad hack.
11640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11641 # The linker will automatically build a .lib file if we build a DLL.
11642 old_archive_from_new_cmds='true'
11643 # FIXME: Should let the user specify the lib program.
11644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11645 enable_shared_with_static_runtimes=yes
11647 esac
11650 darwin* | rhapsody*)
11653 archive_cmds_need_lc=no
11654 hardcode_direct=no
11655 hardcode_automatic=yes
11656 hardcode_shlibpath_var=unsupported
11657 if test yes = "$lt_cv_ld_force_load"; then
11658 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\"`'
11660 else
11661 whole_archive_flag_spec=''
11663 link_all_deplibs=yes
11664 allow_undefined_flag=$_lt_dar_allow_undefined
11665 case $cc_basename in
11666 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11667 *) _lt_dar_can_shared=$GCC ;;
11668 esac
11669 if test yes = "$_lt_dar_can_shared"; then
11670 output_verbose_link_cmd=func_echo_all
11671 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11672 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11673 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"
11674 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"
11676 else
11677 ld_shlibs=no
11682 dgux*)
11683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11684 hardcode_libdir_flag_spec='-L$libdir'
11685 hardcode_shlibpath_var=no
11688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11689 # support. Future versions do this automatically, but an explicit c++rt0.o
11690 # does not break anything, and helps significantly (at the cost of a little
11691 # extra space).
11692 freebsd2.2*)
11693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11694 hardcode_libdir_flag_spec='-R$libdir'
11695 hardcode_direct=yes
11696 hardcode_shlibpath_var=no
11699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11700 freebsd2.*)
11701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11702 hardcode_direct=yes
11703 hardcode_minus_L=yes
11704 hardcode_shlibpath_var=no
11707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11708 freebsd* | dragonfly*)
11709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11710 hardcode_libdir_flag_spec='-R$libdir'
11711 hardcode_direct=yes
11712 hardcode_shlibpath_var=no
11715 hpux9*)
11716 if test yes = "$GCC"; then
11717 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'
11718 else
11719 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'
11721 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11722 hardcode_libdir_separator=:
11723 hardcode_direct=yes
11725 # hardcode_minus_L: Not really in the search PATH,
11726 # but as the default location of the library.
11727 hardcode_minus_L=yes
11728 export_dynamic_flag_spec='$wl-E'
11731 hpux10*)
11732 if test yes,no = "$GCC,$with_gnu_ld"; then
11733 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11734 else
11735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11737 if test no = "$with_gnu_ld"; then
11738 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11739 hardcode_libdir_separator=:
11740 hardcode_direct=yes
11741 hardcode_direct_absolute=yes
11742 export_dynamic_flag_spec='$wl-E'
11743 # hardcode_minus_L: Not really in the search PATH,
11744 # but as the default location of the library.
11745 hardcode_minus_L=yes
11749 hpux11*)
11750 if test yes,no = "$GCC,$with_gnu_ld"; then
11751 case $host_cpu in
11752 hppa*64*)
11753 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11755 ia64*)
11756 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11759 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11761 esac
11762 else
11763 case $host_cpu in
11764 hppa*64*)
11765 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11767 ia64*)
11768 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11772 # Older versions of the 11.00 compiler do not understand -b yet
11773 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11775 $as_echo_n "checking if $CC understands -b... " >&6; }
11776 if ${lt_cv_prog_compiler__b+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 lt_cv_prog_compiler__b=no
11780 save_LDFLAGS=$LDFLAGS
11781 LDFLAGS="$LDFLAGS -b"
11782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11784 # The linker can only warn and ignore the option if not recognized
11785 # So say no if there are warnings
11786 if test -s conftest.err; then
11787 # Append any errors to the config.log.
11788 cat conftest.err 1>&5
11789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11791 if diff conftest.exp conftest.er2 >/dev/null; then
11792 lt_cv_prog_compiler__b=yes
11794 else
11795 lt_cv_prog_compiler__b=yes
11798 $RM -r conftest*
11799 LDFLAGS=$save_LDFLAGS
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11803 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11805 if test yes = "$lt_cv_prog_compiler__b"; then
11806 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11807 else
11808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11812 esac
11814 if test no = "$with_gnu_ld"; then
11815 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11816 hardcode_libdir_separator=:
11818 case $host_cpu in
11819 hppa*64*|ia64*)
11820 hardcode_direct=no
11821 hardcode_shlibpath_var=no
11824 hardcode_direct=yes
11825 hardcode_direct_absolute=yes
11826 export_dynamic_flag_spec='$wl-E'
11828 # hardcode_minus_L: Not really in the search PATH,
11829 # but as the default location of the library.
11830 hardcode_minus_L=yes
11832 esac
11836 irix5* | irix6* | nonstopux*)
11837 if test yes = "$GCC"; then
11838 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'
11839 # Try to use the -exported_symbol ld option, if it does not
11840 # work, assume that -exports_file does not work either and
11841 # implicitly export all symbols.
11842 # This should be the same for all languages, so no per-tag cache variable.
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11844 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11845 if ${lt_cv_irix_exported_symbol+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 save_LDFLAGS=$LDFLAGS
11849 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852 int foo (void) { return 0; }
11853 _ACEOF
11854 if ac_fn_c_try_link "$LINENO"; then :
11855 lt_cv_irix_exported_symbol=yes
11856 else
11857 lt_cv_irix_exported_symbol=no
11859 rm -f core conftest.err conftest.$ac_objext \
11860 conftest$ac_exeext conftest.$ac_ext
11861 LDFLAGS=$save_LDFLAGS
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11864 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11865 if test yes = "$lt_cv_irix_exported_symbol"; then
11866 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'
11868 else
11869 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'
11870 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'
11872 archive_cmds_need_lc='no'
11873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11874 hardcode_libdir_separator=:
11875 inherit_rpath=yes
11876 link_all_deplibs=yes
11879 linux*)
11880 case $cc_basename in
11881 tcc*)
11882 # Fabrice Bellard et al's Tiny C Compiler
11883 ld_shlibs=yes
11884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11886 esac
11889 netbsd*)
11890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11892 else
11893 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11895 hardcode_libdir_flag_spec='-R$libdir'
11896 hardcode_direct=yes
11897 hardcode_shlibpath_var=no
11900 newsos6)
11901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11902 hardcode_direct=yes
11903 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11904 hardcode_libdir_separator=:
11905 hardcode_shlibpath_var=no
11908 *nto* | *qnx*)
11911 openbsd* | bitrig*)
11912 if test -f /usr/libexec/ld.so; then
11913 hardcode_direct=yes
11914 hardcode_shlibpath_var=no
11915 hardcode_direct_absolute=yes
11916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11918 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11919 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11920 export_dynamic_flag_spec='$wl-E'
11921 else
11922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11923 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11925 else
11926 ld_shlibs=no
11930 os2*)
11931 hardcode_libdir_flag_spec='-L$libdir'
11932 hardcode_minus_L=yes
11933 allow_undefined_flag=unsupported
11934 shrext_cmds=.dll
11935 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11936 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11937 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11938 $ECHO EXPORTS >> $output_objdir/$libname.def~
11939 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11940 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11941 emximp -o $lib $output_objdir/$libname.def'
11942 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11945 $ECHO EXPORTS >> $output_objdir/$libname.def~
11946 prefix_cmds="$SED"~
11947 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11948 prefix_cmds="$prefix_cmds -e 1d";
11950 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11951 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11952 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11953 emximp -o $lib $output_objdir/$libname.def'
11954 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11955 enable_shared_with_static_runtimes=yes
11958 osf3*)
11959 if test yes = "$GCC"; then
11960 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11961 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'
11962 else
11963 allow_undefined_flag=' -expect_unresolved \*'
11964 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'
11966 archive_cmds_need_lc='no'
11967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11968 hardcode_libdir_separator=:
11971 osf4* | osf5*) # as osf3* with the addition of -msym flag
11972 if test yes = "$GCC"; then
11973 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11974 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'
11975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11976 else
11977 allow_undefined_flag=' -expect_unresolved \*'
11978 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'
11979 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~
11980 $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'
11982 # Both c and cxx compiler support -rpath directly
11983 hardcode_libdir_flag_spec='-rpath $libdir'
11985 archive_cmds_need_lc='no'
11986 hardcode_libdir_separator=:
11989 solaris*)
11990 no_undefined_flag=' -z defs'
11991 if test yes = "$GCC"; then
11992 wlarc='$wl'
11993 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11995 $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'
11996 else
11997 case `$CC -V 2>&1` in
11998 *"Compilers 5.0"*)
11999 wlarc=''
12000 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12002 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12005 wlarc='$wl'
12006 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12008 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12010 esac
12012 hardcode_libdir_flag_spec='-R$libdir'
12013 hardcode_shlibpath_var=no
12014 case $host_os in
12015 solaris2.[0-5] | solaris2.[0-5].*) ;;
12017 # The compiler driver will combine and reorder linker options,
12018 # but understands '-z linker_flag'. GCC discards it without '$wl',
12019 # but is careful enough not to reorder.
12020 # Supported since Solaris 2.6 (maybe 2.5.1?)
12021 if test yes = "$GCC"; then
12022 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12023 else
12024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12027 esac
12028 link_all_deplibs=yes
12031 sunos4*)
12032 if test sequent = "$host_vendor"; then
12033 # Use $CC to link under sequent, because it throws in some extra .o
12034 # files that make .init and .fini sections work.
12035 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12036 else
12037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12039 hardcode_libdir_flag_spec='-L$libdir'
12040 hardcode_direct=yes
12041 hardcode_minus_L=yes
12042 hardcode_shlibpath_var=no
12045 sysv4)
12046 case $host_vendor in
12047 sni)
12048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12049 hardcode_direct=yes # is this really true???
12051 siemens)
12052 ## LD is ld it makes a PLAMLIB
12053 ## CC just makes a GrossModule.
12054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12055 reload_cmds='$CC -r -o $output$reload_objs'
12056 hardcode_direct=no
12058 motorola)
12059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12062 esac
12063 runpath_var='LD_RUN_PATH'
12064 hardcode_shlibpath_var=no
12067 sysv4.3*)
12068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12069 hardcode_shlibpath_var=no
12070 export_dynamic_flag_spec='-Bexport'
12073 sysv4*MP*)
12074 if test -d /usr/nec; then
12075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12076 hardcode_shlibpath_var=no
12077 runpath_var=LD_RUN_PATH
12078 hardcode_runpath_var=yes
12079 ld_shlibs=yes
12083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12084 no_undefined_flag='$wl-z,text'
12085 archive_cmds_need_lc=no
12086 hardcode_shlibpath_var=no
12087 runpath_var='LD_RUN_PATH'
12089 if test yes = "$GCC"; then
12090 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12091 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12092 else
12093 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12094 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12098 sysv5* | sco3.2v5* | sco5v6*)
12099 # Note: We CANNOT use -z defs as we might desire, because we do not
12100 # link with -lc, and that would cause any symbols used from libc to
12101 # always be unresolved, which means just about no library would
12102 # ever link correctly. If we're not using GNU ld we use -z text
12103 # though, which does catch some bad symbols but isn't as heavy-handed
12104 # as -z defs.
12105 no_undefined_flag='$wl-z,text'
12106 allow_undefined_flag='$wl-z,nodefs'
12107 archive_cmds_need_lc=no
12108 hardcode_shlibpath_var=no
12109 hardcode_libdir_flag_spec='$wl-R,$libdir'
12110 hardcode_libdir_separator=':'
12111 link_all_deplibs=yes
12112 export_dynamic_flag_spec='$wl-Bexport'
12113 runpath_var='LD_RUN_PATH'
12115 if test yes = "$GCC"; then
12116 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12117 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12118 else
12119 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12120 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12124 uts4*)
12125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12126 hardcode_libdir_flag_spec='-L$libdir'
12127 hardcode_shlibpath_var=no
12131 ld_shlibs=no
12133 esac
12135 if test sni = "$host_vendor"; then
12136 case $host in
12137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12138 export_dynamic_flag_spec='$wl-Blargedynsym'
12140 esac
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12145 $as_echo "$ld_shlibs" >&6; }
12146 test no = "$ld_shlibs" && can_build_shared=no
12148 with_gnu_ld=$with_gnu_ld
12165 # Do we need to explicitly link libc?
12167 case "x$archive_cmds_need_lc" in
12168 x|xyes)
12169 # Assume -lc should be added
12170 archive_cmds_need_lc=yes
12172 if test yes,yes = "$GCC,$enable_shared"; then
12173 case $archive_cmds in
12174 *'~'*)
12175 # FIXME: we may have to deal with multi-command sequences.
12177 '$CC '*)
12178 # Test whether the compiler implicitly links with -lc since on some
12179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12180 # to ld, don't add -lc before -lgcc.
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12182 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12183 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 $RM conftest*
12187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12190 (eval $ac_compile) 2>&5
12191 ac_status=$?
12192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193 test $ac_status = 0; } 2>conftest.err; then
12194 soname=conftest
12195 lib=conftest
12196 libobjs=conftest.$ac_objext
12197 deplibs=
12198 wl=$lt_prog_compiler_wl
12199 pic_flag=$lt_prog_compiler_pic
12200 compiler_flags=-v
12201 linker_flags=-v
12202 verstring=
12203 output_objdir=.
12204 libname=conftest
12205 lt_save_allow_undefined_flag=$allow_undefined_flag
12206 allow_undefined_flag=
12207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12209 ac_status=$?
12210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12211 test $ac_status = 0; }
12212 then
12213 lt_cv_archive_cmds_need_lc=no
12214 else
12215 lt_cv_archive_cmds_need_lc=yes
12217 allow_undefined_flag=$lt_save_allow_undefined_flag
12218 else
12219 cat conftest.err 1>&5
12221 $RM conftest*
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12225 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12226 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12228 esac
12231 esac
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12385 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12387 if test yes = "$GCC"; then
12388 case $host_os in
12389 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12390 *) lt_awk_arg='/^libraries:/' ;;
12391 esac
12392 case $host_os in
12393 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12394 *) lt_sed_strip_eq='s|=/|/|g' ;;
12395 esac
12396 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12397 case $lt_search_path_spec in
12398 *\;*)
12399 # if the path contains ";" then we assume it to be the separator
12400 # otherwise default to the standard path separator (i.e. ":") - it is
12401 # assumed that no part of a normal pathname contains ";" but that should
12402 # okay in the real world where ";" in dirpaths is itself problematic.
12403 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12406 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12408 esac
12409 # Ok, now we have the path, separated by spaces, we can step through it
12410 # and add multilib dir if necessary...
12411 lt_tmp_lt_search_path_spec=
12412 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12413 # ...but if some path component already ends with the multilib dir we assume
12414 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12415 case "$lt_multi_os_dir; $lt_search_path_spec " in
12416 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12417 lt_multi_os_dir=
12419 esac
12420 for lt_sys_path in $lt_search_path_spec; do
12421 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12423 elif test -n "$lt_multi_os_dir"; then
12424 test -d "$lt_sys_path" && \
12425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12427 done
12428 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12429 BEGIN {RS = " "; FS = "/|\n";} {
12430 lt_foo = "";
12431 lt_count = 0;
12432 for (lt_i = NF; lt_i > 0; lt_i--) {
12433 if ($lt_i != "" && $lt_i != ".") {
12434 if ($lt_i == "..") {
12435 lt_count++;
12436 } else {
12437 if (lt_count == 0) {
12438 lt_foo = "/" $lt_i lt_foo;
12439 } else {
12440 lt_count--;
12445 if (lt_foo != "") { lt_freq[lt_foo]++; }
12446 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12448 # AWK program above erroneously prepends '/' to C:/dos/paths
12449 # for these hosts.
12450 case $host_os in
12451 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12452 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12453 esac
12454 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12455 else
12456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12458 library_names_spec=
12459 libname_spec='lib$name'
12460 soname_spec=
12461 shrext_cmds=.so
12462 postinstall_cmds=
12463 postuninstall_cmds=
12464 finish_cmds=
12465 finish_eval=
12466 shlibpath_var=
12467 shlibpath_overrides_runpath=unknown
12468 version_type=none
12469 dynamic_linker="$host_os ld.so"
12470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12471 need_lib_prefix=unknown
12472 hardcode_into_libs=no
12474 # when you set need_version to no, make sure it does not cause -set_version
12475 # flags to be left without arguments
12476 need_version=unknown
12480 case $host_os in
12481 aix3*)
12482 version_type=linux # correct to gnu/linux during the next big refactor
12483 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12484 shlibpath_var=LIBPATH
12486 # AIX 3 has no versioning support, so we append a major version to the name.
12487 soname_spec='$libname$release$shared_ext$major'
12490 aix[4-9]*)
12491 version_type=linux # correct to gnu/linux during the next big refactor
12492 need_lib_prefix=no
12493 need_version=no
12494 hardcode_into_libs=yes
12495 if test ia64 = "$host_cpu"; then
12496 # AIX 5 supports IA64
12497 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12498 shlibpath_var=LD_LIBRARY_PATH
12499 else
12500 # With GCC up to 2.95.x, collect2 would create an import file
12501 # for dependence libraries. The import file would start with
12502 # the line '#! .'. This would cause the generated library to
12503 # depend on '.', always an invalid library. This was fixed in
12504 # development snapshots of GCC prior to 3.0.
12505 case $host_os in
12506 aix4 | aix4.[01] | aix4.[01].*)
12507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12508 echo ' yes '
12509 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12511 else
12512 can_build_shared=no
12515 esac
12516 # Using Import Files as archive members, it is possible to support
12517 # filename-based versioning of shared library archives on AIX. While
12518 # this would work for both with and without runtime linking, it will
12519 # prevent static linking of such archives. So we do filename-based
12520 # shared library versioning with .so extension only, which is used
12521 # when both runtime linking and shared linking is enabled.
12522 # Unfortunately, runtime linking may impact performance, so we do
12523 # not want this to be the default eventually. Also, we use the
12524 # versioned .so libs for executables only if there is the -brtl
12525 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12526 # To allow for filename-based versioning support, we need to create
12527 # libNAME.so.V as an archive file, containing:
12528 # *) an Import File, referring to the versioned filename of the
12529 # archive as well as the shared archive member, telling the
12530 # bitwidth (32 or 64) of that shared object, and providing the
12531 # list of exported symbols of that shared object, eventually
12532 # decorated with the 'weak' keyword
12533 # *) the shared object with the F_LOADONLY flag set, to really avoid
12534 # it being seen by the linker.
12535 # At run time we better use the real file rather than another symlink,
12536 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12538 case $with_aix_soname,$aix_use_runtimelinking in
12539 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12540 # soname into executable. Probably we can add versioning support to
12541 # collect2, so additional links can be useful in future.
12542 aix,yes) # traditional libtool
12543 dynamic_linker='AIX unversionable lib.so'
12544 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12545 # instead of lib<name>.a to let people know that these are not
12546 # typical AIX shared libraries.
12547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12549 aix,no) # traditional AIX only
12550 dynamic_linker='AIX lib.a(lib.so.V)'
12551 # We preserve .a as extension for shared libraries through AIX4.2
12552 # and later when we are not doing run time linking.
12553 library_names_spec='$libname$release.a $libname.a'
12554 soname_spec='$libname$release$shared_ext$major'
12556 svr4,*) # full svr4 only
12557 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12558 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12559 # We do not specify a path in Import Files, so LIBPATH fires.
12560 shlibpath_overrides_runpath=yes
12562 *,yes) # both, prefer svr4
12563 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12564 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12565 # unpreferred sharedlib libNAME.a needs extra handling
12566 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"'
12567 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"'
12568 # We do not specify a path in Import Files, so LIBPATH fires.
12569 shlibpath_overrides_runpath=yes
12571 *,no) # both, prefer aix
12572 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12573 library_names_spec='$libname$release.a $libname.a'
12574 soname_spec='$libname$release$shared_ext$major'
12575 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12576 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)'
12577 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"'
12579 esac
12580 shlibpath_var=LIBPATH
12584 amigaos*)
12585 case $host_cpu in
12586 powerpc)
12587 # Since July 2007 AmigaOS4 officially supports .so libraries.
12588 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12591 m68k)
12592 library_names_spec='$libname.ixlibrary $libname.a'
12593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12594 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'
12596 esac
12599 beos*)
12600 library_names_spec='$libname$shared_ext'
12601 dynamic_linker="$host_os ld.so"
12602 shlibpath_var=LIBRARY_PATH
12605 bsdi[45]*)
12606 version_type=linux # correct to gnu/linux during the next big refactor
12607 need_version=no
12608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12609 soname_spec='$libname$release$shared_ext$major'
12610 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12611 shlibpath_var=LD_LIBRARY_PATH
12612 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12613 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12614 # the default ld.so.conf also contains /usr/contrib/lib and
12615 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12616 # libtool to hard-code these into programs
12619 cygwin* | mingw* | pw32* | cegcc*)
12620 version_type=windows
12621 shrext_cmds=.dll
12622 need_version=no
12623 need_lib_prefix=no
12625 case $GCC,$cc_basename in
12626 yes,*)
12627 # gcc
12628 library_names_spec='$libname.dll.a'
12629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12630 postinstall_cmds='base_file=`basename \$file`~
12631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12632 dldir=$destdir/`dirname \$dlpath`~
12633 test -d \$dldir || mkdir -p \$dldir~
12634 $install_prog $dir/$dlname \$dldir/$dlname~
12635 chmod a+x \$dldir/$dlname~
12636 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12637 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12639 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12640 dlpath=$dir/\$dldll~
12641 $RM \$dlpath'
12642 shlibpath_overrides_runpath=yes
12644 case $host_os in
12645 cygwin*)
12646 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12647 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12649 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12651 mingw* | cegcc*)
12652 # MinGW DLLs use traditional 'lib' prefix
12653 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12655 pw32*)
12656 # pw32 DLLs use 'pw' prefix rather than 'lib'
12657 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12659 esac
12660 dynamic_linker='Win32 ld.exe'
12663 *,cl*)
12664 # Native MSVC
12665 libname_spec='$name'
12666 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12667 library_names_spec='$libname.dll.lib'
12669 case $build_os in
12670 mingw*)
12671 sys_lib_search_path_spec=
12672 lt_save_ifs=$IFS
12673 IFS=';'
12674 for lt_path in $LIB
12676 IFS=$lt_save_ifs
12677 # Let DOS variable expansion print the short 8.3 style file name.
12678 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12679 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12680 done
12681 IFS=$lt_save_ifs
12682 # Convert to MSYS style.
12683 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12685 cygwin*)
12686 # Convert to unix form, then to dos form, then back to unix form
12687 # but this time dos style (no spaces!) so that the unix form looks
12688 # like /cygdrive/c/PROGRA~1:/cygdr...
12689 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12690 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12691 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12694 sys_lib_search_path_spec=$LIB
12695 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12696 # It is most probably a Windows format PATH.
12697 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12698 else
12699 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12701 # FIXME: find the short name or the path components, as spaces are
12702 # common. (e.g. "Program Files" -> "PROGRA~1")
12704 esac
12706 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12707 postinstall_cmds='base_file=`basename \$file`~
12708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12709 dldir=$destdir/`dirname \$dlpath`~
12710 test -d \$dldir || mkdir -p \$dldir~
12711 $install_prog $dir/$dlname \$dldir/$dlname'
12712 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12713 dlpath=$dir/\$dldll~
12714 $RM \$dlpath'
12715 shlibpath_overrides_runpath=yes
12716 dynamic_linker='Win32 link.exe'
12720 # Assume MSVC wrapper
12721 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12722 dynamic_linker='Win32 ld.exe'
12724 esac
12725 # FIXME: first we should search . and the directory the executable is in
12726 shlibpath_var=PATH
12729 darwin* | rhapsody*)
12730 dynamic_linker="$host_os dyld"
12731 version_type=darwin
12732 need_lib_prefix=no
12733 need_version=no
12734 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12735 soname_spec='$libname$release$major$shared_ext'
12736 shlibpath_overrides_runpath=yes
12737 shlibpath_var=DYLD_LIBRARY_PATH
12738 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12740 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12744 dgux*)
12745 version_type=linux # correct to gnu/linux during the next big refactor
12746 need_lib_prefix=no
12747 need_version=no
12748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12749 soname_spec='$libname$release$shared_ext$major'
12750 shlibpath_var=LD_LIBRARY_PATH
12753 freebsd* | dragonfly*)
12754 # DragonFly does not have aout. When/if they implement a new
12755 # versioning mechanism, adjust this.
12756 if test -x /usr/bin/objformat; then
12757 objformat=`/usr/bin/objformat`
12758 else
12759 case $host_os in
12760 freebsd[23].*) objformat=aout ;;
12761 *) objformat=elf ;;
12762 esac
12764 version_type=freebsd-$objformat
12765 case $version_type in
12766 freebsd-elf*)
12767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12768 soname_spec='$libname$release$shared_ext$major'
12769 need_version=no
12770 need_lib_prefix=no
12772 freebsd-*)
12773 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12774 need_version=yes
12776 esac
12777 shlibpath_var=LD_LIBRARY_PATH
12778 case $host_os in
12779 freebsd2.*)
12780 shlibpath_overrides_runpath=yes
12782 freebsd3.[01]* | freebsdelf3.[01]*)
12783 shlibpath_overrides_runpath=yes
12784 hardcode_into_libs=yes
12786 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12787 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12788 shlibpath_overrides_runpath=no
12789 hardcode_into_libs=yes
12791 *) # from 4.6 on, and DragonFly
12792 shlibpath_overrides_runpath=yes
12793 hardcode_into_libs=yes
12795 esac
12798 haiku*)
12799 version_type=linux # correct to gnu/linux during the next big refactor
12800 need_lib_prefix=no
12801 need_version=no
12802 dynamic_linker="$host_os runtime_loader"
12803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12804 soname_spec='$libname$release$shared_ext$major'
12805 shlibpath_var=LIBRARY_PATH
12806 shlibpath_overrides_runpath=no
12807 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12808 hardcode_into_libs=yes
12811 hpux9* | hpux10* | hpux11*)
12812 # Give a soname corresponding to the major version so that dld.sl refuses to
12813 # link against other versions.
12814 version_type=sunos
12815 need_lib_prefix=no
12816 need_version=no
12817 case $host_cpu in
12818 ia64*)
12819 shrext_cmds='.so'
12820 hardcode_into_libs=yes
12821 dynamic_linker="$host_os dld.so"
12822 shlibpath_var=LD_LIBRARY_PATH
12823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12825 soname_spec='$libname$release$shared_ext$major'
12826 if test 32 = "$HPUX_IA64_MODE"; then
12827 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12828 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12829 else
12830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12831 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12834 hppa*64*)
12835 shrext_cmds='.sl'
12836 hardcode_into_libs=yes
12837 dynamic_linker="$host_os dld.sl"
12838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12841 soname_spec='$libname$release$shared_ext$major'
12842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12846 shrext_cmds='.sl'
12847 dynamic_linker="$host_os dld.sl"
12848 shlibpath_var=SHLIB_PATH
12849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12851 soname_spec='$libname$release$shared_ext$major'
12853 esac
12854 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12855 postinstall_cmds='chmod 555 $lib'
12856 # or fails outright, so override atomically:
12857 install_override_mode=555
12860 interix[3-9]*)
12861 version_type=linux # correct to gnu/linux during the next big refactor
12862 need_lib_prefix=no
12863 need_version=no
12864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12865 soname_spec='$libname$release$shared_ext$major'
12866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12867 shlibpath_var=LD_LIBRARY_PATH
12868 shlibpath_overrides_runpath=no
12869 hardcode_into_libs=yes
12872 irix5* | irix6* | nonstopux*)
12873 case $host_os in
12874 nonstopux*) version_type=nonstopux ;;
12876 if test yes = "$lt_cv_prog_gnu_ld"; then
12877 version_type=linux # correct to gnu/linux during the next big refactor
12878 else
12879 version_type=irix
12880 fi ;;
12881 esac
12882 need_lib_prefix=no
12883 need_version=no
12884 soname_spec='$libname$release$shared_ext$major'
12885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12886 case $host_os in
12887 irix5* | nonstopux*)
12888 libsuff= shlibsuff=
12891 case $LD in # libtool.m4 will add one of these switches to LD
12892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12893 libsuff= shlibsuff= libmagic=32-bit;;
12894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12895 libsuff=32 shlibsuff=N32 libmagic=N32;;
12896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12898 *) libsuff= shlibsuff= libmagic=never-match;;
12899 esac
12901 esac
12902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12903 shlibpath_overrides_runpath=no
12904 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12905 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12906 hardcode_into_libs=yes
12909 # No shared lib support for Linux oldld, aout, or coff.
12910 linux*oldld* | linux*aout* | linux*coff*)
12911 dynamic_linker=no
12914 linux*android*)
12915 version_type=none # Android doesn't support versioned libraries.
12916 need_lib_prefix=no
12917 need_version=no
12918 library_names_spec='$libname$release$shared_ext'
12919 soname_spec='$libname$release$shared_ext'
12920 finish_cmds=
12921 shlibpath_var=LD_LIBRARY_PATH
12922 shlibpath_overrides_runpath=yes
12924 # This implies no fast_install, which is unacceptable.
12925 # Some rework will be needed to allow for fast_install
12926 # before this can be enabled.
12927 hardcode_into_libs=yes
12929 dynamic_linker='Android linker'
12930 # Don't embed -rpath directories since the linker doesn't support them.
12931 hardcode_libdir_flag_spec='-L$libdir'
12934 # This must be glibc/ELF.
12935 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12936 version_type=linux # correct to gnu/linux during the next big refactor
12937 need_lib_prefix=no
12938 need_version=no
12939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12940 soname_spec='$libname$release$shared_ext$major'
12941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 shlibpath_overrides_runpath=no
12945 # Some binutils ld are patched to set DT_RUNPATH
12946 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 lt_cv_shlibpath_overrides_runpath=no
12950 save_LDFLAGS=$LDFLAGS
12951 save_libdir=$libdir
12952 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12953 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12958 main ()
12962 return 0;
12964 _ACEOF
12965 if ac_fn_c_try_link "$LINENO"; then :
12966 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12967 lt_cv_shlibpath_overrides_runpath=yes
12970 rm -f core conftest.err conftest.$ac_objext \
12971 conftest$ac_exeext conftest.$ac_ext
12972 LDFLAGS=$save_LDFLAGS
12973 libdir=$save_libdir
12977 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12979 # This implies no fast_install, which is unacceptable.
12980 # Some rework will be needed to allow for fast_install
12981 # before this can be enabled.
12982 hardcode_into_libs=yes
12984 # Ideally, we could use ldconfig to report *all* directores which are
12985 # searched for libraries, however this is still not possible. Aside from not
12986 # being certain /sbin/ldconfig is available, command
12987 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12988 # even though it is searched at run-time. Try to do the best guess by
12989 # appending ld.so.conf contents (and includes) to the search path.
12990 if test -f /etc/ld.so.conf; then
12991 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' ' '`
12992 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12995 # We used to test for /lib/ld.so.1 and disable shared libraries on
12996 # powerpc, because MkLinux only supported shared libraries with the
12997 # GNU dynamic linker. Since this was broken with cross compilers,
12998 # most powerpc-linux boxes support dynamic linking these days and
12999 # people can always --disable-shared, the test was removed, and we
13000 # assume the GNU/Linux dynamic linker is in use.
13001 dynamic_linker='GNU/Linux ld.so'
13004 netbsd*)
13005 version_type=sunos
13006 need_lib_prefix=no
13007 need_version=no
13008 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13009 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13011 dynamic_linker='NetBSD (a.out) ld.so'
13012 else
13013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13014 soname_spec='$libname$release$shared_ext$major'
13015 dynamic_linker='NetBSD ld.elf_so'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 shlibpath_overrides_runpath=yes
13019 hardcode_into_libs=yes
13022 newsos6)
13023 version_type=linux # correct to gnu/linux during the next big refactor
13024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=yes
13029 *nto* | *qnx*)
13030 version_type=qnx
13031 need_lib_prefix=no
13032 need_version=no
13033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13034 soname_spec='$libname$release$shared_ext$major'
13035 shlibpath_var=LD_LIBRARY_PATH
13036 shlibpath_overrides_runpath=no
13037 hardcode_into_libs=yes
13038 dynamic_linker='ldqnx.so'
13041 openbsd* | bitrig*)
13042 version_type=sunos
13043 sys_lib_dlsearch_path_spec=/usr/lib
13044 need_lib_prefix=no
13045 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13046 need_version=no
13047 else
13048 need_version=yes
13050 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13052 shlibpath_var=LD_LIBRARY_PATH
13053 shlibpath_overrides_runpath=yes
13056 os2*)
13057 libname_spec='$name'
13058 version_type=windows
13059 shrext_cmds=.dll
13060 need_version=no
13061 need_lib_prefix=no
13062 # OS/2 can only load a DLL with a base name of 8 characters or less.
13063 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13064 v=$($ECHO $release$versuffix | tr -d .-);
13065 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13066 $ECHO $n$v`$shared_ext'
13067 library_names_spec='${libname}_dll.$libext'
13068 dynamic_linker='OS/2 ld.exe'
13069 shlibpath_var=BEGINLIBPATH
13070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13072 postinstall_cmds='base_file=`basename \$file`~
13073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13074 dldir=$destdir/`dirname \$dlpath`~
13075 test -d \$dldir || mkdir -p \$dldir~
13076 $install_prog $dir/$dlname \$dldir/$dlname~
13077 chmod a+x \$dldir/$dlname~
13078 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13079 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13082 dlpath=$dir/\$dldll~
13083 $RM \$dlpath'
13086 osf3* | osf4* | osf5*)
13087 version_type=osf
13088 need_lib_prefix=no
13089 need_version=no
13090 soname_spec='$libname$release$shared_ext$major'
13091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13092 shlibpath_var=LD_LIBRARY_PATH
13093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13097 rdos*)
13098 dynamic_linker=no
13101 solaris*)
13102 version_type=linux # correct to gnu/linux during the next big refactor
13103 need_lib_prefix=no
13104 need_version=no
13105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13106 soname_spec='$libname$release$shared_ext$major'
13107 shlibpath_var=LD_LIBRARY_PATH
13108 shlibpath_overrides_runpath=yes
13109 hardcode_into_libs=yes
13110 # ldd complains unless libraries are executable
13111 postinstall_cmds='chmod +x $lib'
13114 sunos4*)
13115 version_type=sunos
13116 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13118 shlibpath_var=LD_LIBRARY_PATH
13119 shlibpath_overrides_runpath=yes
13120 if test yes = "$with_gnu_ld"; then
13121 need_lib_prefix=no
13123 need_version=yes
13126 sysv4 | sysv4.3*)
13127 version_type=linux # correct to gnu/linux during the next big refactor
13128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13129 soname_spec='$libname$release$shared_ext$major'
13130 shlibpath_var=LD_LIBRARY_PATH
13131 case $host_vendor in
13132 sni)
13133 shlibpath_overrides_runpath=no
13134 need_lib_prefix=no
13135 runpath_var=LD_RUN_PATH
13137 siemens)
13138 need_lib_prefix=no
13140 motorola)
13141 need_lib_prefix=no
13142 need_version=no
13143 shlibpath_overrides_runpath=no
13144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13146 esac
13149 sysv4*MP*)
13150 if test -d /usr/nec; then
13151 version_type=linux # correct to gnu/linux during the next big refactor
13152 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13153 soname_spec='$libname$shared_ext.$major'
13154 shlibpath_var=LD_LIBRARY_PATH
13158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13159 version_type=sco
13160 need_lib_prefix=no
13161 need_version=no
13162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13163 soname_spec='$libname$release$shared_ext$major'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 shlibpath_overrides_runpath=yes
13166 hardcode_into_libs=yes
13167 if test yes = "$with_gnu_ld"; then
13168 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13169 else
13170 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13171 case $host_os in
13172 sco3.2v5*)
13173 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13175 esac
13177 sys_lib_dlsearch_path_spec='/usr/lib'
13180 tpf*)
13181 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13182 version_type=linux # correct to gnu/linux during the next big refactor
13183 need_lib_prefix=no
13184 need_version=no
13185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13186 shlibpath_var=LD_LIBRARY_PATH
13187 shlibpath_overrides_runpath=no
13188 hardcode_into_libs=yes
13191 uts4*)
13192 version_type=linux # correct to gnu/linux during the next big refactor
13193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13194 soname_spec='$libname$release$shared_ext$major'
13195 shlibpath_var=LD_LIBRARY_PATH
13199 dynamic_linker=no
13201 esac
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13203 $as_echo "$dynamic_linker" >&6; }
13204 test no = "$dynamic_linker" && can_build_shared=no
13206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13207 if test yes = "$GCC"; then
13208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13211 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13212 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13215 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13216 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13219 # lt_cv_sys_lib... is unaugmented for libtool script decls...
13220 lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
13222 # ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for
13223 # LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths:
13224 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13318 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13319 hardcode_action=
13320 if test -n "$hardcode_libdir_flag_spec" ||
13321 test -n "$runpath_var" ||
13322 test yes = "$hardcode_automatic"; then
13324 # We can hardcode non-existent directories.
13325 if test no != "$hardcode_direct" &&
13326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13327 # have to relink, otherwise we might link with an installed library
13328 # when we should be linking with a yet-to-be-installed one
13329 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13330 test no != "$hardcode_minus_L"; then
13331 # Linking always hardcodes the temporary library directory.
13332 hardcode_action=relink
13333 else
13334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13335 hardcode_action=immediate
13337 else
13338 # We cannot hardcode anything, or else we can only hardcode existing
13339 # directories.
13340 hardcode_action=unsupported
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13343 $as_echo "$hardcode_action" >&6; }
13345 if test relink = "$hardcode_action" ||
13346 test yes = "$inherit_rpath"; then
13347 # Fast installation is not supported
13348 enable_fast_install=no
13349 elif test yes = "$shlibpath_overrides_runpath" ||
13350 test no = "$enable_shared"; then
13351 # Fast installation is not necessary
13352 enable_fast_install=needless
13360 if test yes != "$enable_dlopen"; then
13361 enable_dlopen=unknown
13362 enable_dlopen_self=unknown
13363 enable_dlopen_self_static=unknown
13364 else
13365 lt_cv_dlopen=no
13366 lt_cv_dlopen_libs=
13368 case $host_os in
13369 beos*)
13370 lt_cv_dlopen=load_add_on
13371 lt_cv_dlopen_libs=
13372 lt_cv_dlopen_self=yes
13375 mingw* | pw32* | cegcc*)
13376 lt_cv_dlopen=LoadLibrary
13377 lt_cv_dlopen_libs=
13380 cygwin*)
13381 lt_cv_dlopen=dlopen
13382 lt_cv_dlopen_libs=
13385 darwin*)
13386 # if libdl is installed we need to link against it
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13388 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13389 if ${ac_cv_lib_dl_dlopen+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 ac_check_lib_save_LIBS=$LIBS
13393 LIBS="-ldl $LIBS"
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 char dlopen ();
13405 main ()
13407 return dlopen ();
13409 return 0;
13411 _ACEOF
13412 if ac_fn_c_try_link "$LINENO"; then :
13413 ac_cv_lib_dl_dlopen=yes
13414 else
13415 ac_cv_lib_dl_dlopen=no
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13422 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13423 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13424 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13425 else
13427 lt_cv_dlopen=dyld
13428 lt_cv_dlopen_libs=
13429 lt_cv_dlopen_self=yes
13435 tpf*)
13436 # Don't try to run any link tests for TPF. We know it's impossible
13437 # because TPF is a cross-compiler, and we know how we open DSOs.
13438 lt_cv_dlopen=dlopen
13439 lt_cv_dlopen_libs=
13440 lt_cv_dlopen_self=no
13444 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13445 if test "x$ac_cv_func_shl_load" = xyes; then :
13446 lt_cv_dlopen=shl_load
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13449 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13450 if ${ac_cv_lib_dld_shl_load+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-ldld $LIBS"
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461 #ifdef __cplusplus
13462 extern "C"
13463 #endif
13464 char shl_load ();
13466 main ()
13468 return shl_load ();
13470 return 0;
13472 _ACEOF
13473 if ac_fn_c_try_link "$LINENO"; then :
13474 ac_cv_lib_dld_shl_load=yes
13475 else
13476 ac_cv_lib_dld_shl_load=no
13478 rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480 LIBS=$ac_check_lib_save_LIBS
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13483 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13484 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13485 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13486 else
13487 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13488 if test "x$ac_cv_func_dlopen" = xyes; then :
13489 lt_cv_dlopen=dlopen
13490 else
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13493 if ${ac_cv_lib_dl_dlopen+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 ac_check_lib_save_LIBS=$LIBS
13497 LIBS="-ldl $LIBS"
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13501 /* Override any GCC internal prototype to avoid an error.
13502 Use char because int might match the return type of a GCC
13503 builtin and then its argument prototype would still apply. */
13504 #ifdef __cplusplus
13505 extern "C"
13506 #endif
13507 char dlopen ();
13509 main ()
13511 return dlopen ();
13513 return 0;
13515 _ACEOF
13516 if ac_fn_c_try_link "$LINENO"; then :
13517 ac_cv_lib_dl_dlopen=yes
13518 else
13519 ac_cv_lib_dl_dlopen=no
13521 rm -f core conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523 LIBS=$ac_check_lib_save_LIBS
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13527 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13528 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13531 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13532 if ${ac_cv_lib_svld_dlopen+:} false; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 ac_check_lib_save_LIBS=$LIBS
13536 LIBS="-lsvld $LIBS"
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13540 /* Override any GCC internal prototype to avoid an error.
13541 Use char because int might match the return type of a GCC
13542 builtin and then its argument prototype would still apply. */
13543 #ifdef __cplusplus
13544 extern "C"
13545 #endif
13546 char dlopen ();
13548 main ()
13550 return dlopen ();
13552 return 0;
13554 _ACEOF
13555 if ac_fn_c_try_link "$LINENO"; then :
13556 ac_cv_lib_svld_dlopen=yes
13557 else
13558 ac_cv_lib_svld_dlopen=no
13560 rm -f core conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13562 LIBS=$ac_check_lib_save_LIBS
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13565 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13566 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13567 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13568 else
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13570 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13571 if ${ac_cv_lib_dld_dld_link+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 ac_check_lib_save_LIBS=$LIBS
13575 LIBS="-ldld $LIBS"
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13579 /* Override any GCC internal prototype to avoid an error.
13580 Use char because int might match the return type of a GCC
13581 builtin and then its argument prototype would still apply. */
13582 #ifdef __cplusplus
13583 extern "C"
13584 #endif
13585 char dld_link ();
13587 main ()
13589 return dld_link ();
13591 return 0;
13593 _ACEOF
13594 if ac_fn_c_try_link "$LINENO"; then :
13595 ac_cv_lib_dld_dld_link=yes
13596 else
13597 ac_cv_lib_dld_dld_link=no
13599 rm -f core conftest.err conftest.$ac_objext \
13600 conftest$ac_exeext conftest.$ac_ext
13601 LIBS=$ac_check_lib_save_LIBS
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13604 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13605 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13606 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13625 esac
13627 if test no = "$lt_cv_dlopen"; then
13628 enable_dlopen=no
13629 else
13630 enable_dlopen=yes
13633 case $lt_cv_dlopen in
13634 dlopen)
13635 save_CPPFLAGS=$CPPFLAGS
13636 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13638 save_LDFLAGS=$LDFLAGS
13639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13641 save_LIBS=$LIBS
13642 LIBS="$lt_cv_dlopen_libs $LIBS"
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13645 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13646 if ${lt_cv_dlopen_self+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 if test yes = "$cross_compiling"; then :
13650 lt_cv_dlopen_self=cross
13651 else
13652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13653 lt_status=$lt_dlunknown
13654 cat > conftest.$ac_ext <<_LT_EOF
13655 #line $LINENO "configure"
13656 #include "confdefs.h"
13658 #if HAVE_DLFCN_H
13659 #include <dlfcn.h>
13660 #endif
13662 #include <stdio.h>
13664 #ifdef RTLD_GLOBAL
13665 # define LT_DLGLOBAL RTLD_GLOBAL
13666 #else
13667 # ifdef DL_GLOBAL
13668 # define LT_DLGLOBAL DL_GLOBAL
13669 # else
13670 # define LT_DLGLOBAL 0
13671 # endif
13672 #endif
13674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13675 find out it does not work in some platform. */
13676 #ifndef LT_DLLAZY_OR_NOW
13677 # ifdef RTLD_LAZY
13678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13679 # else
13680 # ifdef DL_LAZY
13681 # define LT_DLLAZY_OR_NOW DL_LAZY
13682 # else
13683 # ifdef RTLD_NOW
13684 # define LT_DLLAZY_OR_NOW RTLD_NOW
13685 # else
13686 # ifdef DL_NOW
13687 # define LT_DLLAZY_OR_NOW DL_NOW
13688 # else
13689 # define LT_DLLAZY_OR_NOW 0
13690 # endif
13691 # endif
13692 # endif
13693 # endif
13694 #endif
13696 /* When -fvisibility=hidden is used, assume the code has been annotated
13697 correspondingly for the symbols needed. */
13698 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13699 int fnord () __attribute__((visibility("default")));
13700 #endif
13702 int fnord () { return 42; }
13703 int main ()
13705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13706 int status = $lt_dlunknown;
13708 if (self)
13710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13711 else
13713 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13714 else puts (dlerror ());
13716 /* dlclose (self); */
13718 else
13719 puts (dlerror ());
13721 return status;
13723 _LT_EOF
13724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13725 (eval $ac_link) 2>&5
13726 ac_status=$?
13727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13728 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13729 (./conftest; exit; ) >&5 2>/dev/null
13730 lt_status=$?
13731 case x$lt_status in
13732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13735 esac
13736 else :
13737 # compilation failed
13738 lt_cv_dlopen_self=no
13741 rm -fr conftest*
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13746 $as_echo "$lt_cv_dlopen_self" >&6; }
13748 if test yes = "$lt_cv_dlopen_self"; then
13749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13751 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13752 if ${lt_cv_dlopen_self_static+:} false; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 if test yes = "$cross_compiling"; then :
13756 lt_cv_dlopen_self_static=cross
13757 else
13758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13759 lt_status=$lt_dlunknown
13760 cat > conftest.$ac_ext <<_LT_EOF
13761 #line $LINENO "configure"
13762 #include "confdefs.h"
13764 #if HAVE_DLFCN_H
13765 #include <dlfcn.h>
13766 #endif
13768 #include <stdio.h>
13770 #ifdef RTLD_GLOBAL
13771 # define LT_DLGLOBAL RTLD_GLOBAL
13772 #else
13773 # ifdef DL_GLOBAL
13774 # define LT_DLGLOBAL DL_GLOBAL
13775 # else
13776 # define LT_DLGLOBAL 0
13777 # endif
13778 #endif
13780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13781 find out it does not work in some platform. */
13782 #ifndef LT_DLLAZY_OR_NOW
13783 # ifdef RTLD_LAZY
13784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13785 # else
13786 # ifdef DL_LAZY
13787 # define LT_DLLAZY_OR_NOW DL_LAZY
13788 # else
13789 # ifdef RTLD_NOW
13790 # define LT_DLLAZY_OR_NOW RTLD_NOW
13791 # else
13792 # ifdef DL_NOW
13793 # define LT_DLLAZY_OR_NOW DL_NOW
13794 # else
13795 # define LT_DLLAZY_OR_NOW 0
13796 # endif
13797 # endif
13798 # endif
13799 # endif
13800 #endif
13802 /* When -fvisibility=hidden is used, assume the code has been annotated
13803 correspondingly for the symbols needed. */
13804 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13805 int fnord () __attribute__((visibility("default")));
13806 #endif
13808 int fnord () { return 42; }
13809 int main ()
13811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13812 int status = $lt_dlunknown;
13814 if (self)
13816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13817 else
13819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13820 else puts (dlerror ());
13822 /* dlclose (self); */
13824 else
13825 puts (dlerror ());
13827 return status;
13829 _LT_EOF
13830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13831 (eval $ac_link) 2>&5
13832 ac_status=$?
13833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13834 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13835 (./conftest; exit; ) >&5 2>/dev/null
13836 lt_status=$?
13837 case x$lt_status in
13838 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13839 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13840 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13841 esac
13842 else :
13843 # compilation failed
13844 lt_cv_dlopen_self_static=no
13847 rm -fr conftest*
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13852 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13855 CPPFLAGS=$save_CPPFLAGS
13856 LDFLAGS=$save_LDFLAGS
13857 LIBS=$save_LIBS
13859 esac
13861 case $lt_cv_dlopen_self in
13862 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13863 *) enable_dlopen_self=unknown ;;
13864 esac
13866 case $lt_cv_dlopen_self_static in
13867 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13868 *) enable_dlopen_self_static=unknown ;;
13869 esac
13888 striplib=
13889 old_striplib=
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13891 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13892 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13893 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13894 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13896 $as_echo "yes" >&6; }
13897 else
13898 # FIXME - insert some real tests, host_os isn't really good enough
13899 case $host_os in
13900 darwin*)
13901 if test -n "$STRIP"; then
13902 striplib="$STRIP -x"
13903 old_striplib="$STRIP -S"
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13905 $as_echo "yes" >&6; }
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13915 esac
13929 # Report what library types will actually be built
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13931 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13933 $as_echo "$can_build_shared" >&6; }
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13936 $as_echo_n "checking whether to build shared libraries... " >&6; }
13937 test no = "$can_build_shared" && enable_shared=no
13939 # On AIX, shared libraries and static libraries use the same namespace, and
13940 # are all built from PIC.
13941 case $host_os in
13942 aix3*)
13943 test yes = "$enable_shared" && enable_static=no
13944 if test -n "$RANLIB"; then
13945 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13946 postinstall_cmds='$RANLIB $lib'
13950 aix[4-9]*)
13951 if test ia64 != "$host_cpu"; then
13952 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13953 yes,aix,yes) ;; # shared object as lib.so file only
13954 yes,svr4,*) ;; # shared object as lib.so archive member only
13955 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13956 esac
13959 esac
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13961 $as_echo "$enable_shared" >&6; }
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13964 $as_echo_n "checking whether to build static libraries... " >&6; }
13965 # Make sure either enable_shared or enable_static is yes.
13966 test yes = "$enable_shared" || enable_static=yes
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13968 $as_echo "$enable_static" >&6; }
13974 ac_ext=c
13975 ac_cpp='$CPP $CPPFLAGS'
13976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13980 CC=$lt_save_CC
13996 ac_config_commands="$ac_config_commands libtool"
14001 # Only expand once:
14004 # Check whether --enable-largefile was given.
14005 if test "${enable_largefile+set}" = set; then :
14006 enableval=$enable_largefile;
14009 if test "$enable_largefile" != no; then
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14012 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14013 if ${ac_cv_sys_largefile_CC+:} false; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 ac_cv_sys_largefile_CC=no
14017 if test "$GCC" != yes; then
14018 ac_save_CC=$CC
14019 while :; do
14020 # IRIX 6.2 and later do not support large files by default,
14021 # so use the C compiler's -n32 option if that helps.
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14024 #include <sys/types.h>
14025 /* Check that off_t can represent 2**63 - 1 correctly.
14026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14027 since some C++ compilers masquerading as C compilers
14028 incorrectly reject 9223372036854775807. */
14029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14031 && LARGE_OFF_T % 2147483647 == 1)
14032 ? 1 : -1];
14034 main ()
14038 return 0;
14040 _ACEOF
14041 if ac_fn_c_try_compile "$LINENO"; then :
14042 break
14044 rm -f core conftest.err conftest.$ac_objext
14045 CC="$CC -n32"
14046 if ac_fn_c_try_compile "$LINENO"; then :
14047 ac_cv_sys_largefile_CC=' -n32'; break
14049 rm -f core conftest.err conftest.$ac_objext
14050 break
14051 done
14052 CC=$ac_save_CC
14053 rm -f conftest.$ac_ext
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14057 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14058 if test "$ac_cv_sys_largefile_CC" != no; then
14059 CC=$CC$ac_cv_sys_largefile_CC
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14063 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14064 if ${ac_cv_sys_file_offset_bits+:} false; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 while :; do
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 #include <sys/types.h>
14071 /* Check that off_t can represent 2**63 - 1 correctly.
14072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14073 since some C++ compilers masquerading as C compilers
14074 incorrectly reject 9223372036854775807. */
14075 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14077 && LARGE_OFF_T % 2147483647 == 1)
14078 ? 1 : -1];
14080 main ()
14084 return 0;
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088 ac_cv_sys_file_offset_bits=no; break
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14093 #define _FILE_OFFSET_BITS 64
14094 #include <sys/types.h>
14095 /* Check that off_t can represent 2**63 - 1 correctly.
14096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14097 since some C++ compilers masquerading as C compilers
14098 incorrectly reject 9223372036854775807. */
14099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14101 && LARGE_OFF_T % 2147483647 == 1)
14102 ? 1 : -1];
14104 main ()
14108 return 0;
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112 ac_cv_sys_file_offset_bits=64; break
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 ac_cv_sys_file_offset_bits=unknown
14116 break
14117 done
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14120 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14121 case $ac_cv_sys_file_offset_bits in #(
14122 no | unknown) ;;
14124 cat >>confdefs.h <<_ACEOF
14125 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14126 _ACEOF
14128 esac
14129 rm -rf conftest*
14130 if test $ac_cv_sys_file_offset_bits = unknown; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14132 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14133 if ${ac_cv_sys_large_files+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 while :; do
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14139 #include <sys/types.h>
14140 /* Check that off_t can represent 2**63 - 1 correctly.
14141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14142 since some C++ compilers masquerading as C compilers
14143 incorrectly reject 9223372036854775807. */
14144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14146 && LARGE_OFF_T % 2147483647 == 1)
14147 ? 1 : -1];
14149 main ()
14153 return 0;
14155 _ACEOF
14156 if ac_fn_c_try_compile "$LINENO"; then :
14157 ac_cv_sys_large_files=no; break
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162 #define _LARGE_FILES 1
14163 #include <sys/types.h>
14164 /* Check that off_t can represent 2**63 - 1 correctly.
14165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14166 since some C++ compilers masquerading as C compilers
14167 incorrectly reject 9223372036854775807. */
14168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14170 && LARGE_OFF_T % 2147483647 == 1)
14171 ? 1 : -1];
14173 main ()
14177 return 0;
14179 _ACEOF
14180 if ac_fn_c_try_compile "$LINENO"; then :
14181 ac_cv_sys_large_files=1; break
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 ac_cv_sys_large_files=unknown
14185 break
14186 done
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14189 $as_echo "$ac_cv_sys_large_files" >&6; }
14190 case $ac_cv_sys_large_files in #(
14191 no | unknown) ;;
14193 cat >>confdefs.h <<_ACEOF
14194 #define _LARGE_FILES $ac_cv_sys_large_files
14195 _ACEOF
14197 esac
14198 rm -rf conftest*
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14205 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14206 if ${ac_cv_sys_largefile_source+:} false; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 while :; do
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212 #include <sys/types.h> /* for off_t */
14213 #include <stdio.h>
14215 main ()
14217 int (*fp) (FILE *, off_t, int) = fseeko;
14218 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14220 return 0;
14222 _ACEOF
14223 if ac_fn_c_try_link "$LINENO"; then :
14224 ac_cv_sys_largefile_source=no; break
14226 rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230 #define _LARGEFILE_SOURCE 1
14231 #include <sys/types.h> /* for off_t */
14232 #include <stdio.h>
14234 main ()
14236 int (*fp) (FILE *, off_t, int) = fseeko;
14237 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14239 return 0;
14241 _ACEOF
14242 if ac_fn_c_try_link "$LINENO"; then :
14243 ac_cv_sys_largefile_source=1; break
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14247 ac_cv_sys_largefile_source=unknown
14248 break
14249 done
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14252 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14253 case $ac_cv_sys_largefile_source in #(
14254 no | unknown) ;;
14256 cat >>confdefs.h <<_ACEOF
14257 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14258 _ACEOF
14260 esac
14261 rm -rf conftest*
14263 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14264 # in glibc 2.1.3, but that breaks too many other things.
14265 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14266 if test $ac_cv_sys_largefile_source != unknown; then
14268 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14272 ac_header_dirent=no
14273 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14274 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14276 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14277 if eval \${$as_ac_Header+:} false; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 #include <sys/types.h>
14283 #include <$ac_hdr>
14286 main ()
14288 if ((DIR *) 0)
14289 return 0;
14291 return 0;
14293 _ACEOF
14294 if ac_fn_c_try_compile "$LINENO"; then :
14295 eval "$as_ac_Header=yes"
14296 else
14297 eval "$as_ac_Header=no"
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 eval ac_res=\$$as_ac_Header
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14303 $as_echo "$ac_res" >&6; }
14304 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14305 cat >>confdefs.h <<_ACEOF
14306 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14307 _ACEOF
14309 ac_header_dirent=$ac_hdr; break
14312 done
14313 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14314 if test $ac_header_dirent = dirent.h; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14316 $as_echo_n "checking for library containing opendir... " >&6; }
14317 if ${ac_cv_search_opendir+:} false; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 ac_func_search_save_LIBS=$LIBS
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14324 /* Override any GCC internal prototype to avoid an error.
14325 Use char because int might match the return type of a GCC
14326 builtin and then its argument prototype would still apply. */
14327 #ifdef __cplusplus
14328 extern "C"
14329 #endif
14330 char opendir ();
14332 main ()
14334 return opendir ();
14336 return 0;
14338 _ACEOF
14339 for ac_lib in '' dir; do
14340 if test -z "$ac_lib"; then
14341 ac_res="none required"
14342 else
14343 ac_res=-l$ac_lib
14344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14346 if ac_fn_c_try_link "$LINENO"; then :
14347 ac_cv_search_opendir=$ac_res
14349 rm -f core conftest.err conftest.$ac_objext \
14350 conftest$ac_exeext
14351 if ${ac_cv_search_opendir+:} false; then :
14352 break
14354 done
14355 if ${ac_cv_search_opendir+:} false; then :
14357 else
14358 ac_cv_search_opendir=no
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14364 $as_echo "$ac_cv_search_opendir" >&6; }
14365 ac_res=$ac_cv_search_opendir
14366 if test "$ac_res" != no; then :
14367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14371 else
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14373 $as_echo_n "checking for library containing opendir... " >&6; }
14374 if ${ac_cv_search_opendir+:} false; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 ac_func_search_save_LIBS=$LIBS
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14381 /* Override any GCC internal prototype to avoid an error.
14382 Use char because int might match the return type of a GCC
14383 builtin and then its argument prototype would still apply. */
14384 #ifdef __cplusplus
14385 extern "C"
14386 #endif
14387 char opendir ();
14389 main ()
14391 return opendir ();
14393 return 0;
14395 _ACEOF
14396 for ac_lib in '' x; do
14397 if test -z "$ac_lib"; then
14398 ac_res="none required"
14399 else
14400 ac_res=-l$ac_lib
14401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14403 if ac_fn_c_try_link "$LINENO"; then :
14404 ac_cv_search_opendir=$ac_res
14406 rm -f core conftest.err conftest.$ac_objext \
14407 conftest$ac_exeext
14408 if ${ac_cv_search_opendir+:} false; then :
14409 break
14411 done
14412 if ${ac_cv_search_opendir+:} false; then :
14414 else
14415 ac_cv_search_opendir=no
14417 rm conftest.$ac_ext
14418 LIBS=$ac_func_search_save_LIBS
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14421 $as_echo "$ac_cv_search_opendir" >&6; }
14422 ac_res=$ac_cv_search_opendir
14423 if test "$ac_res" != no; then :
14424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14431 $as_echo_n "checking for ANSI C header files... " >&6; }
14432 if ${ac_cv_header_stdc+:} false; then :
14433 $as_echo_n "(cached) " >&6
14434 else
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h. */
14437 #include <stdlib.h>
14438 #include <stdarg.h>
14439 #include <string.h>
14440 #include <float.h>
14443 main ()
14447 return 0;
14449 _ACEOF
14450 if ac_fn_c_try_compile "$LINENO"; then :
14451 ac_cv_header_stdc=yes
14452 else
14453 ac_cv_header_stdc=no
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 if test $ac_cv_header_stdc = yes; then
14458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14461 #include <string.h>
14463 _ACEOF
14464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14465 $EGREP "memchr" >/dev/null 2>&1; then :
14467 else
14468 ac_cv_header_stdc=no
14470 rm -f conftest*
14474 if test $ac_cv_header_stdc = yes; then
14475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14478 #include <stdlib.h>
14480 _ACEOF
14481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14482 $EGREP "free" >/dev/null 2>&1; then :
14484 else
14485 ac_cv_header_stdc=no
14487 rm -f conftest*
14491 if test $ac_cv_header_stdc = yes; then
14492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14493 if test "$cross_compiling" = yes; then :
14495 else
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 #include <ctype.h>
14499 #include <stdlib.h>
14500 #if ((' ' & 0x0FF) == 0x020)
14501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14503 #else
14504 # define ISLOWER(c) \
14505 (('a' <= (c) && (c) <= 'i') \
14506 || ('j' <= (c) && (c) <= 'r') \
14507 || ('s' <= (c) && (c) <= 'z'))
14508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14509 #endif
14511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14513 main ()
14515 int i;
14516 for (i = 0; i < 256; i++)
14517 if (XOR (islower (i), ISLOWER (i))
14518 || toupper (i) != TOUPPER (i))
14519 return 2;
14520 return 0;
14522 _ACEOF
14523 if ac_fn_c_try_run "$LINENO"; then :
14525 else
14526 ac_cv_header_stdc=no
14528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14529 conftest.$ac_objext conftest.beam conftest.$ac_ext
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14535 $as_echo "$ac_cv_header_stdc" >&6; }
14536 if test $ac_cv_header_stdc = yes; then
14538 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
14543 $as_echo_n "checking whether closedir returns void... " >&6; }
14544 if ${ac_cv_func_closedir_void+:} false; then :
14545 $as_echo_n "(cached) " >&6
14546 else
14547 if test "$cross_compiling" = yes; then :
14548 ac_cv_func_closedir_void=yes
14549 else
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14552 $ac_includes_default
14553 #include <$ac_header_dirent>
14554 #ifndef __cplusplus
14555 int closedir ();
14556 #endif
14559 main ()
14561 return closedir (opendir (".")) != 0;
14563 return 0;
14565 _ACEOF
14566 if ac_fn_c_try_run "$LINENO"; then :
14567 ac_cv_func_closedir_void=no
14568 else
14569 ac_cv_func_closedir_void=yes
14571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14572 conftest.$ac_objext conftest.beam conftest.$ac_ext
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
14577 $as_echo "$ac_cv_func_closedir_void" >&6; }
14578 if test $ac_cv_func_closedir_void = yes; then
14580 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
14584 for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.h
14585 do :
14586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14587 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14588 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14589 cat >>confdefs.h <<_ACEOF
14590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14591 _ACEOF
14595 done
14597 for ac_func in putenv strcasecmp strtol strstr
14598 do :
14599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14600 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14601 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14602 cat >>confdefs.h <<_ACEOF
14603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14604 _ACEOF
14607 done
14609 for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr
14610 do :
14611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14614 cat >>confdefs.h <<_ACEOF
14615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14616 _ACEOF
14619 done
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14622 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14623 if ${ac_cv_c_const+:} false; then :
14624 $as_echo_n "(cached) " >&6
14625 else
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14630 main ()
14633 #ifndef __cplusplus
14634 /* Ultrix mips cc rejects this sort of thing. */
14635 typedef int charset[2];
14636 const charset cs = { 0, 0 };
14637 /* SunOS 4.1.1 cc rejects this. */
14638 char const *const *pcpcc;
14639 char **ppc;
14640 /* NEC SVR4.0.2 mips cc rejects this. */
14641 struct point {int x, y;};
14642 static struct point const zero = {0,0};
14643 /* AIX XL C 1.02.0.0 rejects this.
14644 It does not let you subtract one const X* pointer from another in
14645 an arm of an if-expression whose if-part is not a constant
14646 expression */
14647 const char *g = "string";
14648 pcpcc = &g + (g ? g-g : 0);
14649 /* HPUX 7.0 cc rejects these. */
14650 ++pcpcc;
14651 ppc = (char**) pcpcc;
14652 pcpcc = (char const *const *) ppc;
14653 { /* SCO 3.2v4 cc rejects this sort of thing. */
14654 char tx;
14655 char *t = &tx;
14656 char const *s = 0 ? (char *) 0 : (char const *) 0;
14658 *t++ = 0;
14659 if (s) return 0;
14661 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14662 int x[] = {25, 17};
14663 const int *foo = &x[0];
14664 ++foo;
14666 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14667 typedef const int *iptr;
14668 iptr p = 0;
14669 ++p;
14671 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14672 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14673 struct s { int j; const int *ap[3]; } bx;
14674 struct s *b = &bx; b->j = 5;
14676 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14677 const int foo = 10;
14678 if (!foo) return 0;
14680 return !cs[0] && !zero.x;
14681 #endif
14684 return 0;
14686 _ACEOF
14687 if ac_fn_c_try_compile "$LINENO"; then :
14688 ac_cv_c_const=yes
14689 else
14690 ac_cv_c_const=no
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14695 $as_echo "$ac_cv_c_const" >&6; }
14696 if test $ac_cv_c_const = no; then
14698 $as_echo "#define const /**/" >>confdefs.h
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14703 $as_echo_n "checking for inline... " >&6; }
14704 if ${ac_cv_c_inline+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 ac_cv_c_inline=no
14708 for ac_kw in inline __inline__ __inline; do
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14711 #ifndef __cplusplus
14712 typedef int foo_t;
14713 static $ac_kw foo_t static_foo () {return 0; }
14714 $ac_kw foo_t foo () {return 0; }
14715 #endif
14717 _ACEOF
14718 if ac_fn_c_try_compile "$LINENO"; then :
14719 ac_cv_c_inline=$ac_kw
14721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14722 test "$ac_cv_c_inline" != no && break
14723 done
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14727 $as_echo "$ac_cv_c_inline" >&6; }
14729 case $ac_cv_c_inline in
14730 inline | yes) ;;
14732 case $ac_cv_c_inline in
14733 no) ac_val=;;
14734 *) ac_val=$ac_cv_c_inline;;
14735 esac
14736 cat >>confdefs.h <<_ACEOF
14737 #ifndef __cplusplus
14738 #define inline $ac_val
14739 #endif
14740 _ACEOF
14742 esac
14744 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14745 if test "x$ac_cv_type_size_t" = xyes; then :
14747 else
14749 cat >>confdefs.h <<_ACEOF
14750 #define size_t unsigned int
14751 _ACEOF
14755 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14756 case $ac_cv_c_int64_t in #(
14757 no|yes) ;; #(
14760 cat >>confdefs.h <<_ACEOF
14761 #define int64_t $ac_cv_c_int64_t
14762 _ACEOF
14764 esac
14766 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14767 case $ac_cv_c_uint64_t in #(
14768 no|yes) ;; #(
14771 $as_echo "#define _UINT64_T 1" >>confdefs.h
14774 cat >>confdefs.h <<_ACEOF
14775 #define uint64_t $ac_cv_c_uint64_t
14776 _ACEOF
14778 esac
14780 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
14781 *':no:'*) :
14782 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
14783 *) :
14785 esac
14786 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14787 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14789 cat >>confdefs.h <<_ACEOF
14790 #define HAVE_STRUCT_STAT_ST_MTIM 1
14791 _ACEOF
14797 if test "x$host_alias" != x && test "x$build_alias" = x; then :
14798 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
14800 eval kpse_build_alias=\${build_alias-$build}
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14806 $as_echo_n "checking for X... " >&6; }
14809 # Check whether --with-x was given.
14810 if test "${with_x+set}" = set; then :
14811 withval=$with_x;
14814 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14815 if test "x$with_x" = xno; then
14816 # The user explicitly disabled X.
14817 have_x=disabled
14818 else
14819 case $x_includes,$x_libraries in #(
14820 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14821 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14822 $as_echo_n "(cached) " >&6
14823 else
14824 # One or both of the vars are not set, and there is no cached value.
14825 ac_x_includes=no ac_x_libraries=no
14826 rm -f -r conftest.dir
14827 if mkdir conftest.dir; then
14828 cd conftest.dir
14829 cat >Imakefile <<'_ACEOF'
14830 incroot:
14831 @echo incroot='${INCROOT}'
14832 usrlibdir:
14833 @echo usrlibdir='${USRLIBDIR}'
14834 libdir:
14835 @echo libdir='${LIBDIR}'
14836 _ACEOF
14837 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14838 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14839 for ac_var in incroot usrlibdir libdir; do
14840 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14841 done
14842 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14843 for ac_extension in a so sl dylib la dll; do
14844 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14845 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14846 ac_im_usrlibdir=$ac_im_libdir; break
14848 done
14849 # Screen out bogus values from the imake configuration. They are
14850 # bogus both because they are the default anyway, and because
14851 # using them would break gcc on systems where it needs fixed includes.
14852 case $ac_im_incroot in
14853 /usr/include) ac_x_includes= ;;
14854 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14855 esac
14856 case $ac_im_usrlibdir in
14857 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14858 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14859 esac
14861 cd ..
14862 rm -f -r conftest.dir
14865 # Standard set of common directories for X headers.
14866 # Check X11 before X11Rn because it is often a symlink to the current release.
14867 ac_x_header_dirs='
14868 /usr/X11/include
14869 /usr/X11R7/include
14870 /usr/X11R6/include
14871 /usr/X11R5/include
14872 /usr/X11R4/include
14874 /usr/include/X11
14875 /usr/include/X11R7
14876 /usr/include/X11R6
14877 /usr/include/X11R5
14878 /usr/include/X11R4
14880 /usr/local/X11/include
14881 /usr/local/X11R7/include
14882 /usr/local/X11R6/include
14883 /usr/local/X11R5/include
14884 /usr/local/X11R4/include
14886 /usr/local/include/X11
14887 /usr/local/include/X11R7
14888 /usr/local/include/X11R6
14889 /usr/local/include/X11R5
14890 /usr/local/include/X11R4
14892 /usr/X386/include
14893 /usr/x386/include
14894 /usr/XFree86/include/X11
14896 /usr/include
14897 /usr/local/include
14898 /usr/unsupported/include
14899 /usr/athena/include
14900 /usr/local/x11r5/include
14901 /usr/lpp/Xamples/include
14903 /usr/openwin/include
14904 /usr/openwin/share/include'
14906 if test "$ac_x_includes" = no; then
14907 # Guess where to find include files, by looking for Xlib.h.
14908 # First, try using that file with no special directory specified.
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911 #include <X11/Xlib.h>
14912 _ACEOF
14913 if ac_fn_c_try_cpp "$LINENO"; then :
14914 # We can compile using X headers with no special include directory.
14915 ac_x_includes=
14916 else
14917 for ac_dir in $ac_x_header_dirs; do
14918 if test -r "$ac_dir/X11/Xlib.h"; then
14919 ac_x_includes=$ac_dir
14920 break
14922 done
14924 rm -f conftest.err conftest.i conftest.$ac_ext
14925 fi # $ac_x_includes = no
14927 if test "$ac_x_libraries" = no; then
14928 # Check for the libraries.
14929 # See if we find them without any special options.
14930 # Don't add to $LIBS permanently.
14931 ac_save_LIBS=$LIBS
14932 LIBS="-lX11 $LIBS"
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935 #include <X11/Xlib.h>
14937 main ()
14939 XrmInitialize ()
14941 return 0;
14943 _ACEOF
14944 if ac_fn_c_try_link "$LINENO"; then :
14945 LIBS=$ac_save_LIBS
14946 # We can link X programs with no special library path.
14947 ac_x_libraries=
14948 else
14949 LIBS=$ac_save_LIBS
14950 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14952 # Don't even attempt the hair of trying to link an X program!
14953 for ac_extension in a so sl dylib la dll; do
14954 if test -r "$ac_dir/libX11.$ac_extension"; then
14955 ac_x_libraries=$ac_dir
14956 break 2
14958 done
14959 done
14961 rm -f core conftest.err conftest.$ac_objext \
14962 conftest$ac_exeext conftest.$ac_ext
14963 fi # $ac_x_libraries = no
14965 case $ac_x_includes,$ac_x_libraries in #(
14966 no,* | *,no | *\'*)
14967 # Didn't find X, or a directory has "'" in its name.
14968 ac_cv_have_x="have_x=no";; #(
14970 # Record where we found X for the cache.
14971 ac_cv_have_x="have_x=yes\
14972 ac_x_includes='$ac_x_includes'\
14973 ac_x_libraries='$ac_x_libraries'"
14974 esac
14976 ;; #(
14977 *) have_x=yes;;
14978 esac
14979 eval "$ac_cv_have_x"
14980 fi # $with_x != no
14982 if test "$have_x" != yes; then
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14984 $as_echo "$have_x" >&6; }
14985 no_x=yes
14986 else
14987 # If each of the values was on the command line, it overrides each guess.
14988 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14989 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14990 # Update the cache value to reflect the command line values.
14991 ac_cv_have_x="have_x=yes\
14992 ac_x_includes='$x_includes'\
14993 ac_x_libraries='$x_libraries'"
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14995 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14998 if test "$no_x" = yes; then
14999 # Not all programs may use this symbol, but it does not hurt to define it.
15001 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
15003 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
15004 else
15005 if test -n "$x_includes"; then
15006 X_CFLAGS="$X_CFLAGS -I$x_includes"
15009 # It would also be nice to do this for all -L options, not just this one.
15010 if test -n "$x_libraries"; then
15011 X_LIBS="$X_LIBS -L$x_libraries"
15012 # For Solaris; some versions of Sun CC require a space after -R and
15013 # others require no space. Words are not sufficient . . . .
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
15015 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
15016 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
15017 ac_xsave_c_werror_flag=$ac_c_werror_flag
15018 ac_c_werror_flag=yes
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15023 main ()
15027 return 0;
15029 _ACEOF
15030 if ac_fn_c_try_link "$LINENO"; then :
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15032 $as_echo "no" >&6; }
15033 X_LIBS="$X_LIBS -R$x_libraries"
15034 else
15035 LIBS="$ac_xsave_LIBS -R $x_libraries"
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15040 main ()
15044 return 0;
15046 _ACEOF
15047 if ac_fn_c_try_link "$LINENO"; then :
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15049 $as_echo "yes" >&6; }
15050 X_LIBS="$X_LIBS -R $x_libraries"
15051 else
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
15053 $as_echo "neither works" >&6; }
15055 rm -f core conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15058 rm -f core conftest.err conftest.$ac_objext \
15059 conftest$ac_exeext conftest.$ac_ext
15060 ac_c_werror_flag=$ac_xsave_c_werror_flag
15061 LIBS=$ac_xsave_LIBS
15064 # Check for system-dependent libraries X programs must link with.
15065 # Do this before checking for the system-independent R6 libraries
15066 # (-lICE), since we may need -lsocket or whatever for X linking.
15068 if test "$ISC" = yes; then
15069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
15070 else
15071 # Martyn Johnson says this is needed for Ultrix, if the X
15072 # libraries were built with DECnet support. And Karl Berry says
15073 # the Alpha needs dnet_stub (dnet does not exist).
15074 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15078 /* Override any GCC internal prototype to avoid an error.
15079 Use char because int might match the return type of a GCC
15080 builtin and then its argument prototype would still apply. */
15081 #ifdef __cplusplus
15082 extern "C"
15083 #endif
15084 char XOpenDisplay ();
15086 main ()
15088 return XOpenDisplay ();
15090 return 0;
15092 _ACEOF
15093 if ac_fn_c_try_link "$LINENO"; then :
15095 else
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
15097 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
15098 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
15099 $as_echo_n "(cached) " >&6
15100 else
15101 ac_check_lib_save_LIBS=$LIBS
15102 LIBS="-ldnet $LIBS"
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15106 /* Override any GCC internal prototype to avoid an error.
15107 Use char because int might match the return type of a GCC
15108 builtin and then its argument prototype would still apply. */
15109 #ifdef __cplusplus
15110 extern "C"
15111 #endif
15112 char dnet_ntoa ();
15114 main ()
15116 return dnet_ntoa ();
15118 return 0;
15120 _ACEOF
15121 if ac_fn_c_try_link "$LINENO"; then :
15122 ac_cv_lib_dnet_dnet_ntoa=yes
15123 else
15124 ac_cv_lib_dnet_dnet_ntoa=no
15126 rm -f core conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext conftest.$ac_ext
15128 LIBS=$ac_check_lib_save_LIBS
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
15131 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
15132 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
15133 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
15136 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
15138 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
15139 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
15140 $as_echo_n "(cached) " >&6
15141 else
15142 ac_check_lib_save_LIBS=$LIBS
15143 LIBS="-ldnet_stub $LIBS"
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15147 /* Override any GCC internal prototype to avoid an error.
15148 Use char because int might match the return type of a GCC
15149 builtin and then its argument prototype would still apply. */
15150 #ifdef __cplusplus
15151 extern "C"
15152 #endif
15153 char dnet_ntoa ();
15155 main ()
15157 return dnet_ntoa ();
15159 return 0;
15161 _ACEOF
15162 if ac_fn_c_try_link "$LINENO"; then :
15163 ac_cv_lib_dnet_stub_dnet_ntoa=yes
15164 else
15165 ac_cv_lib_dnet_stub_dnet_ntoa=no
15167 rm -f core conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext conftest.$ac_ext
15169 LIBS=$ac_check_lib_save_LIBS
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
15172 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
15173 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
15174 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
15179 rm -f core conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15181 LIBS="$ac_xsave_LIBS"
15183 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
15184 # to get the SysV transport functions.
15185 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
15186 # needs -lnsl.
15187 # The nsl library prevents programs from opening the X display
15188 # on Irix 5.2, according to T.E. Dickey.
15189 # The functions gethostbyname, getservbyname, and inet_addr are
15190 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
15191 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15192 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15196 if test $ac_cv_func_gethostbyname = no; then
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15198 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15199 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15202 ac_check_lib_save_LIBS=$LIBS
15203 LIBS="-lnsl $LIBS"
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15207 /* Override any GCC internal prototype to avoid an error.
15208 Use char because int might match the return type of a GCC
15209 builtin and then its argument prototype would still apply. */
15210 #ifdef __cplusplus
15211 extern "C"
15212 #endif
15213 char gethostbyname ();
15215 main ()
15217 return gethostbyname ();
15219 return 0;
15221 _ACEOF
15222 if ac_fn_c_try_link "$LINENO"; then :
15223 ac_cv_lib_nsl_gethostbyname=yes
15224 else
15225 ac_cv_lib_nsl_gethostbyname=no
15227 rm -f core conftest.err conftest.$ac_objext \
15228 conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_check_lib_save_LIBS
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15232 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15233 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15234 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15237 if test $ac_cv_lib_nsl_gethostbyname = no; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
15239 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
15240 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
15241 $as_echo_n "(cached) " >&6
15242 else
15243 ac_check_lib_save_LIBS=$LIBS
15244 LIBS="-lbsd $LIBS"
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15248 /* Override any GCC internal prototype to avoid an error.
15249 Use char because int might match the return type of a GCC
15250 builtin and then its argument prototype would still apply. */
15251 #ifdef __cplusplus
15252 extern "C"
15253 #endif
15254 char gethostbyname ();
15256 main ()
15258 return gethostbyname ();
15260 return 0;
15262 _ACEOF
15263 if ac_fn_c_try_link "$LINENO"; then :
15264 ac_cv_lib_bsd_gethostbyname=yes
15265 else
15266 ac_cv_lib_bsd_gethostbyname=no
15268 rm -f core conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
15270 LIBS=$ac_check_lib_save_LIBS
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
15273 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
15274 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
15275 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
15281 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15282 # socket/setsockopt and other routines are undefined under SCO ODT
15283 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15284 # on later versions), says Simon Leinen: it contains gethostby*
15285 # variants that don't use the name server (or something). -lsocket
15286 # must be given before -lnsl if both are needed. We assume that
15287 # if connect needs -lnsl, so does gethostbyname.
15288 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15289 if test "x$ac_cv_func_connect" = xyes; then :
15293 if test $ac_cv_func_connect = no; then
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15295 $as_echo_n "checking for connect in -lsocket... " >&6; }
15296 if ${ac_cv_lib_socket_connect+:} false; then :
15297 $as_echo_n "(cached) " >&6
15298 else
15299 ac_check_lib_save_LIBS=$LIBS
15300 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15304 /* Override any GCC internal prototype to avoid an error.
15305 Use char because int might match the return type of a GCC
15306 builtin and then its argument prototype would still apply. */
15307 #ifdef __cplusplus
15308 extern "C"
15309 #endif
15310 char connect ();
15312 main ()
15314 return connect ();
15316 return 0;
15318 _ACEOF
15319 if ac_fn_c_try_link "$LINENO"; then :
15320 ac_cv_lib_socket_connect=yes
15321 else
15322 ac_cv_lib_socket_connect=no
15324 rm -f core conftest.err conftest.$ac_objext \
15325 conftest$ac_exeext conftest.$ac_ext
15326 LIBS=$ac_check_lib_save_LIBS
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15329 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15330 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15331 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15336 # Guillermo Gomez says -lposix is necessary on A/UX.
15337 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
15338 if test "x$ac_cv_func_remove" = xyes; then :
15342 if test $ac_cv_func_remove = no; then
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
15344 $as_echo_n "checking for remove in -lposix... " >&6; }
15345 if ${ac_cv_lib_posix_remove+:} false; then :
15346 $as_echo_n "(cached) " >&6
15347 else
15348 ac_check_lib_save_LIBS=$LIBS
15349 LIBS="-lposix $LIBS"
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15353 /* Override any GCC internal prototype to avoid an error.
15354 Use char because int might match the return type of a GCC
15355 builtin and then its argument prototype would still apply. */
15356 #ifdef __cplusplus
15357 extern "C"
15358 #endif
15359 char remove ();
15361 main ()
15363 return remove ();
15365 return 0;
15367 _ACEOF
15368 if ac_fn_c_try_link "$LINENO"; then :
15369 ac_cv_lib_posix_remove=yes
15370 else
15371 ac_cv_lib_posix_remove=no
15373 rm -f core conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
15375 LIBS=$ac_check_lib_save_LIBS
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
15378 $as_echo "$ac_cv_lib_posix_remove" >&6; }
15379 if test "x$ac_cv_lib_posix_remove" = xyes; then :
15380 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15385 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15386 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
15387 if test "x$ac_cv_func_shmat" = xyes; then :
15391 if test $ac_cv_func_shmat = no; then
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
15393 $as_echo_n "checking for shmat in -lipc... " >&6; }
15394 if ${ac_cv_lib_ipc_shmat+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 ac_check_lib_save_LIBS=$LIBS
15398 LIBS="-lipc $LIBS"
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15402 /* Override any GCC internal prototype to avoid an error.
15403 Use char because int might match the return type of a GCC
15404 builtin and then its argument prototype would still apply. */
15405 #ifdef __cplusplus
15406 extern "C"
15407 #endif
15408 char shmat ();
15410 main ()
15412 return shmat ();
15414 return 0;
15416 _ACEOF
15417 if ac_fn_c_try_link "$LINENO"; then :
15418 ac_cv_lib_ipc_shmat=yes
15419 else
15420 ac_cv_lib_ipc_shmat=no
15422 rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
15427 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
15428 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
15429 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15435 # Check for libraries that X11R6 Xt/Xaw programs need.
15436 ac_save_LDFLAGS=$LDFLAGS
15437 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15438 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15439 # check for ICE first), but we must link in the order -lSM -lICE or
15440 # we get undefined symbols. So assume we have SM if we have ICE.
15441 # These have to be linked with before -lX11, unlike the other
15442 # libraries we check for below, so use a different variable.
15443 # John Interrante, Karl Berry
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
15445 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
15446 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449 ac_check_lib_save_LIBS=$LIBS
15450 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15454 /* Override any GCC internal prototype to avoid an error.
15455 Use char because int might match the return type of a GCC
15456 builtin and then its argument prototype would still apply. */
15457 #ifdef __cplusplus
15458 extern "C"
15459 #endif
15460 char IceConnectionNumber ();
15462 main ()
15464 return IceConnectionNumber ();
15466 return 0;
15468 _ACEOF
15469 if ac_fn_c_try_link "$LINENO"; then :
15470 ac_cv_lib_ICE_IceConnectionNumber=yes
15471 else
15472 ac_cv_lib_ICE_IceConnectionNumber=no
15474 rm -f core conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
15476 LIBS=$ac_check_lib_save_LIBS
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
15479 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
15480 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
15481 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15484 LDFLAGS=$ac_save_LDFLAGS
15489 ac_ext=cpp
15490 ac_cpp='$CXXCPP $CPPFLAGS'
15491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15494 if test -z "$CXX"; then
15495 if test -n "$CCC"; then
15496 CXX=$CCC
15497 else
15498 if test -n "$ac_tool_prefix"; then
15499 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15504 $as_echo_n "checking for $ac_word... " >&6; }
15505 if ${ac_cv_prog_CXX+:} false; then :
15506 $as_echo_n "(cached) " >&6
15507 else
15508 if test -n "$CXX"; then
15509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15510 else
15511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15512 for as_dir in $PATH
15514 IFS=$as_save_IFS
15515 test -z "$as_dir" && as_dir=.
15516 for ac_exec_ext in '' $ac_executable_extensions; do
15517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15520 break 2
15522 done
15523 done
15524 IFS=$as_save_IFS
15528 CXX=$ac_cv_prog_CXX
15529 if test -n "$CXX"; then
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15531 $as_echo "$CXX" >&6; }
15532 else
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15534 $as_echo "no" >&6; }
15538 test -n "$CXX" && break
15539 done
15541 if test -z "$CXX"; then
15542 ac_ct_CXX=$CXX
15543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15545 # Extract the first word of "$ac_prog", so it can be a program name with args.
15546 set dummy $ac_prog; ac_word=$2
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15548 $as_echo_n "checking for $ac_word... " >&6; }
15549 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
15550 $as_echo_n "(cached) " >&6
15551 else
15552 if test -n "$ac_ct_CXX"; then
15553 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15554 else
15555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15556 for as_dir in $PATH
15558 IFS=$as_save_IFS
15559 test -z "$as_dir" && as_dir=.
15560 for ac_exec_ext in '' $ac_executable_extensions; do
15561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15562 ac_cv_prog_ac_ct_CXX="$ac_prog"
15563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15564 break 2
15566 done
15567 done
15568 IFS=$as_save_IFS
15572 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15573 if test -n "$ac_ct_CXX"; then
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15575 $as_echo "$ac_ct_CXX" >&6; }
15576 else
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15578 $as_echo "no" >&6; }
15582 test -n "$ac_ct_CXX" && break
15583 done
15585 if test "x$ac_ct_CXX" = x; then
15586 CXX="g++"
15587 else
15588 case $cross_compiling:$ac_tool_warned in
15589 yes:)
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15592 ac_tool_warned=yes ;;
15593 esac
15594 CXX=$ac_ct_CXX
15600 # Provide some information about the compiler.
15601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15602 set X $ac_compile
15603 ac_compiler=$2
15604 for ac_option in --version -v -V -qversion; do
15605 { { ac_try="$ac_compiler $ac_option >&5"
15606 case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15609 esac
15610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15611 $as_echo "$ac_try_echo"; } >&5
15612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15613 ac_status=$?
15614 if test -s conftest.err; then
15615 sed '10a\
15616 ... rest of stderr output deleted ...
15617 10q' conftest.err >conftest.er1
15618 cat conftest.er1 >&5
15620 rm -f conftest.er1 conftest.err
15621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15622 test $ac_status = 0; }
15623 done
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
15626 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15627 if ${ac_cv_cxx_compiler_gnu+:} false; then :
15628 $as_echo_n "(cached) " >&6
15629 else
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15634 main ()
15636 #ifndef __GNUC__
15637 choke me
15638 #endif
15641 return 0;
15643 _ACEOF
15644 if ac_fn_cxx_try_compile "$LINENO"; then :
15645 ac_compiler_gnu=yes
15646 else
15647 ac_compiler_gnu=no
15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15654 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15655 if test $ac_compiler_gnu = yes; then
15656 GXX=yes
15657 else
15658 GXX=
15660 ac_test_CXXFLAGS=${CXXFLAGS+set}
15661 ac_save_CXXFLAGS=$CXXFLAGS
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15663 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
15664 if ${ac_cv_prog_cxx_g+:} false; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15668 ac_cxx_werror_flag=yes
15669 ac_cv_prog_cxx_g=no
15670 CXXFLAGS="-g"
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15675 main ()
15679 return 0;
15681 _ACEOF
15682 if ac_fn_cxx_try_compile "$LINENO"; then :
15683 ac_cv_prog_cxx_g=yes
15684 else
15685 CXXFLAGS=""
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15690 main ()
15694 return 0;
15696 _ACEOF
15697 if ac_fn_cxx_try_compile "$LINENO"; then :
15699 else
15700 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15701 CXXFLAGS="-g"
15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15706 main ()
15710 return 0;
15712 _ACEOF
15713 if ac_fn_cxx_try_compile "$LINENO"; then :
15714 ac_cv_prog_cxx_g=yes
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15724 $as_echo "$ac_cv_prog_cxx_g" >&6; }
15725 if test "$ac_test_CXXFLAGS" = set; then
15726 CXXFLAGS=$ac_save_CXXFLAGS
15727 elif test $ac_cv_prog_cxx_g = yes; then
15728 if test "$GXX" = yes; then
15729 CXXFLAGS="-g -O2"
15730 else
15731 CXXFLAGS="-g"
15733 else
15734 if test "$GXX" = yes; then
15735 CXXFLAGS="-O2"
15736 else
15737 CXXFLAGS=
15740 ac_ext=c
15741 ac_cpp='$CPP $CPPFLAGS'
15742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15746 depcc="$CXX" am_compiler_list=
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15749 $as_echo_n "checking dependency style of $depcc... " >&6; }
15750 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
15751 $as_echo_n "(cached) " >&6
15752 else
15753 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15754 # We make a subdir and do the tests there. Otherwise we can end up
15755 # making bogus files that we don't know about and never remove. For
15756 # instance it was reported that on HP-UX the gcc test will end up
15757 # making a dummy file named 'D' -- because '-MD' means "put the output
15758 # in D".
15759 rm -rf conftest.dir
15760 mkdir conftest.dir
15761 # Copy depcomp to subdir because otherwise we won't find it if we're
15762 # using a relative directory.
15763 cp "$am_depcomp" conftest.dir
15764 cd conftest.dir
15765 # We will build objects and dependencies in a subdirectory because
15766 # it helps to detect inapplicable dependency modes. For instance
15767 # both Tru64's cc and ICC support -MD to output dependencies as a
15768 # side effect of compilation, but ICC will put the dependencies in
15769 # the current directory while Tru64 will put them in the object
15770 # directory.
15771 mkdir sub
15773 am_cv_CXX_dependencies_compiler_type=none
15774 if test "$am_compiler_list" = ""; then
15775 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15777 am__universal=false
15778 case " $depcc " in #(
15779 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15780 esac
15782 for depmode in $am_compiler_list; do
15783 # Setup a source with many dependencies, because some compilers
15784 # like to wrap large dependency lists on column 80 (with \), and
15785 # we should not choose a depcomp mode which is confused by this.
15787 # We need to recreate these files for each test, as the compiler may
15788 # overwrite some of them when testing with obscure command lines.
15789 # This happens at least with the AIX C compiler.
15790 : > sub/conftest.c
15791 for i in 1 2 3 4 5 6; do
15792 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15793 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15794 # Solaris 10 /bin/sh.
15795 echo '/* dummy */' > sub/conftst$i.h
15796 done
15797 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15799 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15800 # mode. It turns out that the SunPro C++ compiler does not properly
15801 # handle '-M -o', and we need to detect this. Also, some Intel
15802 # versions had trouble with output in subdirs.
15803 am__obj=sub/conftest.${OBJEXT-o}
15804 am__minus_obj="-o $am__obj"
15805 case $depmode in
15806 gcc)
15807 # This depmode causes a compiler race in universal mode.
15808 test "$am__universal" = false || continue
15810 nosideeffect)
15811 # After this tag, mechanisms are not by side-effect, so they'll
15812 # only be used when explicitly requested.
15813 if test "x$enable_dependency_tracking" = xyes; then
15814 continue
15815 else
15816 break
15819 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15820 # This compiler won't grok '-c -o', but also, the minuso test has
15821 # not run yet. These depmodes are late enough in the game, and
15822 # so weak that their functioning should not be impacted.
15823 am__obj=conftest.${OBJEXT-o}
15824 am__minus_obj=
15826 none) break ;;
15827 esac
15828 if depmode=$depmode \
15829 source=sub/conftest.c object=$am__obj \
15830 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15831 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15832 >/dev/null 2>conftest.err &&
15833 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15834 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15835 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15836 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15837 # icc doesn't choke on unknown options, it will just issue warnings
15838 # or remarks (even with -Werror). So we grep stderr for any message
15839 # that says an option was ignored or not supported.
15840 # When given -MP, icc 7.0 and 7.1 complain thusly:
15841 # icc: Command line warning: ignoring option '-M'; no argument required
15842 # The diagnosis changed in icc 8.0:
15843 # icc: Command line remark: option '-MP' not supported
15844 if (grep 'ignoring option' conftest.err ||
15845 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15846 am_cv_CXX_dependencies_compiler_type=$depmode
15847 break
15850 done
15852 cd ..
15853 rm -rf conftest.dir
15854 else
15855 am_cv_CXX_dependencies_compiler_type=none
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15860 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15861 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15864 test "x$enable_dependency_tracking" != xno \
15865 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15866 am__fastdepCXX_TRUE=
15867 am__fastdepCXX_FALSE='#'
15868 else
15869 am__fastdepCXX_TRUE='#'
15870 am__fastdepCXX_FALSE=
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5
15874 $as_echo_n "checking what warning flags to pass to the C++ compiler... " >&6; }
15875 if ${kpse_cv_warning_cxxflags+:} false; then :
15876 $as_echo_n "(cached) " >&6
15877 else
15878 if test "x$GXX" = xyes; then
15879 kpse_cv_warning_cxxflags=
15880 kpse_warn_strings="-Wno-write-strings"
15881 if test "x$enable_compiler_warnings" != xno; then
15882 kpse_cv_warning_cxxflags="-Wreturn-type"
15883 case `$CXX -dumpversion` in #(
15884 3.* | 4.[012345].*) :
15885 kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #(
15886 *) :
15888 esac
15889 case `$CXX -dumpversion` in #(
15890 3.[234].* | 4.*) :
15891 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #(
15892 *) :
15894 esac
15895 if test "x$enable_compiler_warnings" != xmin; then
15896 kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags"
15897 if test "x$enable_compiler_warnings" != xyes; then
15898 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
15899 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align"
15900 kpse_warn_strings="-Wwrite-strings"
15901 if test "x$enable_compiler_warnings" != xmax; then
15902 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow"
15907 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings"
15908 elif test "x$enable_compiler_warnings" = xno; then
15909 kpse_cv_warning_cxxflags=
15910 else
15911 kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5
15915 $as_echo "$kpse_cv_warning_cxxflags" >&6; }
15916 WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
15922 func_stripname_cnf ()
15924 case $2 in
15925 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15926 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15927 esac
15928 } # func_stripname_cnf
15930 if test -n "$CXX" && ( test no != "$CXX" &&
15931 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15932 (test g++ != "$CXX"))); then
15933 ac_ext=cpp
15934 ac_cpp='$CXXCPP $CPPFLAGS'
15935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15939 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15940 if test -z "$CXXCPP"; then
15941 if ${ac_cv_prog_CXXCPP+:} false; then :
15942 $as_echo_n "(cached) " >&6
15943 else
15944 # Double quotes because CXXCPP needs to be expanded
15945 for CXXCPP in "$CXX -E" "/lib/cpp"
15947 ac_preproc_ok=false
15948 for ac_cxx_preproc_warn_flag in '' yes
15950 # Use a header file that comes with gcc, so configuring glibc
15951 # with a fresh cross-compiler works.
15952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15953 # <limits.h> exists even on freestanding compilers.
15954 # On the NeXT, cc -E runs the code through the compiler's parser,
15955 # not just through cpp. "Syntax error" is here to catch this case.
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957 /* end confdefs.h. */
15958 #ifdef __STDC__
15959 # include <limits.h>
15960 #else
15961 # include <assert.h>
15962 #endif
15963 Syntax error
15964 _ACEOF
15965 if ac_fn_cxx_try_cpp "$LINENO"; then :
15967 else
15968 # Broken: fails on valid input.
15969 continue
15971 rm -f conftest.err conftest.i conftest.$ac_ext
15973 # OK, works on sane cases. Now check whether nonexistent headers
15974 # can be detected and how.
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977 #include <ac_nonexistent.h>
15978 _ACEOF
15979 if ac_fn_cxx_try_cpp "$LINENO"; then :
15980 # Broken: success on invalid input.
15981 continue
15982 else
15983 # Passes both tests.
15984 ac_preproc_ok=:
15985 break
15987 rm -f conftest.err conftest.i conftest.$ac_ext
15989 done
15990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15991 rm -f conftest.i conftest.err conftest.$ac_ext
15992 if $ac_preproc_ok; then :
15993 break
15996 done
15997 ac_cv_prog_CXXCPP=$CXXCPP
16000 CXXCPP=$ac_cv_prog_CXXCPP
16001 else
16002 ac_cv_prog_CXXCPP=$CXXCPP
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16005 $as_echo "$CXXCPP" >&6; }
16006 ac_preproc_ok=false
16007 for ac_cxx_preproc_warn_flag in '' yes
16009 # Use a header file that comes with gcc, so configuring glibc
16010 # with a fresh cross-compiler works.
16011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16012 # <limits.h> exists even on freestanding compilers.
16013 # On the NeXT, cc -E runs the code through the compiler's parser,
16014 # not just through cpp. "Syntax error" is here to catch this case.
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017 #ifdef __STDC__
16018 # include <limits.h>
16019 #else
16020 # include <assert.h>
16021 #endif
16022 Syntax error
16023 _ACEOF
16024 if ac_fn_cxx_try_cpp "$LINENO"; then :
16026 else
16027 # Broken: fails on valid input.
16028 continue
16030 rm -f conftest.err conftest.i conftest.$ac_ext
16032 # OK, works on sane cases. Now check whether nonexistent headers
16033 # can be detected and how.
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 #include <ac_nonexistent.h>
16037 _ACEOF
16038 if ac_fn_cxx_try_cpp "$LINENO"; then :
16039 # Broken: success on invalid input.
16040 continue
16041 else
16042 # Passes both tests.
16043 ac_preproc_ok=:
16044 break
16046 rm -f conftest.err conftest.i conftest.$ac_ext
16048 done
16049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16050 rm -f conftest.i conftest.err conftest.$ac_ext
16051 if $ac_preproc_ok; then :
16053 else
16054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16056 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16057 See \`config.log' for more details" "$LINENO" 5; }
16060 ac_ext=c
16061 ac_cpp='$CPP $CPPFLAGS'
16062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16066 else
16067 _lt_caught_CXX_error=yes
16070 ac_ext=cpp
16071 ac_cpp='$CXXCPP $CPPFLAGS'
16072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16076 archive_cmds_need_lc_CXX=no
16077 allow_undefined_flag_CXX=
16078 always_export_symbols_CXX=no
16079 archive_expsym_cmds_CXX=
16080 compiler_needs_object_CXX=no
16081 export_dynamic_flag_spec_CXX=
16082 hardcode_direct_CXX=no
16083 hardcode_direct_absolute_CXX=no
16084 hardcode_libdir_flag_spec_CXX=
16085 hardcode_libdir_separator_CXX=
16086 hardcode_minus_L_CXX=no
16087 hardcode_shlibpath_var_CXX=unsupported
16088 hardcode_automatic_CXX=no
16089 inherit_rpath_CXX=no
16090 module_cmds_CXX=
16091 module_expsym_cmds_CXX=
16092 link_all_deplibs_CXX=unknown
16093 old_archive_cmds_CXX=$old_archive_cmds
16094 reload_flag_CXX=$reload_flag
16095 reload_cmds_CXX=$reload_cmds
16096 no_undefined_flag_CXX=
16097 whole_archive_flag_spec_CXX=
16098 enable_shared_with_static_runtimes_CXX=no
16100 # Source file extension for C++ test sources.
16101 ac_ext=cpp
16103 # Object file extension for compiled C++ test sources.
16104 objext=o
16105 objext_CXX=$objext
16107 # No sense in running all these tests if we already determined that
16108 # the CXX compiler isn't working. Some variables (like enable_shared)
16109 # are currently assumed to apply to all compilers on this platform,
16110 # and will be corrupted by setting them based on a non-working compiler.
16111 if test yes != "$_lt_caught_CXX_error"; then
16112 # Code to be used in simple compile tests
16113 lt_simple_compile_test_code="int some_variable = 0;"
16115 # Code to be used in simple link tests
16116 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16118 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16125 # If no C compiler was specified, use CC.
16126 LTCC=${LTCC-"$CC"}
16128 # If no C compiler flags were specified, use CFLAGS.
16129 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16131 # Allow CC to be a program name with arguments.
16132 compiler=$CC
16135 # save warnings/boilerplate of simple test code
16136 ac_outfile=conftest.$ac_objext
16137 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16138 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16139 _lt_compiler_boilerplate=`cat conftest.err`
16140 $RM conftest*
16142 ac_outfile=conftest.$ac_objext
16143 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16144 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16145 _lt_linker_boilerplate=`cat conftest.err`
16146 $RM -r conftest*
16149 # Allow CC to be a program name with arguments.
16150 lt_save_CC=$CC
16151 lt_save_CFLAGS=$CFLAGS
16152 lt_save_LD=$LD
16153 lt_save_GCC=$GCC
16154 GCC=$GXX
16155 lt_save_with_gnu_ld=$with_gnu_ld
16156 lt_save_path_LD=$lt_cv_path_LD
16157 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16158 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16159 else
16160 $as_unset lt_cv_prog_gnu_ld
16162 if test -n "${lt_cv_path_LDCXX+set}"; then
16163 lt_cv_path_LD=$lt_cv_path_LDCXX
16164 else
16165 $as_unset lt_cv_path_LD
16167 test -z "${LDCXX+set}" || LD=$LDCXX
16168 CC=${CXX-"c++"}
16169 CFLAGS=$CXXFLAGS
16170 compiler=$CC
16171 compiler_CXX=$CC
16172 func_cc_basename $compiler
16173 cc_basename=$func_cc_basename_result
16176 if test -n "$compiler"; then
16177 # We don't want -fno-exception when compiling C++ code, so set the
16178 # no_builtin_flag separately
16179 if test yes = "$GXX"; then
16180 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16181 else
16182 lt_prog_compiler_no_builtin_flag_CXX=
16185 if test yes = "$GXX"; then
16186 # Set up default GNU C++ configuration
16190 # Check whether --with-gnu-ld was given.
16191 if test "${with_gnu_ld+set}" = set; then :
16192 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16193 else
16194 with_gnu_ld=no
16197 ac_prog=ld
16198 if test yes = "$GCC"; then
16199 # Check if gcc -print-prog-name=ld gives a path.
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16201 $as_echo_n "checking for ld used by $CC... " >&6; }
16202 case $host in
16203 *-*-mingw*)
16204 # gcc leaves a trailing carriage return, which upsets mingw
16205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16208 esac
16209 case $ac_prog in
16210 # Accept absolute paths.
16211 [\\/]* | ?:[\\/]*)
16212 re_direlt='/[^/][^/]*/\.\./'
16213 # Canonicalize the pathname of ld
16214 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16215 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16216 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16217 done
16218 test -z "$LD" && LD=$ac_prog
16221 # If it fails, then pretend we aren't using GCC.
16222 ac_prog=ld
16225 # If it is relative, then search for the first ld in PATH.
16226 with_gnu_ld=unknown
16228 esac
16229 elif test yes = "$with_gnu_ld"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16231 $as_echo_n "checking for GNU ld... " >&6; }
16232 else
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16234 $as_echo_n "checking for non-GNU ld... " >&6; }
16236 if ${lt_cv_path_LD+:} false; then :
16237 $as_echo_n "(cached) " >&6
16238 else
16239 if test -z "$LD"; then
16240 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16241 for ac_dir in $PATH; do
16242 IFS=$lt_save_ifs
16243 test -z "$ac_dir" && ac_dir=.
16244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16245 lt_cv_path_LD=$ac_dir/$ac_prog
16246 # Check to see if the program is GNU ld. I'd rather use --version,
16247 # but apparently some variants of GNU ld only accept -v.
16248 # Break only if it was the GNU/non-GNU ld that we prefer.
16249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16250 *GNU* | *'with BFD'*)
16251 test no != "$with_gnu_ld" && break
16254 test yes != "$with_gnu_ld" && break
16256 esac
16258 done
16259 IFS=$lt_save_ifs
16260 else
16261 lt_cv_path_LD=$LD # Let the user override the test with a path.
16265 LD=$lt_cv_path_LD
16266 if test -n "$LD"; then
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16268 $as_echo "$LD" >&6; }
16269 else
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271 $as_echo "no" >&6; }
16273 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16275 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16276 if ${lt_cv_prog_gnu_ld+:} false; then :
16277 $as_echo_n "(cached) " >&6
16278 else
16279 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16280 case `$LD -v 2>&1 </dev/null` in
16281 *GNU* | *'with BFD'*)
16282 lt_cv_prog_gnu_ld=yes
16285 lt_cv_prog_gnu_ld=no
16287 esac
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16290 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16291 with_gnu_ld=$lt_cv_prog_gnu_ld
16299 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16300 # archiving commands below assume that GNU ld is being used.
16301 if test yes = "$with_gnu_ld"; then
16302 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16303 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'
16305 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16306 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16308 # If archive_cmds runs LD, not CC, wlarc should be empty
16309 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16310 # investigate it a little bit more. (MM)
16311 wlarc='$wl'
16313 # ancient GNU ld didn't support --whole-archive et. al.
16314 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16315 $GREP 'no-whole-archive' > /dev/null; then
16316 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16317 else
16318 whole_archive_flag_spec_CXX=
16320 else
16321 with_gnu_ld=no
16322 wlarc=
16324 # A generic and very simple default shared library creation
16325 # command for GNU C++ for the case where it uses the native
16326 # linker, instead of GNU ld. If possible, this setting should
16327 # overridden to take advantage of the native linker features on
16328 # the platform it is being used on.
16329 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16332 # Commands to make compiler produce verbose output that lists
16333 # what "hidden" libraries, object files and flags are used when
16334 # linking a shared library.
16335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16337 else
16338 GXX=no
16339 with_gnu_ld=no
16340 wlarc=
16343 # PORTME: fill in a description of your system's C++ link characteristics
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16345 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16346 ld_shlibs_CXX=yes
16347 case $host_os in
16348 aix3*)
16349 # FIXME: insert proper C++ library support
16350 ld_shlibs_CXX=no
16352 aix[4-9]*)
16353 if test ia64 = "$host_cpu"; then
16354 # On IA64, the linker does run time linking by default, so we don't
16355 # have to do anything special.
16356 aix_use_runtimelinking=no
16357 exp_sym_flag='-Bexport'
16358 no_entry_flag=
16359 else
16360 aix_use_runtimelinking=no
16362 # Test if we are trying to use run time linking or normal
16363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16364 # have runtime linking enabled, and use it for executables.
16365 # For shared libraries, we enable/disable runtime linking
16366 # depending on the kind of the shared library created -
16367 # when "with_aix_soname,aix_use_runtimelinking" is:
16368 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16369 # "aix,yes" lib.so shared, rtl:yes, for executables
16370 # lib.a static archive
16371 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16372 # lib.a(lib.so.V) shared, rtl:no, for executables
16373 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16374 # lib.a(lib.so.V) shared, rtl:no
16375 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16376 # lib.a static archive
16377 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16378 for ld_flag in $LDFLAGS; do
16379 case $ld_flag in
16380 *-brtl*)
16381 aix_use_runtimelinking=yes
16382 break
16384 esac
16385 done
16386 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16387 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16388 # so we don't have lib.a shared libs to link our executables.
16389 # We have to force runtime linking in this case.
16390 aix_use_runtimelinking=yes
16391 LDFLAGS="$LDFLAGS -Wl,-brtl"
16394 esac
16396 exp_sym_flag='-bexport'
16397 no_entry_flag='-bnoentry'
16400 # When large executables or shared objects are built, AIX ld can
16401 # have problems creating the table of contents. If linking a library
16402 # or program results in "error TOC overflow" add -mminimal-toc to
16403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16406 archive_cmds_CXX=''
16407 hardcode_direct_CXX=yes
16408 hardcode_direct_absolute_CXX=yes
16409 hardcode_libdir_separator_CXX=':'
16410 link_all_deplibs_CXX=yes
16411 file_list_spec_CXX='$wl-f,'
16412 case $with_aix_soname,$aix_use_runtimelinking in
16413 aix,*) ;; # no import file
16414 svr4,* | *,yes) # use import file
16415 # The Import File defines what to hardcode.
16416 hardcode_direct_CXX=no
16417 hardcode_direct_absolute_CXX=no
16419 esac
16421 if test yes = "$GXX"; then
16422 case $host_os in aix4.[012]|aix4.[012].*)
16423 # We only want to do this on AIX 4.2 and lower, the check
16424 # below for broken collect2 doesn't work under 4.3+
16425 collect2name=`$CC -print-prog-name=collect2`
16426 if test -f "$collect2name" &&
16427 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16428 then
16429 # We have reworked collect2
16431 else
16432 # We have old collect2
16433 hardcode_direct_CXX=unsupported
16434 # It fails to find uninstalled libraries when the uninstalled
16435 # path is not listed in the libpath. Setting hardcode_minus_L
16436 # to unsupported forces relinking
16437 hardcode_minus_L_CXX=yes
16438 hardcode_libdir_flag_spec_CXX='-L$libdir'
16439 hardcode_libdir_separator_CXX=
16441 esac
16442 shared_flag='-shared'
16443 if test yes = "$aix_use_runtimelinking"; then
16444 shared_flag=$shared_flag' $wl-G'
16446 # Need to ensure runtime linking is disabled for the traditional
16447 # shared library, or the linker may eventually find shared libraries
16448 # /with/ Import File - we do not want to mix them.
16449 shared_flag_aix='-shared'
16450 shared_flag_svr4='-shared $wl-G'
16451 else
16452 # not using gcc
16453 if test ia64 = "$host_cpu"; then
16454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16455 # chokes on -Wl,-G. The following line is correct:
16456 shared_flag='-G'
16457 else
16458 if test yes = "$aix_use_runtimelinking"; then
16459 shared_flag='$wl-G'
16460 else
16461 shared_flag='$wl-bM:SRE'
16463 shared_flag_aix='$wl-bM:SRE'
16464 shared_flag_svr4='$wl-G'
16468 export_dynamic_flag_spec_CXX='$wl-bexpall'
16469 # It seems that -bexpall does not export symbols beginning with
16470 # underscore (_), so it is better to generate a list of symbols to
16471 # export.
16472 always_export_symbols_CXX=yes
16473 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16474 # Warning - without using the other runtime loading flags (-brtl),
16475 # -berok will link without error, but may produce a broken library.
16476 # The "-G" linker flag allows undefined symbols.
16477 no_undefined_flag_CXX='-bernotok'
16478 # Determine the default libpath from the value encoded in an empty
16479 # executable.
16480 if test set = "${lt_cv_aix_libpath+set}"; then
16481 aix_libpath=$lt_cv_aix_libpath
16482 else
16483 if ${lt_cv_aix_libpath__CXX+:} false; then :
16484 $as_echo_n "(cached) " >&6
16485 else
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16490 main ()
16494 return 0;
16496 _ACEOF
16497 if ac_fn_cxx_try_link "$LINENO"; then :
16499 lt_aix_libpath_sed='
16500 /Import File Strings/,/^$/ {
16501 /^0/ {
16502 s/^0 *\([^ ]*\) *$/\1/
16506 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16507 # Check for a 64-bit object if we didn't find anything.
16508 if test -z "$lt_cv_aix_libpath__CXX"; then
16509 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16512 rm -f core conftest.err conftest.$ac_objext \
16513 conftest$ac_exeext conftest.$ac_ext
16514 if test -z "$lt_cv_aix_libpath__CXX"; then
16515 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16520 aix_libpath=$lt_cv_aix_libpath__CXX
16523 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16525 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
16526 else
16527 if test ia64 = "$host_cpu"; then
16528 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16529 allow_undefined_flag_CXX="-z nodefs"
16530 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"
16531 else
16532 # Determine the default libpath from the value encoded in an
16533 # empty executable.
16534 if test set = "${lt_cv_aix_libpath+set}"; then
16535 aix_libpath=$lt_cv_aix_libpath
16536 else
16537 if ${lt_cv_aix_libpath__CXX+:} false; then :
16538 $as_echo_n "(cached) " >&6
16539 else
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16544 main ()
16548 return 0;
16550 _ACEOF
16551 if ac_fn_cxx_try_link "$LINENO"; then :
16553 lt_aix_libpath_sed='
16554 /Import File Strings/,/^$/ {
16555 /^0/ {
16556 s/^0 *\([^ ]*\) *$/\1/
16560 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16561 # Check for a 64-bit object if we didn't find anything.
16562 if test -z "$lt_cv_aix_libpath__CXX"; then
16563 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16568 if test -z "$lt_cv_aix_libpath__CXX"; then
16569 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16574 aix_libpath=$lt_cv_aix_libpath__CXX
16577 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16578 # Warning - without using the other run time loading flags,
16579 # -berok will link without error, but may produce a broken library.
16580 no_undefined_flag_CXX=' $wl-bernotok'
16581 allow_undefined_flag_CXX=' $wl-berok'
16582 if test yes = "$with_gnu_ld"; then
16583 # We only use this code for GNU lds that support --whole-archive.
16584 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16585 else
16586 # Exported symbols can be pulled into shared objects from archives
16587 whole_archive_flag_spec_CXX='$convenience'
16589 archive_cmds_need_lc_CXX=yes
16590 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16591 # -brtl affects multiple linker settings, -berok does not and is overridden later
16592 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16593 if test svr4 != "$with_aix_soname"; then
16594 # This is similar to how AIX traditionally builds its shared
16595 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16596 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'
16598 if test aix != "$with_aix_soname"; then
16599 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'
16600 else
16601 # used by -dlpreopen to get the symbols
16602 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16604 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16609 beos*)
16610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16611 allow_undefined_flag_CXX=unsupported
16612 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16613 # support --undefined. This deserves some investigation. FIXME
16614 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16615 else
16616 ld_shlibs_CXX=no
16620 chorus*)
16621 case $cc_basename in
16623 # FIXME: insert proper C++ library support
16624 ld_shlibs_CXX=no
16626 esac
16629 cygwin* | mingw* | pw32* | cegcc*)
16630 case $GXX,$cc_basename in
16631 ,cl* | no,cl*)
16632 # Native MSVC
16633 # hardcode_libdir_flag_spec is actually meaningless, as there is
16634 # no search path for DLLs.
16635 hardcode_libdir_flag_spec_CXX=' '
16636 allow_undefined_flag_CXX=unsupported
16637 always_export_symbols_CXX=yes
16638 file_list_spec_CXX='@'
16639 # Tell ltmain to make .lib files, not .a files.
16640 libext=lib
16641 # Tell ltmain to make .dll files, not .so files.
16642 shrext_cmds=.dll
16643 # FIXME: Setting linknames here is a bad hack.
16644 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16645 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16646 cp "$export_symbols" "$output_objdir/$soname.def";
16647 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16648 else
16649 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16651 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16652 linknames='
16653 # The linker will not automatically build a static lib if we build a DLL.
16654 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16655 enable_shared_with_static_runtimes_CXX=yes
16656 # Don't use ranlib
16657 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16658 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16659 lt_tool_outputfile="@TOOL_OUTPUT@"~
16660 case $lt_outputfile in
16661 *.exe|*.EXE) ;;
16663 lt_outputfile=$lt_outputfile.exe
16664 lt_tool_outputfile=$lt_tool_outputfile.exe
16666 esac~
16667 func_to_tool_file "$lt_outputfile"~
16668 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16669 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16670 $RM "$lt_outputfile.manifest";
16674 # g++
16675 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16676 # as there is no search path for DLLs.
16677 hardcode_libdir_flag_spec_CXX='-L$libdir'
16678 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16679 allow_undefined_flag_CXX=unsupported
16680 always_export_symbols_CXX=no
16681 enable_shared_with_static_runtimes_CXX=yes
16683 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16684 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'
16685 # If the export-symbols file already is a .def file, use it as
16686 # is; otherwise, prepend EXPORTS...
16687 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16688 cp $export_symbols $output_objdir/$soname.def;
16689 else
16690 echo EXPORTS > $output_objdir/$soname.def;
16691 cat $export_symbols >> $output_objdir/$soname.def;
16693 $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'
16694 else
16695 ld_shlibs_CXX=no
16698 esac
16700 darwin* | rhapsody*)
16703 archive_cmds_need_lc_CXX=no
16704 hardcode_direct_CXX=no
16705 hardcode_automatic_CXX=yes
16706 hardcode_shlibpath_var_CXX=unsupported
16707 if test yes = "$lt_cv_ld_force_load"; then
16708 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\"`'
16710 else
16711 whole_archive_flag_spec_CXX=''
16713 link_all_deplibs_CXX=yes
16714 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16715 case $cc_basename in
16716 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16717 *) _lt_dar_can_shared=$GCC ;;
16718 esac
16719 if test yes = "$_lt_dar_can_shared"; then
16720 output_verbose_link_cmd=func_echo_all
16721 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"
16722 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16723 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"
16724 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"
16725 if test yes != "$lt_cv_apple_cc_single_mod"; then
16726 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"
16727 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"
16730 else
16731 ld_shlibs_CXX=no
16736 os2*)
16737 hardcode_libdir_flag_spec_CXX='-L$libdir'
16738 hardcode_minus_L_CXX=yes
16739 allow_undefined_flag_CXX=unsupported
16740 shrext_cmds=.dll
16741 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16744 $ECHO EXPORTS >> $output_objdir/$libname.def~
16745 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16746 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16747 emximp -o $lib $output_objdir/$libname.def'
16748 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16749 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16750 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16751 $ECHO EXPORTS >> $output_objdir/$libname.def~
16752 prefix_cmds="$SED"~
16753 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16754 prefix_cmds="$prefix_cmds -e 1d";
16756 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16757 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16759 emximp -o $lib $output_objdir/$libname.def'
16760 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16761 enable_shared_with_static_runtimes_CXX=yes
16764 dgux*)
16765 case $cc_basename in
16766 ec++*)
16767 # FIXME: insert proper C++ library support
16768 ld_shlibs_CXX=no
16770 ghcx*)
16771 # Green Hills C++ Compiler
16772 # FIXME: insert proper C++ library support
16773 ld_shlibs_CXX=no
16776 # FIXME: insert proper C++ library support
16777 ld_shlibs_CXX=no
16779 esac
16782 freebsd2.*)
16783 # C++ shared libraries reported to be fairly broken before
16784 # switch to ELF
16785 ld_shlibs_CXX=no
16788 freebsd-elf*)
16789 archive_cmds_need_lc_CXX=no
16792 freebsd* | dragonfly*)
16793 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16794 # conventions
16795 ld_shlibs_CXX=yes
16798 haiku*)
16799 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16800 link_all_deplibs_CXX=yes
16803 hpux9*)
16804 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16805 hardcode_libdir_separator_CXX=:
16806 export_dynamic_flag_spec_CXX='$wl-E'
16807 hardcode_direct_CXX=yes
16808 hardcode_minus_L_CXX=yes # Not in the search PATH,
16809 # but as the default
16810 # location of the library.
16812 case $cc_basename in
16813 CC*)
16814 # FIXME: insert proper C++ library support
16815 ld_shlibs_CXX=no
16817 aCC*)
16818 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'
16819 # Commands to make compiler produce verbose output that lists
16820 # what "hidden" libraries, object files and flags are used when
16821 # linking a shared library.
16823 # There doesn't appear to be a way to prevent this compiler from
16824 # explicitly linking system object files so we need to strip them
16825 # from the output so that they don't get included in the library
16826 # dependencies.
16827 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"'
16830 if test yes = "$GXX"; then
16831 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'
16832 else
16833 # FIXME: insert proper C++ library support
16834 ld_shlibs_CXX=no
16837 esac
16840 hpux10*|hpux11*)
16841 if test no = "$with_gnu_ld"; then
16842 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16843 hardcode_libdir_separator_CXX=:
16845 case $host_cpu in
16846 hppa*64*|ia64*)
16849 export_dynamic_flag_spec_CXX='$wl-E'
16851 esac
16853 case $host_cpu in
16854 hppa*64*|ia64*)
16855 hardcode_direct_CXX=no
16856 hardcode_shlibpath_var_CXX=no
16859 hardcode_direct_CXX=yes
16860 hardcode_direct_absolute_CXX=yes
16861 hardcode_minus_L_CXX=yes # Not in the search PATH,
16862 # but as the default
16863 # location of the library.
16865 esac
16867 case $cc_basename in
16868 CC*)
16869 # FIXME: insert proper C++ library support
16870 ld_shlibs_CXX=no
16872 aCC*)
16873 case $host_cpu in
16874 hppa*64*)
16875 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16877 ia64*)
16878 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16881 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16883 esac
16884 # Commands to make compiler produce verbose output that lists
16885 # what "hidden" libraries, object files and flags are used when
16886 # linking a shared library.
16888 # There doesn't appear to be a way to prevent this compiler from
16889 # explicitly linking system object files so we need to strip them
16890 # from the output so that they don't get included in the library
16891 # dependencies.
16892 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"'
16895 if test yes = "$GXX"; then
16896 if test no = "$with_gnu_ld"; then
16897 case $host_cpu in
16898 hppa*64*)
16899 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16901 ia64*)
16902 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16905 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'
16907 esac
16909 else
16910 # FIXME: insert proper C++ library support
16911 ld_shlibs_CXX=no
16914 esac
16917 interix[3-9]*)
16918 hardcode_direct_CXX=no
16919 hardcode_shlibpath_var_CXX=no
16920 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16921 export_dynamic_flag_spec_CXX='$wl-E'
16922 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16923 # Instead, shared libraries are loaded at an image base (0x10000000 by
16924 # default) and relocated if they conflict, which is a slow very memory
16925 # consuming and fragmenting process. To avoid this, we pick a random,
16926 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16927 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16928 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'
16929 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'
16931 irix5* | irix6*)
16932 case $cc_basename in
16933 CC*)
16934 # SGI C++
16935 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'
16937 # Archives containing C++ object files must be created using
16938 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16939 # necessary to make sure instantiated templates are included
16940 # in the archive.
16941 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16944 if test yes = "$GXX"; then
16945 if test no = "$with_gnu_ld"; then
16946 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'
16947 else
16948 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'
16951 link_all_deplibs_CXX=yes
16953 esac
16954 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16955 hardcode_libdir_separator_CXX=:
16956 inherit_rpath_CXX=yes
16959 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16960 case $cc_basename in
16961 KCC*)
16962 # Kuck and Associates, Inc. (KAI) C++ Compiler
16964 # KCC will only create a shared library if the output file
16965 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16966 # to its proper name (with version) after linking.
16967 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'
16968 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'
16969 # Commands to make compiler produce verbose output that lists
16970 # what "hidden" libraries, object files and flags are used when
16971 # linking a shared library.
16973 # There doesn't appear to be a way to prevent this compiler from
16974 # explicitly linking system object files so we need to strip them
16975 # from the output so that they don't get included in the library
16976 # dependencies.
16977 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"'
16979 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16980 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16982 # Archives containing C++ object files must be created using
16983 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16984 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16986 icpc* | ecpc* )
16987 # Intel C++
16988 with_gnu_ld=yes
16989 # version 8.0 and above of icpc choke on multiply defined symbols
16990 # if we add $predep_objects and $postdep_objects, however 7.1 and
16991 # earlier do not add the objects themselves.
16992 case `$CC -V 2>&1` in
16993 *"Version 7."*)
16994 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16995 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'
16997 *) # Version 8.0 or newer
16998 tmp_idyn=
16999 case $host_cpu in
17000 ia64*) tmp_idyn=' -i_dynamic';;
17001 esac
17002 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17003 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'
17005 esac
17006 archive_cmds_need_lc_CXX=no
17007 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17008 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17009 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17011 pgCC* | pgcpp*)
17012 # Portland Group C++ compiler
17013 case `$CC -V` in
17014 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17015 prelink_cmds_CXX='tpldir=Template.dir~
17016 rm -rf $tpldir~
17017 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17018 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17019 old_archive_cmds_CXX='tpldir=Template.dir~
17020 rm -rf $tpldir~
17021 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17022 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17023 $RANLIB $oldlib'
17024 archive_cmds_CXX='tpldir=Template.dir~
17025 rm -rf $tpldir~
17026 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17027 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17028 archive_expsym_cmds_CXX='tpldir=Template.dir~
17029 rm -rf $tpldir~
17030 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17031 $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'
17033 *) # Version 6 and above use weak symbols
17034 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17035 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'
17037 esac
17039 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17040 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17041 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'
17043 cxx*)
17044 # Compaq C++
17045 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17046 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'
17048 runpath_var=LD_RUN_PATH
17049 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17050 hardcode_libdir_separator_CXX=:
17052 # Commands to make compiler produce verbose output that lists
17053 # what "hidden" libraries, object files and flags are used when
17054 # linking a shared library.
17056 # There doesn't appear to be a way to prevent this compiler from
17057 # explicitly linking system object files so we need to strip them
17058 # from the output so that they don't get included in the library
17059 # dependencies.
17060 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'
17062 xl* | mpixl* | bgxl*)
17063 # IBM XL 8.0 on PPC, with GNU ld
17064 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17065 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17066 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17067 if test yes = "$supports_anon_versioning"; then
17068 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17070 echo "local: *; };" >> $output_objdir/$libname.ver~
17071 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17075 case `$CC -V 2>&1 | sed 5q` in
17076 *Sun\ C*)
17077 # Sun C++ 5.9
17078 no_undefined_flag_CXX=' -zdefs'
17079 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17080 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'
17081 hardcode_libdir_flag_spec_CXX='-R$libdir'
17082 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'
17083 compiler_needs_object_CXX=yes
17085 # Not sure whether something based on
17086 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17087 # would be better.
17088 output_verbose_link_cmd='func_echo_all'
17090 # Archives containing C++ object files must be created using
17091 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17092 # necessary to make sure instantiated templates are included
17093 # in the archive.
17094 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17096 esac
17098 esac
17101 lynxos*)
17102 # FIXME: insert proper C++ library support
17103 ld_shlibs_CXX=no
17106 m88k*)
17107 # FIXME: insert proper C++ library support
17108 ld_shlibs_CXX=no
17111 mvs*)
17112 case $cc_basename in
17113 cxx*)
17114 # FIXME: insert proper C++ library support
17115 ld_shlibs_CXX=no
17118 # FIXME: insert proper C++ library support
17119 ld_shlibs_CXX=no
17121 esac
17124 netbsd*)
17125 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17126 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17127 wlarc=
17128 hardcode_libdir_flag_spec_CXX='-R$libdir'
17129 hardcode_direct_CXX=yes
17130 hardcode_shlibpath_var_CXX=no
17132 # Workaround some broken pre-1.5 toolchains
17133 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17136 *nto* | *qnx*)
17137 ld_shlibs_CXX=yes
17140 openbsd* | bitrig*)
17141 if test -f /usr/libexec/ld.so; then
17142 hardcode_direct_CXX=yes
17143 hardcode_shlibpath_var_CXX=no
17144 hardcode_direct_absolute_CXX=yes
17145 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17146 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17148 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17149 export_dynamic_flag_spec_CXX='$wl-E'
17150 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17152 output_verbose_link_cmd=func_echo_all
17153 else
17154 ld_shlibs_CXX=no
17158 osf3* | osf4* | osf5*)
17159 case $cc_basename in
17160 KCC*)
17161 # Kuck and Associates, Inc. (KAI) C++ Compiler
17163 # KCC will only create a shared library if the output file
17164 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17165 # to its proper name (with version) after linking.
17166 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'
17168 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17169 hardcode_libdir_separator_CXX=:
17171 # Archives containing C++ object files must be created using
17172 # the KAI C++ compiler.
17173 case $host in
17174 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17175 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17176 esac
17178 RCC*)
17179 # Rational C++ 2.4.1
17180 # FIXME: insert proper C++ library support
17181 ld_shlibs_CXX=no
17183 cxx*)
17184 case $host in
17185 osf3*)
17186 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17187 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'
17188 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17191 allow_undefined_flag_CXX=' -expect_unresolved \*'
17192 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'
17193 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17194 echo "-hidden">> $lib.exp~
17195 $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~
17196 $RM $lib.exp'
17197 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17199 esac
17201 hardcode_libdir_separator_CXX=:
17203 # Commands to make compiler produce verbose output that lists
17204 # what "hidden" libraries, object files and flags are used when
17205 # linking a shared library.
17207 # There doesn't appear to be a way to prevent this compiler from
17208 # explicitly linking system object files so we need to strip them
17209 # from the output so that they don't get included in the library
17210 # dependencies.
17211 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"'
17214 if test yes,no = "$GXX,$with_gnu_ld"; then
17215 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17216 case $host in
17217 osf3*)
17218 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'
17221 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'
17223 esac
17225 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17226 hardcode_libdir_separator_CXX=:
17228 # Commands to make compiler produce verbose output that lists
17229 # what "hidden" libraries, object files and flags are used when
17230 # linking a shared library.
17231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17233 else
17234 # FIXME: insert proper C++ library support
17235 ld_shlibs_CXX=no
17238 esac
17241 psos*)
17242 # FIXME: insert proper C++ library support
17243 ld_shlibs_CXX=no
17246 sunos4*)
17247 case $cc_basename in
17248 CC*)
17249 # Sun C++ 4.x
17250 # FIXME: insert proper C++ library support
17251 ld_shlibs_CXX=no
17253 lcc*)
17254 # Lucid
17255 # FIXME: insert proper C++ library support
17256 ld_shlibs_CXX=no
17259 # FIXME: insert proper C++ library support
17260 ld_shlibs_CXX=no
17262 esac
17265 solaris*)
17266 case $cc_basename in
17267 CC* | sunCC*)
17268 # Sun C++ 4.2, 5.x and Centerline C++
17269 archive_cmds_need_lc_CXX=yes
17270 no_undefined_flag_CXX=' -zdefs'
17271 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17272 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17273 $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'
17275 hardcode_libdir_flag_spec_CXX='-R$libdir'
17276 hardcode_shlibpath_var_CXX=no
17277 case $host_os in
17278 solaris2.[0-5] | solaris2.[0-5].*) ;;
17280 # The compiler driver will combine and reorder linker options,
17281 # but understands '-z linker_flag'.
17282 # Supported since Solaris 2.6 (maybe 2.5.1?)
17283 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17285 esac
17286 link_all_deplibs_CXX=yes
17288 output_verbose_link_cmd='func_echo_all'
17290 # Archives containing C++ object files must be created using
17291 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17292 # necessary to make sure instantiated templates are included
17293 # in the archive.
17294 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17296 gcx*)
17297 # Green Hills C++ Compiler
17298 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17300 # The C++ compiler must be used to create the archive.
17301 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17304 # GNU C++ compiler with Solaris linker
17305 if test yes,no = "$GXX,$with_gnu_ld"; then
17306 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17307 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17308 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17309 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17310 $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'
17312 # Commands to make compiler produce verbose output that lists
17313 # what "hidden" libraries, object files and flags are used when
17314 # linking a shared library.
17315 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17316 else
17317 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17318 # platform.
17319 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17320 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17321 $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'
17323 # Commands to make compiler produce verbose output that lists
17324 # what "hidden" libraries, object files and flags are used when
17325 # linking a shared library.
17326 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17329 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17330 case $host_os in
17331 solaris2.[0-5] | solaris2.[0-5].*) ;;
17333 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17335 esac
17338 esac
17341 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17342 no_undefined_flag_CXX='$wl-z,text'
17343 archive_cmds_need_lc_CXX=no
17344 hardcode_shlibpath_var_CXX=no
17345 runpath_var='LD_RUN_PATH'
17347 case $cc_basename in
17348 CC*)
17349 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17350 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17353 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17354 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17356 esac
17359 sysv5* | sco3.2v5* | sco5v6*)
17360 # Note: We CANNOT use -z defs as we might desire, because we do not
17361 # link with -lc, and that would cause any symbols used from libc to
17362 # always be unresolved, which means just about no library would
17363 # ever link correctly. If we're not using GNU ld we use -z text
17364 # though, which does catch some bad symbols but isn't as heavy-handed
17365 # as -z defs.
17366 no_undefined_flag_CXX='$wl-z,text'
17367 allow_undefined_flag_CXX='$wl-z,nodefs'
17368 archive_cmds_need_lc_CXX=no
17369 hardcode_shlibpath_var_CXX=no
17370 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17371 hardcode_libdir_separator_CXX=':'
17372 link_all_deplibs_CXX=yes
17373 export_dynamic_flag_spec_CXX='$wl-Bexport'
17374 runpath_var='LD_RUN_PATH'
17376 case $cc_basename in
17377 CC*)
17378 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17379 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17380 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17381 '"$old_archive_cmds_CXX"
17382 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17383 '"$reload_cmds_CXX"
17386 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17387 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17389 esac
17392 tandem*)
17393 case $cc_basename in
17394 NCC*)
17395 # NonStop-UX NCC 3.20
17396 # FIXME: insert proper C++ library support
17397 ld_shlibs_CXX=no
17400 # FIXME: insert proper C++ library support
17401 ld_shlibs_CXX=no
17403 esac
17406 vxworks*)
17407 # FIXME: insert proper C++ library support
17408 ld_shlibs_CXX=no
17412 # FIXME: insert proper C++ library support
17413 ld_shlibs_CXX=no
17415 esac
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17418 $as_echo "$ld_shlibs_CXX" >&6; }
17419 test no = "$ld_shlibs_CXX" && can_build_shared=no
17421 GCC_CXX=$GXX
17422 LD_CXX=$LD
17424 ## CAVEAT EMPTOR:
17425 ## There is no encapsulation within the following macros, do not change
17426 ## the running order or otherwise move them around unless you know exactly
17427 ## what you are doing...
17428 # Dependencies to place before and after the object being linked:
17429 predep_objects_CXX=
17430 postdep_objects_CXX=
17431 predeps_CXX=
17432 postdeps_CXX=
17433 compiler_lib_search_path_CXX=
17435 cat > conftest.$ac_ext <<_LT_EOF
17436 class Foo
17438 public:
17439 Foo (void) { a = 0; }
17440 private:
17441 int a;
17443 _LT_EOF
17446 _lt_libdeps_save_CFLAGS=$CFLAGS
17447 case "$CC $CFLAGS " in #(
17448 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17449 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17450 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17451 esac
17453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17454 (eval $ac_compile) 2>&5
17455 ac_status=$?
17456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457 test $ac_status = 0; }; then
17458 # Parse the compiler output and extract the necessary
17459 # objects, libraries and library flags.
17461 # Sentinel used to keep track of whether or not we are before
17462 # the conftest object file.
17463 pre_test_object_deps_done=no
17465 for p in `eval "$output_verbose_link_cmd"`; do
17466 case $prev$p in
17468 -L* | -R* | -l*)
17469 # Some compilers place space between "-{L,R}" and the path.
17470 # Remove the space.
17471 if test x-L = "$p" ||
17472 test x-R = "$p"; then
17473 prev=$p
17474 continue
17477 # Expand the sysroot to ease extracting the directories later.
17478 if test -z "$prev"; then
17479 case $p in
17480 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17481 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17482 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17483 esac
17485 case $p in
17486 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17487 esac
17488 if test no = "$pre_test_object_deps_done"; then
17489 case $prev in
17490 -L | -R)
17491 # Internal compiler library paths should come after those
17492 # provided the user. The postdeps already come after the
17493 # user supplied libs so there is no need to process them.
17494 if test -z "$compiler_lib_search_path_CXX"; then
17495 compiler_lib_search_path_CXX=$prev$p
17496 else
17497 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17500 # The "-l" case would never come before the object being
17501 # linked, so don't bother handling this case.
17502 esac
17503 else
17504 if test -z "$postdeps_CXX"; then
17505 postdeps_CXX=$prev$p
17506 else
17507 postdeps_CXX="${postdeps_CXX} $prev$p"
17510 prev=
17513 *.lto.$objext) ;; # Ignore GCC LTO objects
17514 *.$objext)
17515 # This assumes that the test object file only shows up
17516 # once in the compiler output.
17517 if test "$p" = "conftest.$objext"; then
17518 pre_test_object_deps_done=yes
17519 continue
17522 if test no = "$pre_test_object_deps_done"; then
17523 if test -z "$predep_objects_CXX"; then
17524 predep_objects_CXX=$p
17525 else
17526 predep_objects_CXX="$predep_objects_CXX $p"
17528 else
17529 if test -z "$postdep_objects_CXX"; then
17530 postdep_objects_CXX=$p
17531 else
17532 postdep_objects_CXX="$postdep_objects_CXX $p"
17537 *) ;; # Ignore the rest.
17539 esac
17540 done
17542 # Clean up.
17543 rm -f a.out a.exe
17544 else
17545 echo "libtool.m4: error: problem compiling CXX test program"
17548 $RM -f confest.$objext
17549 CFLAGS=$_lt_libdeps_save_CFLAGS
17551 # PORTME: override above test on systems where it is broken
17552 case $host_os in
17553 interix[3-9]*)
17554 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17555 # hack all around it, let's just trust "g++" to DTRT.
17556 predep_objects_CXX=
17557 postdep_objects_CXX=
17558 postdeps_CXX=
17560 esac
17563 case " $postdeps_CXX " in
17564 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17565 esac
17566 compiler_lib_search_dirs_CXX=
17567 if test -n "${compiler_lib_search_path_CXX}"; then
17568 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17601 lt_prog_compiler_wl_CXX=
17602 lt_prog_compiler_pic_CXX=
17603 lt_prog_compiler_static_CXX=
17606 # C++ specific cases for pic, static, wl, etc.
17607 if test yes = "$GXX"; then
17608 lt_prog_compiler_wl_CXX='-Wl,'
17609 lt_prog_compiler_static_CXX='-static'
17611 case $host_os in
17612 aix*)
17613 # All AIX code is PIC.
17614 if test ia64 = "$host_cpu"; then
17615 # AIX 5 now supports IA64 processor
17616 lt_prog_compiler_static_CXX='-Bstatic'
17618 lt_prog_compiler_pic_CXX='-fPIC'
17621 amigaos*)
17622 case $host_cpu in
17623 powerpc)
17624 # see comment about AmigaOS4 .so support
17625 lt_prog_compiler_pic_CXX='-fPIC'
17627 m68k)
17628 # FIXME: we need at least 68020 code to build shared libraries, but
17629 # adding the '-m68020' flag to GCC prevents building anything better,
17630 # like '-m68040'.
17631 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17633 esac
17636 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17637 # PIC is the default for these OSes.
17639 mingw* | cygwin* | os2* | pw32* | cegcc*)
17640 # This hack is so that the source file can tell whether it is being
17641 # built for inclusion in a dll (and should export symbols for example).
17642 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17643 # (--disable-auto-import) libraries
17644 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17645 case $host_os in
17646 os2*)
17647 lt_prog_compiler_static_CXX='$wl-static'
17649 esac
17651 darwin* | rhapsody*)
17652 # PIC is the default on this platform
17653 # Common symbols not allowed in MH_DYLIB files
17654 lt_prog_compiler_pic_CXX='-fno-common'
17656 *djgpp*)
17657 # DJGPP does not support shared libraries at all
17658 lt_prog_compiler_pic_CXX=
17660 haiku*)
17661 # PIC is the default for Haiku.
17662 # The "-static" flag exists, but is broken.
17663 lt_prog_compiler_static_CXX=
17665 interix[3-9]*)
17666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17667 # Instead, we relocate shared libraries at runtime.
17669 sysv4*MP*)
17670 if test -d /usr/nec; then
17671 lt_prog_compiler_pic_CXX=-Kconform_pic
17674 hpux*)
17675 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17676 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17677 # sets the default TLS model and affects inlining.
17678 case $host_cpu in
17679 hppa*64*)
17682 lt_prog_compiler_pic_CXX='-fPIC'
17684 esac
17686 *qnx* | *nto*)
17687 # QNX uses GNU C++, but need to define -shared option too, otherwise
17688 # it will coredump.
17689 lt_prog_compiler_pic_CXX='-fPIC -shared'
17692 lt_prog_compiler_pic_CXX='-fPIC'
17694 esac
17695 else
17696 case $host_os in
17697 aix[4-9]*)
17698 # All AIX code is PIC.
17699 if test ia64 = "$host_cpu"; then
17700 # AIX 5 now supports IA64 processor
17701 lt_prog_compiler_static_CXX='-Bstatic'
17702 else
17703 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17706 chorus*)
17707 case $cc_basename in
17708 cxch68*)
17709 # Green Hills C++ Compiler
17710 # _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"
17712 esac
17714 mingw* | cygwin* | os2* | pw32* | cegcc*)
17715 # This hack is so that the source file can tell whether it is being
17716 # built for inclusion in a dll (and should export symbols for example).
17717 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17719 dgux*)
17720 case $cc_basename in
17721 ec++*)
17722 lt_prog_compiler_pic_CXX='-KPIC'
17724 ghcx*)
17725 # Green Hills C++ Compiler
17726 lt_prog_compiler_pic_CXX='-pic'
17730 esac
17732 freebsd* | dragonfly*)
17733 # FreeBSD uses GNU C++
17735 hpux9* | hpux10* | hpux11*)
17736 case $cc_basename in
17737 CC*)
17738 lt_prog_compiler_wl_CXX='-Wl,'
17739 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17740 if test ia64 != "$host_cpu"; then
17741 lt_prog_compiler_pic_CXX='+Z'
17744 aCC*)
17745 lt_prog_compiler_wl_CXX='-Wl,'
17746 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17747 case $host_cpu in
17748 hppa*64*|ia64*)
17749 # +Z the default
17752 lt_prog_compiler_pic_CXX='+Z'
17754 esac
17758 esac
17760 interix*)
17761 # This is c89, which is MS Visual C++ (no shared libs)
17762 # Anyone wants to do a port?
17764 irix5* | irix6* | nonstopux*)
17765 case $cc_basename in
17766 CC*)
17767 lt_prog_compiler_wl_CXX='-Wl,'
17768 lt_prog_compiler_static_CXX='-non_shared'
17769 # CC pic flag -KPIC is the default.
17773 esac
17775 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17776 case $cc_basename in
17777 KCC*)
17778 # KAI C++ Compiler
17779 lt_prog_compiler_wl_CXX='--backend -Wl,'
17780 lt_prog_compiler_pic_CXX='-fPIC'
17782 ecpc* )
17783 # old Intel C++ for x86_64, which still supported -KPIC.
17784 lt_prog_compiler_wl_CXX='-Wl,'
17785 lt_prog_compiler_pic_CXX='-KPIC'
17786 lt_prog_compiler_static_CXX='-static'
17788 icpc* )
17789 # Intel C++, used to be incompatible with GCC.
17790 # ICC 10 doesn't accept -KPIC any more.
17791 lt_prog_compiler_wl_CXX='-Wl,'
17792 lt_prog_compiler_pic_CXX='-fPIC'
17793 lt_prog_compiler_static_CXX='-static'
17795 pgCC* | pgcpp*)
17796 # Portland Group C++ compiler
17797 lt_prog_compiler_wl_CXX='-Wl,'
17798 lt_prog_compiler_pic_CXX='-fpic'
17799 lt_prog_compiler_static_CXX='-Bstatic'
17801 cxx*)
17802 # Compaq C++
17803 # Make sure the PIC flag is empty. It appears that all Alpha
17804 # Linux and Compaq Tru64 Unix objects are PIC.
17805 lt_prog_compiler_pic_CXX=
17806 lt_prog_compiler_static_CXX='-non_shared'
17808 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17809 # IBM XL 8.0, 9.0 on PPC and BlueGene
17810 lt_prog_compiler_wl_CXX='-Wl,'
17811 lt_prog_compiler_pic_CXX='-qpic'
17812 lt_prog_compiler_static_CXX='-qstaticlink'
17815 case `$CC -V 2>&1 | sed 5q` in
17816 *Sun\ C*)
17817 # Sun C++ 5.9
17818 lt_prog_compiler_pic_CXX='-KPIC'
17819 lt_prog_compiler_static_CXX='-Bstatic'
17820 lt_prog_compiler_wl_CXX='-Qoption ld '
17822 esac
17824 esac
17826 lynxos*)
17828 m88k*)
17830 mvs*)
17831 case $cc_basename in
17832 cxx*)
17833 lt_prog_compiler_pic_CXX='-W c,exportall'
17837 esac
17839 netbsd*)
17841 *qnx* | *nto*)
17842 # QNX uses GNU C++, but need to define -shared option too, otherwise
17843 # it will coredump.
17844 lt_prog_compiler_pic_CXX='-fPIC -shared'
17846 osf3* | osf4* | osf5*)
17847 case $cc_basename in
17848 KCC*)
17849 lt_prog_compiler_wl_CXX='--backend -Wl,'
17851 RCC*)
17852 # Rational C++ 2.4.1
17853 lt_prog_compiler_pic_CXX='-pic'
17855 cxx*)
17856 # Digital/Compaq C++
17857 lt_prog_compiler_wl_CXX='-Wl,'
17858 # Make sure the PIC flag is empty. It appears that all Alpha
17859 # Linux and Compaq Tru64 Unix objects are PIC.
17860 lt_prog_compiler_pic_CXX=
17861 lt_prog_compiler_static_CXX='-non_shared'
17865 esac
17867 psos*)
17869 solaris*)
17870 case $cc_basename in
17871 CC* | sunCC*)
17872 # Sun C++ 4.2, 5.x and Centerline C++
17873 lt_prog_compiler_pic_CXX='-KPIC'
17874 lt_prog_compiler_static_CXX='-Bstatic'
17875 lt_prog_compiler_wl_CXX='-Qoption ld '
17877 gcx*)
17878 # Green Hills C++ Compiler
17879 lt_prog_compiler_pic_CXX='-PIC'
17883 esac
17885 sunos4*)
17886 case $cc_basename in
17887 CC*)
17888 # Sun C++ 4.x
17889 lt_prog_compiler_pic_CXX='-pic'
17890 lt_prog_compiler_static_CXX='-Bstatic'
17892 lcc*)
17893 # Lucid
17894 lt_prog_compiler_pic_CXX='-pic'
17898 esac
17900 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17901 case $cc_basename in
17902 CC*)
17903 lt_prog_compiler_wl_CXX='-Wl,'
17904 lt_prog_compiler_pic_CXX='-KPIC'
17905 lt_prog_compiler_static_CXX='-Bstatic'
17907 esac
17909 tandem*)
17910 case $cc_basename in
17911 NCC*)
17912 # NonStop-UX NCC 3.20
17913 lt_prog_compiler_pic_CXX='-KPIC'
17917 esac
17919 vxworks*)
17922 lt_prog_compiler_can_build_shared_CXX=no
17924 esac
17927 case $host_os in
17928 # For platforms that do not support PIC, -DPIC is meaningless:
17929 *djgpp*)
17930 lt_prog_compiler_pic_CXX=
17933 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17935 esac
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17938 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17939 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17940 $as_echo_n "(cached) " >&6
17941 else
17942 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17945 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17946 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17949 # Check to make sure the PIC flag actually works.
17951 if test -n "$lt_prog_compiler_pic_CXX"; then
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17953 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17954 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17955 $as_echo_n "(cached) " >&6
17956 else
17957 lt_cv_prog_compiler_pic_works_CXX=no
17958 ac_outfile=conftest.$ac_objext
17959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17960 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17961 # Insert the option either (1) after the last *FLAGS variable, or
17962 # (2) before a word containing "conftest.", or (3) at the end.
17963 # Note that $ac_compile itself does not contain backslashes and begins
17964 # with a dollar sign (not a hyphen), so the echo should work correctly.
17965 # The option is referenced via a variable to avoid confusing sed.
17966 lt_compile=`echo "$ac_compile" | $SED \
17967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17969 -e 's:$: $lt_compiler_flag:'`
17970 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17971 (eval "$lt_compile" 2>conftest.err)
17972 ac_status=$?
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 if (exit $ac_status) && test -s "$ac_outfile"; then
17976 # The compiler can only warn and ignore the option if not recognized
17977 # So say no if there are warnings other than the usual output.
17978 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17981 lt_cv_prog_compiler_pic_works_CXX=yes
17984 $RM conftest*
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17988 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17990 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17991 case $lt_prog_compiler_pic_CXX in
17992 "" | " "*) ;;
17993 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17994 esac
17995 else
17996 lt_prog_compiler_pic_CXX=
17997 lt_prog_compiler_can_build_shared_CXX=no
18007 # Check to make sure the static flag actually works.
18009 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18011 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18012 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015 lt_cv_prog_compiler_static_works_CXX=no
18016 save_LDFLAGS=$LDFLAGS
18017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18018 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18020 # The linker can only warn and ignore the option if not recognized
18021 # So say no if there are warnings
18022 if test -s conftest.err; then
18023 # Append any errors to the config.log.
18024 cat conftest.err 1>&5
18025 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18027 if diff conftest.exp conftest.er2 >/dev/null; then
18028 lt_cv_prog_compiler_static_works_CXX=yes
18030 else
18031 lt_cv_prog_compiler_static_works_CXX=yes
18034 $RM -r conftest*
18035 LDFLAGS=$save_LDFLAGS
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18039 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18041 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18043 else
18044 lt_prog_compiler_static_CXX=
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18051 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18052 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18053 $as_echo_n "(cached) " >&6
18054 else
18055 lt_cv_prog_compiler_c_o_CXX=no
18056 $RM -r conftest 2>/dev/null
18057 mkdir conftest
18058 cd conftest
18059 mkdir out
18060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18062 lt_compiler_flag="-o out/conftest2.$ac_objext"
18063 # Insert the option either (1) after the last *FLAGS variable, or
18064 # (2) before a word containing "conftest.", or (3) at the end.
18065 # Note that $ac_compile itself does not contain backslashes and begins
18066 # with a dollar sign (not a hyphen), so the echo should work correctly.
18067 lt_compile=`echo "$ac_compile" | $SED \
18068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18070 -e 's:$: $lt_compiler_flag:'`
18071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18072 (eval "$lt_compile" 2>out/conftest.err)
18073 ac_status=$?
18074 cat out/conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18077 then
18078 # The compiler can only warn and ignore the option if not recognized
18079 # So say no if there are warnings
18080 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18081 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18082 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18083 lt_cv_prog_compiler_c_o_CXX=yes
18086 chmod u+w . 2>&5
18087 $RM conftest*
18088 # SGI C++ compiler will create directory out/ii_files/ for
18089 # template instantiation
18090 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18091 $RM out/* && rmdir out
18092 cd ..
18093 $RM -r conftest
18094 $RM conftest*
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18098 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18103 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18104 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18105 $as_echo_n "(cached) " >&6
18106 else
18107 lt_cv_prog_compiler_c_o_CXX=no
18108 $RM -r conftest 2>/dev/null
18109 mkdir conftest
18110 cd conftest
18111 mkdir out
18112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18114 lt_compiler_flag="-o out/conftest2.$ac_objext"
18115 # Insert the option either (1) after the last *FLAGS variable, or
18116 # (2) before a word containing "conftest.", or (3) at the end.
18117 # Note that $ac_compile itself does not contain backslashes and begins
18118 # with a dollar sign (not a hyphen), so the echo should work correctly.
18119 lt_compile=`echo "$ac_compile" | $SED \
18120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18122 -e 's:$: $lt_compiler_flag:'`
18123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18124 (eval "$lt_compile" 2>out/conftest.err)
18125 ac_status=$?
18126 cat out/conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18129 then
18130 # The compiler can only warn and ignore the option if not recognized
18131 # So say no if there are warnings
18132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18135 lt_cv_prog_compiler_c_o_CXX=yes
18138 chmod u+w . 2>&5
18139 $RM conftest*
18140 # SGI C++ compiler will create directory out/ii_files/ for
18141 # template instantiation
18142 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18143 $RM out/* && rmdir out
18144 cd ..
18145 $RM -r conftest
18146 $RM conftest*
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18150 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18155 hard_links=nottested
18156 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18157 # do not overwrite the value of need_locks provided by the user
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18159 $as_echo_n "checking if we can lock with hard links... " >&6; }
18160 hard_links=yes
18161 $RM conftest*
18162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18163 touch conftest.a
18164 ln conftest.a conftest.b 2>&5 || hard_links=no
18165 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18167 $as_echo "$hard_links" >&6; }
18168 if test no = "$hard_links"; then
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18170 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18171 need_locks=warn
18173 else
18174 need_locks=no
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18180 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18182 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18183 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18184 case $host_os in
18185 aix[4-9]*)
18186 # If we're using GNU nm, then we don't want the "-C" option.
18187 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18188 # Without the "-l" option, or with the "-B" option, AIX nm treats
18189 # weak defined symbols like other global defined symbols, whereas
18190 # GNU nm marks them as "W".
18191 # While the 'weak' keyword is ignored in the Export File, we need
18192 # it in the Import File for the 'aix-soname' feature, so we have
18193 # to replace the "-B" option with "-P" for AIX nm.
18194 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18195 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'
18196 else
18197 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'
18200 pw32*)
18201 export_symbols_cmds_CXX=$ltdll_cmds
18203 cygwin* | mingw* | cegcc*)
18204 case $cc_basename in
18205 cl*)
18206 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18209 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'
18210 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18212 esac
18215 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18217 esac
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18220 $as_echo "$ld_shlibs_CXX" >&6; }
18221 test no = "$ld_shlibs_CXX" && can_build_shared=no
18223 with_gnu_ld_CXX=$with_gnu_ld
18231 # Do we need to explicitly link libc?
18233 case "x$archive_cmds_need_lc_CXX" in
18234 x|xyes)
18235 # Assume -lc should be added
18236 archive_cmds_need_lc_CXX=yes
18238 if test yes,yes = "$GCC,$enable_shared"; then
18239 case $archive_cmds_CXX in
18240 *'~'*)
18241 # FIXME: we may have to deal with multi-command sequences.
18243 '$CC '*)
18244 # Test whether the compiler implicitly links with -lc since on some
18245 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18246 # to ld, don't add -lc before -lgcc.
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18248 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18249 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 $RM conftest*
18253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18256 (eval $ac_compile) 2>&5
18257 ac_status=$?
18258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18259 test $ac_status = 0; } 2>conftest.err; then
18260 soname=conftest
18261 lib=conftest
18262 libobjs=conftest.$ac_objext
18263 deplibs=
18264 wl=$lt_prog_compiler_wl_CXX
18265 pic_flag=$lt_prog_compiler_pic_CXX
18266 compiler_flags=-v
18267 linker_flags=-v
18268 verstring=
18269 output_objdir=.
18270 libname=conftest
18271 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18272 allow_undefined_flag_CXX=
18273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18274 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18275 ac_status=$?
18276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18277 test $ac_status = 0; }
18278 then
18279 lt_cv_archive_cmds_need_lc_CXX=no
18280 else
18281 lt_cv_archive_cmds_need_lc_CXX=yes
18283 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18284 else
18285 cat conftest.err 1>&5
18287 $RM conftest*
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18291 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18292 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18294 esac
18297 esac
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18361 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18363 library_names_spec=
18364 libname_spec='lib$name'
18365 soname_spec=
18366 shrext_cmds=.so
18367 postinstall_cmds=
18368 postuninstall_cmds=
18369 finish_cmds=
18370 finish_eval=
18371 shlibpath_var=
18372 shlibpath_overrides_runpath=unknown
18373 version_type=none
18374 dynamic_linker="$host_os ld.so"
18375 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18376 need_lib_prefix=unknown
18377 hardcode_into_libs=no
18379 # when you set need_version to no, make sure it does not cause -set_version
18380 # flags to be left without arguments
18381 need_version=unknown
18385 case $host_os in
18386 aix3*)
18387 version_type=linux # correct to gnu/linux during the next big refactor
18388 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18389 shlibpath_var=LIBPATH
18391 # AIX 3 has no versioning support, so we append a major version to the name.
18392 soname_spec='$libname$release$shared_ext$major'
18395 aix[4-9]*)
18396 version_type=linux # correct to gnu/linux during the next big refactor
18397 need_lib_prefix=no
18398 need_version=no
18399 hardcode_into_libs=yes
18400 if test ia64 = "$host_cpu"; then
18401 # AIX 5 supports IA64
18402 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18403 shlibpath_var=LD_LIBRARY_PATH
18404 else
18405 # With GCC up to 2.95.x, collect2 would create an import file
18406 # for dependence libraries. The import file would start with
18407 # the line '#! .'. This would cause the generated library to
18408 # depend on '.', always an invalid library. This was fixed in
18409 # development snapshots of GCC prior to 3.0.
18410 case $host_os in
18411 aix4 | aix4.[01] | aix4.[01].*)
18412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18413 echo ' yes '
18414 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18416 else
18417 can_build_shared=no
18420 esac
18421 # Using Import Files as archive members, it is possible to support
18422 # filename-based versioning of shared library archives on AIX. While
18423 # this would work for both with and without runtime linking, it will
18424 # prevent static linking of such archives. So we do filename-based
18425 # shared library versioning with .so extension only, which is used
18426 # when both runtime linking and shared linking is enabled.
18427 # Unfortunately, runtime linking may impact performance, so we do
18428 # not want this to be the default eventually. Also, we use the
18429 # versioned .so libs for executables only if there is the -brtl
18430 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18431 # To allow for filename-based versioning support, we need to create
18432 # libNAME.so.V as an archive file, containing:
18433 # *) an Import File, referring to the versioned filename of the
18434 # archive as well as the shared archive member, telling the
18435 # bitwidth (32 or 64) of that shared object, and providing the
18436 # list of exported symbols of that shared object, eventually
18437 # decorated with the 'weak' keyword
18438 # *) the shared object with the F_LOADONLY flag set, to really avoid
18439 # it being seen by the linker.
18440 # At run time we better use the real file rather than another symlink,
18441 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18443 case $with_aix_soname,$aix_use_runtimelinking in
18444 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18445 # soname into executable. Probably we can add versioning support to
18446 # collect2, so additional links can be useful in future.
18447 aix,yes) # traditional libtool
18448 dynamic_linker='AIX unversionable lib.so'
18449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18450 # instead of lib<name>.a to let people know that these are not
18451 # typical AIX shared libraries.
18452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18454 aix,no) # traditional AIX only
18455 dynamic_linker='AIX lib.a(lib.so.V)'
18456 # We preserve .a as extension for shared libraries through AIX4.2
18457 # and later when we are not doing run time linking.
18458 library_names_spec='$libname$release.a $libname.a'
18459 soname_spec='$libname$release$shared_ext$major'
18461 svr4,*) # full svr4 only
18462 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18463 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18464 # We do not specify a path in Import Files, so LIBPATH fires.
18465 shlibpath_overrides_runpath=yes
18467 *,yes) # both, prefer svr4
18468 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18469 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18470 # unpreferred sharedlib libNAME.a needs extra handling
18471 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"'
18472 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"'
18473 # We do not specify a path in Import Files, so LIBPATH fires.
18474 shlibpath_overrides_runpath=yes
18476 *,no) # both, prefer aix
18477 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18478 library_names_spec='$libname$release.a $libname.a'
18479 soname_spec='$libname$release$shared_ext$major'
18480 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18481 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)'
18482 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"'
18484 esac
18485 shlibpath_var=LIBPATH
18489 amigaos*)
18490 case $host_cpu in
18491 powerpc)
18492 # Since July 2007 AmigaOS4 officially supports .so libraries.
18493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18496 m68k)
18497 library_names_spec='$libname.ixlibrary $libname.a'
18498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18499 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'
18501 esac
18504 beos*)
18505 library_names_spec='$libname$shared_ext'
18506 dynamic_linker="$host_os ld.so"
18507 shlibpath_var=LIBRARY_PATH
18510 bsdi[45]*)
18511 version_type=linux # correct to gnu/linux during the next big refactor
18512 need_version=no
18513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18514 soname_spec='$libname$release$shared_ext$major'
18515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18516 shlibpath_var=LD_LIBRARY_PATH
18517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18519 # the default ld.so.conf also contains /usr/contrib/lib and
18520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18521 # libtool to hard-code these into programs
18524 cygwin* | mingw* | pw32* | cegcc*)
18525 version_type=windows
18526 shrext_cmds=.dll
18527 need_version=no
18528 need_lib_prefix=no
18530 case $GCC,$cc_basename in
18531 yes,*)
18532 # gcc
18533 library_names_spec='$libname.dll.a'
18534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18535 postinstall_cmds='base_file=`basename \$file`~
18536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18537 dldir=$destdir/`dirname \$dlpath`~
18538 test -d \$dldir || mkdir -p \$dldir~
18539 $install_prog $dir/$dlname \$dldir/$dlname~
18540 chmod a+x \$dldir/$dlname~
18541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18542 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18545 dlpath=$dir/\$dldll~
18546 $RM \$dlpath'
18547 shlibpath_overrides_runpath=yes
18549 case $host_os in
18550 cygwin*)
18551 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18552 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18555 mingw* | cegcc*)
18556 # MinGW DLLs use traditional 'lib' prefix
18557 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18559 pw32*)
18560 # pw32 DLLs use 'pw' prefix rather than 'lib'
18561 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18563 esac
18564 dynamic_linker='Win32 ld.exe'
18567 *,cl*)
18568 # Native MSVC
18569 libname_spec='$name'
18570 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18571 library_names_spec='$libname.dll.lib'
18573 case $build_os in
18574 mingw*)
18575 sys_lib_search_path_spec=
18576 lt_save_ifs=$IFS
18577 IFS=';'
18578 for lt_path in $LIB
18580 IFS=$lt_save_ifs
18581 # Let DOS variable expansion print the short 8.3 style file name.
18582 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18583 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18584 done
18585 IFS=$lt_save_ifs
18586 # Convert to MSYS style.
18587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18589 cygwin*)
18590 # Convert to unix form, then to dos form, then back to unix form
18591 # but this time dos style (no spaces!) so that the unix form looks
18592 # like /cygdrive/c/PROGRA~1:/cygdr...
18593 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18594 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18595 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18598 sys_lib_search_path_spec=$LIB
18599 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18600 # It is most probably a Windows format PATH.
18601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18602 else
18603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18605 # FIXME: find the short name or the path components, as spaces are
18606 # common. (e.g. "Program Files" -> "PROGRA~1")
18608 esac
18610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18611 postinstall_cmds='base_file=`basename \$file`~
18612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18613 dldir=$destdir/`dirname \$dlpath`~
18614 test -d \$dldir || mkdir -p \$dldir~
18615 $install_prog $dir/$dlname \$dldir/$dlname'
18616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18617 dlpath=$dir/\$dldll~
18618 $RM \$dlpath'
18619 shlibpath_overrides_runpath=yes
18620 dynamic_linker='Win32 link.exe'
18624 # Assume MSVC wrapper
18625 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18626 dynamic_linker='Win32 ld.exe'
18628 esac
18629 # FIXME: first we should search . and the directory the executable is in
18630 shlibpath_var=PATH
18633 darwin* | rhapsody*)
18634 dynamic_linker="$host_os dyld"
18635 version_type=darwin
18636 need_lib_prefix=no
18637 need_version=no
18638 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18639 soname_spec='$libname$release$major$shared_ext'
18640 shlibpath_overrides_runpath=yes
18641 shlibpath_var=DYLD_LIBRARY_PATH
18642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18644 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18647 dgux*)
18648 version_type=linux # correct to gnu/linux during the next big refactor
18649 need_lib_prefix=no
18650 need_version=no
18651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18652 soname_spec='$libname$release$shared_ext$major'
18653 shlibpath_var=LD_LIBRARY_PATH
18656 freebsd* | dragonfly*)
18657 # DragonFly does not have aout. When/if they implement a new
18658 # versioning mechanism, adjust this.
18659 if test -x /usr/bin/objformat; then
18660 objformat=`/usr/bin/objformat`
18661 else
18662 case $host_os in
18663 freebsd[23].*) objformat=aout ;;
18664 *) objformat=elf ;;
18665 esac
18667 version_type=freebsd-$objformat
18668 case $version_type in
18669 freebsd-elf*)
18670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18671 soname_spec='$libname$release$shared_ext$major'
18672 need_version=no
18673 need_lib_prefix=no
18675 freebsd-*)
18676 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18677 need_version=yes
18679 esac
18680 shlibpath_var=LD_LIBRARY_PATH
18681 case $host_os in
18682 freebsd2.*)
18683 shlibpath_overrides_runpath=yes
18685 freebsd3.[01]* | freebsdelf3.[01]*)
18686 shlibpath_overrides_runpath=yes
18687 hardcode_into_libs=yes
18689 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18690 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18691 shlibpath_overrides_runpath=no
18692 hardcode_into_libs=yes
18694 *) # from 4.6 on, and DragonFly
18695 shlibpath_overrides_runpath=yes
18696 hardcode_into_libs=yes
18698 esac
18701 haiku*)
18702 version_type=linux # correct to gnu/linux during the next big refactor
18703 need_lib_prefix=no
18704 need_version=no
18705 dynamic_linker="$host_os runtime_loader"
18706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18707 soname_spec='$libname$release$shared_ext$major'
18708 shlibpath_var=LIBRARY_PATH
18709 shlibpath_overrides_runpath=no
18710 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18711 hardcode_into_libs=yes
18714 hpux9* | hpux10* | hpux11*)
18715 # Give a soname corresponding to the major version so that dld.sl refuses to
18716 # link against other versions.
18717 version_type=sunos
18718 need_lib_prefix=no
18719 need_version=no
18720 case $host_cpu in
18721 ia64*)
18722 shrext_cmds='.so'
18723 hardcode_into_libs=yes
18724 dynamic_linker="$host_os dld.so"
18725 shlibpath_var=LD_LIBRARY_PATH
18726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18728 soname_spec='$libname$release$shared_ext$major'
18729 if test 32 = "$HPUX_IA64_MODE"; then
18730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18731 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18732 else
18733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18734 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18737 hppa*64*)
18738 shrext_cmds='.sl'
18739 hardcode_into_libs=yes
18740 dynamic_linker="$host_os dld.sl"
18741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18744 soname_spec='$libname$release$shared_ext$major'
18745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18749 shrext_cmds='.sl'
18750 dynamic_linker="$host_os dld.sl"
18751 shlibpath_var=SHLIB_PATH
18752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18754 soname_spec='$libname$release$shared_ext$major'
18756 esac
18757 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18758 postinstall_cmds='chmod 555 $lib'
18759 # or fails outright, so override atomically:
18760 install_override_mode=555
18763 interix[3-9]*)
18764 version_type=linux # correct to gnu/linux during the next big refactor
18765 need_lib_prefix=no
18766 need_version=no
18767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18768 soname_spec='$libname$release$shared_ext$major'
18769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18770 shlibpath_var=LD_LIBRARY_PATH
18771 shlibpath_overrides_runpath=no
18772 hardcode_into_libs=yes
18775 irix5* | irix6* | nonstopux*)
18776 case $host_os in
18777 nonstopux*) version_type=nonstopux ;;
18779 if test yes = "$lt_cv_prog_gnu_ld"; then
18780 version_type=linux # correct to gnu/linux during the next big refactor
18781 else
18782 version_type=irix
18783 fi ;;
18784 esac
18785 need_lib_prefix=no
18786 need_version=no
18787 soname_spec='$libname$release$shared_ext$major'
18788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18789 case $host_os in
18790 irix5* | nonstopux*)
18791 libsuff= shlibsuff=
18794 case $LD in # libtool.m4 will add one of these switches to LD
18795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18796 libsuff= shlibsuff= libmagic=32-bit;;
18797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18798 libsuff=32 shlibsuff=N32 libmagic=N32;;
18799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18800 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18801 *) libsuff= shlibsuff= libmagic=never-match;;
18802 esac
18804 esac
18805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18806 shlibpath_overrides_runpath=no
18807 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18808 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18809 hardcode_into_libs=yes
18812 # No shared lib support for Linux oldld, aout, or coff.
18813 linux*oldld* | linux*aout* | linux*coff*)
18814 dynamic_linker=no
18817 linux*android*)
18818 version_type=none # Android doesn't support versioned libraries.
18819 need_lib_prefix=no
18820 need_version=no
18821 library_names_spec='$libname$release$shared_ext'
18822 soname_spec='$libname$release$shared_ext'
18823 finish_cmds=
18824 shlibpath_var=LD_LIBRARY_PATH
18825 shlibpath_overrides_runpath=yes
18827 # This implies no fast_install, which is unacceptable.
18828 # Some rework will be needed to allow for fast_install
18829 # before this can be enabled.
18830 hardcode_into_libs=yes
18832 dynamic_linker='Android linker'
18833 # Don't embed -rpath directories since the linker doesn't support them.
18834 hardcode_libdir_flag_spec_CXX='-L$libdir'
18837 # This must be glibc/ELF.
18838 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18839 version_type=linux # correct to gnu/linux during the next big refactor
18840 need_lib_prefix=no
18841 need_version=no
18842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18843 soname_spec='$libname$release$shared_ext$major'
18844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18845 shlibpath_var=LD_LIBRARY_PATH
18846 shlibpath_overrides_runpath=no
18848 # Some binutils ld are patched to set DT_RUNPATH
18849 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18850 $as_echo_n "(cached) " >&6
18851 else
18852 lt_cv_shlibpath_overrides_runpath=no
18853 save_LDFLAGS=$LDFLAGS
18854 save_libdir=$libdir
18855 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18856 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18861 main ()
18865 return 0;
18867 _ACEOF
18868 if ac_fn_cxx_try_link "$LINENO"; then :
18869 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18870 lt_cv_shlibpath_overrides_runpath=yes
18873 rm -f core conftest.err conftest.$ac_objext \
18874 conftest$ac_exeext conftest.$ac_ext
18875 LDFLAGS=$save_LDFLAGS
18876 libdir=$save_libdir
18880 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18882 # This implies no fast_install, which is unacceptable.
18883 # Some rework will be needed to allow for fast_install
18884 # before this can be enabled.
18885 hardcode_into_libs=yes
18887 # Ideally, we could use ldconfig to report *all* directores which are
18888 # searched for libraries, however this is still not possible. Aside from not
18889 # being certain /sbin/ldconfig is available, command
18890 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18891 # even though it is searched at run-time. Try to do the best guess by
18892 # appending ld.so.conf contents (and includes) to the search path.
18893 if test -f /etc/ld.so.conf; then
18894 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' ' '`
18895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18898 # We used to test for /lib/ld.so.1 and disable shared libraries on
18899 # powerpc, because MkLinux only supported shared libraries with the
18900 # GNU dynamic linker. Since this was broken with cross compilers,
18901 # most powerpc-linux boxes support dynamic linking these days and
18902 # people can always --disable-shared, the test was removed, and we
18903 # assume the GNU/Linux dynamic linker is in use.
18904 dynamic_linker='GNU/Linux ld.so'
18907 netbsd*)
18908 version_type=sunos
18909 need_lib_prefix=no
18910 need_version=no
18911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18912 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18914 dynamic_linker='NetBSD (a.out) ld.so'
18915 else
18916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18917 soname_spec='$libname$release$shared_ext$major'
18918 dynamic_linker='NetBSD ld.elf_so'
18920 shlibpath_var=LD_LIBRARY_PATH
18921 shlibpath_overrides_runpath=yes
18922 hardcode_into_libs=yes
18925 newsos6)
18926 version_type=linux # correct to gnu/linux during the next big refactor
18927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18928 shlibpath_var=LD_LIBRARY_PATH
18929 shlibpath_overrides_runpath=yes
18932 *nto* | *qnx*)
18933 version_type=qnx
18934 need_lib_prefix=no
18935 need_version=no
18936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18937 soname_spec='$libname$release$shared_ext$major'
18938 shlibpath_var=LD_LIBRARY_PATH
18939 shlibpath_overrides_runpath=no
18940 hardcode_into_libs=yes
18941 dynamic_linker='ldqnx.so'
18944 openbsd* | bitrig*)
18945 version_type=sunos
18946 sys_lib_dlsearch_path_spec=/usr/lib
18947 need_lib_prefix=no
18948 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18949 need_version=no
18950 else
18951 need_version=yes
18953 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18955 shlibpath_var=LD_LIBRARY_PATH
18956 shlibpath_overrides_runpath=yes
18959 os2*)
18960 libname_spec='$name'
18961 version_type=windows
18962 shrext_cmds=.dll
18963 need_version=no
18964 need_lib_prefix=no
18965 # OS/2 can only load a DLL with a base name of 8 characters or less.
18966 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18967 v=$($ECHO $release$versuffix | tr -d .-);
18968 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18969 $ECHO $n$v`$shared_ext'
18970 library_names_spec='${libname}_dll.$libext'
18971 dynamic_linker='OS/2 ld.exe'
18972 shlibpath_var=BEGINLIBPATH
18973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18975 postinstall_cmds='base_file=`basename \$file`~
18976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18977 dldir=$destdir/`dirname \$dlpath`~
18978 test -d \$dldir || mkdir -p \$dldir~
18979 $install_prog $dir/$dlname \$dldir/$dlname~
18980 chmod a+x \$dldir/$dlname~
18981 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18982 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18985 dlpath=$dir/\$dldll~
18986 $RM \$dlpath'
18989 osf3* | osf4* | osf5*)
18990 version_type=osf
18991 need_lib_prefix=no
18992 need_version=no
18993 soname_spec='$libname$release$shared_ext$major'
18994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18995 shlibpath_var=LD_LIBRARY_PATH
18996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19000 rdos*)
19001 dynamic_linker=no
19004 solaris*)
19005 version_type=linux # correct to gnu/linux during the next big refactor
19006 need_lib_prefix=no
19007 need_version=no
19008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19009 soname_spec='$libname$release$shared_ext$major'
19010 shlibpath_var=LD_LIBRARY_PATH
19011 shlibpath_overrides_runpath=yes
19012 hardcode_into_libs=yes
19013 # ldd complains unless libraries are executable
19014 postinstall_cmds='chmod +x $lib'
19017 sunos4*)
19018 version_type=sunos
19019 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19020 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19021 shlibpath_var=LD_LIBRARY_PATH
19022 shlibpath_overrides_runpath=yes
19023 if test yes = "$with_gnu_ld"; then
19024 need_lib_prefix=no
19026 need_version=yes
19029 sysv4 | sysv4.3*)
19030 version_type=linux # correct to gnu/linux during the next big refactor
19031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19032 soname_spec='$libname$release$shared_ext$major'
19033 shlibpath_var=LD_LIBRARY_PATH
19034 case $host_vendor in
19035 sni)
19036 shlibpath_overrides_runpath=no
19037 need_lib_prefix=no
19038 runpath_var=LD_RUN_PATH
19040 siemens)
19041 need_lib_prefix=no
19043 motorola)
19044 need_lib_prefix=no
19045 need_version=no
19046 shlibpath_overrides_runpath=no
19047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19049 esac
19052 sysv4*MP*)
19053 if test -d /usr/nec; then
19054 version_type=linux # correct to gnu/linux during the next big refactor
19055 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19056 soname_spec='$libname$shared_ext.$major'
19057 shlibpath_var=LD_LIBRARY_PATH
19061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19062 version_type=sco
19063 need_lib_prefix=no
19064 need_version=no
19065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19066 soname_spec='$libname$release$shared_ext$major'
19067 shlibpath_var=LD_LIBRARY_PATH
19068 shlibpath_overrides_runpath=yes
19069 hardcode_into_libs=yes
19070 if test yes = "$with_gnu_ld"; then
19071 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19072 else
19073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19074 case $host_os in
19075 sco3.2v5*)
19076 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19078 esac
19080 sys_lib_dlsearch_path_spec='/usr/lib'
19083 tpf*)
19084 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19085 version_type=linux # correct to gnu/linux during the next big refactor
19086 need_lib_prefix=no
19087 need_version=no
19088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19089 shlibpath_var=LD_LIBRARY_PATH
19090 shlibpath_overrides_runpath=no
19091 hardcode_into_libs=yes
19094 uts4*)
19095 version_type=linux # correct to gnu/linux during the next big refactor
19096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19097 soname_spec='$libname$release$shared_ext$major'
19098 shlibpath_var=LD_LIBRARY_PATH
19102 dynamic_linker=no
19104 esac
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19106 $as_echo "$dynamic_linker" >&6; }
19107 test no = "$dynamic_linker" && can_build_shared=no
19109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19110 if test yes = "$GCC"; then
19111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19114 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19115 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19118 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19119 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19122 # lt_cv_sys_lib... is unaugmented for libtool script decls...
19123 lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
19125 # ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for
19126 # LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths:
19127 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19167 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19168 hardcode_action_CXX=
19169 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19170 test -n "$runpath_var_CXX" ||
19171 test yes = "$hardcode_automatic_CXX"; then
19173 # We can hardcode non-existent directories.
19174 if test no != "$hardcode_direct_CXX" &&
19175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19176 # have to relink, otherwise we might link with an installed library
19177 # when we should be linking with a yet-to-be-installed one
19178 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19179 test no != "$hardcode_minus_L_CXX"; then
19180 # Linking always hardcodes the temporary library directory.
19181 hardcode_action_CXX=relink
19182 else
19183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19184 hardcode_action_CXX=immediate
19186 else
19187 # We cannot hardcode anything, or else we can only hardcode existing
19188 # directories.
19189 hardcode_action_CXX=unsupported
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19192 $as_echo "$hardcode_action_CXX" >&6; }
19194 if test relink = "$hardcode_action_CXX" ||
19195 test yes = "$inherit_rpath_CXX"; then
19196 # Fast installation is not supported
19197 enable_fast_install=no
19198 elif test yes = "$shlibpath_overrides_runpath" ||
19199 test no = "$enable_shared"; then
19200 # Fast installation is not necessary
19201 enable_fast_install=needless
19210 fi # test -n "$compiler"
19212 CC=$lt_save_CC
19213 CFLAGS=$lt_save_CFLAGS
19214 LDCXX=$LD
19215 LD=$lt_save_LD
19216 GCC=$lt_save_GCC
19217 with_gnu_ld=$lt_save_with_gnu_ld
19218 lt_cv_path_LDCXX=$lt_cv_path_LD
19219 lt_cv_path_LD=$lt_save_path_LD
19220 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19221 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19222 fi # test yes != "$_lt_caught_CXX_error"
19224 ac_ext=c
19225 ac_cpp='$CPP $CPPFLAGS'
19226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19233 $as_echo_n "checking whether ln -s works... " >&6; }
19234 LN_S=$as_ln_s
19235 if test "$LN_S" = "ln -s"; then
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19237 $as_echo "yes" >&6; }
19238 else
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19240 $as_echo "no, using $LN_S" >&6; }
19244 # Check whether --with-ln-s was given.
19245 if test "${with_ln_s+set}" = set; then :
19246 withval=$with_ln_s;
19248 if test "x$LN_S" != "xln -s" && test "x$kpse_cv_have_win32" = xno && test "x$with_ln_s" != xno; then
19249 as_fn_error $? "You could use \`--without-ln-s' to build without working \`ln -s'" "$LINENO" 5
19252 if test "x$enable_native_texlive_build" = xyes; then
19253 if test "x$datarootdir" = 'x${prefix}/share'; then
19254 datarootdir='${prefix}'
19255 ac_configure_args="$ac_configure_args '--datarootdir=$datarootdir'"
19257 if test "x$mandir" = 'x${datarootdir}/man'; then
19258 mandir='${prefix}/texmf-dist/doc/man'
19259 ac_configure_args="$ac_configure_args '--mandir=$mandir'"
19261 if test "x$infodir" = 'x${datarootdir}/info'; then
19262 infodir='${prefix}/texmf-dist/doc/info'
19263 ac_configure_args="$ac_configure_args '--infodir=$infodir'"
19267 if test "x$enable_web2c" = xyes && test "x$with_system_kpathsea" = xyes; then
19268 if test "x$with_kpathsea_includes" = x; then
19269 list="/usr/include /usr/local/include"
19270 else
19271 list=$with_kpathsea_includes
19273 found=no
19274 for ac_dir in $list; do
19275 if test -r "$ac_dir/kpathsea/paths.h"; then
19276 found=yes
19277 break
19279 done
19280 if test "x$found" = xno; then
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: You requested to build \`web2c' using an installed \`kpathsea' version," >&5
19282 $as_echo "$as_me: You requested to build \`web2c' using an installed \`kpathsea' version," >&6;}
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: which requires to locate the <kpathsea/paths.h> header file." >&5
19284 $as_echo "$as_me: which requires to locate the <kpathsea/paths.h> header file." >&6;}
19285 as_fn_error $? "Sorry, not found under any of: $list *****" "$LINENO" 5
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TeX specific libraries to build" >&5
19292 $as_echo_n "checking for TeX specific libraries to build... " >&6; }
19293 MAKE_SUBDIRS=
19294 CONF_SUBDIRS=
19295 if test -x $srcdir/texk/kpathsea/configure; then
19296 test "x$with_system_kpathsea" != xyes && test "x$need_kpathsea" = xyes && MAKE_SUBDIRS="texk/kpathsea $MAKE_SUBDIRS"
19297 CONF_SUBDIRS="texk/kpathsea $CONF_SUBDIRS"
19298 if false; then
19299 subdirs="$subdirs texk/kpathsea"
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_SUBDIRS" >&5
19305 $as_echo "$MAKE_SUBDIRS" >&6; }
19307 kpse_save_CPPFLAGS=$CPPFLAGS
19308 kpse_save_LIBS=$LIBS
19310 syslib_status=yes
19311 syslib_used=no
19312 if test "x$with_kpathsea_includes" != x && test "x$with_kpathsea_includes" != xyes; then
19313 KPATHSEA_INCLUDES="-I$with_kpathsea_includes"
19315 KPATHSEA_LIBS="-lkpathsea"
19316 if test "x$with_kpathsea_libdir" != x && test "x$with_kpathsea_libdir" != xyes; then
19317 KPATHSEA_LIBS="-L$with_kpathsea_libdir $KPATHSEA_LIBS"
19320 if test "x$with_ptexenc_includes" != x && test "x$with_ptexenc_includes" != xyes; then
19321 PTEXENC_INCLUDES="-I$with_ptexenc_includes"
19323 PTEXENC_LIBS="-lptexenc"
19324 if test "x$with_ptexenc_libdir" != x && test "x$with_ptexenc_libdir" != xyes; then
19325 PTEXENC_LIBS="-L$with_ptexenc_libdir $PTEXENC_LIBS"
19328 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
19329 ZLIB_INCLUDES="-I$with_zlib_includes"
19331 ZLIB_LIBS="-lz"
19332 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
19333 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
19336 if test "x$with_libpaper_includes" != x && test "x$with_libpaper_includes" != xyes; then
19337 LIBPAPER_INCLUDES="-I$with_libpaper_includes"
19339 LIBPAPER_LIBS="-lpaper"
19340 if test "x$with_libpaper_libdir" != x && test "x$with_libpaper_libdir" != xyes; then
19341 LIBPAPER_LIBS="-L$with_libpaper_libdir $LIBPAPER_LIBS"
19344 if test -n "$ac_tool_prefix"; then
19345 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19346 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19348 $as_echo_n "checking for $ac_word... " >&6; }
19349 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
19350 $as_echo_n "(cached) " >&6
19351 else
19352 if test -n "$PKG_CONFIG"; then
19353 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
19354 else
19355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19358 IFS=$as_save_IFS
19359 test -z "$as_dir" && as_dir=.
19360 for ac_exec_ext in '' $ac_executable_extensions; do
19361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19362 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
19363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19364 break 2
19366 done
19367 done
19368 IFS=$as_save_IFS
19372 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
19373 if test -n "$PKG_CONFIG"; then
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19375 $as_echo "$PKG_CONFIG" >&6; }
19376 else
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19378 $as_echo "no" >&6; }
19383 if test -z "$ac_cv_prog_PKG_CONFIG"; then
19384 ac_ct_PKG_CONFIG=$PKG_CONFIG
19385 # Extract the first word of "pkg-config", so it can be a program name with args.
19386 set dummy pkg-config; ac_word=$2
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19388 $as_echo_n "checking for $ac_word... " >&6; }
19389 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
19390 $as_echo_n "(cached) " >&6
19391 else
19392 if test -n "$ac_ct_PKG_CONFIG"; then
19393 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
19394 else
19395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19396 for as_dir in $PATH
19398 IFS=$as_save_IFS
19399 test -z "$as_dir" && as_dir=.
19400 for ac_exec_ext in '' $ac_executable_extensions; do
19401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19402 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
19403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19404 break 2
19406 done
19407 done
19408 IFS=$as_save_IFS
19412 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
19413 if test -n "$ac_ct_PKG_CONFIG"; then
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
19415 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
19416 else
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19418 $as_echo "no" >&6; }
19421 if test "x$ac_ct_PKG_CONFIG" = x; then
19422 PKG_CONFIG="false"
19423 else
19424 case $cross_compiling:$ac_tool_warned in
19425 yes:)
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19428 ac_tool_warned=yes ;;
19429 esac
19430 PKG_CONFIG=$ac_ct_PKG_CONFIG
19432 else
19433 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
19436 if $PKG_CONFIG libpng; then
19437 LIBPNG_INCLUDES=`$PKG_CONFIG libpng --cflags`
19438 LIBPNG_LIBS=`$PKG_CONFIG libpng --libs`
19439 elif test "x$need_libpng:$with_system_libpng" = xyes:yes; then
19440 as_fn_error $? "did not find libpng" "$LINENO" 5
19443 if test -n "$ac_tool_prefix"; then
19444 # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
19445 set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19447 $as_echo_n "checking for $ac_word... " >&6; }
19448 if ${ac_cv_prog_FT2_CONFIG+:} false; then :
19449 $as_echo_n "(cached) " >&6
19450 else
19451 if test -n "$FT2_CONFIG"; then
19452 ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test.
19453 else
19454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19455 for as_dir in $PATH
19457 IFS=$as_save_IFS
19458 test -z "$as_dir" && as_dir=.
19459 for ac_exec_ext in '' $ac_executable_extensions; do
19460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19461 ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config"
19462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19463 break 2
19465 done
19466 done
19467 IFS=$as_save_IFS
19471 FT2_CONFIG=$ac_cv_prog_FT2_CONFIG
19472 if test -n "$FT2_CONFIG"; then
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
19474 $as_echo "$FT2_CONFIG" >&6; }
19475 else
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19477 $as_echo "no" >&6; }
19482 if test -z "$ac_cv_prog_FT2_CONFIG"; then
19483 ac_ct_FT2_CONFIG=$FT2_CONFIG
19484 # Extract the first word of "freetype-config", so it can be a program name with args.
19485 set dummy freetype-config; ac_word=$2
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19487 $as_echo_n "checking for $ac_word... " >&6; }
19488 if ${ac_cv_prog_ac_ct_FT2_CONFIG+:} false; then :
19489 $as_echo_n "(cached) " >&6
19490 else
19491 if test -n "$ac_ct_FT2_CONFIG"; then
19492 ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test.
19493 else
19494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19495 for as_dir in $PATH
19497 IFS=$as_save_IFS
19498 test -z "$as_dir" && as_dir=.
19499 for ac_exec_ext in '' $ac_executable_extensions; do
19500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19501 ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config"
19502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19503 break 2
19505 done
19506 done
19507 IFS=$as_save_IFS
19511 ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG
19512 if test -n "$ac_ct_FT2_CONFIG"; then
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5
19514 $as_echo "$ac_ct_FT2_CONFIG" >&6; }
19515 else
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19517 $as_echo "no" >&6; }
19520 if test "x$ac_ct_FT2_CONFIG" = x; then
19521 FT2_CONFIG="false"
19522 else
19523 case $cross_compiling:$ac_tool_warned in
19524 yes:)
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19527 ac_tool_warned=yes ;;
19528 esac
19529 FT2_CONFIG=$ac_ct_FT2_CONFIG
19531 else
19532 FT2_CONFIG="$ac_cv_prog_FT2_CONFIG"
19534 if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
19535 FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags`
19536 FREETYPE2_LIBS=`$FT2_CONFIG --libs`
19537 elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then
19538 as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5
19541 if test "x$with_gd_includes" != x && test "x$with_gd_includes" != xyes; then
19542 GD_INCLUDES="-I$with_gd_includes"
19544 GD_LIBS="-lgd"
19545 if test "x$with_gd_libdir" != x && test "x$with_gd_libdir" != xyes; then
19546 GD_LIBS="-L$with_gd_libdir $GD_LIBS"
19549 if test "x$with_potrace_includes" != x && test "x$with_potrace_includes" != xyes; then
19550 POTRACE_INCLUDES="-I$with_potrace_includes"
19552 POTRACE_LIBS="-lpotrace"
19553 if test "x$with_potrace_libdir" != x && test "x$with_potrace_libdir" != xyes; then
19554 POTRACE_LIBS="-L$with_potrace_libdir $POTRACE_LIBS"
19557 if $PKG_CONFIG pixman-1 --atleast-version=0.18; then
19558 PIXMAN_INCLUDES=`$PKG_CONFIG pixman-1 --cflags`
19559 PIXMAN_LIBS=`$PKG_CONFIG pixman-1 --libs`
19560 elif test "x$need_pixman:$with_system_pixman" = xyes:yes; then
19561 as_fn_error $? "did not find pixman-0.18 or better" "$LINENO" 5
19564 if $PKG_CONFIG cairo --atleast-version=1.12; then
19565 CAIRO_INCLUDES=`$PKG_CONFIG cairo --cflags`
19566 CAIRO_LIBS=`$PKG_CONFIG cairo --libs`
19567 elif test "x$need_cairo:$with_system_cairo" = xyes:yes; then
19568 as_fn_error $? "did not find cairo-1.12 or better" "$LINENO" 5
19571 if test "x$with_gmp_includes" != x && test "x$with_gmp_includes" != xyes; then
19572 GMP_INCLUDES="-I$with_gmp_includes"
19574 GMP_LIBS="-lgmp"
19575 if test "x$with_gmp_libdir" != x && test "x$with_gmp_libdir" != xyes; then
19576 GMP_LIBS="-L$with_gmp_libdir $GMP_LIBS"
19579 if test "x$with_mpfr_includes" != x && test "x$with_mpfr_includes" != xyes; then
19580 MPFR_INCLUDES="-I$with_mpfr_includes"
19582 MPFR_LIBS="-lmpfr"
19583 if test "x$with_mpfr_libdir" != x && test "x$with_mpfr_libdir" != xyes; then
19584 MPFR_LIBS="-L$with_mpfr_libdir $MPFR_LIBS"
19587 if $PKG_CONFIG poppler --atleast-version=0.18; then
19588 POPPLER_VERSION='-DPOPPLER_VERSION=\"'`$PKG_CONFIG poppler --modversion`'\"'
19589 POPPLER_INCLUDES="$POPPLER_VERSION `$PKG_CONFIG poppler --cflags`"
19590 POPPLER_LIBS=`$PKG_CONFIG poppler --libs`
19591 elif test "x$need_poppler:$with_system_poppler" = xyes:yes; then
19592 as_fn_error $? "did not find poppler-0.18 or better" "$LINENO" 5
19595 if $PKG_CONFIG poppler --atleast-version=0.12; then
19596 POPPLER_VERSION='-DPOPPLER_VERSION=\"'`$PKG_CONFIG poppler --modversion`'\"'
19597 XPDF_INCLUDES="$POPPLER_VERSION `$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 if $PKG_CONFIG zziplib --atleast-version=0.12; then
19604 ZZIPLIB_INCLUDES=`$PKG_CONFIG zziplib --cflags`
19605 ZZIPLIB_LIBS=`$PKG_CONFIG zziplib --libs`
19606 elif test "x$need_zziplib:$with_system_zziplib" = xyes:yes; then
19607 as_fn_error $? "did not find zziplib-0.12 or better" "$LINENO" 5
19610 if $PKG_CONFIG graphite2; then
19611 GRAPHITE2_INCLUDES=`$PKG_CONFIG graphite2 --cflags`
19612 GRAPHITE2_LIBS=`$PKG_CONFIG graphite2 --libs`
19613 elif test "x$need_graphite2:$with_system_graphite2" = xyes:yes; then
19614 as_fn_error $? "did not find graphite2" "$LINENO" 5
19617 if test "x$with_teckit_includes" != x && test "x$with_teckit_includes" != xyes; then
19618 TECKIT_INCLUDES="-I$with_teckit_includes"
19620 TECKIT_LIBS="-lTECkit"
19621 if test "x$with_teckit_libdir" != x && test "x$with_teckit_libdir" != xyes; then
19622 TECKIT_LIBS="-L$with_teckit_libdir $TECKIT_LIBS"
19625 if test -n "$ac_tool_prefix"; then
19626 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
19627 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19629 $as_echo_n "checking for $ac_word... " >&6; }
19630 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
19631 $as_echo_n "(cached) " >&6
19632 else
19633 if test -n "$ICU_CONFIG"; then
19634 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
19635 else
19636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19637 for as_dir in $PATH
19639 IFS=$as_save_IFS
19640 test -z "$as_dir" && as_dir=.
19641 for ac_exec_ext in '' $ac_executable_extensions; do
19642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19643 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
19644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19645 break 2
19647 done
19648 done
19649 IFS=$as_save_IFS
19653 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
19654 if test -n "$ICU_CONFIG"; then
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
19656 $as_echo "$ICU_CONFIG" >&6; }
19657 else
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19659 $as_echo "no" >&6; }
19664 if test -z "$ac_cv_prog_ICU_CONFIG"; then
19665 ac_ct_ICU_CONFIG=$ICU_CONFIG
19666 # Extract the first word of "icu-config", so it can be a program name with args.
19667 set dummy icu-config; ac_word=$2
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19669 $as_echo_n "checking for $ac_word... " >&6; }
19670 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
19671 $as_echo_n "(cached) " >&6
19672 else
19673 if test -n "$ac_ct_ICU_CONFIG"; then
19674 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
19675 else
19676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19677 for as_dir in $PATH
19679 IFS=$as_save_IFS
19680 test -z "$as_dir" && as_dir=.
19681 for ac_exec_ext in '' $ac_executable_extensions; do
19682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19683 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
19684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19685 break 2
19687 done
19688 done
19689 IFS=$as_save_IFS
19693 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
19694 if test -n "$ac_ct_ICU_CONFIG"; then
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
19696 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
19697 else
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19699 $as_echo "no" >&6; }
19702 if test "x$ac_ct_ICU_CONFIG" = x; then
19703 ICU_CONFIG="false"
19704 else
19705 case $cross_compiling:$ac_tool_warned in
19706 yes:)
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19709 ac_tool_warned=yes ;;
19710 esac
19711 ICU_CONFIG=$ac_ct_ICU_CONFIG
19713 else
19714 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
19716 if $ICU_CONFIG --version >/dev/null 2>&1; then
19717 ICU_INCLUDES=`$ICU_CONFIG --cppflags`
19718 # Work around bug in icu-config version 4.4
19719 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath `
19720 ICU_LIBS="$ICU_LIBS `$ICU_CONFIG --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 2014-11-24, 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 2014-11-24
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 lt_cv_sys_lib_dlsearch_path_spec='`$ECHO "$lt_cv_sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20923 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20924 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20925 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20926 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20927 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20928 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20929 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20930 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20931 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20932 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20933 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20934 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20935 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20936 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20937 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20938 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20939 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20940 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20941 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20942 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20943 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20944 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20945 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20946 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20947 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20948 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20949 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20950 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20951 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20952 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20953 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20954 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20955 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20956 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20957 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20958 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20959 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20960 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20961 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20962 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20963 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20964 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20965 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20966 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20967 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20968 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20969 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20970 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20971 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20972 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20973 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20974 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20975 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20976 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20977 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20978 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20979 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20980 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20981 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20982 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20984 LTCC='$LTCC'
20985 LTCFLAGS='$LTCFLAGS'
20986 compiler='$compiler_DEFAULT'
20988 # A function that is used when there is no print builtin or printf.
20989 func_fallback_echo ()
20991 eval 'cat <<_LTECHO_EOF
20993 _LTECHO_EOF'
20996 # Quote evaled strings.
20997 for var in AS \
20998 DLLTOOL \
20999 OBJDUMP \
21000 SHELL \
21001 ECHO \
21002 PATH_SEPARATOR \
21003 SED \
21004 GREP \
21005 EGREP \
21006 FGREP \
21007 LD \
21008 NM \
21009 LN_S \
21010 lt_SP2NL \
21011 lt_NL2SP \
21012 reload_flag \
21013 deplibs_check_method \
21014 file_magic_cmd \
21015 file_magic_glob \
21016 want_nocaseglob \
21017 sharedlib_from_linklib_cmd \
21018 AR \
21019 AR_FLAGS \
21020 archiver_list_spec \
21021 STRIP \
21022 RANLIB \
21023 CC \
21024 CFLAGS \
21025 compiler \
21026 lt_cv_sys_global_symbol_pipe \
21027 lt_cv_sys_global_symbol_to_cdecl \
21028 lt_cv_sys_global_symbol_to_import \
21029 lt_cv_sys_global_symbol_to_c_name_address \
21030 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21031 lt_cv_nm_interface \
21032 nm_file_list_spec \
21033 lt_cv_truncate_bin \
21034 lt_prog_compiler_no_builtin_flag \
21035 lt_prog_compiler_pic \
21036 lt_prog_compiler_wl \
21037 lt_prog_compiler_static \
21038 lt_cv_prog_compiler_c_o \
21039 need_locks \
21040 MANIFEST_TOOL \
21041 DSYMUTIL \
21042 NMEDIT \
21043 LIPO \
21044 OTOOL \
21045 OTOOL64 \
21046 shrext_cmds \
21047 export_dynamic_flag_spec \
21048 whole_archive_flag_spec \
21049 compiler_needs_object \
21050 with_gnu_ld \
21051 allow_undefined_flag \
21052 no_undefined_flag \
21053 hardcode_libdir_flag_spec \
21054 hardcode_libdir_separator \
21055 exclude_expsyms \
21056 include_expsyms \
21057 file_list_spec \
21058 variables_saved_for_relink \
21059 libname_spec \
21060 library_names_spec \
21061 soname_spec \
21062 install_override_mode \
21063 finish_eval \
21064 old_striplib \
21065 striplib \
21066 compiler_lib_search_dirs \
21067 predep_objects \
21068 postdep_objects \
21069 predeps \
21070 postdeps \
21071 compiler_lib_search_path \
21072 LD_CXX \
21073 reload_flag_CXX \
21074 compiler_CXX \
21075 lt_prog_compiler_no_builtin_flag_CXX \
21076 lt_prog_compiler_pic_CXX \
21077 lt_prog_compiler_wl_CXX \
21078 lt_prog_compiler_static_CXX \
21079 lt_cv_prog_compiler_c_o_CXX \
21080 export_dynamic_flag_spec_CXX \
21081 whole_archive_flag_spec_CXX \
21082 compiler_needs_object_CXX \
21083 with_gnu_ld_CXX \
21084 allow_undefined_flag_CXX \
21085 no_undefined_flag_CXX \
21086 hardcode_libdir_flag_spec_CXX \
21087 hardcode_libdir_separator_CXX \
21088 exclude_expsyms_CXX \
21089 include_expsyms_CXX \
21090 file_list_spec_CXX \
21091 compiler_lib_search_dirs_CXX \
21092 predep_objects_CXX \
21093 postdep_objects_CXX \
21094 predeps_CXX \
21095 postdeps_CXX \
21096 compiler_lib_search_path_CXX; do
21097 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21098 *[\\\\\\\`\\"\\\$]*)
21099 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21102 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21104 esac
21105 done
21107 # Double-quote double-evaled strings.
21108 for var in reload_cmds \
21109 old_postinstall_cmds \
21110 old_postuninstall_cmds \
21111 old_archive_cmds \
21112 extract_expsyms_cmds \
21113 old_archive_from_new_cmds \
21114 old_archive_from_expsyms_cmds \
21115 archive_cmds \
21116 archive_expsym_cmds \
21117 module_cmds \
21118 module_expsym_cmds \
21119 export_symbols_cmds \
21120 prelink_cmds \
21121 postlink_cmds \
21122 postinstall_cmds \
21123 postuninstall_cmds \
21124 finish_cmds \
21125 sys_lib_search_path_spec \
21126 lt_cv_sys_lib_dlsearch_path_spec \
21127 reload_cmds_CXX \
21128 old_archive_cmds_CXX \
21129 old_archive_from_new_cmds_CXX \
21130 old_archive_from_expsyms_cmds_CXX \
21131 archive_cmds_CXX \
21132 archive_expsym_cmds_CXX \
21133 module_cmds_CXX \
21134 module_expsym_cmds_CXX \
21135 export_symbols_cmds_CXX \
21136 prelink_cmds_CXX \
21137 postlink_cmds_CXX; do
21138 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21139 *[\\\\\\\`\\"\\\$]*)
21140 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21143 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21145 esac
21146 done
21148 ac_aux_dir='$ac_aux_dir'
21150 # See if we are running on zsh, and set the options that allow our
21151 # commands through without removal of \ escapes INIT.
21152 if test -n "\${ZSH_VERSION+set}"; then
21153 setopt NO_GLOB_SUBST
21157 PACKAGE='$PACKAGE'
21158 VERSION='$VERSION'
21159 RM='$RM'
21160 ofile='$ofile'
21164 enable_libtool_hack='$enable_libtool_hack'
21168 _ACEOF
21170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21172 # Handling of arguments.
21173 for ac_config_target in $ac_config_targets
21175 case $ac_config_target in
21176 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21177 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21178 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21179 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21181 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21182 esac
21183 done
21186 # If the user did not use the arguments to specify the items to instantiate,
21187 # then the envvar interface is used. Set only those that are not.
21188 # We use the long form for the default assignment because of an extremely
21189 # bizarre bug on SunOS 4.1.3.
21190 if $ac_need_defaults; then
21191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21195 # Have a temporary directory for convenience. Make it in the build tree
21196 # simply because there is no reason against having it here, and in addition,
21197 # creating and moving files from /tmp can sometimes cause problems.
21198 # Hook for its removal unless debugging.
21199 # Note that there is a small window in which the directory will not be cleaned:
21200 # after its creation but before its name has been assigned to `$tmp'.
21201 $debug ||
21203 tmp= ac_tmp=
21204 trap 'exit_status=$?
21205 : "${ac_tmp:=$tmp}"
21206 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21208 trap 'as_fn_exit 1' 1 2 13 15
21210 # Create a (secure) tmp directory for tmp files.
21213 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21214 test -d "$tmp"
21215 } ||
21217 tmp=./conf$$-$RANDOM
21218 (umask 077 && mkdir "$tmp")
21219 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21220 ac_tmp=$tmp
21222 # Set up the scripts for CONFIG_FILES section.
21223 # No need to generate them if there are no CONFIG_FILES.
21224 # This happens for instance with `./config.status config.h'.
21225 if test -n "$CONFIG_FILES"; then
21228 ac_cr=`echo X | tr X '\015'`
21229 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21230 # But we know of no other shell where ac_cr would be empty at this
21231 # point, so we can use a bashism as a fallback.
21232 if test "x$ac_cr" = x; then
21233 eval ac_cr=\$\'\\r\'
21235 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21236 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21237 ac_cs_awk_cr='\\r'
21238 else
21239 ac_cs_awk_cr=$ac_cr
21242 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21243 _ACEOF
21247 echo "cat >conf$$subs.awk <<_ACEOF" &&
21248 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21249 echo "_ACEOF"
21250 } >conf$$subs.sh ||
21251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21252 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21253 ac_delim='%!_!# '
21254 for ac_last_try in false false false false false :; do
21255 . ./conf$$subs.sh ||
21256 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21258 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21259 if test $ac_delim_n = $ac_delim_num; then
21260 break
21261 elif $ac_last_try; then
21262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21263 else
21264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21266 done
21267 rm -f conf$$subs.sh
21269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21270 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21271 _ACEOF
21272 sed -n '
21274 s/^/S["/; s/!.*/"]=/
21277 s/^[^!]*!//
21278 :repl
21279 t repl
21280 s/'"$ac_delim"'$//
21281 t delim
21284 s/\(.\{148\}\)..*/\1/
21285 t more1
21286 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21289 b repl
21290 :more1
21291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21294 s/.\{148\}//
21295 t nl
21296 :delim
21298 s/\(.\{148\}\)..*/\1/
21299 t more2
21300 s/["\\]/\\&/g; s/^/"/; s/$/"/
21303 :more2
21304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21307 s/.\{148\}//
21308 t delim
21309 ' <conf$$subs.awk | sed '
21310 /^[^""]/{
21312 s/\n//
21314 ' >>$CONFIG_STATUS || ac_write_fail=1
21315 rm -f conf$$subs.awk
21316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21317 _ACAWK
21318 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21319 for (key in S) S_is_set[key] = 1
21320 FS = "\a"
21324 line = $ 0
21325 nfields = split(line, field, "@")
21326 substed = 0
21327 len = length(field[1])
21328 for (i = 2; i < nfields; i++) {
21329 key = field[i]
21330 keylen = length(key)
21331 if (S_is_set[key]) {
21332 value = S[key]
21333 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21334 len += length(value) + length(field[++i])
21335 substed = 1
21336 } else
21337 len += 1 + keylen
21340 print line
21343 _ACAWK
21344 _ACEOF
21345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21346 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21347 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21348 else
21350 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21351 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21352 _ACEOF
21354 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21355 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21356 # trailing colons and then remove the whole line if VPATH becomes empty
21357 # (actually we leave an empty line to preserve line numbers).
21358 if test "x$srcdir" = x.; then
21359 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21361 s///
21362 s/^/:/
21363 s/[ ]*$/:/
21364 s/:\$(srcdir):/:/g
21365 s/:\${srcdir}:/:/g
21366 s/:@srcdir@:/:/g
21367 s/^:*//
21368 s/:*$//
21370 s/\(=[ ]*\).*/\1/
21372 s/\n//
21373 s/^[^=]*=[ ]*$//
21377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21378 fi # test -n "$CONFIG_FILES"
21381 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21382 shift
21383 for ac_tag
21385 case $ac_tag in
21386 :[FHLC]) ac_mode=$ac_tag; continue;;
21387 esac
21388 case $ac_mode$ac_tag in
21389 :[FHL]*:*);;
21390 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21391 :[FH]-) ac_tag=-:-;;
21392 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21393 esac
21394 ac_save_IFS=$IFS
21395 IFS=:
21396 set x $ac_tag
21397 IFS=$ac_save_IFS
21398 shift
21399 ac_file=$1
21400 shift
21402 case $ac_mode in
21403 :L) ac_source=$1;;
21404 :[FH])
21405 ac_file_inputs=
21406 for ac_f
21408 case $ac_f in
21409 -) ac_f="$ac_tmp/stdin";;
21410 *) # Look for the file first in the build tree, then in the source tree
21411 # (if the path is not absolute). The absolute path cannot be DOS-style,
21412 # because $ac_f cannot contain `:'.
21413 test -f "$ac_f" ||
21414 case $ac_f in
21415 [\\/$]*) false;;
21416 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21417 esac ||
21418 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21419 esac
21420 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21421 as_fn_append ac_file_inputs " '$ac_f'"
21422 done
21424 # Let's still pretend it is `configure' which instantiates (i.e., don't
21425 # use $as_me), people would be surprised to read:
21426 # /* config.h. Generated by config.status. */
21427 configure_input='Generated from '`
21428 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21429 `' by configure.'
21430 if test x"$ac_file" != x-; then
21431 configure_input="$ac_file. $configure_input"
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21433 $as_echo "$as_me: creating $ac_file" >&6;}
21435 # Neutralize special characters interpreted by sed in replacement strings.
21436 case $configure_input in #(
21437 *\&* | *\|* | *\\* )
21438 ac_sed_conf_input=`$as_echo "$configure_input" |
21439 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21440 *) ac_sed_conf_input=$configure_input;;
21441 esac
21443 case $ac_tag in
21444 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21446 esac
21448 esac
21450 ac_dir=`$as_dirname -- "$ac_file" ||
21451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21452 X"$ac_file" : 'X\(//\)[^/]' \| \
21453 X"$ac_file" : 'X\(//\)$' \| \
21454 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21455 $as_echo X"$ac_file" |
21456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21457 s//\1/
21460 /^X\(\/\/\)[^/].*/{
21461 s//\1/
21464 /^X\(\/\/\)$/{
21465 s//\1/
21468 /^X\(\/\).*/{
21469 s//\1/
21472 s/.*/./; q'`
21473 as_dir="$ac_dir"; as_fn_mkdir_p
21474 ac_builddir=.
21476 case "$ac_dir" in
21477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21480 # A ".." for each directory in $ac_dir_suffix.
21481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21482 case $ac_top_builddir_sub in
21483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21485 esac ;;
21486 esac
21487 ac_abs_top_builddir=$ac_pwd
21488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21489 # for backward compatibility:
21490 ac_top_builddir=$ac_top_build_prefix
21492 case $srcdir in
21493 .) # We are building in place.
21494 ac_srcdir=.
21495 ac_top_srcdir=$ac_top_builddir_sub
21496 ac_abs_top_srcdir=$ac_pwd ;;
21497 [\\/]* | ?:[\\/]* ) # Absolute name.
21498 ac_srcdir=$srcdir$ac_dir_suffix;
21499 ac_top_srcdir=$srcdir
21500 ac_abs_top_srcdir=$srcdir ;;
21501 *) # Relative name.
21502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21503 ac_top_srcdir=$ac_top_build_prefix$srcdir
21504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21505 esac
21506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21509 case $ac_mode in
21512 # CONFIG_FILE
21515 case $INSTALL in
21516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21517 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21518 esac
21519 ac_MKDIR_P=$MKDIR_P
21520 case $MKDIR_P in
21521 [\\/$]* | ?:[\\/]* ) ;;
21522 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21523 esac
21524 _ACEOF
21526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21527 # If the template does not know about datarootdir, expand it.
21528 # FIXME: This hack should be removed a few years after 2.60.
21529 ac_datarootdir_hack=; ac_datarootdir_seen=
21530 ac_sed_dataroot='
21531 /datarootdir/ {
21535 /@datadir@/p
21536 /@docdir@/p
21537 /@infodir@/p
21538 /@localedir@/p
21539 /@mandir@/p'
21540 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21541 *datarootdir*) ac_datarootdir_seen=yes;;
21542 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21544 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21545 _ACEOF
21546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21547 ac_datarootdir_hack='
21548 s&@datadir@&$datadir&g
21549 s&@docdir@&$docdir&g
21550 s&@infodir@&$infodir&g
21551 s&@localedir@&$localedir&g
21552 s&@mandir@&$mandir&g
21553 s&\\\${datarootdir}&$datarootdir&g' ;;
21554 esac
21555 _ACEOF
21557 # Neutralize VPATH when `$srcdir' = `.'.
21558 # Shell code in configure.ac might set extrasub.
21559 # FIXME: do we really want to maintain this feature?
21560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21561 ac_sed_extra="$ac_vpsub
21562 $extrasub
21563 _ACEOF
21564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21567 s|@configure_input@|$ac_sed_conf_input|;t t
21568 s&@top_builddir@&$ac_top_builddir_sub&;t t
21569 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21570 s&@srcdir@&$ac_srcdir&;t t
21571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21572 s&@top_srcdir@&$ac_top_srcdir&;t t
21573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21574 s&@builddir@&$ac_builddir&;t t
21575 s&@abs_builddir@&$ac_abs_builddir&;t t
21576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21577 s&@INSTALL@&$ac_INSTALL&;t t
21578 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21579 $ac_datarootdir_hack
21581 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21582 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21585 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21587 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21589 which seems to be undefined. Please make sure it is defined" >&5
21590 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21591 which seems to be undefined. Please make sure it is defined" >&2;}
21593 rm -f "$ac_tmp/stdin"
21594 case $ac_file in
21595 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21596 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21597 esac \
21598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21602 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21603 $as_echo "$as_me: executing $ac_file commands" >&6;}
21605 esac
21608 case $ac_file$ac_mode in
21609 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21610 # Older Autoconf quotes --file arguments for eval, but not when files
21611 # are listed without --file. Let's play safe and only enable the eval
21612 # if we detect the quoting.
21613 case $CONFIG_FILES in
21614 *\'*) eval set x "$CONFIG_FILES" ;;
21615 *) set x $CONFIG_FILES ;;
21616 esac
21617 shift
21618 for mf
21620 # Strip MF so we end up with the name of the file.
21621 mf=`echo "$mf" | sed -e 's/:.*$//'`
21622 # Check whether this is an Automake generated Makefile or not.
21623 # We used to match only the files named 'Makefile.in', but
21624 # some people rename them; so instead we look at the file content.
21625 # Grep'ing the first line is not enough: some people post-process
21626 # each Makefile.in and add a new line on top of each file to say so.
21627 # Grep'ing the whole file is not good either: AIX grep has a line
21628 # limit of 2048, but all sed's we know have understand at least 4000.
21629 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21630 dirpart=`$as_dirname -- "$mf" ||
21631 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21632 X"$mf" : 'X\(//\)[^/]' \| \
21633 X"$mf" : 'X\(//\)$' \| \
21634 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21635 $as_echo X"$mf" |
21636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21637 s//\1/
21640 /^X\(\/\/\)[^/].*/{
21641 s//\1/
21644 /^X\(\/\/\)$/{
21645 s//\1/
21648 /^X\(\/\).*/{
21649 s//\1/
21652 s/.*/./; q'`
21653 else
21654 continue
21656 # Extract the definition of DEPDIR, am__include, and am__quote
21657 # from the Makefile without running 'make'.
21658 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21659 test -z "$DEPDIR" && continue
21660 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21661 test -z "$am__include" && continue
21662 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21663 # Find all dependency output files, they are included files with
21664 # $(DEPDIR) in their names. We invoke sed twice because it is the
21665 # simplest approach to changing $(DEPDIR) to its actual value in the
21666 # expansion.
21667 for file in `sed -n "
21668 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21669 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21670 # Make sure the directory exists.
21671 test -f "$dirpart/$file" && continue
21672 fdir=`$as_dirname -- "$file" ||
21673 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21674 X"$file" : 'X\(//\)[^/]' \| \
21675 X"$file" : 'X\(//\)$' \| \
21676 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21677 $as_echo X"$file" |
21678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21679 s//\1/
21682 /^X\(\/\/\)[^/].*/{
21683 s//\1/
21686 /^X\(\/\/\)$/{
21687 s//\1/
21690 /^X\(\/\).*/{
21691 s//\1/
21694 s/.*/./; q'`
21695 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21696 # echo "creating $dirpart/$file"
21697 echo '# dummy' > "$dirpart/$file"
21698 done
21699 done
21702 "libtool":C)
21704 # See if we are running on zsh, and set the options that allow our
21705 # commands through without removal of \ escapes.
21706 if test -n "${ZSH_VERSION+set}"; then
21707 setopt NO_GLOB_SUBST
21710 cfgfile=${ofile}T
21711 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21712 $RM "$cfgfile"
21714 cat <<_LT_EOF >> "$cfgfile"
21715 #! $SHELL
21716 # Generated automatically by $as_me ($PACKAGE) $VERSION
21717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21718 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21720 # Provide generalized library-building support services.
21721 # Written by Gordon Matzigkeit, 1996
21723 # Copyright (C) 2014 Free Software Foundation, Inc.
21724 # This is free software; see the source for copying conditions. There is NO
21725 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21727 # GNU Libtool is free software; you can redistribute it and/or modify
21728 # it under the terms of the GNU General Public License as published by
21729 # the Free Software Foundation; either version 2 of of the License, or
21730 # (at your option) any later version.
21732 # As a special exception to the GNU General Public License, if you
21733 # distribute this file as part of a program or library that is built
21734 # using GNU Libtool, you may include this file under the same
21735 # distribution terms that you use for the rest of that program.
21737 # GNU Libtool is distributed in the hope that it will be useful, but
21738 # WITHOUT ANY WARRANTY; without even the implied warranty of
21739 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21740 # GNU General Public License for more details.
21742 # You should have received a copy of the GNU General Public License
21743 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21746 # The names of the tagged configurations supported by this script.
21747 available_tags='CXX '
21749 # Configured defaults for sys_lib_dlsearch_path munging.
21750 : \${LT_SYS_LIBRARY_PATH="$LT_SYS_LIBRARY_PATH"}
21752 # ### BEGIN LIBTOOL CONFIG
21754 # Which release of libtool.m4 was used?
21755 macro_version=$macro_version
21756 macro_revision=$macro_revision
21758 # Assembler program.
21759 AS=$lt_AS
21761 # DLL creation program.
21762 DLLTOOL=$lt_DLLTOOL
21764 # Object dumper program.
21765 OBJDUMP=$lt_OBJDUMP
21767 # Whether or not to build shared libraries.
21768 build_libtool_libs=$enable_shared
21770 # Whether or not to build static libraries.
21771 build_old_libs=$enable_static
21773 # What type of objects to build.
21774 pic_mode=$pic_mode
21776 # Whether or not to optimize for fast installation.
21777 fast_install=$enable_fast_install
21779 # Shared archive member basename,for filename based shared library versioning on AIX.
21780 shared_archive_member_spec=$shared_archive_member_spec
21782 # Shell to use when invoking shell scripts.
21783 SHELL=$lt_SHELL
21785 # An echo program that protects backslashes.
21786 ECHO=$lt_ECHO
21788 # The PATH separator for the build system.
21789 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21791 # The host system.
21792 host_alias=$host_alias
21793 host=$host
21794 host_os=$host_os
21796 # The build system.
21797 build_alias=$build_alias
21798 build=$build
21799 build_os=$build_os
21801 # A sed program that does not truncate output.
21802 SED=$lt_SED
21804 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21805 Xsed="\$SED -e 1s/^X//"
21807 # A grep program that handles long lines.
21808 GREP=$lt_GREP
21810 # An ERE matcher.
21811 EGREP=$lt_EGREP
21813 # A literal string matcher.
21814 FGREP=$lt_FGREP
21816 # A BSD- or MS-compatible name lister.
21817 NM=$lt_NM
21819 # Whether we need soft or hard links.
21820 LN_S=$lt_LN_S
21822 # What is the maximum length of a command?
21823 max_cmd_len=$max_cmd_len
21825 # Object file suffix (normally "o").
21826 objext=$ac_objext
21828 # Executable file suffix (normally "").
21829 exeext=$exeext
21831 # whether the shell understands "unset".
21832 lt_unset=$lt_unset
21834 # turn spaces into newlines.
21835 SP2NL=$lt_lt_SP2NL
21837 # turn newlines into spaces.
21838 NL2SP=$lt_lt_NL2SP
21840 # convert \$build file names to \$host format.
21841 to_host_file_cmd=$lt_cv_to_host_file_cmd
21843 # convert \$build files to toolchain format.
21844 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21846 # Method to check whether dependent libraries are shared objects.
21847 deplibs_check_method=$lt_deplibs_check_method
21849 # Command to use when deplibs_check_method = "file_magic".
21850 file_magic_cmd=$lt_file_magic_cmd
21852 # How to find potential files when deplibs_check_method = "file_magic".
21853 file_magic_glob=$lt_file_magic_glob
21855 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21856 want_nocaseglob=$lt_want_nocaseglob
21858 # Command to associate shared and link libraries.
21859 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21861 # The archiver.
21862 AR=$lt_AR
21864 # Flags to create an archive.
21865 AR_FLAGS=$lt_AR_FLAGS
21867 # How to feed a file listing to the archiver.
21868 archiver_list_spec=$lt_archiver_list_spec
21870 # A symbol stripping program.
21871 STRIP=$lt_STRIP
21873 # Commands used to install an old-style archive.
21874 RANLIB=$lt_RANLIB
21875 old_postinstall_cmds=$lt_old_postinstall_cmds
21876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21878 # Whether to use a lock for old archive extraction.
21879 lock_old_archive_extraction=$lock_old_archive_extraction
21881 # A C compiler.
21882 LTCC=$lt_CC
21884 # LTCC compiler flags.
21885 LTCFLAGS=$lt_CFLAGS
21887 # Take the output of nm and produce a listing of raw symbols and C names.
21888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21890 # Transform the output of nm in a proper C declaration.
21891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21893 # Transform the output of nm into a list of symbols to manually relocate.
21894 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21896 # Transform the output of nm in a C name address pair.
21897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21899 # Transform the output of nm in a C name address pair when lib prefix is needed.
21900 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21902 # The name lister interface.
21903 nm_interface=$lt_lt_cv_nm_interface
21905 # Specify filename containing input files for \$NM.
21906 nm_file_list_spec=$lt_nm_file_list_spec
21908 # The root where to search for dependent libraries,and where our libraries should be installed.
21909 lt_sysroot=$lt_sysroot
21911 # Command to truncate a binary pipe.
21912 lt_truncate_bin=$lt_lt_cv_truncate_bin
21914 # The name of the directory that contains temporary libtool files.
21915 objdir=$objdir
21917 # Used to examine libraries when file_magic_cmd begins with "file".
21918 MAGIC_CMD=$MAGIC_CMD
21920 # Must we lock files when doing compilation?
21921 need_locks=$lt_need_locks
21923 # Manifest tool.
21924 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21926 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21927 DSYMUTIL=$lt_DSYMUTIL
21929 # Tool to change global to local symbols on Mac OS X.
21930 NMEDIT=$lt_NMEDIT
21932 # Tool to manipulate fat objects and archives on Mac OS X.
21933 LIPO=$lt_LIPO
21935 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21936 OTOOL=$lt_OTOOL
21938 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21939 OTOOL64=$lt_OTOOL64
21941 # Old archive suffix (normally "a").
21942 libext=$libext
21944 # Shared library suffix (normally ".so").
21945 shrext_cmds=$lt_shrext_cmds
21947 # The commands to extract the exported symbol list from a shared archive.
21948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21950 # Variables whose values should be saved in libtool wrapper scripts and
21951 # restored at link time.
21952 variables_saved_for_relink=$lt_variables_saved_for_relink
21954 # Do we need the "lib" prefix for modules?
21955 need_lib_prefix=$need_lib_prefix
21957 # Do we need a version for libraries?
21958 need_version=$need_version
21960 # Library versioning type.
21961 version_type=$version_type
21963 # Shared library runtime path variable.
21964 runpath_var=$runpath_var
21966 # Shared library path variable.
21967 shlibpath_var=$shlibpath_var
21969 # Is shlibpath searched before the hard-coded library search path?
21970 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21972 # Format of library name prefix.
21973 libname_spec=$lt_libname_spec
21975 # List of archive names. First name is the real one, the rest are links.
21976 # The last name is the one that the linker finds with -lNAME
21977 library_names_spec=$lt_library_names_spec
21979 # The coded name of the library, if different from the real name.
21980 soname_spec=$lt_soname_spec
21982 # Permission mode override for installation of shared libraries.
21983 install_override_mode=$lt_install_override_mode
21985 # Command to use after installation of a shared archive.
21986 postinstall_cmds=$lt_postinstall_cmds
21988 # Command to use after uninstallation of a shared archive.
21989 postuninstall_cmds=$lt_postuninstall_cmds
21991 # Commands used to finish a libtool library installation in a directory.
21992 finish_cmds=$lt_finish_cmds
21994 # As "finish_cmds", except a single script fragment to be evaled but
21995 # not shown.
21996 finish_eval=$lt_finish_eval
21998 # Whether we should hardcode library paths into libraries.
21999 hardcode_into_libs=$hardcode_into_libs
22001 # Compile-time system search path for libraries.
22002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22004 # Run-time system search path for libraries.
22005 sys_lib_dlsearch_path_spec=$lt_lt_cv_sys_lib_dlsearch_path_spec
22007 # Whether dlopen is supported.
22008 dlopen_support=$enable_dlopen
22010 # Whether dlopen of programs is supported.
22011 dlopen_self=$enable_dlopen_self
22013 # Whether dlopen of statically linked programs is supported.
22014 dlopen_self_static=$enable_dlopen_self_static
22016 # Commands to strip libraries.
22017 old_striplib=$lt_old_striplib
22018 striplib=$lt_striplib
22021 # The linker used to build libraries.
22022 LD=$lt_LD
22024 # How to create reloadable object files.
22025 reload_flag=$lt_reload_flag
22026 reload_cmds=$lt_reload_cmds
22028 # Commands used to build an old-style archive.
22029 old_archive_cmds=$lt_old_archive_cmds
22031 # A language specific compiler.
22032 CC=$lt_compiler
22034 # Is the compiler the GNU compiler?
22035 with_gcc=$GCC
22037 # Compiler flag to turn off builtin functions.
22038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22040 # Additional compiler flags for building library objects.
22041 pic_flag=$lt_lt_prog_compiler_pic
22043 # How to pass a linker flag through the compiler.
22044 wl=$lt_lt_prog_compiler_wl
22046 # Compiler flag to prevent dynamic linking.
22047 link_static_flag=$lt_lt_prog_compiler_static
22049 # Does compiler simultaneously support -c and -o options?
22050 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22052 # Whether or not to add -lc for building shared libraries.
22053 build_libtool_need_lc=$archive_cmds_need_lc
22055 # Whether or not to disallow shared libs when runtime libs are static.
22056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22058 # Compiler flag to allow reflexive dlopens.
22059 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22061 # Compiler flag to generate shared objects directly from archives.
22062 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22064 # Whether the compiler copes with passing no objects directly.
22065 compiler_needs_object=$lt_compiler_needs_object
22067 # Create an old-style archive from a shared archive.
22068 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22070 # Create a temporary old-style archive to link instead of a shared archive.
22071 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22073 # Commands used to build a shared archive.
22074 archive_cmds=$lt_archive_cmds
22075 archive_expsym_cmds=$lt_archive_expsym_cmds
22077 # Commands used to build a loadable module if different from building
22078 # a shared archive.
22079 module_cmds=$lt_module_cmds
22080 module_expsym_cmds=$lt_module_expsym_cmds
22082 # Whether we are building with GNU ld or not.
22083 with_gnu_ld=$lt_with_gnu_ld
22085 # Flag that allows shared libraries with undefined symbols to be built.
22086 allow_undefined_flag=$lt_allow_undefined_flag
22088 # Flag that enforces no undefined symbols.
22089 no_undefined_flag=$lt_no_undefined_flag
22091 # Flag to hardcode \$libdir into a binary during linking.
22092 # This must work even if \$libdir does not exist
22093 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22095 # Whether we need a single "-rpath" flag with a separated argument.
22096 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22098 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22099 # DIR into the resulting binary.
22100 hardcode_direct=$hardcode_direct
22102 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22103 # DIR into the resulting binary and the resulting library dependency is
22104 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22105 # library is relocated.
22106 hardcode_direct_absolute=$hardcode_direct_absolute
22108 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22109 # into the resulting binary.
22110 hardcode_minus_L=$hardcode_minus_L
22112 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22113 # into the resulting binary.
22114 hardcode_shlibpath_var=$hardcode_shlibpath_var
22116 # Set to "yes" if building a shared library automatically hardcodes DIR
22117 # into the library and all subsequent libraries and executables linked
22118 # against it.
22119 hardcode_automatic=$hardcode_automatic
22121 # Set to yes if linker adds runtime paths of dependent libraries
22122 # to runtime path list.
22123 inherit_rpath=$inherit_rpath
22125 # Whether libtool must link a program against all its dependency libraries.
22126 link_all_deplibs=$link_all_deplibs
22128 # Set to "yes" if exported symbols are required.
22129 always_export_symbols=$always_export_symbols
22131 # The commands to list exported symbols.
22132 export_symbols_cmds=$lt_export_symbols_cmds
22134 # Symbols that should not be listed in the preloaded symbols.
22135 exclude_expsyms=$lt_exclude_expsyms
22137 # Symbols that must always be exported.
22138 include_expsyms=$lt_include_expsyms
22140 # Commands necessary for linking programs (against libraries) with templates.
22141 prelink_cmds=$lt_prelink_cmds
22143 # Commands necessary for finishing linking programs.
22144 postlink_cmds=$lt_postlink_cmds
22146 # Specify filename containing input files.
22147 file_list_spec=$lt_file_list_spec
22149 # How to hardcode a shared library path into an executable.
22150 hardcode_action=$hardcode_action
22152 # The directories searched by this compiler when creating a shared library.
22153 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22155 # Dependencies to place before and after the objects being linked to
22156 # create a shared library.
22157 predep_objects=$lt_predep_objects
22158 postdep_objects=$lt_postdep_objects
22159 predeps=$lt_predeps
22160 postdeps=$lt_postdeps
22162 # The library search path used internally by the compiler when linking
22163 # a shared library.
22164 compiler_lib_search_path=$lt_compiler_lib_search_path
22166 # ### END LIBTOOL CONFIG
22168 _LT_EOF
22170 cat <<'_LT_EOF' >> "$cfgfile"
22171 ## -------------------------------------- ##
22172 ## Shell functions shared with configure. ##
22173 ## -------------------------------------- ##
22175 # func_munge_path_list VARIABLE PATH
22176 # -----------------------------------
22177 # VARIABLE is name of variable containing _space_ separated list of
22178 # directories to be munged by the contents of PATH, which is string
22179 # having a format:
22180 # "DIR[:DIR]:"
22181 # string "DIR[ DIR]" will be prepended to VARIABLE
22182 # ":DIR[:DIR]"
22183 # string "DIR[ DIR]" will be appended to VARIABLE
22184 # "DIRP[:DIRP]::[DIRA:]DIRA"
22185 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22186 # "DIRA[ DIRA]" will be appended to VARIABLE
22187 # "DIR[:DIR]"
22188 # VARIABLE will be replaced by "DIR[ DIR]"
22189 func_munge_path_list ()
22191 case x$2 in
22195 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \S|@1\"
22197 x:*)
22198 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22200 *::*)
22201 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22202 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22205 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22207 esac
22211 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22212 func_cc_basename ()
22214 for cc_temp in $*""; do
22215 case $cc_temp in
22216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22218 \-*) ;;
22219 *) break;;
22220 esac
22221 done
22222 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22226 _LT_EOF
22228 case $host_os in
22229 aix3*)
22230 cat <<\_LT_EOF >> "$cfgfile"
22231 # AIX sometimes has problems with the GCC collect2 program. For some
22232 # reason, if we set the COLLECT_NAMES environment variable, the problems
22233 # vanish in a puff of smoke.
22234 if test set != "${COLLECT_NAMES+set}"; then
22235 COLLECT_NAMES=
22236 export COLLECT_NAMES
22238 _LT_EOF
22240 esac
22243 ltmain=$ac_aux_dir/ltmain.sh
22246 # We use sed instead of cat because bash on DJGPP gets confused if
22247 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22248 # text mode, it properly converts lines to CR/LF. This bash problem
22249 # is reportedly fixed, but why not run on old versions too?
22250 sed '$q' "$ltmain" >> "$cfgfile" \
22251 || (rm -f "$cfgfile"; exit 1)
22253 mv -f "$cfgfile" "$ofile" ||
22254 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22255 chmod +x "$ofile"
22258 cat <<_LT_EOF >> "$ofile"
22260 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22262 # The linker used to build libraries.
22263 LD=$lt_LD_CXX
22265 # How to create reloadable object files.
22266 reload_flag=$lt_reload_flag_CXX
22267 reload_cmds=$lt_reload_cmds_CXX
22269 # Commands used to build an old-style archive.
22270 old_archive_cmds=$lt_old_archive_cmds_CXX
22272 # A language specific compiler.
22273 CC=$lt_compiler_CXX
22275 # Is the compiler the GNU compiler?
22276 with_gcc=$GCC_CXX
22278 # Compiler flag to turn off builtin functions.
22279 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22281 # Additional compiler flags for building library objects.
22282 pic_flag=$lt_lt_prog_compiler_pic_CXX
22284 # How to pass a linker flag through the compiler.
22285 wl=$lt_lt_prog_compiler_wl_CXX
22287 # Compiler flag to prevent dynamic linking.
22288 link_static_flag=$lt_lt_prog_compiler_static_CXX
22290 # Does compiler simultaneously support -c and -o options?
22291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22293 # Whether or not to add -lc for building shared libraries.
22294 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22296 # Whether or not to disallow shared libs when runtime libs are static.
22297 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22299 # Compiler flag to allow reflexive dlopens.
22300 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22302 # Compiler flag to generate shared objects directly from archives.
22303 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22305 # Whether the compiler copes with passing no objects directly.
22306 compiler_needs_object=$lt_compiler_needs_object_CXX
22308 # Create an old-style archive from a shared archive.
22309 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22311 # Create a temporary old-style archive to link instead of a shared archive.
22312 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22314 # Commands used to build a shared archive.
22315 archive_cmds=$lt_archive_cmds_CXX
22316 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22318 # Commands used to build a loadable module if different from building
22319 # a shared archive.
22320 module_cmds=$lt_module_cmds_CXX
22321 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22323 # Whether we are building with GNU ld or not.
22324 with_gnu_ld=$lt_with_gnu_ld_CXX
22326 # Flag that allows shared libraries with undefined symbols to be built.
22327 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22329 # Flag that enforces no undefined symbols.
22330 no_undefined_flag=$lt_no_undefined_flag_CXX
22332 # Flag to hardcode \$libdir into a binary during linking.
22333 # This must work even if \$libdir does not exist
22334 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22336 # Whether we need a single "-rpath" flag with a separated argument.
22337 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22339 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22340 # DIR into the resulting binary.
22341 hardcode_direct=$hardcode_direct_CXX
22343 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22344 # DIR into the resulting binary and the resulting library dependency is
22345 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22346 # library is relocated.
22347 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22349 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22350 # into the resulting binary.
22351 hardcode_minus_L=$hardcode_minus_L_CXX
22353 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22354 # into the resulting binary.
22355 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22357 # Set to "yes" if building a shared library automatically hardcodes DIR
22358 # into the library and all subsequent libraries and executables linked
22359 # against it.
22360 hardcode_automatic=$hardcode_automatic_CXX
22362 # Set to yes if linker adds runtime paths of dependent libraries
22363 # to runtime path list.
22364 inherit_rpath=$inherit_rpath_CXX
22366 # Whether libtool must link a program against all its dependency libraries.
22367 link_all_deplibs=$link_all_deplibs_CXX
22369 # Set to "yes" if exported symbols are required.
22370 always_export_symbols=$always_export_symbols_CXX
22372 # The commands to list exported symbols.
22373 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22375 # Symbols that should not be listed in the preloaded symbols.
22376 exclude_expsyms=$lt_exclude_expsyms_CXX
22378 # Symbols that must always be exported.
22379 include_expsyms=$lt_include_expsyms_CXX
22381 # Commands necessary for linking programs (against libraries) with templates.
22382 prelink_cmds=$lt_prelink_cmds_CXX
22384 # Commands necessary for finishing linking programs.
22385 postlink_cmds=$lt_postlink_cmds_CXX
22387 # Specify filename containing input files.
22388 file_list_spec=$lt_file_list_spec_CXX
22390 # How to hardcode a shared library path into an executable.
22391 hardcode_action=$hardcode_action_CXX
22393 # The directories searched by this compiler when creating a shared library.
22394 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22396 # Dependencies to place before and after the objects being linked to
22397 # create a shared library.
22398 predep_objects=$lt_predep_objects_CXX
22399 postdep_objects=$lt_postdep_objects_CXX
22400 predeps=$lt_predeps_CXX
22401 postdeps=$lt_postdeps_CXX
22403 # The library search path used internally by the compiler when linking
22404 # a shared library.
22405 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22407 # ### END LIBTOOL TAG CONFIG: CXX
22408 _LT_EOF
22410 ## KPSE_LT_HACK: Prevent libtool from linking dependency_libs
22411 if test "x$enable_libtool_hack" = xyes; then
22412 $SED '/# Convert "-framework/i\
22413 ## KPSE_LT_HACK: ignore dependency_libs\
22414 test "X$installed" = Xyes && dependency_libs=\
22415 ' "$ofile" >"$cfgfile"
22416 mv "$cfgfile" "$ofile" ||
22417 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22418 chmod +x "$ofile"
22422 esac
22423 done # for ac_tag
22426 as_fn_exit 0
22427 _ACEOF
22428 ac_clean_files=$ac_clean_files_save
22430 test $ac_write_fail = 0 ||
22431 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22434 # configure is writing to config.log, and then calls config.status.
22435 # config.status does its own redirection, appending to config.log.
22436 # Unfortunately, on DOS this fails, as config.log is still kept open
22437 # by configure, so config.status won't be able to write to it; its
22438 # output is simply discarded. So we exec the FD to /dev/null,
22439 # effectively closing config.log, so it can be properly (re)opened and
22440 # appended to by config.status. When coming back to configure, we
22441 # need to make the FD available again.
22442 if test "$no_create" != yes; then
22443 ac_cs_success=:
22444 ac_config_status_args=
22445 test "$silent" = yes &&
22446 ac_config_status_args="$ac_config_status_args --quiet"
22447 exec 5>/dev/null
22448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22449 exec 5>>config.log
22450 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22451 # would make configure fail if this is the last instruction.
22452 $ac_cs_success || as_fn_exit 1
22456 # CONFIG_SUBDIRS section.
22458 if test "$no_recursion" != yes; then
22460 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22461 # so they do not pile up.
22462 ac_sub_configure_args=
22463 ac_prev=
22464 eval "set x $ac_configure_args"
22465 shift
22466 for ac_arg
22468 if test -n "$ac_prev"; then
22469 ac_prev=
22470 continue
22472 case $ac_arg in
22473 -cache-file | --cache-file | --cache-fil | --cache-fi \
22474 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22475 ac_prev=cache_file ;;
22476 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22477 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22478 | --c=*)
22480 --config-cache | -C)
22482 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22483 ac_prev=srcdir ;;
22484 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22487 ac_prev=prefix ;;
22488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22490 --disable-option-checking)
22493 case $ac_arg in
22494 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22495 esac
22496 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
22497 esac
22498 done
22500 # Always prepend --prefix to ensure using the same prefix
22501 # in subdir configurations.
22502 ac_arg="--prefix=$prefix"
22503 case $ac_arg in
22504 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22505 esac
22506 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22508 # Pass --silent
22509 if test "$silent" = yes; then
22510 ac_sub_configure_args="--silent $ac_sub_configure_args"
22513 # Always prepend --disable-option-checking to silence warnings, since
22514 # different subdirs can have different --enable and --with options.
22515 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22517 ac_popdir=`pwd`
22518 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22520 # Do not complain, so a configure script can configure whichever
22521 # parts of a large source tree are present.
22522 test -d "$srcdir/$ac_dir" || continue
22524 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22525 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
22526 $as_echo "$ac_msg" >&6
22527 as_dir="$ac_dir"; as_fn_mkdir_p
22528 ac_builddir=.
22530 case "$ac_dir" in
22531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22534 # A ".." for each directory in $ac_dir_suffix.
22535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22536 case $ac_top_builddir_sub in
22537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22539 esac ;;
22540 esac
22541 ac_abs_top_builddir=$ac_pwd
22542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22543 # for backward compatibility:
22544 ac_top_builddir=$ac_top_build_prefix
22546 case $srcdir in
22547 .) # We are building in place.
22548 ac_srcdir=.
22549 ac_top_srcdir=$ac_top_builddir_sub
22550 ac_abs_top_srcdir=$ac_pwd ;;
22551 [\\/]* | ?:[\\/]* ) # Absolute name.
22552 ac_srcdir=$srcdir$ac_dir_suffix;
22553 ac_top_srcdir=$srcdir
22554 ac_abs_top_srcdir=$srcdir ;;
22555 *) # Relative name.
22556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22557 ac_top_srcdir=$ac_top_build_prefix$srcdir
22558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22559 esac
22560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22563 cd "$ac_dir"
22565 # Check for guested configure; otherwise get Cygnus style configure.
22566 if test -f "$ac_srcdir/configure.gnu"; then
22567 ac_sub_configure=$ac_srcdir/configure.gnu
22568 elif test -f "$ac_srcdir/configure"; then
22569 ac_sub_configure=$ac_srcdir/configure
22570 elif test -f "$ac_srcdir/configure.in"; then
22571 # This should be Cygnus configure.
22572 ac_sub_configure=$ac_aux_dir/configure
22573 else
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
22575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22576 ac_sub_configure=
22579 # The recursion is here.
22580 if test -n "$ac_sub_configure"; then
22581 # Make the cache file name correct relative to the subdirectory.
22582 case $cache_file in
22583 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22584 *) # Relative name.
22585 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22586 esac
22588 { $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
22589 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22590 # The eval makes quoting arguments work.
22591 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22592 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22593 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
22596 cd "$ac_popdir"
22597 done
22599 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22601 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22605 if test -z "$kpse_GNU_make"; then
22606 if test "x$enable_native_texlive_build" = xno; then
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building TeX Live may require GNU make" >&5
22608 $as_echo "$as_me: WARNING: Building TeX Live may require GNU make" >&2;}
22609 else
22610 as_fn_error $? "Building TeX Live requires GNU make" "$LINENO" 5
22614 if test "x$cross_compiling" = xyes; then :
22615 msg_compiling="cross-compiling on $build_alias for $host_alias"
22616 else
22617 msg_compiling="compiling for $kpse_build_alias"
22619 kpse_bld=`pwd`
22620 kpse_src=`cd "$srcdir" && pwd`
22621 msg_compiling="$msg_compiling
22622 in $kpse_bld"
22623 test "x$srcdir" = x. || msg_compiling="$msg_compiling
22624 from sources in $kpse_src"
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22626 ** Configuration summary for $PACKAGE_STRING (2015/dev$with_banner_add):
22628 $msg_compiling" >&5
22629 $as_echo "
22630 ** Configuration summary for $PACKAGE_STRING (2015/dev$with_banner_add):
22632 $msg_compiling" >&6; }
22633 case $kpse_src$kpse_bld in
22634 *' '*) as_fn_error $? "Absolute source and/or build path with embedded spaces" "$LINENO" 5;;
22635 esac
22637 cc_version=`$CC --version 2>/dev/null | sed 1q`
22638 test -n "$cc_version" && cc_version=" ($cc_version)"
22640 cxx_version=`$CXX --version 2>/dev/null | sed 1q`
22641 test -n "$cxx_version" && cxx_version=" ($cxx_version)"
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22644 C compiler (CC): $CC$cc_version
22645 C++ compiler (CXX): $CXX$cxx_version
22646 PATH: $PATH
22648 enable_native_texlive_build: $enable_native_texlive_build
22649 enable_largefile: $enable_largefile
22650 enable_shared: $enable_shared
22651 enable_multiplatform: $enable_multiplatform
22652 enable_cxx_runtime_hack: $enable_cxx_runtime_hack
22653 enable_libtool_hack: $enable_libtool_hack
22654 enable_compiler_warnings: $enable_compiler_warnings
22656 prefix: $prefix
22657 includedir: $includedir
22658 datarootdir: $datarootdir
22659 mandir: $mandir
22660 infodir: $infodir
22661 exec_prefix: $exec_prefix
22662 bindir: $bindir
22663 libdir: $libdir
22665 ** Next run \`make' to configure and build each library and program.
22666 " >&5
22667 $as_echo "
22668 C compiler (CC): $CC$cc_version
22669 C++ compiler (CXX): $CXX$cxx_version
22670 PATH: $PATH
22672 enable_native_texlive_build: $enable_native_texlive_build
22673 enable_largefile: $enable_largefile
22674 enable_shared: $enable_shared
22675 enable_multiplatform: $enable_multiplatform
22676 enable_cxx_runtime_hack: $enable_cxx_runtime_hack
22677 enable_libtool_hack: $enable_libtool_hack
22678 enable_compiler_warnings: $enable_compiler_warnings
22680 prefix: $prefix
22681 includedir: $includedir
22682 datarootdir: $datarootdir
22683 mandir: $mandir
22684 infodir: $infodir
22685 exec_prefix: $exec_prefix
22686 bindir: $bindir
22687 libdir: $libdir
22689 ** Next run \`make' to configure and build each library and program.
22690 " >&6; }