Debian Codegraph @

libs/lua53/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for lua53 (TeX Live) 5.3.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
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
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and [email protected]
282 $0: about your system, including any error possibly output
283 $0: before this message. Then install a modern shell, or
284 $0: manually run the script under such a shell if you do
285 $0: have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='lua53 (TeX Live)'
616 PACKAGE_TARNAME='lua53--tex-live-'
617 PACKAGE_VERSION='5.3.6'
618 PACKAGE_STRING='lua53 (TeX Live) 5.3.6'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="lua53-src/src/lua.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 LUA53_TREE
661 LUA53_DEFINES
662 build_FALSE
663 build_TRUE
664 LT_SYS_LIBRARY_PATH
665 OTOOL64
666 OTOOL
667 LIPO
668 NMEDIT
669 DSYMUTIL
670 MANIFEST_TOOL
671 ac_ct_AR
672 AR
673 FILECMD
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 LIBTOOL
691 OBJDUMP
692 DLLTOOL
693 AS
694 LUA53_LT_VERSINFO
695 LUA53VERSION
696 LN_S
697 RANLIB
698 WARNING_CFLAGS
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 MAINT
716 MAINTAINER_MODE_FALSE
717 MAINTAINER_MODE_TRUE
718 am__xargs_n
719 am__rm_f_notfound
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 CSCOPE
725 ETAGS
726 CTAGS
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
732 AWK
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 runstatedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL
789 am__quote'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_silent_rules
794 enable_maintainer_mode
795 enable_dependency_tracking
796 enable_compiler_warnings
797 enable_shared
798 enable_static
799 enable_pic
800 with_pic
801 enable_fast_install
802 enable_aix_soname
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 enable_largefile
808 enable_year2038
809 '
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 LT_SYS_LIBRARY_PATH'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 runstatedir='${localstatedir}/run'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
915
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: '$ac_useropt'"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
948
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: '$ac_useropt'"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
964
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
973
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
977
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
984
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
989
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
995
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1002
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1007
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1012
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1019
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1024
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1031
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1036
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1040
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1044
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1048
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1057
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1062
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1069
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1076
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1093
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1098
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1103
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1107
1108 -runstatedir | --runstatedir | --runstatedi | --runstated \
1109 | --runstate | --runstat | --runsta | --runst | --runs \
1110 | --run | --ru | --r)
1111 ac_prev=runstatedir ;;
1112 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1113 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1114 | --run=* | --ru=* | --r=*)
1115 runstatedir=$ac_optarg ;;
1116
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1122
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1133
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1138
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1143
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1150
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1155
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1158
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1161
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: '$ac_useropt'"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1177
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: '$ac_useropt'"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1193
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1197
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1204
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1211
1212 -*) as_fn_error $? "unrecognized option: '$ac_option'
1213 Try '$0 --help' for more information"
1214 ;;
1215
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1225
1226 *)
1227 # FIXME: should be removed in autoconf 3.0.
1228 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232 ;;
1233
1234 esac
1235 done
1236
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1240 fi
1241
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1248 fi
1249
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir runstatedir
1255 do
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1270
1271 # There might be people who depend on the old broken behavior: '$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1277
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285 fi
1286
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290 test "$silent" = yes && exec 6>/dev/null
1291
1292
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 printf "%s\n" X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1331 fi
1332 else
1333 ac_srcdir_defaulted=no
1334 fi
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 fi
1339 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1346 fi
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1359
1360 #
1361 # Report the --help message.
1362 #
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1366 cat <<_ACEOF
1367 'configure' configures lua53 (TeX Live) 5.3.6 to adapt to many kinds of systems.
1368
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1373
1374 Defaults for the options are specified in brackets.
1375
1376 Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print 'checking ...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for '--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or '..']
1386
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 [PREFIX]
1392
1393 By default, 'make install' will install all the files in
1394 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than '$ac_default_prefix' using '--prefix',
1396 for instance '--prefix=\$HOME'.
1397
1398 For better control, use the options below.
1399
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root
1417 [DATAROOTDIR/doc/lua53--tex-live-]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of lua53 (TeX Live) 5.3.6:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-maintainer-mode
1450 enable make rules and dependencies not useful (and
1451 sometimes confusing) to the casual installer
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --enable-compiler-warnings=[no|min|yes|max|all]
1457 Turn on compiler warnings [default: yes if
1458 maintainer-mode, min otherwise]
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1462 both]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --enable-aix-soname=aix|svr4|both
1466 shared library versioning (aka "SONAME") variant to
1467 provide on AIX, [default=aix].
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --disable-largefile omit support for large files
1470 --enable-year2038 support timestamps after 2038
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1477 compiler's sysroot if not specified).
1478
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 LT_SYS_LIBRARY_PATH
1488 User-defined run-time library search path.
1489
1490 Use these variables to override the choices made by 'configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to <[email protected]>.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for configure.gnu first; this name is used for a wrapper for
1540 # Metaconfig's "Configure" on case-insensitive file systems.
1541 if test -f "$ac_srcdir/configure.gnu"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544 elif test -f "$ac_srcdir/configure"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure" --help=recursive
1547 else
1548 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 fi || ac_status=$?
1550 cd "$ac_pwd" || { ac_status=$?; break; }
1551 done
1552 fi
1553
1554 test -n "$ac_init_help" && exit $ac_status
1555 if $ac_init_version; then
1556 cat <<\_ACEOF
1557 lua53 (TeX Live) configure 5.3.6
1558 generated by GNU Autoconf 2.72
1559
1560 Copyright (C) 2023 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563 _ACEOF
1564 exit
1565 fi
1566
1567 ## ------------------------ ##
1568 ## Autoconf initialization. ##
1569 ## ------------------------ ##
1570
1571 # ac_fn_c_try_compile LINENO
1572 # --------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_compile ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest.beam
1578 if { { ac_try="$ac_compile"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 printf "%s\n" "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext
1597 then :
1598 ac_retval=0
1599 else case e in #(
1600 e) printf "%s\n" "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1 ;;
1604 esac
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612 # -------------------------------------------------------
1613 # Tests whether HEADER exists and can be compiled using the include files in
1614 # INCLUDES, setting the cache variable VAR accordingly.
1615 ac_fn_c_check_header_compile ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 printf %s "checking for $2... " >&6; }
1620 if eval test \${$3+y}
1621 then :
1622 printf %s "(cached) " >&6
1623 else case e in #(
1624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 $4
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"
1630 then :
1631 eval "$3=yes"
1632 else case e in #(
1633 e) eval "$3=no" ;;
1634 esac
1635 fi
1636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1637 esac
1638 fi
1639 eval ac_res=\$$3
1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 printf "%s\n" "$ac_res" >&6; }
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_c_check_header_compile
1645
1646 # ac_fn_c_try_link LINENO
1647 # -----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_link ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 printf "%s\n" "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
1673 test -x conftest$ac_exeext
1674 }
1675 then :
1676 ac_retval=0
1677 else case e in #(
1678 e) printf "%s\n" "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1 ;;
1682 esac
1683 fi
1684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686 # interfere with the next link command; also delete a directory that is
1687 # left behind by Apple's compiler. We do this before executing the actions.
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_link
1693
1694 # ac_fn_c_check_func LINENO FUNC VAR
1695 # ----------------------------------
1696 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1697 ac_fn_c_check_func ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 printf %s "checking for $2... " >&6; }
1702 if eval test \${$3+y}
1703 then :
1704 printf %s "(cached) " >&6
1705 else case e in #(
1706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1710 #define $2 innocuous_$2
1711
1712 /* System header to define __stub macros and hopefully few prototypes,
1713 which can conflict with char $2 (void); below. */
1714
1715 #include <limits.h>
1716 #undef $2
1717
1718 /* Override any GCC internal prototype to avoid an error.
1719 Use char because int might match the return type of a GCC
1720 builtin and then its argument prototype would still apply. */
1721 #ifdef __cplusplus
1722 extern "C"
1723 #endif
1724 char $2 (void);
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined __stub_$2 || defined __stub___$2
1729 choke me
1730 #endif
1731
1732 int
1733 main (void)
1734 {
1735 return $2 ();
1736 ;
1737 return 0;
1738 }
1739 _ACEOF
1740 if ac_fn_c_try_link "$LINENO"
1741 then :
1742 eval "$3=yes"
1743 else case e in #(
1744 e) eval "$3=no" ;;
1745 esac
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1748 conftest$ac_exeext conftest.$ac_ext ;;
1749 esac
1750 fi
1751 eval ac_res=\$$3
1752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 printf "%s\n" "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756 } # ac_fn_c_check_func
1757
1758 # ac_fn_c_try_run LINENO
1759 # ----------------------
1760 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1761 # executables *can* be run.
1762 ac_fn_c_try_run ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 printf "%s\n" "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>&5
1773 ac_status=$?
1774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776 { { case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 printf "%s\n" "$ac_try_echo"; } >&5
1782 (eval "$ac_try") 2>&5
1783 ac_status=$?
1784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; }; }
1786 then :
1787 ac_retval=0
1788 else case e in #(
1789 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1790 printf "%s\n" "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=$ac_status ;;
1794 esac
1795 fi
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_run
1801
1802 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1803 # --------------------------------------------
1804 # Tries to find the compile-time value of EXPR in a program that includes
1805 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1806 # computed
1807 ac_fn_c_compute_int ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if test "$cross_compiling" = yes; then
1811 # Depending upon the size, compute the lo and hi bounds.
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 $4
1815 int
1816 main (void)
1817 {
1818 static int test_array [1 - 2 * !(($2) >= 0)];
1819 test_array [0] = 0;
1820 return test_array [0];
1821
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"
1827 then :
1828 ac_lo=0 ac_mid=0
1829 while :; do
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 $4
1833 int
1834 main (void)
1835 {
1836 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1837 test_array [0] = 0;
1838 return test_array [0];
1839
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"
1845 then :
1846 ac_hi=$ac_mid; break
1847 else case e in #(
1848 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1849 if test $ac_lo -le $ac_mid; then
1850 ac_lo= ac_hi=
1851 break
1852 fi
1853 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1854 esac
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1857 done
1858 else case e in #(
1859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 int
1863 main (void)
1864 {
1865 static int test_array [1 - 2 * !(($2) < 0)];
1866 test_array [0] = 0;
1867 return test_array [0];
1868
1869 ;
1870 return 0;
1871 }
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"
1874 then :
1875 ac_hi=-1 ac_mid=-1
1876 while :; do
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 $4
1880 int
1881 main (void)
1882 {
1883 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1884 test_array [0] = 0;
1885 return test_array [0];
1886
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"
1892 then :
1893 ac_lo=$ac_mid; break
1894 else case e in #(
1895 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1896 if test $ac_mid -le $ac_hi; then
1897 ac_lo= ac_hi=
1898 break
1899 fi
1900 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1901 esac
1902 fi
1903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1904 done
1905 else case e in #(
1906 e) ac_lo= ac_hi= ;;
1907 esac
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1910 esac
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1913 # Binary search between lo and hi bounds.
1914 while test "x$ac_lo" != "x$ac_hi"; do
1915 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main (void)
1921 {
1922 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1923 test_array [0] = 0;
1924 return test_array [0];
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"
1931 then :
1932 ac_hi=$ac_mid
1933 else case e in #(
1934 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
1935 esac
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1938 done
1939 case $ac_lo in #((
1940 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1941 '') ac_retval=1 ;;
1942 esac
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 static long int longval (void) { return $2; }
1948 static unsigned long int ulongval (void) { return $2; }
1949 #include <stdio.h>
1950 #include <stdlib.h>
1951 int
1952 main (void)
1953 {
1954
1955 FILE *f = fopen ("conftest.val", "w");
1956 if (! f)
1957 return 1;
1958 if (($2) < 0)
1959 {
1960 long int i = longval ();
1961 if (i != ($2))
1962 return 1;
1963 fprintf (f, "%ld", i);
1964 }
1965 else
1966 {
1967 unsigned long int i = ulongval ();
1968 if (i != ($2))
1969 return 1;
1970 fprintf (f, "%lu", i);
1971 }
1972 /* Do not output a trailing newline, as this causes \r\n confusion
1973 on some platforms. */
1974 return ferror (f) || fclose (f) != 0;
1975
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_run "$LINENO"
1981 then :
1982 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1983 else case e in #(
1984 e) ac_retval=1 ;;
1985 esac
1986 fi
1987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1988 conftest.$ac_objext conftest.beam conftest.$ac_ext
1989 rm -f conftest.val
1990
1991 fi
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1994
1995 } # ac_fn_c_compute_int
1996 ac_configure_args_raw=
1997 for ac_arg
1998 do
1999 case $ac_arg in
2000 *\'*)
2001 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2002 esac
2003 as_fn_append ac_configure_args_raw " '$ac_arg'"
2004 done
2005
2006 case $ac_configure_args_raw in
2007 *$as_nl*)
2008 ac_safe_unquote= ;;
2009 *)
2010 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2011 ac_unsafe_a="$ac_unsafe_z#~"
2012 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2013 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2014 esac
2015
2016 cat >config.log <<_ACEOF
2017 This file contains any messages produced by compilers while
2018 running configure, to aid debugging if configure makes a mistake.
2019
2020 It was created by lua53 (TeX Live) $as_me 5.3.6, which was
2021 generated by GNU Autoconf 2.72. Invocation command line was
2022
2023 $ $0$ac_configure_args_raw
2024
2025 _ACEOF
2026 exec 5>>config.log
2027 {
2028 cat <<_ASUNAME
2029 ## --------- ##
2030 ## Platform. ##
2031 ## --------- ##
2032
2033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2038
2039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2041
2042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2045 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2049
2050 _ASUNAME
2051
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055 IFS=$as_save_IFS
2056 case $as_dir in #(((
2057 '') as_dir=./ ;;
2058 */) ;;
2059 *) as_dir=$as_dir/ ;;
2060 esac
2061 printf "%s\n" "PATH: $as_dir"
2062 done
2063 IFS=$as_save_IFS
2064
2065 } >&5
2066
2067 cat >&5 <<_ACEOF
2068
2069
2070 ## ----------- ##
2071 ## Core tests. ##
2072 ## ----------- ##
2073
2074 _ACEOF
2075
2076
2077 # Keep a trace of the command line.
2078 # Strip out --no-create and --no-recursion so they do not pile up.
2079 # Strip out --silent because we don't want to record it for future runs.
2080 # Also quote any args containing shell meta-characters.
2081 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_configure_args=
2083 ac_configure_args0=
2084 ac_configure_args1=
2085 ac_must_keep_next=false
2086 for ac_pass in 1 2
2087 do
2088 for ac_arg
2089 do
2090 case $ac_arg in
2091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093 | -silent | --silent | --silen | --sile | --sil)
2094 continue ;;
2095 *\'*)
2096 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097 esac
2098 case $ac_pass in
2099 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2100 2)
2101 as_fn_append ac_configure_args1 " '$ac_arg'"
2102 if test $ac_must_keep_next = true; then
2103 ac_must_keep_next=false # Got value, back to normal.
2104 else
2105 case $ac_arg in
2106 *=* | --config-cache | -C | -disable-* | --disable-* \
2107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109 | -with-* | --with-* | -without-* | --without-* | --x)
2110 case "$ac_configure_args0 " in
2111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112 esac
2113 ;;
2114 -* ) ac_must_keep_next=true ;;
2115 esac
2116 fi
2117 as_fn_append ac_configure_args " '$ac_arg'"
2118 ;;
2119 esac
2120 done
2121 done
2122 { ac_configure_args0=; unset ac_configure_args0;}
2123 { ac_configure_args1=; unset ac_configure_args1;}
2124
2125 # When interrupted or exit'd, cleanup temporary files, and complete
2126 # config.log. We remove comments because anyway the quotes in there
2127 # would cause problems or look ugly.
2128 # WARNING: Use '\'' to represent an apostrophe within the trap.
2129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130 trap 'exit_status=$?
2131 # Sanitize IFS.
2132 IFS=" "" $as_nl"
2133 # Save into config.log some information that might help in debugging.
2134 {
2135 echo
2136
2137 printf "%s\n" "## ---------------- ##
2138 ## Cache variables. ##
2139 ## ---------------- ##"
2140 echo
2141 # The following way of writing the cache mishandles newlines in values,
2142 (
2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in #(
2146 *${as_nl}*)
2147 case $ac_var in #(
2148 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150 esac
2151 case $ac_var in #(
2152 _ | IFS | as_nl) ;; #(
2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154 *) { eval $ac_var=; unset $ac_var;} ;;
2155 esac ;;
2156 esac
2157 done
2158 (set) 2>&1 |
2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160 *${as_nl}ac_space=\ *)
2161 sed -n \
2162 "s/'\''/'\''\\\\'\'''\''/g;
2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164 ;; #(
2165 *)
2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167 ;;
2168 esac |
2169 sort
2170 )
2171 echo
2172
2173 printf "%s\n" "## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##"
2176 echo
2177 for ac_var in $ac_subst_vars
2178 do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 printf "%s\n" "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2186
2187 if test -n "$ac_subst_files"; then
2188 printf "%s\n" "## ------------------- ##
2189 ## File substitutions. ##
2190 ## ------------------- ##"
2191 echo
2192 for ac_var in $ac_subst_files
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 printf "%s\n" "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201 fi
2202
2203 if test -s confdefs.h; then
2204 printf "%s\n" "## ----------- ##
2205 ## confdefs.h. ##
2206 ## ----------- ##"
2207 echo
2208 cat confdefs.h
2209 echo
2210 fi
2211 test "$ac_signal" != 0 &&
2212 printf "%s\n" "$as_me: caught signal $ac_signal"
2213 printf "%s\n" "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2218 ' 0
2219 for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 done
2222 ac_signal=0
2223
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2226
2227 printf "%s\n" "/* confdefs.h */" > confdefs.h
2228
2229 # Predefined preprocessor variables.
2230
2231 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2232
2233 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2234
2235 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2236
2237 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2238
2239 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2240
2241 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2242
2243
2244 # Let the site file select an alternate cache file if it wants to.
2245 # Prefer an explicitly selected file to automatically selected ones.
2246 if test -n "$CONFIG_SITE"; then
2247 ac_site_files="$CONFIG_SITE"
2248 elif test "x$prefix" != xNONE; then
2249 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2250 else
2251 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2252 fi
2253
2254 for ac_site_file in $ac_site_files
2255 do
2256 case $ac_site_file in #(
2257 */*) :
2258 ;; #(
2259 *) :
2260 ac_site_file=./$ac_site_file ;;
2261 esac
2262 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2264 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2265 sed 's/^/| /' "$ac_site_file" >&5
2266 . "$ac_site_file" \
2267 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2268 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2269 as_fn_error $? "failed to load site script $ac_site_file
2270 See 'config.log' for more details" "$LINENO" 5; }
2271 fi
2272 done
2273
2274 if test -r "$cache_file"; then
2275 # Some versions of bash will fail to source /dev/null (special files
2276 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2277 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2279 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2280 case $cache_file in
2281 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2282 *) . "./$cache_file";;
2283 esac
2284 fi
2285 else
2286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2287 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2288 >$cache_file
2289 fi
2290
2291 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2292 # Test code for whether the C compiler supports C89 (global declarations)
2293 ac_c_conftest_c89_globals='
2294 /* Does the compiler advertise C89 conformance?
2295 Do not test the value of __STDC__, because some compilers set it to 0
2296 while being otherwise adequately conformant. */
2297 #if !defined __STDC__
2298 # error "Compiler does not advertise C89 conformance"
2299 #endif
2300
2301 #include <stddef.h>
2302 #include <stdarg.h>
2303 struct stat;
2304 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2305 struct buf { int x; };
2306 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2307 static char *e (char **p, int i)
2308 {
2309 return p[i];
2310 }
2311 static char *f (char * (*g) (char **, int), char **p, ...)
2312 {
2313 char *s;
2314 va_list v;
2315 va_start (v,p);
2316 s = g (p, va_arg (v,int));
2317 va_end (v);
2318 return s;
2319 }
2320
2321 /* C89 style stringification. */
2322 #define noexpand_stringify(a) #a
2323 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2324
2325 /* C89 style token pasting. Exercises some of the corner cases that
2326 e.g. old MSVC gets wrong, but not very hard. */
2327 #define noexpand_concat(a,b) a##b
2328 #define expand_concat(a,b) noexpand_concat(a,b)
2329 extern int vA;
2330 extern int vbee;
2331 #define aye A
2332 #define bee B
2333 int *pvA = &expand_concat(v,aye);
2334 int *pvbee = &noexpand_concat(v,bee);
2335
2336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2337 function prototypes and stuff, but not \xHH hex character constants.
2338 These do not provoke an error unfortunately, instead are silently treated
2339 as an "x". The following induces an error, until -std is added to get
2340 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2341 array size at least. It is necessary to write \x00 == 0 to get something
2342 that is true only with -std. */
2343 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2344
2345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2346 inside strings and character constants. */
2347 #define FOO(x) '\''x'\''
2348 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2349
2350 int test (int i, double x);
2351 struct s1 {int (*f) (int a);};
2352 struct s2 {int (*f) (double a);};
2353 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2354 int, int);'
2355
2356 # Test code for whether the C compiler supports C89 (body of main).
2357 ac_c_conftest_c89_main='
2358 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2359 '
2360
2361 # Test code for whether the C compiler supports C99 (global declarations)
2362 ac_c_conftest_c99_globals='
2363 /* Does the compiler advertise C99 conformance? */
2364 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2365 # error "Compiler does not advertise C99 conformance"
2366 #endif
2367
2368 // See if C++-style comments work.
2369
2370 #include <stdbool.h>
2371 extern int puts (const char *);
2372 extern int printf (const char *, ...);
2373 extern int dprintf (int, const char *, ...);
2374 extern void *malloc (size_t);
2375 extern void free (void *);
2376
2377 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2378 // dprintf is used instead of fprintf to avoid needing to declare
2379 // FILE and stderr.
2380 #define debug(...) dprintf (2, __VA_ARGS__)
2381 #define showlist(...) puts (#__VA_ARGS__)
2382 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2383 static void
2384 test_varargs_macros (void)
2385 {
2386 int x = 1234;
2387 int y = 5678;
2388 debug ("Flag");
2389 debug ("X = %d\n", x);
2390 showlist (The first, second, and third items.);
2391 report (x>y, "x is %d but y is %d", x, y);
2392 }
2393
2394 // Check long long types.
2395 #define BIG64 18446744073709551615ull
2396 #define BIG32 4294967295ul
2397 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2398 #if !BIG_OK
2399 #error "your preprocessor is broken"
2400 #endif
2401 #if BIG_OK
2402 #else
2403 #error "your preprocessor is broken"
2404 #endif
2405 static long long int bignum = -9223372036854775807LL;
2406 static unsigned long long int ubignum = BIG64;
2407
2408 struct incomplete_array
2409 {
2410 int datasize;
2411 double data[];
2412 };
2413
2414 struct named_init {
2415 int number;
2416 const wchar_t *name;
2417 double average;
2418 };
2419
2420 typedef const char *ccp;
2421
2422 static inline int
2423 test_restrict (ccp restrict text)
2424 {
2425 // Iterate through items via the restricted pointer.
2426 // Also check for declarations in for loops.
2427 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2428 continue;
2429 return 0;
2430 }
2431
2432 // Check varargs and va_copy.
2433 static bool
2434 test_varargs (const char *format, ...)
2435 {
2436 va_list args;
2437 va_start (args, format);
2438 va_list args_copy;
2439 va_copy (args_copy, args);
2440
2441 const char *str = "";
2442 int number = 0;
2443 float fnumber = 0;
2444
2445 while (*format)
2446 {
2447 switch (*format++)
2448 {
2449 case '\''s'\'': // string
2450 str = va_arg (args_copy, const char *);
2451 break;
2452 case '\''d'\'': // int
2453 number = va_arg (args_copy, int);
2454 break;
2455 case '\''f'\'': // float
2456 fnumber = va_arg (args_copy, double);
2457 break;
2458 default:
2459 break;
2460 }
2461 }
2462 va_end (args_copy);
2463 va_end (args);
2464
2465 return *str && number && fnumber;
2466 }
2467 '
2468
2469 # Test code for whether the C compiler supports C99 (body of main).
2470 ac_c_conftest_c99_main='
2471 // Check bool.
2472 _Bool success = false;
2473 success |= (argc != 0);
2474
2475 // Check restrict.
2476 if (test_restrict ("String literal") == 0)
2477 success = true;
2478 char *restrict newvar = "Another string";
2479
2480 // Check varargs.
2481 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2482 test_varargs_macros ();
2483
2484 // Check flexible array members.
2485 struct incomplete_array *ia =
2486 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2487 ia->datasize = 10;
2488 for (int i = 0; i < ia->datasize; ++i)
2489 ia->data[i] = i * 1.234;
2490 // Work around memory leak warnings.
2491 free (ia);
2492
2493 // Check named initializers.
2494 struct named_init ni = {
2495 .number = 34,
2496 .name = L"Test wide string",
2497 .average = 543.34343,
2498 };
2499
2500 ni.number = 58;
2501
2502 int dynamic_array[ni.number];
2503 dynamic_array[0] = argv[0][0];
2504 dynamic_array[ni.number - 1] = 543;
2505
2506 // work around unused variable warnings
2507 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2508 || dynamic_array[ni.number - 1] != 543);
2509 '
2510
2511 # Test code for whether the C compiler supports C11 (global declarations)
2512 ac_c_conftest_c11_globals='
2513 /* Does the compiler advertise C11 conformance? */
2514 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2515 # error "Compiler does not advertise C11 conformance"
2516 #endif
2517
2518 // Check _Alignas.
2519 char _Alignas (double) aligned_as_double;
2520 char _Alignas (0) no_special_alignment;
2521 extern char aligned_as_int;
2522 char _Alignas (0) _Alignas (int) aligned_as_int;
2523
2524 // Check _Alignof.
2525 enum
2526 {
2527 int_alignment = _Alignof (int),
2528 int_array_alignment = _Alignof (int[100]),
2529 char_alignment = _Alignof (char)
2530 };
2531 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2532
2533 // Check _Noreturn.
2534 int _Noreturn does_not_return (void) { for (;;) continue; }
2535
2536 // Check _Static_assert.
2537 struct test_static_assert
2538 {
2539 int x;
2540 _Static_assert (sizeof (int) <= sizeof (long int),
2541 "_Static_assert does not work in struct");
2542 long int y;
2543 };
2544
2545 // Check UTF-8 literals.
2546 #define u8 syntax error!
2547 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2548
2549 // Check duplicate typedefs.
2550 typedef long *long_ptr;
2551 typedef long int *long_ptr;
2552 typedef long_ptr long_ptr;
2553
2554 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2555 struct anonymous
2556 {
2557 union {
2558 struct { int i; int j; };
2559 struct { int k; long int l; } w;
2560 };
2561 int m;
2562 } v1;
2563 '
2564
2565 # Test code for whether the C compiler supports C11 (body of main).
2566 ac_c_conftest_c11_main='
2567 _Static_assert ((offsetof (struct anonymous, i)
2568 == offsetof (struct anonymous, w.k)),
2569 "Anonymous union alignment botch");
2570 v1.i = 2;
2571 v1.w.k = 5;
2572 ok |= v1.i != 5;
2573 '
2574
2575 # Test code for whether the C compiler supports C11 (complete).
2576 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2577 ${ac_c_conftest_c99_globals}
2578 ${ac_c_conftest_c11_globals}
2579
2580 int
2581 main (int argc, char **argv)
2582 {
2583 int ok = 0;
2584 ${ac_c_conftest_c89_main}
2585 ${ac_c_conftest_c99_main}
2586 ${ac_c_conftest_c11_main}
2587 return ok;
2588 }
2589 "
2590
2591 # Test code for whether the C compiler supports C99 (complete).
2592 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2593 ${ac_c_conftest_c99_globals}
2594
2595 int
2596 main (int argc, char **argv)
2597 {
2598 int ok = 0;
2599 ${ac_c_conftest_c89_main}
2600 ${ac_c_conftest_c99_main}
2601 return ok;
2602 }
2603 "
2604
2605 # Test code for whether the C compiler supports C89 (complete).
2606 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2607
2608 int
2609 main (int argc, char **argv)
2610 {
2611 int ok = 0;
2612 ${ac_c_conftest_c89_main}
2613 return ok;
2614 }
2615 "
2616
2617 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2618 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2619 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2620 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2621 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2622 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2623 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2624 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2625 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2626 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2627
2628 # Auxiliary files required by this configure script.
2629 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2630
2631 # Locations in which to look for auxiliary files.
2632 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2633
2634 # Search for a directory containing all of the required auxiliary files,
2635 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2636 # If we don't find one directory that contains all the files we need,
2637 # we report the set of missing files from the *first* directory in
2638 # $ac_aux_dir_candidates and give up.
2639 ac_missing_aux_files=""
2640 ac_first_candidate=:
2641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 as_found=false
2644 for as_dir in $ac_aux_dir_candidates
2645 do
2646 IFS=$as_save_IFS
2647 case $as_dir in #(((
2648 '') as_dir=./ ;;
2649 */) ;;
2650 *) as_dir=$as_dir/ ;;
2651 esac
2652 as_found=:
2653
2654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2655 ac_aux_dir_found=yes
2656 ac_install_sh=
2657 for ac_aux in $ac_aux_files
2658 do
2659 # As a special case, if "install-sh" is required, that requirement
2660 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2661 # and $ac_install_sh is set appropriately for whichever one is found.
2662 if test x"$ac_aux" = x"install-sh"
2663 then
2664 if test -f "${as_dir}install-sh"; then
2665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2666 ac_install_sh="${as_dir}install-sh -c"
2667 elif test -f "${as_dir}install.sh"; then
2668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2669 ac_install_sh="${as_dir}install.sh -c"
2670 elif test -f "${as_dir}shtool"; then
2671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2672 ac_install_sh="${as_dir}shtool install -c"
2673 else
2674 ac_aux_dir_found=no
2675 if $ac_first_candidate; then
2676 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2677 else
2678 break
2679 fi
2680 fi
2681 else
2682 if test -f "${as_dir}${ac_aux}"; then
2683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2684 else
2685 ac_aux_dir_found=no
2686 if $ac_first_candidate; then
2687 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2688 else
2689 break
2690 fi
2691 fi
2692 fi
2693 done
2694 if test "$ac_aux_dir_found" = yes; then
2695 ac_aux_dir="$as_dir"
2696 break
2697 fi
2698 ac_first_candidate=false
2699
2700 as_found=false
2701 done
2702 IFS=$as_save_IFS
2703 if $as_found
2704 then :
2705
2706 else case e in #(
2707 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2708 esac
2709 fi
2710
2711
2712 # These three variables are undocumented and unsupported,
2713 # and are intended to be withdrawn in a future Autoconf release.
2714 # They can cause serious problems if a builder's source tree is in a directory
2715 # whose full name contains unusual characters.
2716 if test -f "${ac_aux_dir}config.guess"; then
2717 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2718 fi
2719 if test -f "${ac_aux_dir}config.sub"; then
2720 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2721 fi
2722 if test -f "$ac_aux_dir/configure"; then
2723 ac_configure="$SHELL ${ac_aux_dir}configure"
2724 fi
2725
2726 # Check that the precious variables saved in the cache have kept the same
2727 # value.
2728 ac_cache_corrupted=false
2729 for ac_var in $ac_precious_vars; do
2730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2731 eval ac_new_set=\$ac_env_${ac_var}_set
2732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2733 eval ac_new_val=\$ac_env_${ac_var}_value
2734 case $ac_old_set,$ac_new_set in
2735 set,)
2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2737 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2738 ac_cache_corrupted=: ;;
2739 ,set)
2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2741 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2742 ac_cache_corrupted=: ;;
2743 ,);;
2744 *)
2745 if test "x$ac_old_val" != "x$ac_new_val"; then
2746 # differences in whitespace do not lead to failure.
2747 ac_old_val_w=`echo x $ac_old_val`
2748 ac_new_val_w=`echo x $ac_new_val`
2749 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2751 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2752 ac_cache_corrupted=:
2753 else
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2755 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2756 eval $ac_var=\$ac_old_val
2757 fi
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2759 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2761 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2762 fi;;
2763 esac
2764 # Pass precious variables to config.status.
2765 if test "$ac_new_set" = set; then
2766 case $ac_new_val in
2767 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2768 *) ac_arg=$ac_var=$ac_new_val ;;
2769 esac
2770 case " $ac_configure_args " in
2771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2772 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2773 esac
2774 fi
2775 done
2776 if $ac_cache_corrupted; then
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2778 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2780 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2781 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2782 and start over" "$LINENO" 5
2783 fi
2784 ## -------------------- ##
2785 ## Main body of script. ##
2786 ## -------------------- ##
2787
2788 ac_ext=c
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793
2794
2795
2796
2797
2798
2799
2800 am__api_version='1.18'
2801
2802
2803
2804 # Find a good install program. We prefer a C program (faster),
2805 # so one script is as good as another. But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2810 # AIX /bin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 # Reject install programs that cannot install multiple files.
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2819 printf %s "checking for a BSD-compatible install... " >&6; }
2820 if test -z "$INSTALL"; then
2821 if test ${ac_cv_path_install+y}
2822 then :
2823 printf %s "(cached) " >&6
2824 else case e in #(
2825 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 case $as_dir in #(((
2830 '') as_dir=./ ;;
2831 */) ;;
2832 *) as_dir=$as_dir/ ;;
2833 esac
2834 # Account for fact that we put trailing slashes in our PATH walk.
2835 case $as_dir in #((
2836 ./ | /[cC]/* | \
2837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2838 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2839 /usr/ucb/* ) ;;
2840 *)
2841 # OSF1 and SCO ODT 3.0 have their own names for install.
2842 # Don't use installbsd from OSF since it installs stuff as root
2843 # by default.
2844 for ac_prog in ginstall scoinst install; do
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2847 if test $ac_prog = install &&
2848 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2849 # AIX install. It has an incompatible calling convention.
2850 :
2851 elif test $ac_prog = install &&
2852 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2853 # program-specific install script used by HP pwplus--don't use.
2854 :
2855 else
2856 rm -rf conftest.one conftest.two conftest.dir
2857 echo one > conftest.one
2858 echo two > conftest.two
2859 mkdir conftest.dir
2860 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2861 test -s conftest.one && test -s conftest.two &&
2862 test -s conftest.dir/conftest.one &&
2863 test -s conftest.dir/conftest.two
2864 then
2865 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2866 break 3
2867 fi
2868 fi
2869 fi
2870 done
2871 done
2872 ;;
2873 esac
2874
2875 done
2876 IFS=$as_save_IFS
2877
2878 rm -rf conftest.one conftest.two conftest.dir
2879 ;;
2880 esac
2881 fi
2882 if test ${ac_cv_path_install+y}; then
2883 INSTALL=$ac_cv_path_install
2884 else
2885 # As a last resort, use the slow shell script. Don't cache a
2886 # value for INSTALL within a source directory, because that will
2887 # break other packages using the cache if that directory is
2888 # removed, or if the value is a relative name.
2889 INSTALL=$ac_install_sh
2890 fi
2891 fi
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2893 printf "%s\n" "$INSTALL" >&6; }
2894
2895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2896 # It thinks the first close brace ends the variable substitution.
2897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2898
2899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2900
2901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2902
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2904 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2905 if test ${am_cv_sleep_fractional_seconds+y}
2906 then :
2907 printf %s "(cached) " >&6
2908 else case e in #(
2909 e) if sleep 0.001 2>/dev/null
2910 then :
2911 am_cv_sleep_fractional_seconds=yes
2912 else case e in #(
2913 e) am_cv_sleep_fractional_seconds=no ;;
2914 esac
2915 fi
2916 ;;
2917 esac
2918 fi
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2920 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2921
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2923 printf %s "checking filesystem timestamp resolution... " >&6; }
2924 if test ${am_cv_filesystem_timestamp_resolution+y}
2925 then :
2926 printf %s "(cached) " >&6
2927 else case e in #(
2928 e) # Default to the worst case.
2929 am_cv_filesystem_timestamp_resolution=2
2930
2931 # Only try to go finer than 1 sec if sleep can do it.
2932 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2933 # - 1 sec is not much of a win compared to 2 sec, and
2934 # - it takes 2 seconds to perform the test whether 1 sec works.
2935 #
2936 # Instead, just use the default 2s on platforms that have 1s resolution,
2937 # accept the extra 1s delay when using $sleep in the Automake tests, in
2938 # exchange for not incurring the 2s delay for running the test for all
2939 # packages.
2940 #
2941 am_try_resolutions=
2942 if test "$am_cv_sleep_fractional_seconds" = yes; then
2943 # Even a millisecond often causes a bunch of false positives,
2944 # so just try a hundredth of a second. The time saved between .001 and
2945 # .01 is not terribly consequential.
2946 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2947 fi
2948
2949 # In order to catch current-generation FAT out, we must *modify* files
2950 # that already exist; the *creation* timestamp is finer. Use names
2951 # that make ls -t sort them differently when they have equal
2952 # timestamps than when they have distinct timestamps, keeping
2953 # in mind that ls -t prints the *newest* file first.
2954 rm -f conftest.ts?
2955 : > conftest.ts1
2956 : > conftest.ts2
2957 : > conftest.ts3
2958
2959 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2960 # clobber the current shell's arguments. (Outer-level square brackets
2961 # are removed by m4; they're present so that m4 does not expand
2962 # <dollar><star>; be careful, easy to get confused.)
2963 if (
2964 set X `ls -t conftest.ts[12]` &&
2965 {
2966 test "$*" != "X conftest.ts1 conftest.ts2" ||
2967 test "$*" != "X conftest.ts2 conftest.ts1";
2968 }
2969 ); then :; else
2970 # If neither matched, then we have a broken ls. This can happen
2971 # if, for instance, CONFIG_SHELL is bash and it inherits a
2972 # broken ls alias from the environment. This has actually
2973 # happened. Such a system could not be considered "sane".
2974 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2976 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2977 as_fn_error $? "ls -t produces unexpected output.
2978 Make sure there is not a broken ls alias in your environment.
2979 See 'config.log' for more details" "$LINENO" 5; }
2980 fi
2981
2982 for am_try_res in $am_try_resolutions; do
2983 # Any one fine-grained sleep might happen to cross the boundary
2984 # between two values of a coarser actual resolution, but if we do
2985 # two fine-grained sleeps in a row, at least one of them will fall
2986 # entirely within a coarse interval.
2987 echo alpha > conftest.ts1
2988 sleep $am_try_res
2989 echo beta > conftest.ts2
2990 sleep $am_try_res
2991 echo gamma > conftest.ts3
2992
2993 # We assume that 'ls -t' will make use of high-resolution
2994 # timestamps if the operating system supports them at all.
2995 if (set X `ls -t conftest.ts?` &&
2996 test "$2" = conftest.ts3 &&
2997 test "$3" = conftest.ts2 &&
2998 test "$4" = conftest.ts1); then
2999 #
3000 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3001 # because we don't need to test make.
3002 make_ok=true
3003 if test $am_try_res != 1; then
3004 # But if we've succeeded so far with a subsecond resolution, we
3005 # have one more thing to check: make. It can happen that
3006 # everything else supports the subsecond mtimes, but make doesn't;
3007 # notably on macOS, which ships make 3.81 from 2006 (the last one
3008 # released under GPLv2). https://bugs.gnu.org/68808
3009 #
3010 # We test $MAKE if it is defined in the environment, else "make".
3011 # It might get overridden later, but our hope is that in practice
3012 # it does not matter: it is the system "make" which is (by far)
3013 # the most likely to be broken, whereas if the user overrides it,
3014 # probably they did so with a better, or at least not worse, make.
3015 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3016 #
3017 # Create a Makefile (real tab character here):
3018 rm -f conftest.mk
3019 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3020 echo ' touch conftest.ts2' >>conftest.mk
3021 #
3022 # Now, running
3023 # touch conftest.ts1; touch conftest.ts2; make
3024 # should touch ts1 because ts2 is newer. This could happen by luck,
3025 # but most often, it will fail if make's support is insufficient. So
3026 # test for several consecutive successes.
3027 #
3028 # (We reuse conftest.ts[12] because we still want to modify existing
3029 # files, not create new ones, per above.)
3030 n=0
3031 make=${MAKE-make}
3032 until test $n -eq 3; do
3033 echo one > conftest.ts1
3034 sleep $am_try_res
3035 echo two > conftest.ts2 # ts2 should now be newer than ts1
3036 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3037 make_ok=false
3038 break # out of $n loop
3039 fi
3040 n=`expr $n + 1`
3041 done
3042 fi
3043 #
3044 if $make_ok; then
3045 # Everything we know to check worked out, so call this resolution good.
3046 am_cv_filesystem_timestamp_resolution=$am_try_res
3047 break # out of $am_try_res loop
3048 fi
3049 # Otherwise, we'll go on to check the next resolution.
3050 fi
3051 done
3052 rm -f conftest.ts?
3053 # (end _am_filesystem_timestamp_resolution)
3054 ;;
3055 esac
3056 fi
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3058 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3059
3060 # This check should not be cached, as it may vary across builds of
3061 # different projects.
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3063 printf %s "checking whether build environment is sane... " >&6; }
3064 # Reject unsafe characters in $srcdir or the absolute working directory
3065 # name. Accept space and tab only in the latter.
3066 am_lf='
3067 '
3068 case `pwd` in
3069 *[\\\"\#\$\&\'\`$am_lf]*)
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 printf "%s\n" "no" >&6; }
3072 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3073 esac
3074 case $srcdir in
3075 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 printf "%s\n" "no" >&6; }
3078 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3079 esac
3080
3081 # Do 'set' in a subshell so we don't clobber the current shell's
3082 # arguments. Must try -L first in case configure is actually a
3083 # symlink; some systems play weird games with the mod time of symlinks
3084 # (eg FreeBSD returns the mod time of the symlink's containing
3085 # directory).
3086 am_build_env_is_sane=no
3087 am_has_slept=no
3088 rm -f conftest.file
3089 for am_try in 1 2; do
3090 echo "timestamp, slept: $am_has_slept" > conftest.file
3091 if (
3092 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3093 if test "$*" = "X"; then
3094 # -L didn't work.
3095 set X `ls -t "$srcdir/configure" conftest.file`
3096 fi
3097 test "$2" = conftest.file
3098 ); then
3099 am_build_env_is_sane=yes
3100 break
3101 fi
3102 # Just in case.
3103 sleep "$am_cv_filesystem_timestamp_resolution"
3104 am_has_slept=yes
3105 done
3106
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3108 printf "%s\n" "$am_build_env_is_sane" >&6; }
3109 if test "$am_build_env_is_sane" = no; then
3110 as_fn_error $? "newly created file is older than distributed files!
3111 Check your system clock" "$LINENO" 5
3112 fi
3113
3114 # If we didn't sleep, we still need to ensure time stamps of config.status and
3115 # generated files are strictly newer.
3116 am_sleep_pid=
3117 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3118 then :
3119
3120 else case e in #(
3121 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3122 am_sleep_pid=$!
3123 ;;
3124 esac
3125 fi
3126
3127 rm -f conftest.file
3128
3129 test "$program_prefix" != NONE &&
3130 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3131 # Use a double $ so make ignores it.
3132 test "$program_suffix" != NONE &&
3133 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3134 # Double any \ or $.
3135 # By default was 's,x,x', remove it if useless.
3136 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3137 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3138
3139
3140 # Expand $ac_aux_dir to an absolute path.
3141 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3142
3143
3144 if test x"${MISSING+set}" != xset; then
3145 MISSING="\${SHELL} '$am_aux_dir/missing'"
3146 fi
3147 # Use eval to expand $SHELL
3148 if eval "$MISSING --is-lightweight"; then
3149 am_missing_run="$MISSING "
3150 else
3151 am_missing_run=
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3153 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3154 fi
3155
3156 if test x"${install_sh+set}" != xset; then
3157 case $am_aux_dir in
3158 *\ * | *\ *)
3159 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3160 *)
3161 install_sh="\${SHELL} $am_aux_dir/install-sh"
3162 esac
3163 fi
3164
3165 # Installed binaries are usually stripped using 'strip' when the user
3166 # run "make install-strip". However 'strip' might not be the right
3167 # tool to use in cross-compilation environments, therefore Automake
3168 # will honor the 'STRIP' environment variable to overrule this program.
3169 if test "$cross_compiling" != no; then
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}strip; ac_word=$2
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 printf %s "checking for $ac_word... " >&6; }
3175 if test ${ac_cv_prog_STRIP+y}
3176 then :
3177 printf %s "(cached) " >&6
3178 else case e in #(
3179 e) if test -n "$STRIP"; then
3180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 case $as_dir in #(((
3187 '') as_dir=./ ;;
3188 */) ;;
3189 *) as_dir=$as_dir/ ;;
3190 esac
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi ;;
3202 esac
3203 fi
3204 STRIP=$ac_cv_prog_STRIP
3205 if test -n "$STRIP"; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3207 printf "%s\n" "$STRIP" >&6; }
3208 else
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 printf "%s\n" "no" >&6; }
3211 fi
3212
3213
3214 fi
3215 if test -z "$ac_cv_prog_STRIP"; then
3216 ac_ct_STRIP=$STRIP
3217 # Extract the first word of "strip", so it can be a program name with args.
3218 set dummy strip; ac_word=$2
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 printf %s "checking for $ac_word... " >&6; }
3221 if test ${ac_cv_prog_ac_ct_STRIP+y}
3222 then :
3223 printf %s "(cached) " >&6
3224 else case e in #(
3225 e) if test -n "$ac_ct_STRIP"; then
3226 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 case $as_dir in #(((
3233 '') as_dir=./ ;;
3234 */) ;;
3235 *) as_dir=$as_dir/ ;;
3236 esac
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_ac_ct_STRIP="strip"
3240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3241 break 2
3242 fi
3243 done
3244 done
3245 IFS=$as_save_IFS
3246
3247 fi ;;
3248 esac
3249 fi
3250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3251 if test -n "$ac_ct_STRIP"; then
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3253 printf "%s\n" "$ac_ct_STRIP" >&6; }
3254 else
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 printf "%s\n" "no" >&6; }
3257 fi
3258
3259 if test "x$ac_ct_STRIP" = x; then
3260 STRIP=":"
3261 else
3262 case $cross_compiling:$ac_tool_warned in
3263 yes:)
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3267 esac
3268 STRIP=$ac_ct_STRIP
3269 fi
3270 else
3271 STRIP="$ac_cv_prog_STRIP"
3272 fi
3273
3274 fi
3275 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3276
3277
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3279 printf %s "checking for a race-free mkdir -p... " >&6; }
3280 if test -z "$MKDIR_P"; then
3281 if test ${ac_cv_path_mkdir+y}
3282 then :
3283 printf %s "(cached) " >&6
3284 else case e in #(
3285 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3287 do
3288 IFS=$as_save_IFS
3289 case $as_dir in #(((
3290 '') as_dir=./ ;;
3291 */) ;;
3292 *) as_dir=$as_dir/ ;;
3293 esac
3294 for ac_prog in mkdir gmkdir; do
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3297 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3298 'mkdir ('*'coreutils) '* | \
3299 *'BusyBox '* | \
3300 'mkdir (fileutils) '4.1*)
3301 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3302 break 3;;
3303 esac
3304 done
3305 done
3306 done
3307 IFS=$as_save_IFS
3308 ;;
3309 esac
3310 fi
3311
3312 test -d ./--version && rmdir ./--version
3313 if test ${ac_cv_path_mkdir+y}; then
3314 MKDIR_P="$ac_cv_path_mkdir -p"
3315 else
3316 # As a last resort, use plain mkdir -p,
3317 # in the hope it doesn't have the bugs of ancient mkdir.
3318 MKDIR_P='mkdir -p'
3319 fi
3320 fi
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3322 printf "%s\n" "$MKDIR_P" >&6; }
3323
3324 for ac_prog in gawk mawk nawk awk
3325 do
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 printf %s "checking for $ac_word... " >&6; }
3330 if test ${ac_cv_prog_AWK+y}
3331 then :
3332 printf %s "(cached) " >&6
3333 else case e in #(
3334 e) if test -n "$AWK"; then
3335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340 IFS=$as_save_IFS
3341 case $as_dir in #(((
3342 '') as_dir=./ ;;
3343 */) ;;
3344 *) as_dir=$as_dir/ ;;
3345 esac
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_AWK="$ac_prog"
3349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352 done
3353 done
3354 IFS=$as_save_IFS
3355
3356 fi ;;
3357 esac
3358 fi
3359 AWK=$ac_cv_prog_AWK
3360 if test -n "$AWK"; then
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3362 printf "%s\n" "$AWK" >&6; }
3363 else
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 printf "%s\n" "no" >&6; }
3366 fi
3367
3368
3369 test -n "$AWK" && break
3370 done
3371
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3373 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3374 set x ${MAKE-make}
3375 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3376 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3377 then :
3378 printf %s "(cached) " >&6
3379 else case e in #(
3380 e) cat >conftest.make <<\_ACEOF
3381 SHELL = /bin/sh
3382 all:
3383 @echo '@@@%%%=$(MAKE)=@@@%%%'
3384 _ACEOF
3385 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3386 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3387 *@@@%%%=?*=@@@%%%*)
3388 eval ac_cv_prog_make_${ac_make}_set=yes;;
3389 *)
3390 eval ac_cv_prog_make_${ac_make}_set=no;;
3391 esac
3392 rm -f conftest.make ;;
3393 esac
3394 fi
3395 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3397 printf "%s\n" "yes" >&6; }
3398 SET_MAKE=
3399 else
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 printf "%s\n" "no" >&6; }
3402 SET_MAKE="MAKE=${MAKE-make}"
3403 fi
3404
3405 rm -rf .tst 2>/dev/null
3406 mkdir .tst 2>/dev/null
3407 if test -d .tst; then
3408 am__leading_dot=.
3409 else
3410 am__leading_dot=_
3411 fi
3412 rmdir .tst 2>/dev/null
3413
3414 AM_DEFAULT_VERBOSITY=1
3415 # Check whether --enable-silent-rules was given.
3416 if test ${enable_silent_rules+y}
3417 then :
3418 enableval=$enable_silent_rules;
3419 fi
3420
3421 am_make=${MAKE-make}
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3423 printf %s "checking whether $am_make supports nested variables... " >&6; }
3424 if test ${am_cv_make_support_nested_variables+y}
3425 then :
3426 printf %s "(cached) " >&6
3427 else case e in #(
3428 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3429 BAR0=false
3430 BAR1=true
3431 V=1
3432 am__doit:
3433 @$(TRUE)
3434 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3435 am_cv_make_support_nested_variables=yes
3436 else
3437 am_cv_make_support_nested_variables=no
3438 fi ;;
3439 esac
3440 fi
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3442 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3443 AM_BACKSLASH='\'
3444
3445 am__rm_f_notfound=
3446 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3447 then :
3448
3449 else case e in #(
3450 e) am__rm_f_notfound='""' ;;
3451 esac
3452 fi
3453
3454
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3456 printf %s "checking xargs -n works... " >&6; }
3457 if test ${am_cv_xargs_n_works+y}
3458 then :
3459 printf %s "(cached) " >&6
3460 else case e in #(
3461 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3462 3"
3463 then :
3464 am_cv_xargs_n_works=yes
3465 else case e in #(
3466 e) am_cv_xargs_n_works=no ;;
3467 esac
3468 fi ;;
3469 esac
3470 fi
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3472 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3473 if test "$am_cv_xargs_n_works" = yes
3474 then :
3475 am__xargs_n='xargs -n'
3476 else case e in #(
3477 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3478 ;;
3479 esac
3480 fi
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491 DEPDIR="${am__leading_dot}deps"
3492
3493 ac_config_commands="$ac_config_commands depfiles"
3494
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3496 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3497 cat > confinc.mk << 'END'
3498 am__doit:
3499 @echo this is the am__doit target >confinc.out
3500 .PHONY: am__doit
3501 END
3502 am__include="#"
3503 am__quote=
3504 # BSD make does it like this.
3505 echo '.include "confinc.mk" # ignored' > confmf.BSD
3506 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3507 echo 'include confinc.mk # ignored' > confmf.GNU
3508 _am_result=no
3509 for s in GNU BSD; do
3510 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3511 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }
3515 case $?:`cat confinc.out 2>/dev/null` in #(
3516 '0:this is the am__doit target') :
3517 case $s in #(
3518 BSD) :
3519 am__include='.include' am__quote='"' ;; #(
3520 *) :
3521 am__include='include' am__quote='' ;;
3522 esac ;; #(
3523 *) :
3524 ;;
3525 esac
3526 if test "$am__include" != "#"; then
3527 _am_result="yes ($s style)"
3528 break
3529 fi
3530 done
3531 rm -f confinc.* confmf.*
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3533 printf "%s\n" "${_am_result}" >&6; }
3534
3535 # Check whether --enable-dependency-tracking was given.
3536 if test ${enable_dependency_tracking+y}
3537 then :
3538 enableval=$enable_dependency_tracking;
3539 fi
3540
3541 if test "x$enable_dependency_tracking" != xno; then
3542 am_depcomp="$ac_aux_dir/depcomp"
3543 AMDEPBACKSLASH='\'
3544 am__nodep='_no'
3545 fi
3546 if test "x$enable_dependency_tracking" != xno; then
3547 AMDEP_TRUE=
3548 AMDEP_FALSE='#'
3549 else
3550 AMDEP_TRUE='#'
3551 AMDEP_FALSE=
3552 fi
3553
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 printf %s "checking for $ac_word... " >&6; }
3565 if test ${ac_cv_prog_CC+y}
3566 then :
3567 printf %s "(cached) " >&6
3568 else case e in #(
3569 e) if test -n "$CC"; then
3570 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 case $as_dir in #(((
3577 '') as_dir=./ ;;
3578 */) ;;
3579 *) as_dir=$as_dir/ ;;
3580 esac
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi ;;
3592 esac
3593 fi
3594 CC=$ac_cv_prog_CC
3595 if test -n "$CC"; then
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 printf "%s\n" "$CC" >&6; }
3598 else
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 printf "%s\n" "no" >&6; }
3601 fi
3602
3603
3604 fi
3605 if test -z "$ac_cv_prog_CC"; then
3606 ac_ct_CC=$CC
3607 # Extract the first word of "gcc", so it can be a program name with args.
3608 set dummy gcc; ac_word=$2
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 printf %s "checking for $ac_word... " >&6; }
3611 if test ${ac_cv_prog_ac_ct_CC+y}
3612 then :
3613 printf %s "(cached) " >&6
3614 else case e in #(
3615 e) if test -n "$ac_ct_CC"; then
3616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3620 do
3621 IFS=$as_save_IFS
3622 case $as_dir in #(((
3623 '') as_dir=./ ;;
3624 */) ;;
3625 *) as_dir=$as_dir/ ;;
3626 esac
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_ac_ct_CC="gcc"
3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi ;;
3638 esac
3639 fi
3640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3641 if test -n "$ac_ct_CC"; then
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3643 printf "%s\n" "$ac_ct_CC" >&6; }
3644 else
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 printf "%s\n" "no" >&6; }
3647 fi
3648
3649 if test "x$ac_ct_CC" = x; then
3650 CC=""
3651 else
3652 case $cross_compiling:$ac_tool_warned in
3653 yes:)
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3655 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3656 ac_tool_warned=yes ;;
3657 esac
3658 CC=$ac_ct_CC
3659 fi
3660 else
3661 CC="$ac_cv_prog_CC"
3662 fi
3663
3664 if test -z "$CC"; then
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3667 set dummy ${ac_tool_prefix}cc; ac_word=$2
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 printf %s "checking for $ac_word... " >&6; }
3670 if test ${ac_cv_prog_CC+y}
3671 then :
3672 printf %s "(cached) " >&6
3673 else case e in #(
3674 e) if test -n "$CC"; then
3675 ac_cv_prog_CC="$CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680 IFS=$as_save_IFS
3681 case $as_dir in #(((
3682 '') as_dir=./ ;;
3683 */) ;;
3684 *) as_dir=$as_dir/ ;;
3685 esac
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3688 ac_cv_prog_CC="${ac_tool_prefix}cc"
3689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3690 break 2
3691 fi
3692 done
3693 done
3694 IFS=$as_save_IFS
3695
3696 fi ;;
3697 esac
3698 fi
3699 CC=$ac_cv_prog_CC
3700 if test -n "$CC"; then
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3702 printf "%s\n" "$CC" >&6; }
3703 else
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 printf "%s\n" "no" >&6; }
3706 fi
3707
3708
3709 fi
3710 fi
3711 if test -z "$CC"; then
3712 # Extract the first word of "cc", so it can be a program name with args.
3713 set dummy cc; ac_word=$2
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 printf %s "checking for $ac_word... " >&6; }
3716 if test ${ac_cv_prog_CC+y}
3717 then :
3718 printf %s "(cached) " >&6
3719 else case e in #(
3720 e) if test -n "$CC"; then
3721 ac_cv_prog_CC="$CC" # Let the user override the test.
3722 else
3723 ac_prog_rejected=no
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727 IFS=$as_save_IFS
3728 case $as_dir in #(((
3729 '') as_dir=./ ;;
3730 */) ;;
3731 *) as_dir=$as_dir/ ;;
3732 esac
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3735 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3736 ac_prog_rejected=yes
3737 continue
3738 fi
3739 ac_cv_prog_CC="cc"
3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 if test $ac_prog_rejected = yes; then
3748 # We found a bogon in the path, so make sure we never use it.
3749 set dummy $ac_cv_prog_CC
3750 shift
3751 if test $# != 0; then
3752 # We chose a different compiler from the bogus one.
3753 # However, it has the same basename, so the bogon will be chosen
3754 # first if we set CC to just the basename; use the full file name.
3755 shift
3756 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3757 fi
3758 fi
3759 fi ;;
3760 esac
3761 fi
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 printf "%s\n" "$CC" >&6; }
3766 else
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 printf "%s\n" "no" >&6; }
3769 fi
3770
3771
3772 fi
3773 if test -z "$CC"; then
3774 if test -n "$ac_tool_prefix"; then
3775 for ac_prog in cl.exe
3776 do
3777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 printf %s "checking for $ac_word... " >&6; }
3781 if test ${ac_cv_prog_CC+y}
3782 then :
3783 printf %s "(cached) " >&6
3784 else case e in #(
3785 e) if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791 IFS=$as_save_IFS
3792 case $as_dir in #(((
3793 '') as_dir=./ ;;
3794 */) ;;
3795 *) as_dir=$as_dir/ ;;
3796 esac
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803 done
3804 done
3805 IFS=$as_save_IFS
3806
3807 fi ;;
3808 esac
3809 fi
3810 CC=$ac_cv_prog_CC
3811 if test -n "$CC"; then
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 printf "%s\n" "$CC" >&6; }
3814 else
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 printf "%s\n" "no" >&6; }
3817 fi
3818
3819
3820 test -n "$CC" && break
3821 done
3822 fi
3823 if test -z "$CC"; then
3824 ac_ct_CC=$CC
3825 for ac_prog in cl.exe
3826 do
3827 # Extract the first word of "$ac_prog", so it can be a program name with args.
3828 set dummy $ac_prog; ac_word=$2
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 printf %s "checking for $ac_word... " >&6; }
3831 if test ${ac_cv_prog_ac_ct_CC+y}
3832 then :
3833 printf %s "(cached) " >&6
3834 else case e in #(
3835 e) if test -n "$ac_ct_CC"; then
3836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 case $as_dir in #(((
3843 '') as_dir=./ ;;
3844 */) ;;
3845 *) as_dir=$as_dir/ ;;
3846 esac
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_ac_ct_CC="$ac_prog"
3850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 fi ;;
3858 esac
3859 fi
3860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3861 if test -n "$ac_ct_CC"; then
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3863 printf "%s\n" "$ac_ct_CC" >&6; }
3864 else
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 printf "%s\n" "no" >&6; }
3867 fi
3868
3869
3870 test -n "$ac_ct_CC" && break
3871 done
3872
3873 if test "x$ac_ct_CC" = x; then
3874 CC=""
3875 else
3876 case $cross_compiling:$ac_tool_warned in
3877 yes:)
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3879 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3880 ac_tool_warned=yes ;;
3881 esac
3882 CC=$ac_ct_CC
3883 fi
3884 fi
3885
3886 fi
3887 if test -z "$CC"; then
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3890 set dummy ${ac_tool_prefix}clang; ac_word=$2
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 printf %s "checking for $ac_word... " >&6; }
3893 if test ${ac_cv_prog_CC+y}
3894 then :
3895 printf %s "(cached) " >&6
3896 else case e in #(
3897 e) if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 case $as_dir in #(((
3905 '') as_dir=./ ;;
3906 */) ;;
3907 *) as_dir=$as_dir/ ;;
3908 esac
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_CC="${ac_tool_prefix}clang"
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917 IFS=$as_save_IFS
3918
3919 fi ;;
3920 esac
3921 fi
3922 CC=$ac_cv_prog_CC
3923 if test -n "$CC"; then
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 printf "%s\n" "$CC" >&6; }
3926 else
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 printf "%s\n" "no" >&6; }
3929 fi
3930
3931
3932 fi
3933 if test -z "$ac_cv_prog_CC"; then
3934 ac_ct_CC=$CC
3935 # Extract the first word of "clang", so it can be a program name with args.
3936 set dummy clang; ac_word=$2
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 printf %s "checking for $ac_word... " >&6; }
3939 if test ${ac_cv_prog_ac_ct_CC+y}
3940 then :
3941 printf %s "(cached) " >&6
3942 else case e in #(
3943 e) if test -n "$ac_ct_CC"; then
3944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949 IFS=$as_save_IFS
3950 case $as_dir in #(((
3951 '') as_dir=./ ;;
3952 */) ;;
3953 *) as_dir=$as_dir/ ;;
3954 esac
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3957 ac_cv_prog_ac_ct_CC="clang"
3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3959 break 2
3960 fi
3961 done
3962 done
3963 IFS=$as_save_IFS
3964
3965 fi ;;
3966 esac
3967 fi
3968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3969 if test -n "$ac_ct_CC"; then
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3971 printf "%s\n" "$ac_ct_CC" >&6; }
3972 else
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 printf "%s\n" "no" >&6; }
3975 fi
3976
3977 if test "x$ac_ct_CC" = x; then
3978 CC=""
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981 yes:)
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned=yes ;;
3985 esac
3986 CC=$ac_ct_CC
3987 fi
3988 else
3989 CC="$ac_cv_prog_CC"
3990 fi
3991
3992 fi
3993
3994
3995 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3996 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3997 as_fn_error $? "no acceptable C compiler found in \$PATH
3998 See 'config.log' for more details" "$LINENO" 5; }
3999
4000 # Provide some information about the compiler.
4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4002 set X $ac_compile
4003 ac_compiler=$2
4004 for ac_option in --version -v -V -qversion -version; do
4005 { { ac_try="$ac_compiler $ac_option >&5"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 printf "%s\n" "$ac_try_echo"; } >&5
4012 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4013 ac_status=$?
4014 if test -s conftest.err; then
4015 sed '10a\
4016 ... rest of stderr output deleted ...
4017 10q' conftest.err >conftest.er1
4018 cat conftest.er1 >&5
4019 fi
4020 rm -f conftest.er1 conftest.err
4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }
4023 done
4024
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027
4028 int
4029 main (void)
4030 {
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 ac_clean_files_save=$ac_clean_files
4037 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4038 # Try to create an executable without -o first, disregard a.out.
4039 # It will help us diagnose broken compilers, and finding out an intuition
4040 # of exeext.
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4042 printf %s "checking whether the C compiler works... " >&6; }
4043 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4044
4045 # The possible output files:
4046 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4047
4048 ac_rmfiles=
4049 for ac_file in $ac_files
4050 do
4051 case $ac_file in
4052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4053 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4054 esac
4055 done
4056 rm -f $ac_rmfiles
4057
4058 if { { ac_try="$ac_link_default"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064 printf "%s\n" "$ac_try_echo"; } >&5
4065 (eval "$ac_link_default") 2>&5
4066 ac_status=$?
4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }
4069 then :
4070 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4071 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4072 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4073 # so that the user can short-circuit this test for compilers unknown to
4074 # Autoconf.
4075 for ac_file in $ac_files ''
4076 do
4077 test -f "$ac_file" || continue
4078 case $ac_file in
4079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4080 ;;
4081 [ab].out )
4082 # We found the default executable, but exeext='' is most
4083 # certainly right.
4084 break;;
4085 *.* )
4086 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4087 then :; else
4088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4089 fi
4090 # We set ac_cv_exeext here because the later test for it is not
4091 # safe: cross compilers may not add the suffix if given an '-o'
4092 # argument, so we may need to know it at that point already.
4093 # Even if this section looks crufty: it has the advantage of
4094 # actually working.
4095 break;;
4096 * )
4097 break;;
4098 esac
4099 done
4100 test "$ac_cv_exeext" = no && ac_cv_exeext=
4101
4102 else case e in #(
4103 e) ac_file='' ;;
4104 esac
4105 fi
4106 if test -z "$ac_file"
4107 then :
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 printf "%s\n" "no" >&6; }
4110 printf "%s\n" "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4114 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4115 as_fn_error 77 "C compiler cannot create executables
4116 See 'config.log' for more details" "$LINENO" 5; }
4117 else case e in #(
4118 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119 printf "%s\n" "yes" >&6; } ;;
4120 esac
4121 fi
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4123 printf %s "checking for C compiler default output file name... " >&6; }
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4125 printf "%s\n" "$ac_file" >&6; }
4126 ac_exeext=$ac_cv_exeext
4127
4128 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4129 ac_clean_files=$ac_clean_files_save
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4131 printf %s "checking for suffix of executables... " >&6; }
4132 if { { ac_try="$ac_link"
4133 case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136 esac
4137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138 printf "%s\n" "$ac_try_echo"; } >&5
4139 (eval "$ac_link") 2>&5
4140 ac_status=$?
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142 test $ac_status = 0; }
4143 then :
4144 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4145 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4146 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4147 # 'rm'.
4148 for ac_file in conftest.exe conftest conftest.*; do
4149 test -f "$ac_file" || continue
4150 case $ac_file in
4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4153 break;;
4154 * ) break;;
4155 esac
4156 done
4157 else case e in #(
4158 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4159 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4160 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4161 See 'config.log' for more details" "$LINENO" 5; } ;;
4162 esac
4163 fi
4164 rm -f conftest conftest$ac_cv_exeext
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4166 printf "%s\n" "$ac_cv_exeext" >&6; }
4167
4168 rm -f conftest.$ac_ext
4169 EXEEXT=$ac_cv_exeext
4170 ac_exeext=$EXEEXT
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <stdio.h>
4174 int
4175 main (void)
4176 {
4177 FILE *f = fopen ("conftest.out", "w");
4178 if (!f)
4179 return 1;
4180 return ferror (f) || fclose (f) != 0;
4181
4182 ;
4183 return 0;
4184 }
4185 _ACEOF
4186 ac_clean_files="$ac_clean_files conftest.out"
4187 # Check that the compiler produces executables we can run. If not, either
4188 # the compiler is broken, or we cross compile.
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4190 printf %s "checking whether we are cross compiling... " >&6; }
4191 if test "$cross_compiling" != yes; then
4192 { { ac_try="$ac_link"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4198 printf "%s\n" "$ac_try_echo"; } >&5
4199 (eval "$ac_link") 2>&5
4200 ac_status=$?
4201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4202 test $ac_status = 0; }
4203 if { ac_try='./conftest$ac_cv_exeext'
4204 { { case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207 esac
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 printf "%s\n" "$ac_try_echo"; } >&5
4210 (eval "$ac_try") 2>&5
4211 ac_status=$?
4212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }; }; then
4214 cross_compiling=no
4215 else
4216 if test "$cross_compiling" = maybe; then
4217 cross_compiling=yes
4218 else
4219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4220 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4221 as_fn_error 77 "cannot run C compiled programs.
4222 If you meant to cross compile, use '--host'.
4223 See 'config.log' for more details" "$LINENO" 5; }
4224 fi
4225 fi
4226 fi
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4228 printf "%s\n" "$cross_compiling" >&6; }
4229
4230 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4231 conftest.o conftest.obj conftest.out
4232 ac_clean_files=$ac_clean_files_save
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4234 printf %s "checking for suffix of object files... " >&6; }
4235 if test ${ac_cv_objext+y}
4236 then :
4237 printf %s "(cached) " >&6
4238 else case e in #(
4239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241
4242 int
4243 main (void)
4244 {
4245
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 rm -f conftest.o conftest.obj
4251 if { { ac_try="$ac_compile"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 printf "%s\n" "$ac_try_echo"; } >&5
4258 (eval "$ac_compile") 2>&5
4259 ac_status=$?
4260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }
4262 then :
4263 for ac_file in conftest.o conftest.obj conftest.*; do
4264 test -f "$ac_file" || continue;
4265 case $ac_file in
4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4268 break;;
4269 esac
4270 done
4271 else case e in #(
4272 e) printf "%s\n" "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4276 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4277 as_fn_error $? "cannot compute suffix of object files: cannot compile
4278 See 'config.log' for more details" "$LINENO" 5; } ;;
4279 esac
4280 fi
4281 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4282 esac
4283 fi
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4285 printf "%s\n" "$ac_cv_objext" >&6; }
4286 OBJEXT=$ac_cv_objext
4287 ac_objext=$OBJEXT
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4289 printf %s "checking whether the compiler supports GNU C... " >&6; }
4290 if test ${ac_cv_c_compiler_gnu+y}
4291 then :
4292 printf %s "(cached) " >&6
4293 else case e in #(
4294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 int
4298 main (void)
4299 {
4300 #ifndef __GNUC__
4301 choke me
4302 #endif
4303
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"
4309 then :
4310 ac_compiler_gnu=yes
4311 else case e in #(
4312 e) ac_compiler_gnu=no ;;
4313 esac
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4317 ;;
4318 esac
4319 fi
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4321 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324 if test $ac_compiler_gnu = yes; then
4325 GCC=yes
4326 else
4327 GCC=
4328 fi
4329 ac_test_CFLAGS=${CFLAGS+y}
4330 ac_save_CFLAGS=$CFLAGS
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 printf %s "checking whether $CC accepts -g... " >&6; }
4333 if test ${ac_cv_prog_cc_g+y}
4334 then :
4335 printf %s "(cached) " >&6
4336 else case e in #(
4337 e) ac_save_c_werror_flag=$ac_c_werror_flag
4338 ac_c_werror_flag=yes
4339 ac_cv_prog_cc_g=no
4340 CFLAGS="-g"
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343
4344 int
4345 main (void)
4346 {
4347
4348 ;
4349 return 0;
4350 }
4351 _ACEOF
4352 if ac_fn_c_try_compile "$LINENO"
4353 then :
4354 ac_cv_prog_cc_g=yes
4355 else case e in #(
4356 e) CFLAGS=""
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359
4360 int
4361 main (void)
4362 {
4363
4364 ;
4365 return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_c_try_compile "$LINENO"
4369 then :
4370
4371 else case e in #(
4372 e) ac_c_werror_flag=$ac_save_c_werror_flag
4373 CFLAGS="-g"
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376
4377 int
4378 main (void)
4379 {
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"
4386 then :
4387 ac_cv_prog_cc_g=yes
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4390 esac
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4393 esac
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4396 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4397 esac
4398 fi
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4400 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4401 if test $ac_test_CFLAGS; then
4402 CFLAGS=$ac_save_CFLAGS
4403 elif test $ac_cv_prog_cc_g = yes; then
4404 if test "$GCC" = yes; then
4405 CFLAGS="-g -O2"
4406 else
4407 CFLAGS="-g"
4408 fi
4409 else
4410 if test "$GCC" = yes; then
4411 CFLAGS="-O2"
4412 else
4413 CFLAGS=
4414 fi
4415 fi
4416 ac_prog_cc_stdc=no
4417 if test x$ac_prog_cc_stdc = xno
4418 then :
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4420 printf %s "checking for $CC option to enable C11 features... " >&6; }
4421 if test ${ac_cv_prog_cc_c11+y}
4422 then :
4423 printf %s "(cached) " >&6
4424 else case e in #(
4425 e) ac_cv_prog_cc_c11=no
4426 ac_save_CC=$CC
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 $ac_c_conftest_c11_program
4430 _ACEOF
4431 for ac_arg in '' -std=gnu11
4432 do
4433 CC="$ac_save_CC $ac_arg"
4434 if ac_fn_c_try_compile "$LINENO"
4435 then :
4436 ac_cv_prog_cc_c11=$ac_arg
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.beam
4439 test "x$ac_cv_prog_cc_c11" != "xno" && break
4440 done
4441 rm -f conftest.$ac_ext
4442 CC=$ac_save_CC ;;
4443 esac
4444 fi
4445
4446 if test "x$ac_cv_prog_cc_c11" = xno
4447 then :
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4449 printf "%s\n" "unsupported" >&6; }
4450 else case e in #(
4451 e) if test "x$ac_cv_prog_cc_c11" = x
4452 then :
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4454 printf "%s\n" "none needed" >&6; }
4455 else case e in #(
4456 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4457 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4458 CC="$CC $ac_cv_prog_cc_c11" ;;
4459 esac
4460 fi
4461 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4462 ac_prog_cc_stdc=c11 ;;
4463 esac
4464 fi
4465 fi
4466 if test x$ac_prog_cc_stdc = xno
4467 then :
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4469 printf %s "checking for $CC option to enable C99 features... " >&6; }
4470 if test ${ac_cv_prog_cc_c99+y}
4471 then :
4472 printf %s "(cached) " >&6
4473 else case e in #(
4474 e) ac_cv_prog_cc_c99=no
4475 ac_save_CC=$CC
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 $ac_c_conftest_c99_program
4479 _ACEOF
4480 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4481 do
4482 CC="$ac_save_CC $ac_arg"
4483 if ac_fn_c_try_compile "$LINENO"
4484 then :
4485 ac_cv_prog_cc_c99=$ac_arg
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.beam
4488 test "x$ac_cv_prog_cc_c99" != "xno" && break
4489 done
4490 rm -f conftest.$ac_ext
4491 CC=$ac_save_CC ;;
4492 esac
4493 fi
4494
4495 if test "x$ac_cv_prog_cc_c99" = xno
4496 then :
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498 printf "%s\n" "unsupported" >&6; }
4499 else case e in #(
4500 e) if test "x$ac_cv_prog_cc_c99" = x
4501 then :
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4503 printf "%s\n" "none needed" >&6; }
4504 else case e in #(
4505 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4506 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4507 CC="$CC $ac_cv_prog_cc_c99" ;;
4508 esac
4509 fi
4510 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4511 ac_prog_cc_stdc=c99 ;;
4512 esac
4513 fi
4514 fi
4515 if test x$ac_prog_cc_stdc = xno
4516 then :
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4518 printf %s "checking for $CC option to enable C89 features... " >&6; }
4519 if test ${ac_cv_prog_cc_c89+y}
4520 then :
4521 printf %s "(cached) " >&6
4522 else case e in #(
4523 e) ac_cv_prog_cc_c89=no
4524 ac_save_CC=$CC
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 $ac_c_conftest_c89_program
4528 _ACEOF
4529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4530 do
4531 CC="$ac_save_CC $ac_arg"
4532 if ac_fn_c_try_compile "$LINENO"
4533 then :
4534 ac_cv_prog_cc_c89=$ac_arg
4535 fi
4536 rm -f core conftest.err conftest.$ac_objext conftest.beam
4537 test "x$ac_cv_prog_cc_c89" != "xno" && break
4538 done
4539 rm -f conftest.$ac_ext
4540 CC=$ac_save_CC ;;
4541 esac
4542 fi
4543
4544 if test "x$ac_cv_prog_cc_c89" = xno
4545 then :
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4547 printf "%s\n" "unsupported" >&6; }
4548 else case e in #(
4549 e) if test "x$ac_cv_prog_cc_c89" = x
4550 then :
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4552 printf "%s\n" "none needed" >&6; }
4553 else case e in #(
4554 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4555 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4556 CC="$CC $ac_cv_prog_cc_c89" ;;
4557 esac
4558 fi
4559 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4560 ac_prog_cc_stdc=c89 ;;
4561 esac
4562 fi
4563 fi
4564
4565 ac_ext=c
4566 ac_cpp='$CPP $CPPFLAGS'
4567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4570
4571
4572 ac_ext=c
4573 ac_cpp='$CPP $CPPFLAGS'
4574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4578 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4579 if test ${am_cv_prog_cc_c_o+y}
4580 then :
4581 printf %s "(cached) " >&6
4582 else case e in #(
4583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585
4586 int
4587 main (void)
4588 {
4589
4590 ;
4591 return 0;
4592 }
4593 _ACEOF
4594 # Make sure it works both with $CC and with simple cc.
4595 # Following AC_PROG_CC_C_O, we do the test twice because some
4596 # compilers refuse to overwrite an existing .o file with -o,
4597 # though they will create one.
4598 am_cv_prog_cc_c_o=yes
4599 for am_i in 1 2; do
4600 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4601 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } \
4605 && test -f conftest2.$ac_objext; then
4606 : OK
4607 else
4608 am_cv_prog_cc_c_o=no
4609 break
4610 fi
4611 done
4612 # aligned with autoconf, so not including core; see bug#72225.
4613 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4614 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4615 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4616 unset am_i ;;
4617 esac
4618 fi
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4620 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4621 if test "$am_cv_prog_cc_c_o" != yes; then
4622 # Losing compiler, so override with the script.
4623 # FIXME: It is wrong to rewrite CC.
4624 # But if we don't then we get into trouble of one sort or another.
4625 # A longer-term fix would be to have automake use am__CC in this case,
4626 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4627 CC="$am_aux_dir/compile $CC"
4628 fi
4629 ac_ext=c
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635
4636 depcc="$CC" am_compiler_list=
4637
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4639 printf %s "checking dependency style of $depcc... " >&6; }
4640 if test ${am_cv_CC_dependencies_compiler_type+y}
4641 then :
4642 printf %s "(cached) " >&6
4643 else case e in #(
4644 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4645 # We make a subdir and do the tests there. Otherwise we can end up
4646 # making bogus files that we don't know about and never remove. For
4647 # instance it was reported that on HP-UX the gcc test will end up
4648 # making a dummy file named 'D' -- because '-MD' means "put the output
4649 # in D".
4650 rm -rf conftest.dir
4651 mkdir conftest.dir
4652 # Copy depcomp to subdir because otherwise we won't find it if we're
4653 # using a relative directory.
4654 cp "$am_depcomp" conftest.dir
4655 cd conftest.dir
4656 # We will build objects and dependencies in a subdirectory because
4657 # it helps to detect inapplicable dependency modes. For instance
4658 # both Tru64's cc and ICC support -MD to output dependencies as a
4659 # side effect of compilation, but ICC will put the dependencies in
4660 # the current directory while Tru64 will put them in the object
4661 # directory.
4662 mkdir sub
4663
4664 am_cv_CC_dependencies_compiler_type=none
4665 if test "$am_compiler_list" = ""; then
4666 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4667 fi
4668 am__universal=false
4669 case " $depcc " in #(
4670 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4671 esac
4672
4673 for depmode in $am_compiler_list; do
4674 # Setup a source with many dependencies, because some compilers
4675 # like to wrap large dependency lists on column 80 (with \), and
4676 # we should not choose a depcomp mode which is confused by this.
4677 #
4678 # We need to recreate these files for each test, as the compiler may
4679 # overwrite some of them when testing with obscure command lines.
4680 # This happens at least with the AIX C compiler.
4681 : > sub/conftest.c
4682 for i in 1 2 3 4 5 6; do
4683 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4684 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4685 # Solaris 10 /bin/sh.
4686 echo '/* dummy */' > sub/conftst$i.h
4687 done
4688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4689
4690 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4691 # mode. It turns out that the SunPro C++ compiler does not properly
4692 # handle '-M -o', and we need to detect this. Also, some Intel
4693 # versions had trouble with output in subdirs.
4694 am__obj=sub/conftest.${OBJEXT-o}
4695 am__minus_obj="-o $am__obj"
4696 case $depmode in
4697 gcc)
4698 # This depmode causes a compiler race in universal mode.
4699 test "$am__universal" = false || continue
4700 ;;
4701 nosideeffect)
4702 # After this tag, mechanisms are not by side-effect, so they'll
4703 # only be used when explicitly requested.
4704 if test "x$enable_dependency_tracking" = xyes; then
4705 continue
4706 else
4707 break
4708 fi
4709 ;;
4710 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4711 # This compiler won't grok '-c -o', but also, the minuso test has
4712 # not run yet. These depmodes are late enough in the game, and
4713 # so weak that their functioning should not be impacted.
4714 am__obj=conftest.${OBJEXT-o}
4715 am__minus_obj=
4716 ;;
4717 none) break ;;
4718 esac
4719 if depmode=$depmode \
4720 source=sub/conftest.c object=$am__obj \
4721 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4722 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4723 >/dev/null 2>conftest.err &&
4724 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4725 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4726 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4728 # icc doesn't choke on unknown options, it will just issue warnings
4729 # or remarks (even with -Werror). So we grep stderr for any message
4730 # that says an option was ignored or not supported.
4731 # When given -MP, icc 7.0 and 7.1 complain thus:
4732 # icc: Command line warning: ignoring option '-M'; no argument required
4733 # The diagnosis changed in icc 8.0:
4734 # icc: Command line remark: option '-MP' not supported
4735 if (grep 'ignoring option' conftest.err ||
4736 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4737 am_cv_CC_dependencies_compiler_type=$depmode
4738 break
4739 fi
4740 fi
4741 done
4742
4743 cd ..
4744 rm -rf conftest.dir
4745 else
4746 am_cv_CC_dependencies_compiler_type=none
4747 fi
4748 ;;
4749 esac
4750 fi
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4752 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4753 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4754
4755 if
4756 test "x$enable_dependency_tracking" != xno \
4757 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4758 am__fastdepCC_TRUE=
4759 am__fastdepCC_FALSE='#'
4760 else
4761 am__fastdepCC_TRUE='#'
4762 am__fastdepCC_FALSE=
4763 fi
4764
4765
4766
4767 ac_header= ac_cache=
4768 for ac_item in $ac_header_c_list
4769 do
4770 if test $ac_cache; then
4771 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4772 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4773 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4774 fi
4775 ac_header= ac_cache=
4776 elif test $ac_header; then
4777 ac_cache=$ac_item
4778 else
4779 ac_header=$ac_item
4780 fi
4781 done
4782
4783
4784
4785
4786
4787
4788
4789
4790 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4791 then :
4792
4793 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4794
4795 fi
4796
4797
4798
4799
4800
4801
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4803 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4804 if test ${ac_cv_safe_to_define___extensions__+y}
4805 then :
4806 printf %s "(cached) " >&6
4807 else case e in #(
4808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810
4811 # define __EXTENSIONS__ 1
4812 $ac_includes_default
4813 int
4814 main (void)
4815 {
4816
4817 ;
4818 return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_compile "$LINENO"
4822 then :
4823 ac_cv_safe_to_define___extensions__=yes
4824 else case e in #(
4825 e) ac_cv_safe_to_define___extensions__=no ;;
4826 esac
4827 fi
4828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4829 esac
4830 fi
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4832 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4833
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4835 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4836 if test ${ac_cv_should_define__xopen_source+y}
4837 then :
4838 printf %s "(cached) " >&6
4839 else case e in #(
4840 e) ac_cv_should_define__xopen_source=no
4841 if test $ac_cv_header_wchar_h = yes
4842 then :
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845
4846 #include <wchar.h>
4847 mbstate_t x;
4848 int
4849 main (void)
4850 {
4851
4852 ;
4853 return 0;
4854 }
4855 _ACEOF
4856 if ac_fn_c_try_compile "$LINENO"
4857 then :
4858
4859 else case e in #(
4860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 #define _XOPEN_SOURCE 500
4864 #include <wchar.h>
4865 mbstate_t x;
4866 int
4867 main (void)
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_c_try_compile "$LINENO"
4875 then :
4876 ac_cv_should_define__xopen_source=yes
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4879 esac
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4882 fi ;;
4883 esac
4884 fi
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4886 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4887
4888 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4889
4890 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4891
4892 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4893
4894 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4895
4896 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4897
4898 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4899
4900 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4901
4902 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4903
4904 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4905
4906 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4907
4908 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4909
4910 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4911
4912 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4913
4914 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4915
4916 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4917
4918 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4919
4920 if test $ac_cv_header_minix_config_h = yes
4921 then :
4922 MINIX=yes
4923 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4924
4925 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4926
4927 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4928
4929 else case e in #(
4930 e) MINIX= ;;
4931 esac
4932 fi
4933 if test $ac_cv_safe_to_define___extensions__ = yes
4934 then :
4935 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4936
4937 fi
4938 if test $ac_cv_should_define__xopen_source = yes
4939 then :
4940 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4941
4942 fi
4943
4944 # Check whether --enable-compiler-warnings was given.
4945 if test ${enable_compiler_warnings+y}
4946 then :
4947 enableval=$enable_compiler_warnings;
4948 fi
4949 case $enable_compiler_warnings in #(
4950 no | min | yes | max | all) :
4951 ;; #(
4952 *) :
4953 if test "x$enable_maintainer_mode" = xyes
4954 then :
4955 enable_compiler_warnings=yes
4956 else case e in #(
4957 e) enable_compiler_warnings=min ;;
4958 esac
4959 fi ;;
4960 esac
4961
4962 echo 'tldbg:KPSE_BASIC called (pkg=lua53, amopt=)' >&5
4963
4964 #
4965 # am_init_automake
4966 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4968 # is not polluted with repeated "-I."
4969 am__isrc=' -I$(srcdir)'
4970 # test to see if srcdir already configured
4971 if test -f $srcdir/config.status; then
4972 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4973 fi
4974 fi
4975
4976 # test whether we have cygpath
4977 if test -z "$CYGPATH_W"; then
4978 if (cygpath --version) >/dev/null 2>/dev/null; then
4979 CYGPATH_W='cygpath -w'
4980 else
4981 CYGPATH_W=echo
4982 fi
4983 fi
4984
4985
4986 # Define the identity of the package.
4987 PACKAGE='lua53--tex-live-'
4988 VERSION='5.3.6'
4989
4990
4991 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4992
4993
4994 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4995
4996 # Some tools Automake needs.
4997
4998 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4999
5000
5001 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5002
5003
5004 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5005
5006
5007 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5008
5009
5010 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5011
5012 # For better backward compatibility. To be removed once Automake 1.9.x
5013 # dies out for good. For more background, see:
5014 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5015 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5016 mkdir_p='$(MKDIR_P)'
5017
5018 # We need awk for the "check" target (and possibly the TAP driver). The
5019 # system "awk" is bad on some platforms.
5020 # Always define AMTAR for backward compatibility. Yes, it's still used
5021 # in the wild :-( We should find a proper way to deprecate it ...
5022 AMTAR='$${TAR-tar}'
5023
5024
5025 # We'll loop over all known methods to create a tar archive until one works.
5026 _am_tools='gnutar plaintar pax cpio none'
5027
5028 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
5029 # There is notably a 21 bits limit for the UID and the GID. In fact,
5030 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
5031 # and bug#13588).
5032 am_max_uid=2097151 # 2^21 - 1
5033 am_max_gid=$am_max_uid
5034 # The $UID and $GID variables are not portable, so we need to resort
5035 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
5036 # below are definitely unexpected, so allow the users to see them
5037 # (that is, avoid stderr redirection).
5038 am_uid=`id -u || echo unknown`
5039 am_gid=`id -g || echo unknown`
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
5041 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
5042 if test x$am_uid = xunknown; then
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
5044 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
5045 elif test $am_uid -le $am_max_uid; then
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5047 printf "%s\n" "yes" >&6; }
5048 else
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 printf "%s\n" "no" >&6; }
5051 _am_tools=none
5052 fi
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
5054 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
5055 if test x$gm_gid = xunknown; then
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
5057 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
5058 elif test $am_gid -le $am_max_gid; then
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5060 printf "%s\n" "yes" >&6; }
5061 else
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 printf "%s\n" "no" >&6; }
5064 _am_tools=none
5065 fi
5066
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
5068 printf %s "checking how to create a ustar tar archive... " >&6; }
5069
5070 # Go ahead even if we have the value already cached. We do so because we
5071 # need to set the values for the 'am__tar' and 'am__untar' variables.
5072 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
5073
5074 for _am_tool in $_am_tools; do
5075 case $_am_tool in
5076 gnutar)
5077 for _am_tar in tar gnutar gtar; do
5078 { echo "$as_me:$LINENO: $_am_tar --version" >&5
5079 ($_am_tar --version) >&5 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } && break
5083 done
5084 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
5085 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
5086 am__untar="$_am_tar -xf -"
5087 ;;
5088 plaintar)
5089 # Must skip GNU tar: if it does not support --format= it doesn't create
5090 # ustar tarball either.
5091 (tar --version) >/dev/null 2>&1 && continue
5092 am__tar='tar chf - "$$tardir"'
5093 am__tar_='tar chf - "$tardir"'
5094 am__untar='tar xf -'
5095 ;;
5096 pax)
5097 am__tar='pax -L -x ustar -w "$$tardir"'
5098 am__tar_='pax -L -x ustar -w "$tardir"'
5099 am__untar='pax -r'
5100 ;;
5101 cpio)
5102 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
5103 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
5104 am__untar='cpio -i -H ustar -d'
5105 ;;
5106 none)
5107 am__tar=false
5108 am__tar_=false
5109 am__untar=false
5110 ;;
5111 esac
5112
5113 # If the value was cached, stop now. We just wanted to have am__tar
5114 # and am__untar set.
5115 test -n "${am_cv_prog_tar_ustar}" && break
5116
5117 # tar/untar a dummy directory, and stop if the command works.
5118 rm -rf conftest.dir
5119 mkdir conftest.dir
5120 echo GrepMe > conftest.dir/file
5121 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5122 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }
5126 rm -rf conftest.dir
5127 if test -s conftest.tar; then
5128 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5129 ($am__untar <conftest.tar) >&5 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }
5133 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
5134 (cat conftest.dir/file) >&5 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }
5138 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5139 fi
5140 done
5141 rm -rf conftest.dir
5142
5143 if test ${am_cv_prog_tar_ustar+y}
5144 then :
5145 printf %s "(cached) " >&6
5146 else case e in #(
5147 e) am_cv_prog_tar_ustar=$_am_tool ;;
5148 esac
5149 fi
5150
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
5152 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
5153
5154
5155
5156
5157
5158 # Variables for tags utilities; see am/tags.am
5159 if test -z "$CTAGS"; then
5160 CTAGS=ctags
5161 fi
5162
5163 if test -z "$ETAGS"; then
5164 ETAGS=etags
5165 fi
5166
5167 if test -z "$CSCOPE"; then
5168 CSCOPE=cscope
5169 fi
5170
5171
5172
5173
5174
5175
5176
5177
5178 # am_maintainer_mode
5179
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5181 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5182 # Check whether --enable-maintainer-mode was given.
5183 if test ${enable_maintainer_mode+y}
5184 then :
5185 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5186 else case e in #(
5187 e) USE_MAINTAINER_MODE=no ;;
5188 esac
5189 fi
5190
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5192 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
5193 if test $USE_MAINTAINER_MODE = yes; then
5194 MAINTAINER_MODE_TRUE=
5195 MAINTAINER_MODE_FALSE='#'
5196 else
5197 MAINTAINER_MODE_TRUE='#'
5198 MAINTAINER_MODE_FALSE=
5199 fi
5200
5201 MAINT=$MAINTAINER_MODE_TRUE
5202
5203
5204
5205 # See comments in kpse-setup.m4 about system extensions.
5206
5207
5208 # Check whether prototypes work.
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
5210 printf %s "checking whether the compiler accepts prototypes... " >&6; }
5211 if test ${kb_cv_c_prototypes+y}
5212 then :
5213 printf %s "(cached) " >&6
5214 else case e in #(
5215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <stdarg.h>
5218 int
5219 main (void)
5220 {
5221 extern void foo(int i,...);
5222 ;
5223 return 0;
5224 }
5225 _ACEOF
5226 if ac_fn_c_try_link "$LINENO"
5227 then :
5228 kb_cv_c_prototypes=yes
5229 else case e in #(
5230 e) kb_cv_c_prototypes=no ;;
5231 esac
5232 fi
5233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5234 conftest$ac_exeext conftest.$ac_ext ;;
5235 esac
5236 fi
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
5238 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
5239 if test "x$kb_cv_c_prototypes" = xno; then
5240 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
5241 fi
5242
5243 # kpse_compiler_warnings options.
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
5245 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
5246 if test ${kpse_cv_warning_cflags+y}
5247 then :
5248 printf %s "(cached) " >&6
5249 else case e in #(
5250 e) if test "x$GCC" = xyes; then
5251 kpse_cv_warning_cflags=
5252 if test "x$enable_compiler_warnings" != xno; then
5253 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
5254 case `$CC -dumpversion` in #(
5255 3.4.* | 4.* | 5.*) :
5256 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
5257 *) :
5258 ;;
5259 esac
5260 case `$CC -dumpversion` in #(
5261 3.[234].* | 4.* | 5.*) :
5262 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
5263 *) :
5264 ;;
5265 esac
5266 if test "x$enable_compiler_warnings" != xmin; then
5267 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
5268 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
5269 if test "x$enable_compiler_warnings" != xyes; then
5270 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
5271 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
5272 case `$CC -dumpversion` in #(
5273 3.4.* | 4.* | 5.*) :
5274 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
5275 *) :
5276 ;;
5277 esac
5278 if test "x$enable_compiler_warnings" != xmax; then
5279 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
5280 fi
5281 fi
5282 fi
5283 fi
5284 elif test "x$enable_compiler_warnings" = xno; then
5285 kpse_cv_warning_cflags=
5286 else
5287 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
5288 fi ;;
5289 esac
5290 fi
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
5292 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
5293 WARNING_CFLAGS=$kpse_cv_warning_cflags
5294
5295
5296
5297
5298
5299
5300
5301 # end of kpse_basic macro.
5302 echo 'tldbg:KPSE_BASIC done (pkg=lua53, amopt=)' >&5
5303
5304
5305 ac_ext=c
5306 ac_cpp='$CPP $CPPFLAGS'
5307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5310 if test -n "$ac_tool_prefix"; then
5311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 printf %s "checking for $ac_word... " >&6; }
5315 if test ${ac_cv_prog_CC+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else case e in #(
5319 e) if test -n "$CC"; then
5320 ac_cv_prog_CC="$CC" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325 IFS=$as_save_IFS
5326 case $as_dir in #(((
5327 '') as_dir=./ ;;
5328 */) ;;
5329 *) as_dir=$as_dir/ ;;
5330 esac
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341 fi ;;
5342 esac
5343 fi
5344 CC=$ac_cv_prog_CC
5345 if test -n "$CC"; then
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5347 printf "%s\n" "$CC" >&6; }
5348 else
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 printf "%s\n" "no" >&6; }
5351 fi
5352
5353
5354 fi
5355 if test -z "$ac_cv_prog_CC"; then
5356 ac_ct_CC=$CC
5357 # Extract the first word of "gcc", so it can be a program name with args.
5358 set dummy gcc; ac_word=$2
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 printf %s "checking for $ac_word... " >&6; }
5361 if test ${ac_cv_prog_ac_ct_CC+y}
5362 then :
5363 printf %s "(cached) " >&6
5364 else case e in #(
5365 e) if test -n "$ac_ct_CC"; then
5366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371 IFS=$as_save_IFS
5372 case $as_dir in #(((
5373 '') as_dir=./ ;;
5374 */) ;;
5375 *) as_dir=$as_dir/ ;;
5376 esac
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_ac_ct_CC="gcc"
5380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi ;;
5388 esac
5389 fi
5390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5391 if test -n "$ac_ct_CC"; then
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5393 printf "%s\n" "$ac_ct_CC" >&6; }
5394 else
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 printf "%s\n" "no" >&6; }
5397 fi
5398
5399 if test "x$ac_ct_CC" = x; then
5400 CC=""
5401 else
5402 case $cross_compiling:$ac_tool_warned in
5403 yes:)
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406 ac_tool_warned=yes ;;
5407 esac
5408 CC=$ac_ct_CC
5409 fi
5410 else
5411 CC="$ac_cv_prog_CC"
5412 fi
5413
5414 if test -z "$CC"; then
5415 if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}cc; ac_word=$2
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 printf %s "checking for $ac_word... " >&6; }
5420 if test ${ac_cv_prog_CC+y}
5421 then :
5422 printf %s "(cached) " >&6
5423 else case e in #(
5424 e) if test -n "$CC"; then
5425 ac_cv_prog_CC="$CC" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430 IFS=$as_save_IFS
5431 case $as_dir in #(((
5432 '') as_dir=./ ;;
5433 */) ;;
5434 *) as_dir=$as_dir/ ;;
5435 esac
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_CC="${ac_tool_prefix}cc"
5439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 fi ;;
5447 esac
5448 fi
5449 CC=$ac_cv_prog_CC
5450 if test -n "$CC"; then
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5452 printf "%s\n" "$CC" >&6; }
5453 else
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 printf "%s\n" "no" >&6; }
5456 fi
5457
5458
5459 fi
5460 fi
5461 if test -z "$CC"; then
5462 # Extract the first word of "cc", so it can be a program name with args.
5463 set dummy cc; ac_word=$2
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 printf %s "checking for $ac_word... " >&6; }
5466 if test ${ac_cv_prog_CC+y}
5467 then :
5468 printf %s "(cached) " >&6
5469 else case e in #(
5470 e) if test -n "$CC"; then
5471 ac_cv_prog_CC="$CC" # Let the user override the test.
5472 else
5473 ac_prog_rejected=no
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 case $as_dir in #(((
5479 '') as_dir=./ ;;
5480 */) ;;
5481 *) as_dir=$as_dir/ ;;
5482 esac
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5485 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5486 ac_prog_rejected=yes
5487 continue
5488 fi
5489 ac_cv_prog_CC="cc"
5490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493 done
5494 done
5495 IFS=$as_save_IFS
5496
5497 if test $ac_prog_rejected = yes; then
5498 # We found a bogon in the path, so make sure we never use it.
5499 set dummy $ac_cv_prog_CC
5500 shift
5501 if test $# != 0; then
5502 # We chose a different compiler from the bogus one.
5503 # However, it has the same basename, so the bogon will be chosen
5504 # first if we set CC to just the basename; use the full file name.
5505 shift
5506 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5507 fi
5508 fi
5509 fi ;;
5510 esac
5511 fi
5512 CC=$ac_cv_prog_CC
5513 if test -n "$CC"; then
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5515 printf "%s\n" "$CC" >&6; }
5516 else
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 printf "%s\n" "no" >&6; }
5519 fi
5520
5521
5522 fi
5523 if test -z "$CC"; then
5524 if test -n "$ac_tool_prefix"; then
5525 for ac_prog in cl.exe
5526 do
5527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 printf %s "checking for $ac_word... " >&6; }
5531 if test ${ac_cv_prog_CC+y}
5532 then :
5533 printf %s "(cached) " >&6
5534 else case e in #(
5535 e) if test -n "$CC"; then
5536 ac_cv_prog_CC="$CC" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541 IFS=$as_save_IFS
5542 case $as_dir in #(((
5543 '') as_dir=./ ;;
5544 */) ;;
5545 *) as_dir=$as_dir/ ;;
5546 esac
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 fi ;;
5558 esac
5559 fi
5560 CC=$ac_cv_prog_CC
5561 if test -n "$CC"; then
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5563 printf "%s\n" "$CC" >&6; }
5564 else
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 printf "%s\n" "no" >&6; }
5567 fi
5568
5569
5570 test -n "$CC" && break
5571 done
5572 fi
5573 if test -z "$CC"; then
5574 ac_ct_CC=$CC
5575 for ac_prog in cl.exe
5576 do
5577 # Extract the first word of "$ac_prog", so it can be a program name with args.
5578 set dummy $ac_prog; ac_word=$2
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 printf %s "checking for $ac_word... " >&6; }
5581 if test ${ac_cv_prog_ac_ct_CC+y}
5582 then :
5583 printf %s "(cached) " >&6
5584 else case e in #(
5585 e) if test -n "$ac_ct_CC"; then
5586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 case $as_dir in #(((
5593 '') as_dir=./ ;;
5594 */) ;;
5595 *) as_dir=$as_dir/ ;;
5596 esac
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_ac_ct_CC="$ac_prog"
5600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603 done
5604 done
5605 IFS=$as_save_IFS
5606
5607 fi ;;
5608 esac
5609 fi
5610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5611 if test -n "$ac_ct_CC"; then
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5613 printf "%s\n" "$ac_ct_CC" >&6; }
5614 else
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 printf "%s\n" "no" >&6; }
5617 fi
5618
5619
5620 test -n "$ac_ct_CC" && break
5621 done
5622
5623 if test "x$ac_ct_CC" = x; then
5624 CC=""
5625 else
5626 case $cross_compiling:$ac_tool_warned in
5627 yes:)
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630 ac_tool_warned=yes ;;
5631 esac
5632 CC=$ac_ct_CC
5633 fi
5634 fi
5635
5636 fi
5637 if test -z "$CC"; then
5638 if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5640 set dummy ${ac_tool_prefix}clang; ac_word=$2
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 printf %s "checking for $ac_word... " >&6; }
5643 if test ${ac_cv_prog_CC+y}
5644 then :
5645 printf %s "(cached) " >&6
5646 else case e in #(
5647 e) if test -n "$CC"; then
5648 ac_cv_prog_CC="$CC" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 case $as_dir in #(((
5655 '') as_dir=./ ;;
5656 */) ;;
5657 *) as_dir=$as_dir/ ;;
5658 esac
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_CC="${ac_tool_prefix}clang"
5662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5663 break 2
5664 fi
5665 done
5666 done
5667 IFS=$as_save_IFS
5668
5669 fi ;;
5670 esac
5671 fi
5672 CC=$ac_cv_prog_CC
5673 if test -n "$CC"; then
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5675 printf "%s\n" "$CC" >&6; }
5676 else
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 printf "%s\n" "no" >&6; }
5679 fi
5680
5681
5682 fi
5683 if test -z "$ac_cv_prog_CC"; then
5684 ac_ct_CC=$CC
5685 # Extract the first word of "clang", so it can be a program name with args.
5686 set dummy clang; ac_word=$2
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 printf %s "checking for $ac_word... " >&6; }
5689 if test ${ac_cv_prog_ac_ct_CC+y}
5690 then :
5691 printf %s "(cached) " >&6
5692 else case e in #(
5693 e) if test -n "$ac_ct_CC"; then
5694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699 IFS=$as_save_IFS
5700 case $as_dir in #(((
5701 '') as_dir=./ ;;
5702 */) ;;
5703 *) as_dir=$as_dir/ ;;
5704 esac
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_ac_ct_CC="clang"
5708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711 done
5712 done
5713 IFS=$as_save_IFS
5714
5715 fi ;;
5716 esac
5717 fi
5718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5719 if test -n "$ac_ct_CC"; then
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5721 printf "%s\n" "$ac_ct_CC" >&6; }
5722 else
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 printf "%s\n" "no" >&6; }
5725 fi
5726
5727 if test "x$ac_ct_CC" = x; then
5728 CC=""
5729 else
5730 case $cross_compiling:$ac_tool_warned in
5731 yes:)
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5733 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5734 ac_tool_warned=yes ;;
5735 esac
5736 CC=$ac_ct_CC
5737 fi
5738 else
5739 CC="$ac_cv_prog_CC"
5740 fi
5741
5742 fi
5743
5744
5745 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5746 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5747 as_fn_error $? "no acceptable C compiler found in \$PATH
5748 See 'config.log' for more details" "$LINENO" 5; }
5749
5750 # Provide some information about the compiler.
5751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5752 set X $ac_compile
5753 ac_compiler=$2
5754 for ac_option in --version -v -V -qversion -version; do
5755 { { ac_try="$ac_compiler $ac_option >&5"
5756 case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759 esac
5760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5761 printf "%s\n" "$ac_try_echo"; } >&5
5762 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5763 ac_status=$?
5764 if test -s conftest.err; then
5765 sed '10a\
5766 ... rest of stderr output deleted ...
5767 10q' conftest.err >conftest.er1
5768 cat conftest.er1 >&5
5769 fi
5770 rm -f conftest.er1 conftest.err
5771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5772 test $ac_status = 0; }
5773 done
5774
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5776 printf %s "checking whether the compiler supports GNU C... " >&6; }
5777 if test ${ac_cv_c_compiler_gnu+y}
5778 then :
5779 printf %s "(cached) " >&6
5780 else case e in #(
5781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783
5784 int
5785 main (void)
5786 {
5787 #ifndef __GNUC__
5788 choke me
5789 #endif
5790
5791 ;
5792 return 0;
5793 }
5794 _ACEOF
5795 if ac_fn_c_try_compile "$LINENO"
5796 then :
5797 ac_compiler_gnu=yes
5798 else case e in #(
5799 e) ac_compiler_gnu=no ;;
5800 esac
5801 fi
5802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5803 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5804 ;;
5805 esac
5806 fi
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5808 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810
5811 if test $ac_compiler_gnu = yes; then
5812 GCC=yes
5813 else
5814 GCC=
5815 fi
5816 ac_test_CFLAGS=${CFLAGS+y}
5817 ac_save_CFLAGS=$CFLAGS
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5819 printf %s "checking whether $CC accepts -g... " >&6; }
5820 if test ${ac_cv_prog_cc_g+y}
5821 then :
5822 printf %s "(cached) " >&6
5823 else case e in #(
5824 e) ac_save_c_werror_flag=$ac_c_werror_flag
5825 ac_c_werror_flag=yes
5826 ac_cv_prog_cc_g=no
5827 CFLAGS="-g"
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830
5831 int
5832 main (void)
5833 {
5834
5835 ;
5836 return 0;
5837 }
5838 _ACEOF
5839 if ac_fn_c_try_compile "$LINENO"
5840 then :
5841 ac_cv_prog_cc_g=yes
5842 else case e in #(
5843 e) CFLAGS=""
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846
5847 int
5848 main (void)
5849 {
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"
5856 then :
5857
5858 else case e in #(
5859 e) ac_c_werror_flag=$ac_save_c_werror_flag
5860 CFLAGS="-g"
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863
5864 int
5865 main (void)
5866 {
5867
5868 ;
5869 return 0;
5870 }
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"
5873 then :
5874 ac_cv_prog_cc_g=yes
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5877 esac
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5880 esac
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5883 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5884 esac
5885 fi
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5887 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5888 if test $ac_test_CFLAGS; then
5889 CFLAGS=$ac_save_CFLAGS
5890 elif test $ac_cv_prog_cc_g = yes; then
5891 if test "$GCC" = yes; then
5892 CFLAGS="-g -O2"
5893 else
5894 CFLAGS="-g"
5895 fi
5896 else
5897 if test "$GCC" = yes; then
5898 CFLAGS="-O2"
5899 else
5900 CFLAGS=
5901 fi
5902 fi
5903 ac_prog_cc_stdc=no
5904 if test x$ac_prog_cc_stdc = xno
5905 then :
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5907 printf %s "checking for $CC option to enable C11 features... " >&6; }
5908 if test ${ac_cv_prog_cc_c11+y}
5909 then :
5910 printf %s "(cached) " >&6
5911 else case e in #(
5912 e) ac_cv_prog_cc_c11=no
5913 ac_save_CC=$CC
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 $ac_c_conftest_c11_program
5917 _ACEOF
5918 for ac_arg in '' -std=gnu11
5919 do
5920 CC="$ac_save_CC $ac_arg"
5921 if ac_fn_c_try_compile "$LINENO"
5922 then :
5923 ac_cv_prog_cc_c11=$ac_arg
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.beam
5926 test "x$ac_cv_prog_cc_c11" != "xno" && break
5927 done
5928 rm -f conftest.$ac_ext
5929 CC=$ac_save_CC ;;
5930 esac
5931 fi
5932
5933 if test "x$ac_cv_prog_cc_c11" = xno
5934 then :
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5936 printf "%s\n" "unsupported" >&6; }
5937 else case e in #(
5938 e) if test "x$ac_cv_prog_cc_c11" = x
5939 then :
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5941 printf "%s\n" "none needed" >&6; }
5942 else case e in #(
5943 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5944 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5945 CC="$CC $ac_cv_prog_cc_c11" ;;
5946 esac
5947 fi
5948 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5949 ac_prog_cc_stdc=c11 ;;
5950 esac
5951 fi
5952 fi
5953 if test x$ac_prog_cc_stdc = xno
5954 then :
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5956 printf %s "checking for $CC option to enable C99 features... " >&6; }
5957 if test ${ac_cv_prog_cc_c99+y}
5958 then :
5959 printf %s "(cached) " >&6
5960 else case e in #(
5961 e) ac_cv_prog_cc_c99=no
5962 ac_save_CC=$CC
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 $ac_c_conftest_c99_program
5966 _ACEOF
5967 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5968 do
5969 CC="$ac_save_CC $ac_arg"
5970 if ac_fn_c_try_compile "$LINENO"
5971 then :
5972 ac_cv_prog_cc_c99=$ac_arg
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext conftest.beam
5975 test "x$ac_cv_prog_cc_c99" != "xno" && break
5976 done
5977 rm -f conftest.$ac_ext
5978 CC=$ac_save_CC ;;
5979 esac
5980 fi
5981
5982 if test "x$ac_cv_prog_cc_c99" = xno
5983 then :
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5985 printf "%s\n" "unsupported" >&6; }
5986 else case e in #(
5987 e) if test "x$ac_cv_prog_cc_c99" = x
5988 then :
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5990 printf "%s\n" "none needed" >&6; }
5991 else case e in #(
5992 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5993 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5994 CC="$CC $ac_cv_prog_cc_c99" ;;
5995 esac
5996 fi
5997 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5998 ac_prog_cc_stdc=c99 ;;
5999 esac
6000 fi
6001 fi
6002 if test x$ac_prog_cc_stdc = xno
6003 then :
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6005 printf %s "checking for $CC option to enable C89 features... " >&6; }
6006 if test ${ac_cv_prog_cc_c89+y}
6007 then :
6008 printf %s "(cached) " >&6
6009 else case e in #(
6010 e) ac_cv_prog_cc_c89=no
6011 ac_save_CC=$CC
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 $ac_c_conftest_c89_program
6015 _ACEOF
6016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6017 do
6018 CC="$ac_save_CC $ac_arg"
6019 if ac_fn_c_try_compile "$LINENO"
6020 then :
6021 ac_cv_prog_cc_c89=$ac_arg
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.beam
6024 test "x$ac_cv_prog_cc_c89" != "xno" && break
6025 done
6026 rm -f conftest.$ac_ext
6027 CC=$ac_save_CC ;;
6028 esac
6029 fi
6030
6031 if test "x$ac_cv_prog_cc_c89" = xno
6032 then :
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6034 printf "%s\n" "unsupported" >&6; }
6035 else case e in #(
6036 e) if test "x$ac_cv_prog_cc_c89" = x
6037 then :
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6039 printf "%s\n" "none needed" >&6; }
6040 else case e in #(
6041 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6042 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6043 CC="$CC $ac_cv_prog_cc_c89" ;;
6044 esac
6045 fi
6046 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6047 ac_prog_cc_stdc=c89 ;;
6048 esac
6049 fi
6050 fi
6051
6052 ac_ext=c
6053 ac_cpp='$CPP $CPPFLAGS'
6054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6057
6058
6059 ac_ext=c
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6065 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6066 if test ${am_cv_prog_cc_c_o+y}
6067 then :
6068 printf %s "(cached) " >&6
6069 else case e in #(
6070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072
6073 int
6074 main (void)
6075 {
6076
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 # Make sure it works both with $CC and with simple cc.
6082 # Following AC_PROG_CC_C_O, we do the test twice because some
6083 # compilers refuse to overwrite an existing .o file with -o,
6084 # though they will create one.
6085 am_cv_prog_cc_c_o=yes
6086 for am_i in 1 2; do
6087 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6088 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } \
6092 && test -f conftest2.$ac_objext; then
6093 : OK
6094 else
6095 am_cv_prog_cc_c_o=no
6096 break
6097 fi
6098 done
6099 # aligned with autoconf, so not including core; see bug#72225.
6100 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
6101 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
6102 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
6103 unset am_i ;;
6104 esac
6105 fi
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6107 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6108 if test "$am_cv_prog_cc_c_o" != yes; then
6109 # Losing compiler, so override with the script.
6110 # FIXME: It is wrong to rewrite CC.
6111 # But if we don't then we get into trouble of one sort or another.
6112 # A longer-term fix would be to have automake use am__CC in this case,
6113 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6114 CC="$am_aux_dir/compile $CC"
6115 fi
6116 ac_ext=c
6117 ac_cpp='$CPP $CPPFLAGS'
6118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6121
6122
6123 depcc="$CC" am_compiler_list=
6124
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6126 printf %s "checking dependency style of $depcc... " >&6; }
6127 if test ${am_cv_CC_dependencies_compiler_type+y}
6128 then :
6129 printf %s "(cached) " >&6
6130 else case e in #(
6131 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6132 # We make a subdir and do the tests there. Otherwise we can end up
6133 # making bogus files that we don't know about and never remove. For
6134 # instance it was reported that on HP-UX the gcc test will end up
6135 # making a dummy file named 'D' -- because '-MD' means "put the output
6136 # in D".
6137 rm -rf conftest.dir
6138 mkdir conftest.dir
6139 # Copy depcomp to subdir because otherwise we won't find it if we're
6140 # using a relative directory.
6141 cp "$am_depcomp" conftest.dir
6142 cd conftest.dir
6143 # We will build objects and dependencies in a subdirectory because
6144 # it helps to detect inapplicable dependency modes. For instance
6145 # both Tru64's cc and ICC support -MD to output dependencies as a
6146 # side effect of compilation, but ICC will put the dependencies in
6147 # the current directory while Tru64 will put them in the object
6148 # directory.
6149 mkdir sub
6150
6151 am_cv_CC_dependencies_compiler_type=none
6152 if test "$am_compiler_list" = ""; then
6153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6154 fi
6155 am__universal=false
6156 case " $depcc " in #(
6157 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6158 esac
6159
6160 for depmode in $am_compiler_list; do
6161 # Setup a source with many dependencies, because some compilers
6162 # like to wrap large dependency lists on column 80 (with \), and
6163 # we should not choose a depcomp mode which is confused by this.
6164 #
6165 # We need to recreate these files for each test, as the compiler may
6166 # overwrite some of them when testing with obscure command lines.
6167 # This happens at least with the AIX C compiler.
6168 : > sub/conftest.c
6169 for i in 1 2 3 4 5 6; do
6170 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6171 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6172 # Solaris 10 /bin/sh.
6173 echo '/* dummy */' > sub/conftst$i.h
6174 done
6175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6176
6177 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6178 # mode. It turns out that the SunPro C++ compiler does not properly
6179 # handle '-M -o', and we need to detect this. Also, some Intel
6180 # versions had trouble with output in subdirs.
6181 am__obj=sub/conftest.${OBJEXT-o}
6182 am__minus_obj="-o $am__obj"
6183 case $depmode in
6184 gcc)
6185 # This depmode causes a compiler race in universal mode.
6186 test "$am__universal" = false || continue
6187 ;;
6188 nosideeffect)
6189 # After this tag, mechanisms are not by side-effect, so they'll
6190 # only be used when explicitly requested.
6191 if test "x$enable_dependency_tracking" = xyes; then
6192 continue
6193 else
6194 break
6195 fi
6196 ;;
6197 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6198 # This compiler won't grok '-c -o', but also, the minuso test has
6199 # not run yet. These depmodes are late enough in the game, and
6200 # so weak that their functioning should not be impacted.
6201 am__obj=conftest.${OBJEXT-o}
6202 am__minus_obj=
6203 ;;
6204 none) break ;;
6205 esac
6206 if depmode=$depmode \
6207 source=sub/conftest.c object=$am__obj \
6208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6209 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6210 >/dev/null 2>conftest.err &&
6211 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6213 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6215 # icc doesn't choke on unknown options, it will just issue warnings
6216 # or remarks (even with -Werror). So we grep stderr for any message
6217 # that says an option was ignored or not supported.
6218 # When given -MP, icc 7.0 and 7.1 complain thus:
6219 # icc: Command line warning: ignoring option '-M'; no argument required
6220 # The diagnosis changed in icc 8.0:
6221 # icc: Command line remark: option '-MP' not supported
6222 if (grep 'ignoring option' conftest.err ||
6223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6224 am_cv_CC_dependencies_compiler_type=$depmode
6225 break
6226 fi
6227 fi
6228 done
6229
6230 cd ..
6231 rm -rf conftest.dir
6232 else
6233 am_cv_CC_dependencies_compiler_type=none
6234 fi
6235 ;;
6236 esac
6237 fi
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6239 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6240 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6241
6242 if
6243 test "x$enable_dependency_tracking" != xno \
6244 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6245 am__fastdepCC_TRUE=
6246 am__fastdepCC_FALSE='#'
6247 else
6248 am__fastdepCC_TRUE='#'
6249 am__fastdepCC_FALSE=
6250 fi
6251
6252
6253
6254 if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 printf %s "checking for $ac_word... " >&6; }
6259 if test ${ac_cv_prog_RANLIB+y}
6260 then :
6261 printf %s "(cached) " >&6
6262 else case e in #(
6263 e) if test -n "$RANLIB"; then
6264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269 IFS=$as_save_IFS
6270 case $as_dir in #(((
6271 '') as_dir=./ ;;
6272 */) ;;
6273 *) as_dir=$as_dir/ ;;
6274 esac
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285 fi ;;
6286 esac
6287 fi
6288 RANLIB=$ac_cv_prog_RANLIB
6289 if test -n "$RANLIB"; then
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6291 printf "%s\n" "$RANLIB" >&6; }
6292 else
6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 printf "%s\n" "no" >&6; }
6295 fi
6296
6297
6298 fi
6299 if test -z "$ac_cv_prog_RANLIB"; then
6300 ac_ct_RANLIB=$RANLIB
6301 # Extract the first word of "ranlib", so it can be a program name with args.
6302 set dummy ranlib; ac_word=$2
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 printf %s "checking for $ac_word... " >&6; }
6305 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6306 then :
6307 printf %s "(cached) " >&6
6308 else case e in #(
6309 e) if test -n "$ac_ct_RANLIB"; then
6310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315 IFS=$as_save_IFS
6316 case $as_dir in #(((
6317 '') as_dir=./ ;;
6318 */) ;;
6319 *) as_dir=$as_dir/ ;;
6320 esac
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_ac_ct_RANLIB="ranlib"
6324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi ;;
6332 esac
6333 fi
6334 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6335 if test -n "$ac_ct_RANLIB"; then
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6337 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6338 else
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 printf "%s\n" "no" >&6; }
6341 fi
6342
6343 if test "x$ac_ct_RANLIB" = x; then
6344 RANLIB=":"
6345 else
6346 case $cross_compiling:$ac_tool_warned in
6347 yes:)
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350 ac_tool_warned=yes ;;
6351 esac
6352 RANLIB=$ac_ct_RANLIB
6353 fi
6354 else
6355 RANLIB="$ac_cv_prog_RANLIB"
6356 fi
6357
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6359 printf %s "checking whether ln -s works... " >&6; }
6360 LN_S=$as_ln_s
6361 if test "$LN_S" = "ln -s"; then
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6363 printf "%s\n" "yes" >&6; }
6364 else
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6366 printf "%s\n" "no, using $LN_S" >&6; }
6367 fi
6368
6369
6370 LUA53VERSION=5.3.6
6371
6372
6373 LUA53_LT_VERSINFO=8:6:3
6374
6375
6376 case `pwd` in
6377 *\ * | *\ *)
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6379 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6380 esac
6381
6382
6383
6384 macro_version='2.5.4'
6385 macro_revision='2.5.4'
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 ltmain=$ac_aux_dir/ltmain.sh
6401
6402
6403
6404 # Make sure we can run config.sub.
6405 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6406 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6407
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6409 printf %s "checking build system type... " >&6; }
6410 if test ${ac_cv_build+y}
6411 then :
6412 printf %s "(cached) " >&6
6413 else case e in #(
6414 e) ac_build_alias=$build_alias
6415 test "x$ac_build_alias" = x &&
6416 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6417 test "x$ac_build_alias" = x &&
6418 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6419 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6420 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6421 ;;
6422 esac
6423 fi
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6425 printf "%s\n" "$ac_cv_build" >&6; }
6426 case $ac_cv_build in
6427 *-*-*) ;;
6428 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6429 esac
6430 build=$ac_cv_build
6431 ac_save_IFS=$IFS; IFS='-'
6432 set x $ac_cv_build
6433 shift
6434 build_cpu=$1
6435 build_vendor=$2
6436 shift; shift
6437 # Remember, the first character of IFS is used to create $*,
6438 # except with old shells:
6439 build_os=$*
6440 IFS=$ac_save_IFS
6441 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6442
6443
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6445 printf %s "checking host system type... " >&6; }
6446 if test ${ac_cv_host+y}
6447 then :
6448 printf %s "(cached) " >&6
6449 else case e in #(
6450 e) if test "x$host_alias" = x; then
6451 ac_cv_host=$ac_cv_build
6452 else
6453 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6454 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6455 fi
6456 ;;
6457 esac
6458 fi
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6460 printf "%s\n" "$ac_cv_host" >&6; }
6461 case $ac_cv_host in
6462 *-*-*) ;;
6463 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6464 esac
6465 host=$ac_cv_host
6466 ac_save_IFS=$IFS; IFS='-'
6467 set x $ac_cv_host
6468 shift
6469 host_cpu=$1
6470 host_vendor=$2
6471 shift; shift
6472 # Remember, the first character of IFS is used to create $*,
6473 # except with old shells:
6474 host_os=$*
6475 IFS=$ac_save_IFS
6476 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6477
6478
6479 # Backslashify metacharacters that are still active within
6480 # double-quoted strings.
6481 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6482
6483 # Same as above, but do not quote variable references.
6484 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6485
6486 # Sed substitution to delay expansion of an escaped shell variable in a
6487 # double_quote_subst'ed string.
6488 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6489
6490 # Sed substitution to delay expansion of an escaped single quote.
6491 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6492
6493 # Sed substitution to avoid accidental globbing in evaled expressions
6494 no_glob_subst='s/\*/\\\*/g'
6495
6496 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6497 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6498 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6499
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6501 printf %s "checking how to print strings... " >&6; }
6502 # Test print first, because it will be a builtin if present.
6503 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6504 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6505 ECHO='print -r --'
6506 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6507 ECHO='printf %s\n'
6508 else
6509 # Use this function as a fallback that always works.
6510 func_fallback_echo ()
6511 {
6512 eval 'cat <<_LTECHO_EOF
6513 $1
6514 _LTECHO_EOF'
6515 }
6516 ECHO='func_fallback_echo'
6517 fi
6518
6519 # func_echo_all arg...
6520 # Invoke $ECHO with all args, space-separated.
6521 func_echo_all ()
6522 {
6523 $ECHO ""
6524 }
6525
6526 case $ECHO in
6527 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6528 printf "%s\n" "printf" >&6; } ;;
6529 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6530 printf "%s\n" "print -r" >&6; } ;;
6531 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6532 printf "%s\n" "cat" >&6; } ;;
6533 esac
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6549 printf %s "checking for a sed that does not truncate output... " >&6; }
6550 if test ${ac_cv_path_SED+y}
6551 then :
6552 printf %s "(cached) " >&6
6553 else case e in #(
6554 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6555 for ac_i in 1 2 3 4 5 6 7; do
6556 ac_script="$ac_script$as_nl$ac_script"
6557 done
6558 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6559 { ac_script=; unset ac_script;}
6560 if test -z "$SED"; then
6561 ac_path_SED_found=false
6562 # Loop through the user's path and test for each of PROGNAME-LIST
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566 IFS=$as_save_IFS
6567 case $as_dir in #(((
6568 '') as_dir=./ ;;
6569 */) ;;
6570 *) as_dir=$as_dir/ ;;
6571 esac
6572 for ac_prog in sed gsed
6573 do
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6576 as_fn_executable_p "$ac_path_SED" || continue
6577 # Check for GNU ac_path_SED and select it if it is found.
6578 # Check for GNU $ac_path_SED
6579 case `"$ac_path_SED" --version 2>&1` in #(
6580 *GNU*)
6581 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6582 #(
6583 *)
6584 ac_count=0
6585 printf %s 0123456789 >"conftest.in"
6586 while :
6587 do
6588 cat "conftest.in" "conftest.in" >"conftest.tmp"
6589 mv "conftest.tmp" "conftest.in"
6590 cp "conftest.in" "conftest.nl"
6591 printf "%s\n" '' >> "conftest.nl"
6592 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6594 as_fn_arith $ac_count + 1 && ac_count=$as_val
6595 if test $ac_count -gt ${ac_path_SED_max-0}; then
6596 # Best one so far, save it but keep looking for a better one
6597 ac_cv_path_SED="$ac_path_SED"
6598 ac_path_SED_max=$ac_count
6599 fi
6600 # 10*(2^10) chars as input seems more than enough
6601 test $ac_count -gt 10 && break
6602 done
6603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6604 esac
6605
6606 $ac_path_SED_found && break 3
6607 done
6608 done
6609 done
6610 IFS=$as_save_IFS
6611 if test -z "$ac_cv_path_SED"; then
6612 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6613 fi
6614 else
6615 ac_cv_path_SED=$SED
6616 fi
6617 ;;
6618 esac
6619 fi
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6621 printf "%s\n" "$ac_cv_path_SED" >&6; }
6622 SED="$ac_cv_path_SED"
6623 rm -f conftest.sed
6624
6625 test -z "$SED" && SED=sed
6626 Xsed="$SED -e 1s/^X//"
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6639 printf %s "checking for grep that handles long lines and -e... " >&6; }
6640 if test ${ac_cv_path_GREP+y}
6641 then :
6642 printf %s "(cached) " >&6
6643 else case e in #(
6644 e) if test -z "$GREP"; then
6645 ac_path_GREP_found=false
6646 # Loop through the user's path and test for each of PROGNAME-LIST
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6649 do
6650 IFS=$as_save_IFS
6651 case $as_dir in #(((
6652 '') as_dir=./ ;;
6653 */) ;;
6654 *) as_dir=$as_dir/ ;;
6655 esac
6656 for ac_prog in grep ggrep
6657 do
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6660 as_fn_executable_p "$ac_path_GREP" || continue
6661 # Check for GNU ac_path_GREP and select it if it is found.
6662 # Check for GNU $ac_path_GREP
6663 case `"$ac_path_GREP" --version 2>&1` in #(
6664 *GNU*)
6665 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6666 #(
6667 *)
6668 ac_count=0
6669 printf %s 0123456789 >"conftest.in"
6670 while :
6671 do
6672 cat "conftest.in" "conftest.in" >"conftest.tmp"
6673 mv "conftest.tmp" "conftest.in"
6674 cp "conftest.in" "conftest.nl"
6675 printf "%s\n" 'GREP' >> "conftest.nl"
6676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6678 as_fn_arith $ac_count + 1 && ac_count=$as_val
6679 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6680 # Best one so far, save it but keep looking for a better one
6681 ac_cv_path_GREP="$ac_path_GREP"
6682 ac_path_GREP_max=$ac_count
6683 fi
6684 # 10*(2^10) chars as input seems more than enough
6685 test $ac_count -gt 10 && break
6686 done
6687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6688 esac
6689
6690 $ac_path_GREP_found && break 3
6691 done
6692 done
6693 done
6694 IFS=$as_save_IFS
6695 if test -z "$ac_cv_path_GREP"; then
6696 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6697 fi
6698 else
6699 ac_cv_path_GREP=$GREP
6700 fi
6701 ;;
6702 esac
6703 fi
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6705 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6706 GREP="$ac_cv_path_GREP"
6707
6708
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6710 printf %s "checking for egrep... " >&6; }
6711 if test ${ac_cv_path_EGREP+y}
6712 then :
6713 printf %s "(cached) " >&6
6714 else case e in #(
6715 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6716 then ac_cv_path_EGREP="$GREP -E"
6717 else
6718 if test -z "$EGREP"; then
6719 ac_path_EGREP_found=false
6720 # Loop through the user's path and test for each of PROGNAME-LIST
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6723 do
6724 IFS=$as_save_IFS
6725 case $as_dir in #(((
6726 '') as_dir=./ ;;
6727 */) ;;
6728 *) as_dir=$as_dir/ ;;
6729 esac
6730 for ac_prog in egrep
6731 do
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6734 as_fn_executable_p "$ac_path_EGREP" || continue
6735 # Check for GNU ac_path_EGREP and select it if it is found.
6736 # Check for GNU $ac_path_EGREP
6737 case `"$ac_path_EGREP" --version 2>&1` in #(
6738 *GNU*)
6739 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6740 #(
6741 *)
6742 ac_count=0
6743 printf %s 0123456789 >"conftest.in"
6744 while :
6745 do
6746 cat "conftest.in" "conftest.in" >"conftest.tmp"
6747 mv "conftest.tmp" "conftest.in"
6748 cp "conftest.in" "conftest.nl"
6749 printf "%s\n" 'EGREP' >> "conftest.nl"
6750 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6752 as_fn_arith $ac_count + 1 && ac_count=$as_val
6753 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6754 # Best one so far, save it but keep looking for a better one
6755 ac_cv_path_EGREP="$ac_path_EGREP"
6756 ac_path_EGREP_max=$ac_count
6757 fi
6758 # 10*(2^10) chars as input seems more than enough
6759 test $ac_count -gt 10 && break
6760 done
6761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6762 esac
6763
6764 $ac_path_EGREP_found && break 3
6765 done
6766 done
6767 done
6768 IFS=$as_save_IFS
6769 if test -z "$ac_cv_path_EGREP"; then
6770 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6771 fi
6772 else
6773 ac_cv_path_EGREP=$EGREP
6774 fi
6775
6776 fi ;;
6777 esac
6778 fi
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6780 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6781 EGREP="$ac_cv_path_EGREP"
6782
6783 EGREP_TRADITIONAL=$EGREP
6784 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6785
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6787 printf %s "checking for fgrep... " >&6; }
6788 if test ${ac_cv_path_FGREP+y}
6789 then :
6790 printf %s "(cached) " >&6
6791 else case e in #(
6792 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6793 then ac_cv_path_FGREP="$GREP -F"
6794 else
6795 if test -z "$FGREP"; then
6796 ac_path_FGREP_found=false
6797 # Loop through the user's path and test for each of PROGNAME-LIST
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6800 do
6801 IFS=$as_save_IFS
6802 case $as_dir in #(((
6803 '') as_dir=./ ;;
6804 */) ;;
6805 *) as_dir=$as_dir/ ;;
6806 esac
6807 for ac_prog in fgrep
6808 do
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6811 as_fn_executable_p "$ac_path_FGREP" || continue
6812 # Check for GNU ac_path_FGREP and select it if it is found.
6813 # Check for GNU $ac_path_FGREP
6814 case `"$ac_path_FGREP" --version 2>&1` in #(
6815 *GNU*)
6816 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6817 #(
6818 *)
6819 ac_count=0
6820 printf %s 0123456789 >"conftest.in"
6821 while :
6822 do
6823 cat "conftest.in" "conftest.in" >"conftest.tmp"
6824 mv "conftest.tmp" "conftest.in"
6825 cp "conftest.in" "conftest.nl"
6826 printf "%s\n" 'FGREP' >> "conftest.nl"
6827 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6829 as_fn_arith $ac_count + 1 && ac_count=$as_val
6830 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6831 # Best one so far, save it but keep looking for a better one
6832 ac_cv_path_FGREP="$ac_path_FGREP"
6833 ac_path_FGREP_max=$ac_count
6834 fi
6835 # 10*(2^10) chars as input seems more than enough
6836 test $ac_count -gt 10 && break
6837 done
6838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6839 esac
6840
6841 $ac_path_FGREP_found && break 3
6842 done
6843 done
6844 done
6845 IFS=$as_save_IFS
6846 if test -z "$ac_cv_path_FGREP"; then
6847 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6848 fi
6849 else
6850 ac_cv_path_FGREP=$FGREP
6851 fi
6852
6853 fi ;;
6854 esac
6855 fi
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6857 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6858 FGREP="$ac_cv_path_FGREP"
6859
6860
6861 test -z "$GREP" && GREP=grep
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881 # Check whether --with-gnu-ld was given.
6882 if test ${with_gnu_ld+y}
6883 then :
6884 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6885 else case e in #(
6886 e) with_gnu_ld=no ;;
6887 esac
6888 fi
6889
6890 ac_prog=ld
6891 if test yes = "$GCC"; then
6892 # Check if gcc -print-prog-name=ld gives a path.
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6894 printf %s "checking for ld used by $CC... " >&6; }
6895 case $host in
6896 *-*-mingw* | *-*-windows*)
6897 # gcc leaves a trailing carriage return, which upsets mingw
6898 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6899 *)
6900 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6901 esac
6902 case $ac_prog in
6903 # Accept absolute paths.
6904 [\\/]* | ?:[\\/]*)
6905 re_direlt='/[^/][^/]*/\.\./'
6906 # Canonicalize the pathname of ld
6907 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6908 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6909 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6910 done
6911 test -z "$LD" && LD=$ac_prog
6912 ;;
6913 "")
6914 # If it fails, then pretend we aren't using GCC.
6915 ac_prog=ld
6916 ;;
6917 *)
6918 # If it is relative, then search for the first ld in PATH.
6919 with_gnu_ld=unknown
6920 ;;
6921 esac
6922 elif test yes = "$with_gnu_ld"; then
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6924 printf %s "checking for GNU ld... " >&6; }
6925 else
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6927 printf %s "checking for non-GNU ld... " >&6; }
6928 fi
6929 if test ${lt_cv_path_LD+y}
6930 then :
6931 printf %s "(cached) " >&6
6932 else case e in #(
6933 e) if test -z "$LD"; then
6934 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6935 for ac_dir in $PATH; do
6936 IFS=$lt_save_ifs
6937 test -z "$ac_dir" && ac_dir=.
6938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6939 lt_cv_path_LD=$ac_dir/$ac_prog
6940 # Check to see if the program is GNU ld. I'd rather use --version,
6941 # but apparently some variants of GNU ld only accept -v.
6942 # Break only if it was the GNU/non-GNU ld that we prefer.
6943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6944 *GNU* | *'with BFD'*)
6945 test no != "$with_gnu_ld" && break
6946 ;;
6947 *)
6948 test yes != "$with_gnu_ld" && break
6949 ;;
6950 esac
6951 fi
6952 done
6953 IFS=$lt_save_ifs
6954 else
6955 lt_cv_path_LD=$LD # Let the user override the test with a path.
6956 fi ;;
6957 esac
6958 fi
6959
6960 LD=$lt_cv_path_LD
6961 if test -n "$LD"; then
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6963 printf "%s\n" "$LD" >&6; }
6964 else
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 printf "%s\n" "no" >&6; }
6967 fi
6968 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6970 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6971 if test ${lt_cv_prog_gnu_ld+y}
6972 then :
6973 printf %s "(cached) " >&6
6974 else case e in #(
6975 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6976 case `$LD -v 2>&1 </dev/null` in
6977 *GNU* | *'with BFD'*)
6978 lt_cv_prog_gnu_ld=yes
6979 ;;
6980 *)
6981 lt_cv_prog_gnu_ld=no
6982 ;;
6983 esac ;;
6984 esac
6985 fi
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6987 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6988 with_gnu_ld=$lt_cv_prog_gnu_ld
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6999 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7000 if test ${lt_cv_path_NM+y}
7001 then :
7002 printf %s "(cached) " >&6
7003 else case e in #(
7004 e) if test -n "$NM"; then
7005 # Let the user override the test.
7006 lt_cv_path_NM=$NM
7007 else
7008 lt_nm_to_check=${ac_tool_prefix}nm
7009 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7010 lt_nm_to_check="$lt_nm_to_check nm"
7011 fi
7012 for lt_tmp_nm in $lt_nm_to_check; do
7013 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7014 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7015 IFS=$lt_save_ifs
7016 test -z "$ac_dir" && ac_dir=.
7017 tmp_nm=$ac_dir/$lt_tmp_nm
7018 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7019 # Check to see if the nm accepts a BSD-compat flag.
7020 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7021 # nm: unknown option "B" ignored
7022 # Tru64's nm complains that /dev/null is an invalid object file
7023 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7024 case $build_os in
7025 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7026 *) lt_bad_file=/dev/null ;;
7027 esac
7028 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7029 *$lt_bad_file* | *'Invalid file or object type'*)
7030 lt_cv_path_NM="$tmp_nm -B"
7031 break 2
7032 ;;
7033 *)
7034 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7035 */dev/null*)
7036 lt_cv_path_NM="$tmp_nm -p"
7037 break 2
7038 ;;
7039 *)
7040 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7041 continue # so that we can try to find one that supports BSD flags
7042 ;;
7043 esac
7044 ;;
7045 esac
7046 fi
7047 done
7048 IFS=$lt_save_ifs
7049 done
7050 : ${lt_cv_path_NM=no}
7051 fi ;;
7052 esac
7053 fi
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7055 printf "%s\n" "$lt_cv_path_NM" >&6; }
7056 if test no != "$lt_cv_path_NM"; then
7057 NM=$lt_cv_path_NM
7058 else
7059 # Didn't find any BSD compatible name lister, look for dumpbin.
7060 if test -n "$DUMPBIN"; then :
7061 # Let the user override the test.
7062 else
7063 if test -n "$ac_tool_prefix"; then
7064 for ac_prog in dumpbin "link -dump"
7065 do
7066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 printf %s "checking for $ac_word... " >&6; }
7070 if test ${ac_cv_prog_DUMPBIN+y}
7071 then :
7072 printf %s "(cached) " >&6
7073 else case e in #(
7074 e) if test -n "$DUMPBIN"; then
7075 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080 IFS=$as_save_IFS
7081 case $as_dir in #(((
7082 '') as_dir=./ ;;
7083 */) ;;
7084 *) as_dir=$as_dir/ ;;
7085 esac
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096 fi ;;
7097 esac
7098 fi
7099 DUMPBIN=$ac_cv_prog_DUMPBIN
7100 if test -n "$DUMPBIN"; then
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7102 printf "%s\n" "$DUMPBIN" >&6; }
7103 else
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 printf "%s\n" "no" >&6; }
7106 fi
7107
7108
7109 test -n "$DUMPBIN" && break
7110 done
7111 fi
7112 if test -z "$DUMPBIN"; then
7113 ac_ct_DUMPBIN=$DUMPBIN
7114 for ac_prog in dumpbin "link -dump"
7115 do
7116 # Extract the first word of "$ac_prog", so it can be a program name with args.
7117 set dummy $ac_prog; ac_word=$2
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 printf %s "checking for $ac_word... " >&6; }
7120 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7121 then :
7122 printf %s "(cached) " >&6
7123 else case e in #(
7124 e) if test -n "$ac_ct_DUMPBIN"; then
7125 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130 IFS=$as_save_IFS
7131 case $as_dir in #(((
7132 '') as_dir=./ ;;
7133 */) ;;
7134 *) as_dir=$as_dir/ ;;
7135 esac
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146 fi ;;
7147 esac
7148 fi
7149 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7150 if test -n "$ac_ct_DUMPBIN"; then
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7152 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7153 else
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 printf "%s\n" "no" >&6; }
7156 fi
7157
7158
7159 test -n "$ac_ct_DUMPBIN" && break
7160 done
7161
7162 if test "x$ac_ct_DUMPBIN" = x; then
7163 DUMPBIN=":"
7164 else
7165 case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 DUMPBIN=$ac_ct_DUMPBIN
7172 fi
7173 fi
7174
7175 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7176 *COFF*)
7177 DUMPBIN="$DUMPBIN -symbols -headers"
7178 ;;
7179 *)
7180 DUMPBIN=:
7181 ;;
7182 esac
7183 fi
7184
7185 if test : != "$DUMPBIN"; then
7186 NM=$DUMPBIN
7187 fi
7188 fi
7189 test -z "$NM" && NM=nm
7190
7191
7192
7193
7194
7195
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7197 printf %s "checking the name lister ($NM) interface... " >&6; }
7198 if test ${lt_cv_nm_interface+y}
7199 then :
7200 printf %s "(cached) " >&6
7201 else case e in #(
7202 e) lt_cv_nm_interface="BSD nm"
7203 echo "int some_variable = 0;" > conftest.$ac_ext
7204 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7205 (eval "$ac_compile" 2>conftest.err)
7206 cat conftest.err >&5
7207 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7208 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7209 cat conftest.err >&5
7210 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7211 cat conftest.out >&5
7212 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7213 lt_cv_nm_interface="MS dumpbin"
7214 fi
7215 rm -f conftest* ;;
7216 esac
7217 fi
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7219 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7220
7221 # find the maximum length of command line arguments
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7223 printf %s "checking the maximum length of command line arguments... " >&6; }
7224 if test ${lt_cv_sys_max_cmd_len+y}
7225 then :
7226 printf %s "(cached) " >&6
7227 else case e in #(
7228 e) i=0
7229 teststring=ABCD
7230
7231 case $build_os in
7232 msdosdjgpp*)
7233 # On DJGPP, this test can blow up pretty badly due to problems in libc
7234 # (any single argument exceeding 2000 bytes causes a buffer overrun
7235 # during glob expansion). Even if it were fixed, the result of this
7236 # check would be larger than it should be.
7237 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7238 ;;
7239
7240 gnu* | ironclad*)
7241 # Under GNU Hurd and Ironclad, this test is not required because there
7242 # is no limit to the length of command line arguments.
7243 # Libtool will interpret -1 as no limit whatsoever
7244 lt_cv_sys_max_cmd_len=-1;
7245 ;;
7246
7247 cygwin* | mingw* | windows* | cegcc*)
7248 # On Win9x/ME, this test blows up -- it succeeds, but takes
7249 # about 5 minutes as the teststring grows exponentially.
7250 # Worse, since 9x/ME are not pre-emptively multitasking,
7251 # you end up with a "frozen" computer, even though with patience
7252 # the test eventually succeeds (with a max line length of 256k).
7253 # Instead, let's just punt: use the minimum linelength reported by
7254 # all of the supported platforms: 8192 (on NT/2K/XP).
7255 lt_cv_sys_max_cmd_len=8192;
7256 ;;
7257
7258 mint*)
7259 # On MiNT this can take a long time and run out of memory.
7260 lt_cv_sys_max_cmd_len=8192;
7261 ;;
7262
7263 amigaos*)
7264 # On AmigaOS with pdksh, this test takes hours, literally.
7265 # So we just punt and use a minimum line length of 8192.
7266 lt_cv_sys_max_cmd_len=8192;
7267 ;;
7268
7269 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7270 # This has been around since 386BSD, at least. Likely further.
7271 if test -x /sbin/sysctl; then
7272 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7273 elif test -x /usr/sbin/sysctl; then
7274 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7275 else
7276 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7277 fi
7278 # And add a safety zone
7279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7281 ;;
7282
7283 interix*)
7284 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7285 lt_cv_sys_max_cmd_len=196608
7286 ;;
7287
7288 os2*)
7289 # The test takes a long time on OS/2.
7290 lt_cv_sys_max_cmd_len=8192
7291 ;;
7292
7293 osf*)
7294 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7295 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7296 # nice to cause kernel panics so lets avoid the loop below.
7297 # First set a reasonable default.
7298 lt_cv_sys_max_cmd_len=16384
7299 #
7300 if test -x /sbin/sysconfig; then
7301 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7302 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7303 esac
7304 fi
7305 ;;
7306 sco3.2v5*)
7307 lt_cv_sys_max_cmd_len=102400
7308 ;;
7309 sysv5* | sco5v6* | sysv4.2uw2*)
7310 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7311 if test -n "$kargmax"; then
7312 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7313 else
7314 lt_cv_sys_max_cmd_len=32768
7315 fi
7316 ;;
7317 *)
7318 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7319 if test -n "$lt_cv_sys_max_cmd_len" && \
7320 test undefined != "$lt_cv_sys_max_cmd_len"; then
7321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7323 else
7324 # Make teststring a little bigger before we do anything with it.
7325 # a 1K string should be a reasonable start.
7326 for i in 1 2 3 4 5 6 7 8; do
7327 teststring=$teststring$teststring
7328 done
7329 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7330 # If test is not a shell built-in, we'll probably end up computing a
7331 # maximum length that is only half of the actual maximum length, but
7332 # we can't tell.
7333 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7334 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7335 test 17 != "$i" # 1/2 MB should be enough
7336 do
7337 i=`expr $i + 1`
7338 teststring=$teststring$teststring
7339 done
7340 # Only check the string length outside the loop.
7341 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7342 teststring=
7343 # Add a significant safety factor because C++ compilers can tack on
7344 # massive amounts of additional arguments before passing them to the
7345 # linker. It appears as though 1/2 is a usable value.
7346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7347 fi
7348 ;;
7349 esac
7350 ;;
7351 esac
7352 fi
7353
7354 if test -n "$lt_cv_sys_max_cmd_len"; then
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7356 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7357 else
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7359 printf "%s\n" "none" >&6; }
7360 fi
7361 max_cmd_len=$lt_cv_sys_max_cmd_len
7362
7363
7364
7365
7366
7367
7368 : ${CP="cp -f"}
7369 : ${MV="mv -f"}
7370 : ${RM="rm -f"}
7371
7372 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7373 lt_unset=unset
7374 else
7375 lt_unset=false
7376 fi
7377
7378
7379
7380
7381
7382 # test EBCDIC or ASCII
7383 case `echo X|tr X '\101'` in
7384 A) # ASCII based system
7385 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7386 lt_SP2NL='tr \040 \012'
7387 lt_NL2SP='tr \015\012 \040\040'
7388 ;;
7389 *) # EBCDIC based system
7390 lt_SP2NL='tr \100 \n'
7391 lt_NL2SP='tr \r\n \100\100'
7392 ;;
7393 esac
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7404 printf %s "checking how to convert $build file names to $host format... " >&6; }
7405 if test ${lt_cv_to_host_file_cmd+y}
7406 then :
7407 printf %s "(cached) " >&6
7408 else case e in #(
7409 e) case $host in
7410 *-*-mingw* )
7411 case $build in
7412 *-*-mingw* | *-*-windows* ) # actually msys
7413 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7414 ;;
7415 *-*-cygwin* )
7416 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7417 ;;
7418 * ) # otherwise, assume *nix
7419 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7420 ;;
7421 esac
7422 ;;
7423 *-*-cygwin* )
7424 case $build in
7425 *-*-mingw* | *-*-windows* ) # actually msys
7426 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7427 ;;
7428 *-*-cygwin* )
7429 lt_cv_to_host_file_cmd=func_convert_file_noop
7430 ;;
7431 * ) # otherwise, assume *nix
7432 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7433 ;;
7434 esac
7435 ;;
7436 * ) # unhandled hosts (and "normal" native builds)
7437 lt_cv_to_host_file_cmd=func_convert_file_noop
7438 ;;
7439 esac
7440 ;;
7441 esac
7442 fi
7443
7444 to_host_file_cmd=$lt_cv_to_host_file_cmd
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7446 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7447
7448
7449
7450
7451
7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7453 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7454 if test ${lt_cv_to_tool_file_cmd+y}
7455 then :
7456 printf %s "(cached) " >&6
7457 else case e in #(
7458 e) #assume ordinary cross tools, or native build.
7459 lt_cv_to_tool_file_cmd=func_convert_file_noop
7460 case $host in
7461 *-*-mingw* | *-*-windows* )
7462 case $build in
7463 *-*-mingw* | *-*-windows* ) # actually msys
7464 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7465 ;;
7466 esac
7467 ;;
7468 esac
7469 ;;
7470 esac
7471 fi
7472
7473 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7475 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7476
7477
7478
7479
7480
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7482 printf %s "checking for $LD option to reload object files... " >&6; }
7483 if test ${lt_cv_ld_reload_flag+y}
7484 then :
7485 printf %s "(cached) " >&6
7486 else case e in #(
7487 e) lt_cv_ld_reload_flag='-r' ;;
7488 esac
7489 fi
7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7491 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7492 reload_flag=$lt_cv_ld_reload_flag
7493 case $reload_flag in
7494 "" | " "*) ;;
7495 *) reload_flag=" $reload_flag" ;;
7496 esac
7497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7498 case $host_os in
7499 cygwin* | mingw* | windows* | pw32* | cegcc*)
7500 if test yes != "$GCC"; then
7501 reload_cmds=false
7502 fi
7503 ;;
7504 darwin*)
7505 if test yes = "$GCC"; then
7506 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7507 else
7508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7509 fi
7510 ;;
7511 esac
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 # Extract the first word of "file", so it can be a program name with args.
7522 set dummy file; ac_word=$2
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 printf %s "checking for $ac_word... " >&6; }
7525 if test ${ac_cv_prog_FILECMD+y}
7526 then :
7527 printf %s "(cached) " >&6
7528 else case e in #(
7529 e) if test -n "$FILECMD"; then
7530 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535 IFS=$as_save_IFS
7536 case $as_dir in #(((
7537 '') as_dir=./ ;;
7538 */) ;;
7539 *) as_dir=$as_dir/ ;;
7540 esac
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_FILECMD="file"
7544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547 done
7548 done
7549 IFS=$as_save_IFS
7550
7551 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7552 fi ;;
7553 esac
7554 fi
7555 FILECMD=$ac_cv_prog_FILECMD
7556 if test -n "$FILECMD"; then
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7558 printf "%s\n" "$FILECMD" >&6; }
7559 else
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 printf "%s\n" "no" >&6; }
7562 fi
7563
7564
7565
7566
7567
7568
7569
7570
7571 if test -n "$ac_tool_prefix"; then
7572 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7573 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 printf %s "checking for $ac_word... " >&6; }
7576 if test ${ac_cv_prog_OBJDUMP+y}
7577 then :
7578 printf %s "(cached) " >&6
7579 else case e in #(
7580 e) if test -n "$OBJDUMP"; then
7581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586 IFS=$as_save_IFS
7587 case $as_dir in #(((
7588 '') as_dir=./ ;;
7589 */) ;;
7590 *) as_dir=$as_dir/ ;;
7591 esac
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602 fi ;;
7603 esac
7604 fi
7605 OBJDUMP=$ac_cv_prog_OBJDUMP
7606 if test -n "$OBJDUMP"; then
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7608 printf "%s\n" "$OBJDUMP" >&6; }
7609 else
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 printf "%s\n" "no" >&6; }
7612 fi
7613
7614
7615 fi
7616 if test -z "$ac_cv_prog_OBJDUMP"; then
7617 ac_ct_OBJDUMP=$OBJDUMP
7618 # Extract the first word of "objdump", so it can be a program name with args.
7619 set dummy objdump; ac_word=$2
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 printf %s "checking for $ac_word... " >&6; }
7622 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7623 then :
7624 printf %s "(cached) " >&6
7625 else case e in #(
7626 e) if test -n "$ac_ct_OBJDUMP"; then
7627 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632 IFS=$as_save_IFS
7633 case $as_dir in #(((
7634 '') as_dir=./ ;;
7635 */) ;;
7636 *) as_dir=$as_dir/ ;;
7637 esac
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644 done
7645 done
7646 IFS=$as_save_IFS
7647
7648 fi ;;
7649 esac
7650 fi
7651 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7652 if test -n "$ac_ct_OBJDUMP"; then
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7654 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7655 else
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 printf "%s\n" "no" >&6; }
7658 fi
7659
7660 if test "x$ac_ct_OBJDUMP" = x; then
7661 OBJDUMP="false"
7662 else
7663 case $cross_compiling:$ac_tool_warned in
7664 yes:)
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7668 esac
7669 OBJDUMP=$ac_ct_OBJDUMP
7670 fi
7671 else
7672 OBJDUMP="$ac_cv_prog_OBJDUMP"
7673 fi
7674
7675 test -z "$OBJDUMP" && OBJDUMP=objdump
7676
7677
7678
7679
7680
7681
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7683 printf %s "checking how to recognize dependent libraries... " >&6; }
7684 if test ${lt_cv_deplibs_check_method+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else case e in #(
7688 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7689 lt_cv_file_magic_test_file=
7690 lt_cv_deplibs_check_method='unknown'
7691 # Need to set the preceding variable on all platforms that support
7692 # interlibrary dependencies.
7693 # 'none' -- dependencies not supported.
7694 # 'unknown' -- same as none, but documents that we really don't know.
7695 # 'pass_all' -- all dependencies passed with no checks.
7696 # 'file_magic [[regex]]' -- check by looking for files in library path
7697 # that responds to the $file_magic_cmd with a given extended regex.
7698 # If you have 'file' or equivalent on your system and you're not sure
7699 # whether 'pass_all' will *always* work, you probably want this one.
7700
7701 case $host_os in
7702 aix[4-9]*)
7703 lt_cv_deplibs_check_method=pass_all
7704 ;;
7705
7706 beos*)
7707 lt_cv_deplibs_check_method=pass_all
7708 ;;
7709
7710 bsdi[45]*)
7711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7712 lt_cv_file_magic_cmd='$FILECMD -L'
7713 lt_cv_file_magic_test_file=/shlib/libc.so
7714 ;;
7715
7716 cygwin*)
7717 # func_win32_libid is a shell function defined in ltmain.sh
7718 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7719 lt_cv_file_magic_cmd='func_win32_libid'
7720 ;;
7721
7722 mingw* | windows* | pw32*)
7723 # Base MSYS/MinGW do not provide the 'file' command needed by
7724 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7725 # unless we find 'file', for example because we are cross-compiling.
7726 if ( file / ) >/dev/null 2>&1; then
7727 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7728 lt_cv_file_magic_cmd='func_win32_libid'
7729 else
7730 # Keep this pattern in sync with the one in func_win32_libid.
7731 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7732 lt_cv_file_magic_cmd='$OBJDUMP -f'
7733 fi
7734 ;;
7735
7736 cegcc*)
7737 # use the weaker test based on 'objdump'. See mingw*.
7738 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7739 lt_cv_file_magic_cmd='$OBJDUMP -f'
7740 ;;
7741
7742 darwin* | rhapsody*)
7743 lt_cv_deplibs_check_method=pass_all
7744 ;;
7745
7746 freebsd* | dragonfly* | midnightbsd*)
7747 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7748 case $host_cpu in
7749 i*86 )
7750 # Not sure whether the presence of OpenBSD here was a mistake.
7751 # Let's accept both of them until this is cleared up.
7752 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7753 lt_cv_file_magic_cmd=$FILECMD
7754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7755 ;;
7756 esac
7757 else
7758 lt_cv_deplibs_check_method=pass_all
7759 fi
7760 ;;
7761
7762 haiku*)
7763 lt_cv_deplibs_check_method=pass_all
7764 ;;
7765
7766 hpux10.20* | hpux11*)
7767 lt_cv_file_magic_cmd=$FILECMD
7768 case $host_cpu in
7769 ia64*)
7770 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7771 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7772 ;;
7773 hppa*64*)
7774 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]'
7775 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7776 ;;
7777 *)
7778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7779 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7780 ;;
7781 esac
7782 ;;
7783
7784 interix[3-9]*)
7785 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7787 ;;
7788
7789 irix5* | irix6* | nonstopux*)
7790 case $LD in
7791 *-32|*"-32 ") libmagic=32-bit;;
7792 *-n32|*"-n32 ") libmagic=N32;;
7793 *-64|*"-64 ") libmagic=64-bit;;
7794 *) libmagic=never-match;;
7795 esac
7796 lt_cv_deplibs_check_method=pass_all
7797 ;;
7798
7799 # This must be glibc/ELF.
7800 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7801 lt_cv_deplibs_check_method=pass_all
7802 ;;
7803
7804 *-mlibc)
7805 lt_cv_deplibs_check_method=pass_all
7806 ;;
7807
7808 netbsd* | netbsdelf*-gnu)
7809 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7811 else
7812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7813 fi
7814 ;;
7815
7816 newos6*)
7817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7818 lt_cv_file_magic_cmd=$FILECMD
7819 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7820 ;;
7821
7822 *nto* | *qnx*)
7823 lt_cv_deplibs_check_method=pass_all
7824 ;;
7825
7826 openbsd*)
7827 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7829 else
7830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7831 fi
7832 ;;
7833
7834 osf3* | osf4* | osf5*)
7835 lt_cv_deplibs_check_method=pass_all
7836 ;;
7837
7838 rdos*)
7839 lt_cv_deplibs_check_method=pass_all
7840 ;;
7841
7842 serenity*)
7843 lt_cv_deplibs_check_method=pass_all
7844 ;;
7845
7846 solaris*)
7847 lt_cv_deplibs_check_method=pass_all
7848 ;;
7849
7850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7851 lt_cv_deplibs_check_method=pass_all
7852 ;;
7853
7854 sysv4 | sysv4.3*)
7855 case $host_vendor in
7856 motorola)
7857 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]'
7858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7859 ;;
7860 ncr)
7861 lt_cv_deplibs_check_method=pass_all
7862 ;;
7863 sequent)
7864 lt_cv_file_magic_cmd='/bin/file'
7865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7866 ;;
7867 sni)
7868 lt_cv_file_magic_cmd='/bin/file'
7869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7870 lt_cv_file_magic_test_file=/lib/libc.so
7871 ;;
7872 siemens)
7873 lt_cv_deplibs_check_method=pass_all
7874 ;;
7875 pc)
7876 lt_cv_deplibs_check_method=pass_all
7877 ;;
7878 esac
7879 ;;
7880
7881 tpf*)
7882 lt_cv_deplibs_check_method=pass_all
7883 ;;
7884 os2*)
7885 lt_cv_deplibs_check_method=pass_all
7886 ;;
7887 esac
7888 ;;
7889 esac
7890 fi
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7892 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7893
7894 file_magic_glob=
7895 want_nocaseglob=no
7896 if test "$build" = "$host"; then
7897 case $host_os in
7898 mingw* | windows* | pw32*)
7899 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7900 want_nocaseglob=yes
7901 else
7902 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7903 fi
7904 ;;
7905 esac
7906 fi
7907
7908 file_magic_cmd=$lt_cv_file_magic_cmd
7909 deplibs_check_method=$lt_cv_deplibs_check_method
7910 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933 if test -n "$ac_tool_prefix"; then
7934 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7935 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 printf %s "checking for $ac_word... " >&6; }
7938 if test ${ac_cv_prog_DLLTOOL+y}
7939 then :
7940 printf %s "(cached) " >&6
7941 else case e in #(
7942 e) if test -n "$DLLTOOL"; then
7943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948 IFS=$as_save_IFS
7949 case $as_dir in #(((
7950 '') as_dir=./ ;;
7951 */) ;;
7952 *) as_dir=$as_dir/ ;;
7953 esac
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960 done
7961 done
7962 IFS=$as_save_IFS
7963
7964 fi ;;
7965 esac
7966 fi
7967 DLLTOOL=$ac_cv_prog_DLLTOOL
7968 if test -n "$DLLTOOL"; then
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7970 printf "%s\n" "$DLLTOOL" >&6; }
7971 else
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 printf "%s\n" "no" >&6; }
7974 fi
7975
7976
7977 fi
7978 if test -z "$ac_cv_prog_DLLTOOL"; then
7979 ac_ct_DLLTOOL=$DLLTOOL
7980 # Extract the first word of "dlltool", so it can be a program name with args.
7981 set dummy dlltool; ac_word=$2
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 printf %s "checking for $ac_word... " >&6; }
7984 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7985 then :
7986 printf %s "(cached) " >&6
7987 else case e in #(
7988 e) if test -n "$ac_ct_DLLTOOL"; then
7989 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994 IFS=$as_save_IFS
7995 case $as_dir in #(((
7996 '') as_dir=./ ;;
7997 */) ;;
7998 *) as_dir=$as_dir/ ;;
7999 esac
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8002 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006 done
8007 done
8008 IFS=$as_save_IFS
8009
8010 fi ;;
8011 esac
8012 fi
8013 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8014 if test -n "$ac_ct_DLLTOOL"; then
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8016 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8017 else
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 printf "%s\n" "no" >&6; }
8020 fi
8021
8022 if test "x$ac_ct_DLLTOOL" = x; then
8023 DLLTOOL="false"
8024 else
8025 case $cross_compiling:$ac_tool_warned in
8026 yes:)
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8029 ac_tool_warned=yes ;;
8030 esac
8031 DLLTOOL=$ac_ct_DLLTOOL
8032 fi
8033 else
8034 DLLTOOL="$ac_cv_prog_DLLTOOL"
8035 fi
8036
8037 test -z "$DLLTOOL" && DLLTOOL=dlltool
8038
8039
8040
8041
8042
8043
8044
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8046 printf %s "checking how to associate runtime and link libraries... " >&6; }
8047 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8048 then :
8049 printf %s "(cached) " >&6
8050 else case e in #(
8051 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8052
8053 case $host_os in
8054 cygwin* | mingw* | windows* | pw32* | cegcc*)
8055 # two different shell functions defined in ltmain.sh;
8056 # decide which one to use based on capabilities of $DLLTOOL
8057 case `$DLLTOOL --help 2>&1` in
8058 *--identify-strict*)
8059 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8060 ;;
8061 *)
8062 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8063 ;;
8064 esac
8065 ;;
8066 *)
8067 # fallback: assume linklib IS sharedlib
8068 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8069 ;;
8070 esac
8071 ;;
8072 esac
8073 fi
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8075 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8076 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8077 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8078
8079
8080
8081
8082
8083
8084
8085 if test -n "$ac_tool_prefix"; then
8086 for ac_prog in ar
8087 do
8088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 printf %s "checking for $ac_word... " >&6; }
8092 if test ${ac_cv_prog_AR+y}
8093 then :
8094 printf %s "(cached) " >&6
8095 else case e in #(
8096 e) if test -n "$AR"; then
8097 ac_cv_prog_AR="$AR" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102 IFS=$as_save_IFS
8103 case $as_dir in #(((
8104 '') as_dir=./ ;;
8105 */) ;;
8106 *) as_dir=$as_dir/ ;;
8107 esac
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8110 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8112 break 2
8113 fi
8114 done
8115 done
8116 IFS=$as_save_IFS
8117
8118 fi ;;
8119 esac
8120 fi
8121 AR=$ac_cv_prog_AR
8122 if test -n "$AR"; then
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8124 printf "%s\n" "$AR" >&6; }
8125 else
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 printf "%s\n" "no" >&6; }
8128 fi
8129
8130
8131 test -n "$AR" && break
8132 done
8133 fi
8134 if test -z "$AR"; then
8135 ac_ct_AR=$AR
8136 for ac_prog in ar
8137 do
8138 # Extract the first word of "$ac_prog", so it can be a program name with args.
8139 set dummy $ac_prog; ac_word=$2
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 printf %s "checking for $ac_word... " >&6; }
8142 if test ${ac_cv_prog_ac_ct_AR+y}
8143 then :
8144 printf %s "(cached) " >&6
8145 else case e in #(
8146 e) if test -n "$ac_ct_AR"; then
8147 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152 IFS=$as_save_IFS
8153 case $as_dir in #(((
8154 '') as_dir=./ ;;
8155 */) ;;
8156 *) as_dir=$as_dir/ ;;
8157 esac
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8160 ac_cv_prog_ac_ct_AR="$ac_prog"
8161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8162 break 2
8163 fi
8164 done
8165 done
8166 IFS=$as_save_IFS
8167
8168 fi ;;
8169 esac
8170 fi
8171 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8172 if test -n "$ac_ct_AR"; then
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8174 printf "%s\n" "$ac_ct_AR" >&6; }
8175 else
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 printf "%s\n" "no" >&6; }
8178 fi
8179
8180
8181 test -n "$ac_ct_AR" && break
8182 done
8183
8184 if test "x$ac_ct_AR" = x; then
8185 AR="false"
8186 else
8187 case $cross_compiling:$ac_tool_warned in
8188 yes:)
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8191 ac_tool_warned=yes ;;
8192 esac
8193 AR=$ac_ct_AR
8194 fi
8195 fi
8196
8197 : ${AR=ar}
8198
8199
8200
8201
8202
8203
8204 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8205 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8206 # higher priority because that's what people were doing historically (setting
8207 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8208 # variable obsoleted/removed.
8209
8210 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8211 lt_ar_flags=$AR_FLAGS
8212
8213
8214
8215
8216
8217
8218 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8219 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8220
8221
8222
8223
8224
8225
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8227 printf %s "checking for archiver @FILE support... " >&6; }
8228 if test ${lt_cv_ar_at_file+y}
8229 then :
8230 printf %s "(cached) " >&6
8231 else case e in #(
8232 e) lt_cv_ar_at_file=no
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8235
8236 int
8237 main (void)
8238 {
8239
8240 ;
8241 return 0;
8242 }
8243 _ACEOF
8244 if ac_fn_c_try_compile "$LINENO"
8245 then :
8246 echo conftest.$ac_objext > conftest.lst
8247 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8249 (eval $lt_ar_try) 2>&5
8250 ac_status=$?
8251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8252 test $ac_status = 0; }
8253 if test 0 -eq "$ac_status"; then
8254 # Ensure the archiver fails upon bogus file names.
8255 rm -f conftest.$ac_objext libconftest.a
8256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8257 (eval $lt_ar_try) 2>&5
8258 ac_status=$?
8259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8260 test $ac_status = 0; }
8261 if test 0 -ne "$ac_status"; then
8262 lt_cv_ar_at_file=@
8263 fi
8264 fi
8265 rm -f conftest.* libconftest.a
8266
8267 fi
8268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8269 ;;
8270 esac
8271 fi
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8273 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8274
8275 if test no = "$lt_cv_ar_at_file"; then
8276 archiver_list_spec=
8277 else
8278 archiver_list_spec=$lt_cv_ar_at_file
8279 fi
8280
8281
8282
8283
8284
8285
8286
8287 if test -n "$ac_tool_prefix"; then
8288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8289 set dummy ${ac_tool_prefix}strip; ac_word=$2
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 printf %s "checking for $ac_word... " >&6; }
8292 if test ${ac_cv_prog_STRIP+y}
8293 then :
8294 printf %s "(cached) " >&6
8295 else case e in #(
8296 e) if test -n "$STRIP"; then
8297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8301 do
8302 IFS=$as_save_IFS
8303 case $as_dir in #(((
8304 '') as_dir=./ ;;
8305 */) ;;
8306 *) as_dir=$as_dir/ ;;
8307 esac
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8312 break 2
8313 fi
8314 done
8315 done
8316 IFS=$as_save_IFS
8317
8318 fi ;;
8319 esac
8320 fi
8321 STRIP=$ac_cv_prog_STRIP
8322 if test -n "$STRIP"; then
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8324 printf "%s\n" "$STRIP" >&6; }
8325 else
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 printf "%s\n" "no" >&6; }
8328 fi
8329
8330
8331 fi
8332 if test -z "$ac_cv_prog_STRIP"; then
8333 ac_ct_STRIP=$STRIP
8334 # Extract the first word of "strip", so it can be a program name with args.
8335 set dummy strip; ac_word=$2
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 printf %s "checking for $ac_word... " >&6; }
8338 if test ${ac_cv_prog_ac_ct_STRIP+y}
8339 then :
8340 printf %s "(cached) " >&6
8341 else case e in #(
8342 e) if test -n "$ac_ct_STRIP"; then
8343 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8347 do
8348 IFS=$as_save_IFS
8349 case $as_dir in #(((
8350 '') as_dir=./ ;;
8351 */) ;;
8352 *) as_dir=$as_dir/ ;;
8353 esac
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8356 ac_cv_prog_ac_ct_STRIP="strip"
8357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8358 break 2
8359 fi
8360 done
8361 done
8362 IFS=$as_save_IFS
8363
8364 fi ;;
8365 esac
8366 fi
8367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8368 if test -n "$ac_ct_STRIP"; then
8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8370 printf "%s\n" "$ac_ct_STRIP" >&6; }
8371 else
8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 printf "%s\n" "no" >&6; }
8374 fi
8375
8376 if test "x$ac_ct_STRIP" = x; then
8377 STRIP=":"
8378 else
8379 case $cross_compiling:$ac_tool_warned in
8380 yes:)
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8382 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8383 ac_tool_warned=yes ;;
8384 esac
8385 STRIP=$ac_ct_STRIP
8386 fi
8387 else
8388 STRIP="$ac_cv_prog_STRIP"
8389 fi
8390
8391 test -z "$STRIP" && STRIP=:
8392
8393
8394
8395
8396
8397
8398
8399 test -z "$RANLIB" && RANLIB=:
8400
8401
8402
8403
8404
8405
8406 # Determine commands to create old-style static archives.
8407 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8408 old_postinstall_cmds='chmod 644 $oldlib'
8409 old_postuninstall_cmds=
8410
8411 if test -n "$RANLIB"; then
8412 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8413 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8414 fi
8415
8416 case $host_os in
8417 darwin*)
8418 lock_old_archive_extraction=yes ;;
8419 *)
8420 lock_old_archive_extraction=no ;;
8421 esac
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461 # If no C compiler was specified, use CC.
8462 LTCC=${LTCC-"$CC"}
8463
8464 # If no C compiler flags were specified, use CFLAGS.
8465 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8466
8467 # Allow CC to be a program name with arguments.
8468 compiler=$CC
8469
8470
8471 # Check for command to grab the raw symbol name followed by C symbol from nm.
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8473 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8474 if test ${lt_cv_sys_global_symbol_pipe+y}
8475 then :
8476 printf %s "(cached) " >&6
8477 else case e in #(
8478 e)
8479 # These are sane defaults that work on at least a few old systems.
8480 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8481
8482 # Character class describing NM global symbol codes.
8483 symcode='[BCDEGRST]'
8484
8485 # Regexp to match symbols that can be accessed directly from C.
8486 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8487
8488 # Define system-specific variables.
8489 case $host_os in
8490 aix*)
8491 symcode='[BCDT]'
8492 ;;
8493 cygwin* | mingw* | windows* | pw32* | cegcc*)
8494 symcode='[ABCDGISTW]'
8495 ;;
8496 hpux*)
8497 if test ia64 = "$host_cpu"; then
8498 symcode='[ABCDEGRST]'
8499 fi
8500 ;;
8501 irix* | nonstopux*)
8502 symcode='[BCDEGRST]'
8503 ;;
8504 osf*)
8505 symcode='[BCDEGQRST]'
8506 ;;
8507 solaris*)
8508 symcode='[BCDRT]'
8509 ;;
8510 sco3.2v5*)
8511 symcode='[DT]'
8512 ;;
8513 sysv4.2uw2*)
8514 symcode='[DT]'
8515 ;;
8516 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8517 symcode='[ABDT]'
8518 ;;
8519 sysv4)
8520 symcode='[DFNSTU]'
8521 ;;
8522 esac
8523
8524 # If we're using GNU nm, then use its standard symbol codes.
8525 case `$NM -V 2>&1` in
8526 *GNU* | *'with BFD'*)
8527 symcode='[ABCDGIRSTW]' ;;
8528 esac
8529
8530 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8531 # Gets list of data symbols to import.
8532 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8533 # Adjust the below global symbol transforms to fixup imported variables.
8534 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8535 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8536 lt_c_name_lib_hook="\
8537 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8538 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8539 else
8540 # Disable hooks by default.
8541 lt_cv_sys_global_symbol_to_import=
8542 lt_cdecl_hook=
8543 lt_c_name_hook=
8544 lt_c_name_lib_hook=
8545 fi
8546
8547 # Transform an extracted symbol line into a proper C declaration.
8548 # Some systems (esp. on ia64) link data and code symbols differently,
8549 # so use this general approach.
8550 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8551 $lt_cdecl_hook\
8552 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8553 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8554
8555 # Transform an extracted symbol line into symbol name and symbol address
8556 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8557 $lt_c_name_hook\
8558 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8559 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8560
8561 # Transform an extracted symbol line into symbol name with lib prefix and
8562 # symbol address.
8563 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8564 $lt_c_name_lib_hook\
8565 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8566 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8567 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8568
8569 # Handle CRLF in mingw tool chain
8570 opt_cr=
8571 case $build_os in
8572 mingw* | windows*)
8573 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8574 ;;
8575 esac
8576
8577 # Try without a prefix underscore, then with it.
8578 for ac_symprfx in "" "_"; do
8579
8580 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8581 symxfrm="\\1 $ac_symprfx\\2 \\2"
8582
8583 # Write the raw and C identifiers.
8584 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8585 # Fake it for dumpbin and say T for any non-static function,
8586 # D for any global variable and I for any imported variable.
8587 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8588 # which start with @ or ?.
8589 lt_cv_sys_global_symbol_pipe="$AWK '"\
8590 " {last_section=section; section=\$ 3};"\
8591 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8592 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8593 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8594 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8595 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8596 " \$ 0!~/External *\|/{next};"\
8597 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8598 " {if(hide[section]) next};"\
8599 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8600 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8601 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8602 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8603 " ' prfx=^$ac_symprfx"
8604 else
8605 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8606 fi
8607 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8608
8609 # Check to see that the pipe works correctly.
8610 pipe_works=no
8611
8612 rm -f conftest*
8613 cat > conftest.$ac_ext <<_LT_EOF
8614 #ifdef __cplusplus
8615 extern "C" {
8616 #endif
8617 char nm_test_var;
8618 void nm_test_func(void);
8619 void nm_test_func(void){}
8620 #ifdef __cplusplus
8621 }
8622 #endif
8623 int main(void){nm_test_var='a';nm_test_func();return(0);}
8624 _LT_EOF
8625
8626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8627 (eval $ac_compile) 2>&5
8628 ac_status=$?
8629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8630 test $ac_status = 0; }; then
8631 # Now try to grab the symbols.
8632 nlist=conftest.nm
8633 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8634 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8635 # Try sorting and uniquifying the output.
8636 if sort "$nlist" | uniq > "$nlist"T; then
8637 mv -f "$nlist"T "$nlist"
8638 else
8639 rm -f "$nlist"T
8640 fi
8641
8642 # Make sure that we snagged all the symbols we need.
8643 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8644 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8645 cat <<_LT_EOF > conftest.$ac_ext
8646 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8647 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8648 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8649 relocations are performed -- see ld's documentation on pseudo-relocs. */
8650 # define LT_DLSYM_CONST
8651 #elif defined __osf__
8652 /* This system does not cope well with relocations in const data. */
8653 # define LT_DLSYM_CONST
8654 #else
8655 # define LT_DLSYM_CONST const
8656 #endif
8657
8658 #ifdef __cplusplus
8659 extern "C" {
8660 #endif
8661
8662 _LT_EOF
8663 # Now generate the symbol file.
8664 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8665
8666 cat <<_LT_EOF >> conftest.$ac_ext
8667
8668 /* The mapping between symbol names and symbols. */
8669 LT_DLSYM_CONST struct {
8670 const char *name;
8671 void *address;
8672 }
8673 lt__PROGRAM__LTX_preloaded_symbols[] =
8674 {
8675 { "@PROGRAM@", (void *) 0 },
8676 _LT_EOF
8677 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8678 cat <<\_LT_EOF >> conftest.$ac_ext
8679 {0, (void *) 0}
8680 };
8681
8682 /* This works around a problem in FreeBSD linker */
8683 #ifdef FREEBSD_WORKAROUND
8684 static const void *lt_preloaded_setup() {
8685 return lt__PROGRAM__LTX_preloaded_symbols;
8686 }
8687 #endif
8688
8689 #ifdef __cplusplus
8690 }
8691 #endif
8692 _LT_EOF
8693 # Now try linking the two files.
8694 mv conftest.$ac_objext conftstm.$ac_objext
8695 lt_globsym_save_LIBS=$LIBS
8696 lt_globsym_save_CFLAGS=$CFLAGS
8697 LIBS=conftstm.$ac_objext
8698 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8700 (eval $ac_link) 2>&5
8701 ac_status=$?
8702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8703 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8704 pipe_works=yes
8705 fi
8706 LIBS=$lt_globsym_save_LIBS
8707 CFLAGS=$lt_globsym_save_CFLAGS
8708 else
8709 echo "cannot find nm_test_func in $nlist" >&5
8710 fi
8711 else
8712 echo "cannot find nm_test_var in $nlist" >&5
8713 fi
8714 else
8715 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8716 fi
8717 else
8718 echo "$progname: failed program was:" >&5
8719 cat conftest.$ac_ext >&5
8720 fi
8721 rm -rf conftest* conftst*
8722
8723 # Do not use the global_symbol_pipe unless it works.
8724 if test yes = "$pipe_works"; then
8725 break
8726 else
8727 lt_cv_sys_global_symbol_pipe=
8728 fi
8729 done
8730 ;;
8731 esac
8732 fi
8733
8734 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8735 lt_cv_sys_global_symbol_to_cdecl=
8736 fi
8737 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8739 printf "%s\n" "failed" >&6; }
8740 else
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8742 printf "%s\n" "ok" >&6; }
8743 fi
8744
8745 # Response file support.
8746 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8747 nm_file_list_spec='@'
8748 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8749 nm_file_list_spec='@'
8750 fi
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8789 printf %s "checking for sysroot... " >&6; }
8790
8791 # Check whether --with-sysroot was given.
8792 if test ${with_sysroot+y}
8793 then :
8794 withval=$with_sysroot;
8795 else case e in #(
8796 e) with_sysroot=no ;;
8797 esac
8798 fi
8799
8800
8801 lt_sysroot=
8802 case $with_sysroot in #(
8803 yes)
8804 if test yes = "$GCC"; then
8805 # Trim trailing / since we'll always append absolute paths and we want
8806 # to avoid //, if only for less confusing output for the user.
8807 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8808 fi
8809 ;; #(
8810 /*)
8811 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8812 ;; #(
8813 no|'')
8814 ;; #(
8815 *)
8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8817 printf "%s\n" "$with_sysroot" >&6; }
8818 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8819 ;;
8820 esac
8821
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8823 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8824
8825
8826
8827
8828
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8830 printf %s "checking for a working dd... " >&6; }
8831 if test ${ac_cv_path_lt_DD+y}
8832 then :
8833 printf %s "(cached) " >&6
8834 else case e in #(
8835 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8836 cat conftest.i conftest.i >conftest2.i
8837 : ${lt_DD:=$DD}
8838 if test -z "$lt_DD"; then
8839 ac_path_lt_DD_found=false
8840 # Loop through the user's path and test for each of PROGNAME-LIST
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844 IFS=$as_save_IFS
8845 case $as_dir in #(((
8846 '') as_dir=./ ;;
8847 */) ;;
8848 *) as_dir=$as_dir/ ;;
8849 esac
8850 for ac_prog in dd
8851 do
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8854 as_fn_executable_p "$ac_path_lt_DD" || continue
8855 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8856 cmp -s conftest.i conftest.out \
8857 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8858 fi
8859 $ac_path_lt_DD_found && break 3
8860 done
8861 done
8862 done
8863 IFS=$as_save_IFS
8864 if test -z "$ac_cv_path_lt_DD"; then
8865 :
8866 fi
8867 else
8868 ac_cv_path_lt_DD=$lt_DD
8869 fi
8870
8871 rm -f conftest.i conftest2.i conftest.out ;;
8872 esac
8873 fi
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8875 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8876
8877
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8879 printf %s "checking how to truncate binary pipes... " >&6; }
8880 if test ${lt_cv_truncate_bin+y}
8881 then :
8882 printf %s "(cached) " >&6
8883 else case e in #(
8884 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8885 cat conftest.i conftest.i >conftest2.i
8886 lt_cv_truncate_bin=
8887 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8888 cmp -s conftest.i conftest.out \
8889 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8890 fi
8891 rm -f conftest.i conftest2.i conftest.out
8892 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8893 esac
8894 fi
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8896 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8897
8898
8899
8900
8901
8902
8903
8904 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8905 func_cc_basename ()
8906 {
8907 for cc_temp in $*""; do
8908 case $cc_temp in
8909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8911 \-*) ;;
8912 *) break;;
8913 esac
8914 done
8915 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8916 }
8917
8918 # Check whether --enable-libtool-lock was given.
8919 if test ${enable_libtool_lock+y}
8920 then :
8921 enableval=$enable_libtool_lock;
8922 fi
8923
8924 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8925
8926 # Some flags need to be propagated to the compiler or linker for good
8927 # libtool support.
8928 case $host in
8929 ia64-*-hpux*)
8930 # Find out what ABI is being produced by ac_compile, and set mode
8931 # options accordingly.
8932 echo 'int i;' > conftest.$ac_ext
8933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8934 (eval $ac_compile) 2>&5
8935 ac_status=$?
8936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8937 test $ac_status = 0; }; then
8938 case `$FILECMD conftest.$ac_objext` in
8939 *ELF-32*)
8940 HPUX_IA64_MODE=32
8941 ;;
8942 *ELF-64*)
8943 HPUX_IA64_MODE=64
8944 ;;
8945 esac
8946 fi
8947 rm -rf conftest*
8948 ;;
8949 *-*-irix6*)
8950 # Find out what ABI is being produced by ac_compile, and set linker
8951 # options accordingly.
8952 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8954 (eval $ac_compile) 2>&5
8955 ac_status=$?
8956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8957 test $ac_status = 0; }; then
8958 if test yes = "$lt_cv_prog_gnu_ld"; then
8959 case `$FILECMD conftest.$ac_objext` in
8960 *32-bit*)
8961 LD="${LD-ld} -melf32bsmip"
8962 ;;
8963 *N32*)
8964 LD="${LD-ld} -melf32bmipn32"
8965 ;;
8966 *64-bit*)
8967 LD="${LD-ld} -melf64bmip"
8968 ;;
8969 esac
8970 else
8971 case `$FILECMD conftest.$ac_objext` in
8972 *32-bit*)
8973 LD="${LD-ld} -32"
8974 ;;
8975 *N32*)
8976 LD="${LD-ld} -n32"
8977 ;;
8978 *64-bit*)
8979 LD="${LD-ld} -64"
8980 ;;
8981 esac
8982 fi
8983 fi
8984 rm -rf conftest*
8985 ;;
8986
8987 mips64*-*linux*)
8988 # Find out what ABI is being produced by ac_compile, and set linker
8989 # options accordingly.
8990 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8992 (eval $ac_compile) 2>&5
8993 ac_status=$?
8994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8995 test $ac_status = 0; }; then
8996 emul=elf
8997 case `$FILECMD conftest.$ac_objext` in
8998 *32-bit*)
8999 emul="${emul}32"
9000 ;;
9001 *64-bit*)
9002 emul="${emul}64"
9003 ;;
9004 esac
9005 case `$FILECMD conftest.$ac_objext` in
9006 *MSB*)
9007 emul="${emul}btsmip"
9008 ;;
9009 *LSB*)
9010 emul="${emul}ltsmip"
9011 ;;
9012 esac
9013 case `$FILECMD conftest.$ac_objext` in
9014 *N32*)
9015 emul="${emul}n32"
9016 ;;
9017 esac
9018 LD="${LD-ld} -m $emul"
9019 fi
9020 rm -rf conftest*
9021 ;;
9022
9023 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9024 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9025 # Find out what ABI is being produced by ac_compile, and set linker
9026 # options accordingly. Note that the listed cases only cover the
9027 # situations where additional linker options are needed (such as when
9028 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9029 # vice versa); the common cases where no linker options are needed do
9030 # not appear in the list.
9031 echo 'int i;' > conftest.$ac_ext
9032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9033 (eval $ac_compile) 2>&5
9034 ac_status=$?
9035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9036 test $ac_status = 0; }; then
9037 case `$FILECMD conftest.o` in
9038 *32-bit*)
9039 case $host in
9040 x86_64-*kfreebsd*-gnu)
9041 LD="${LD-ld} -m elf_i386_fbsd"
9042 ;;
9043 x86_64-*linux*|x86_64-gnu*)
9044 case `$FILECMD conftest.o` in
9045 *x86-64*)
9046 LD="${LD-ld} -m elf32_x86_64"
9047 ;;
9048 *)
9049 LD="${LD-ld} -m elf_i386"
9050 ;;
9051 esac
9052 ;;
9053 powerpc64le-*linux*)
9054 LD="${LD-ld} -m elf32lppclinux"
9055 ;;
9056 powerpc64-*linux*)
9057 LD="${LD-ld} -m elf32ppclinux"
9058 ;;
9059 s390x-*linux*)
9060 LD="${LD-ld} -m elf_s390"
9061 ;;
9062 sparc64-*linux*)
9063 LD="${LD-ld} -m elf32_sparc"
9064 ;;
9065 esac
9066 ;;
9067 *64-bit*)
9068 case $host in
9069 x86_64-*kfreebsd*-gnu)
9070 LD="${LD-ld} -m elf_x86_64_fbsd"
9071 ;;
9072 x86_64-*linux*|x86_64-gnu*)
9073 LD="${LD-ld} -m elf_x86_64"
9074 ;;
9075 powerpcle-*linux*)
9076 LD="${LD-ld} -m elf64lppc"
9077 ;;
9078 powerpc-*linux*)
9079 LD="${LD-ld} -m elf64ppc"
9080 ;;
9081 s390*-*linux*|s390*-*tpf*)
9082 LD="${LD-ld} -m elf64_s390"
9083 ;;
9084 sparc*-*linux*)
9085 LD="${LD-ld} -m elf64_sparc"
9086 ;;
9087 esac
9088 ;;
9089 esac
9090 fi
9091 rm -rf conftest*
9092 ;;
9093
9094 *-*-sco3.2v5*)
9095 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9096 SAVE_CFLAGS=$CFLAGS
9097 CFLAGS="$CFLAGS -belf"
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9099 printf %s "checking whether the C compiler needs -belf... " >&6; }
9100 if test ${lt_cv_cc_needs_belf+y}
9101 then :
9102 printf %s "(cached) " >&6
9103 else case e in #(
9104 e) ac_ext=c
9105 ac_cpp='$CPP $CPPFLAGS'
9106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9109
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112
9113 int
9114 main (void)
9115 {
9116
9117 ;
9118 return 0;
9119 }
9120 _ACEOF
9121 if ac_fn_c_try_link "$LINENO"
9122 then :
9123 lt_cv_cc_needs_belf=yes
9124 else case e in #(
9125 e) lt_cv_cc_needs_belf=no ;;
9126 esac
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9129 conftest$ac_exeext conftest.$ac_ext
9130 ac_ext=c
9131 ac_cpp='$CPP $CPPFLAGS'
9132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9135 ;;
9136 esac
9137 fi
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9139 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9140 if test yes != "$lt_cv_cc_needs_belf"; then
9141 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9142 CFLAGS=$SAVE_CFLAGS
9143 fi
9144 ;;
9145 *-*solaris*)
9146 # Find out what ABI is being produced by ac_compile, and set linker
9147 # options accordingly.
9148 echo 'int i;' > conftest.$ac_ext
9149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9150 (eval $ac_compile) 2>&5
9151 ac_status=$?
9152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9153 test $ac_status = 0; }; then
9154 case `$FILECMD conftest.o` in
9155 *64-bit*)
9156 case $lt_cv_prog_gnu_ld in
9157 yes*)
9158 case $host in
9159 i?86-*-solaris*|x86_64-*-solaris*)
9160 LD="${LD-ld} -m elf_x86_64"
9161 ;;
9162 sparc*-*-solaris*)
9163 LD="${LD-ld} -m elf64_sparc"
9164 ;;
9165 esac
9166 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9167 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9168 LD=${LD-ld}_sol2
9169 fi
9170 ;;
9171 *)
9172 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9173 LD="${LD-ld} -64"
9174 fi
9175 ;;
9176 esac
9177 ;;
9178 esac
9179 fi
9180 rm -rf conftest*
9181 ;;
9182 esac
9183
9184 need_locks=$enable_libtool_lock
9185
9186 if test -n "$ac_tool_prefix"; then
9187 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9188 set dummy ${ac_tool_prefix}mt; ac_word=$2
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190 printf %s "checking for $ac_word... " >&6; }
9191 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9192 then :
9193 printf %s "(cached) " >&6
9194 else case e in #(
9195 e) if test -n "$MANIFEST_TOOL"; then
9196 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9197 else
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $PATH
9200 do
9201 IFS=$as_save_IFS
9202 case $as_dir in #(((
9203 '') as_dir=./ ;;
9204 */) ;;
9205 *) as_dir=$as_dir/ ;;
9206 esac
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9209 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9211 break 2
9212 fi
9213 done
9214 done
9215 IFS=$as_save_IFS
9216
9217 fi ;;
9218 esac
9219 fi
9220 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9221 if test -n "$MANIFEST_TOOL"; then
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9223 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9224 else
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 printf "%s\n" "no" >&6; }
9227 fi
9228
9229
9230 fi
9231 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9232 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9233 # Extract the first word of "mt", so it can be a program name with args.
9234 set dummy mt; ac_word=$2
9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 printf %s "checking for $ac_word... " >&6; }
9237 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9238 then :
9239 printf %s "(cached) " >&6
9240 else case e in #(
9241 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9242 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9243 else
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $PATH
9246 do
9247 IFS=$as_save_IFS
9248 case $as_dir in #(((
9249 '') as_dir=./ ;;
9250 */) ;;
9251 *) as_dir=$as_dir/ ;;
9252 esac
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9255 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259 done
9260 done
9261 IFS=$as_save_IFS
9262
9263 fi ;;
9264 esac
9265 fi
9266 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9267 if test -n "$ac_ct_MANIFEST_TOOL"; then
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9269 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9270 else
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 printf "%s\n" "no" >&6; }
9273 fi
9274
9275 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9276 MANIFEST_TOOL=":"
9277 else
9278 case $cross_compiling:$ac_tool_warned in
9279 yes:)
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9281 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9282 ac_tool_warned=yes ;;
9283 esac
9284 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9285 fi
9286 else
9287 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9288 fi
9289
9290 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9292 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9293 if test ${lt_cv_path_manifest_tool+y}
9294 then :
9295 printf %s "(cached) " >&6
9296 else case e in #(
9297 e) lt_cv_path_manifest_tool=no
9298 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9299 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9300 cat conftest.err >&5
9301 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9302 lt_cv_path_manifest_tool=yes
9303 fi
9304 rm -f conftest* ;;
9305 esac
9306 fi
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9308 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9309 if test yes != "$lt_cv_path_manifest_tool"; then
9310 MANIFEST_TOOL=:
9311 fi
9312
9313
9314
9315
9316
9317
9318 case $host_os in
9319 rhapsody* | darwin*)
9320 if test -n "$ac_tool_prefix"; then
9321 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9322 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 printf %s "checking for $ac_word... " >&6; }
9325 if test ${ac_cv_prog_DSYMUTIL+y}
9326 then :
9327 printf %s "(cached) " >&6
9328 else case e in #(
9329 e) if test -n "$DSYMUTIL"; then
9330 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9331 else
9332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333 for as_dir in $PATH
9334 do
9335 IFS=$as_save_IFS
9336 case $as_dir in #(((
9337 '') as_dir=./ ;;
9338 */) ;;
9339 *) as_dir=$as_dir/ ;;
9340 esac
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9343 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9345 break 2
9346 fi
9347 done
9348 done
9349 IFS=$as_save_IFS
9350
9351 fi ;;
9352 esac
9353 fi
9354 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9355 if test -n "$DSYMUTIL"; then
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9357 printf "%s\n" "$DSYMUTIL" >&6; }
9358 else
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 printf "%s\n" "no" >&6; }
9361 fi
9362
9363
9364 fi
9365 if test -z "$ac_cv_prog_DSYMUTIL"; then
9366 ac_ct_DSYMUTIL=$DSYMUTIL
9367 # Extract the first word of "dsymutil", so it can be a program name with args.
9368 set dummy dsymutil; ac_word=$2
9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370 printf %s "checking for $ac_word... " >&6; }
9371 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9372 then :
9373 printf %s "(cached) " >&6
9374 else case e in #(
9375 e) if test -n "$ac_ct_DSYMUTIL"; then
9376 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9377 else
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9380 do
9381 IFS=$as_save_IFS
9382 case $as_dir in #(((
9383 '') as_dir=./ ;;
9384 */) ;;
9385 *) as_dir=$as_dir/ ;;
9386 esac
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9389 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9391 break 2
9392 fi
9393 done
9394 done
9395 IFS=$as_save_IFS
9396
9397 fi ;;
9398 esac
9399 fi
9400 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9401 if test -n "$ac_ct_DSYMUTIL"; then
9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9403 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9404 else
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 printf "%s\n" "no" >&6; }
9407 fi
9408
9409 if test "x$ac_ct_DSYMUTIL" = x; then
9410 DSYMUTIL=":"
9411 else
9412 case $cross_compiling:$ac_tool_warned in
9413 yes:)
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9415 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9416 ac_tool_warned=yes ;;
9417 esac
9418 DSYMUTIL=$ac_ct_DSYMUTIL
9419 fi
9420 else
9421 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9422 fi
9423
9424 if test -n "$ac_tool_prefix"; then
9425 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9426 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 printf %s "checking for $ac_word... " >&6; }
9429 if test ${ac_cv_prog_NMEDIT+y}
9430 then :
9431 printf %s "(cached) " >&6
9432 else case e in #(
9433 e) if test -n "$NMEDIT"; then
9434 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9435 else
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9438 do
9439 IFS=$as_save_IFS
9440 case $as_dir in #(((
9441 '') as_dir=./ ;;
9442 */) ;;
9443 *) as_dir=$as_dir/ ;;
9444 esac
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9447 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9449 break 2
9450 fi
9451 done
9452 done
9453 IFS=$as_save_IFS
9454
9455 fi ;;
9456 esac
9457 fi
9458 NMEDIT=$ac_cv_prog_NMEDIT
9459 if test -n "$NMEDIT"; then
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9461 printf "%s\n" "$NMEDIT" >&6; }
9462 else
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 printf "%s\n" "no" >&6; }
9465 fi
9466
9467
9468 fi
9469 if test -z "$ac_cv_prog_NMEDIT"; then
9470 ac_ct_NMEDIT=$NMEDIT
9471 # Extract the first word of "nmedit", so it can be a program name with args.
9472 set dummy nmedit; ac_word=$2
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9474 printf %s "checking for $ac_word... " >&6; }
9475 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9476 then :
9477 printf %s "(cached) " >&6
9478 else case e in #(
9479 e) if test -n "$ac_ct_NMEDIT"; then
9480 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9481 else
9482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483 for as_dir in $PATH
9484 do
9485 IFS=$as_save_IFS
9486 case $as_dir in #(((
9487 '') as_dir=./ ;;
9488 */) ;;
9489 *) as_dir=$as_dir/ ;;
9490 esac
9491 for ac_exec_ext in '' $ac_executable_extensions; do
9492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9493 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9495 break 2
9496 fi
9497 done
9498 done
9499 IFS=$as_save_IFS
9500
9501 fi ;;
9502 esac
9503 fi
9504 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9505 if test -n "$ac_ct_NMEDIT"; then
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9507 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9508 else
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 printf "%s\n" "no" >&6; }
9511 fi
9512
9513 if test "x$ac_ct_NMEDIT" = x; then
9514 NMEDIT=":"
9515 else
9516 case $cross_compiling:$ac_tool_warned in
9517 yes:)
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9519 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9520 ac_tool_warned=yes ;;
9521 esac
9522 NMEDIT=$ac_ct_NMEDIT
9523 fi
9524 else
9525 NMEDIT="$ac_cv_prog_NMEDIT"
9526 fi
9527
9528 if test -n "$ac_tool_prefix"; then
9529 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9530 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 printf %s "checking for $ac_word... " >&6; }
9533 if test ${ac_cv_prog_LIPO+y}
9534 then :
9535 printf %s "(cached) " >&6
9536 else case e in #(
9537 e) if test -n "$LIPO"; then
9538 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9539 else
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9542 do
9543 IFS=$as_save_IFS
9544 case $as_dir in #(((
9545 '') as_dir=./ ;;
9546 */) ;;
9547 *) as_dir=$as_dir/ ;;
9548 esac
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9551 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9553 break 2
9554 fi
9555 done
9556 done
9557 IFS=$as_save_IFS
9558
9559 fi ;;
9560 esac
9561 fi
9562 LIPO=$ac_cv_prog_LIPO
9563 if test -n "$LIPO"; then
9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9565 printf "%s\n" "$LIPO" >&6; }
9566 else
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 printf "%s\n" "no" >&6; }
9569 fi
9570
9571
9572 fi
9573 if test -z "$ac_cv_prog_LIPO"; then
9574 ac_ct_LIPO=$LIPO
9575 # Extract the first word of "lipo", so it can be a program name with args.
9576 set dummy lipo; ac_word=$2
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578 printf %s "checking for $ac_word... " >&6; }
9579 if test ${ac_cv_prog_ac_ct_LIPO+y}
9580 then :
9581 printf %s "(cached) " >&6
9582 else case e in #(
9583 e) if test -n "$ac_ct_LIPO"; then
9584 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9585 else
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in $PATH
9588 do
9589 IFS=$as_save_IFS
9590 case $as_dir in #(((
9591 '') as_dir=./ ;;
9592 */) ;;
9593 *) as_dir=$as_dir/ ;;
9594 esac
9595 for ac_exec_ext in '' $ac_executable_extensions; do
9596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9597 ac_cv_prog_ac_ct_LIPO="lipo"
9598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9599 break 2
9600 fi
9601 done
9602 done
9603 IFS=$as_save_IFS
9604
9605 fi ;;
9606 esac
9607 fi
9608 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9609 if test -n "$ac_ct_LIPO"; then
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9611 printf "%s\n" "$ac_ct_LIPO" >&6; }
9612 else
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 printf "%s\n" "no" >&6; }
9615 fi
9616
9617 if test "x$ac_ct_LIPO" = x; then
9618 LIPO=":"
9619 else
9620 case $cross_compiling:$ac_tool_warned in
9621 yes:)
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9624 ac_tool_warned=yes ;;
9625 esac
9626 LIPO=$ac_ct_LIPO
9627 fi
9628 else
9629 LIPO="$ac_cv_prog_LIPO"
9630 fi
9631
9632 if test -n "$ac_tool_prefix"; then
9633 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9634 set dummy ${ac_tool_prefix}otool; ac_word=$2
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 printf %s "checking for $ac_word... " >&6; }
9637 if test ${ac_cv_prog_OTOOL+y}
9638 then :
9639 printf %s "(cached) " >&6
9640 else case e in #(
9641 e) if test -n "$OTOOL"; then
9642 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9643 else
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9646 do
9647 IFS=$as_save_IFS
9648 case $as_dir in #(((
9649 '') as_dir=./ ;;
9650 */) ;;
9651 *) as_dir=$as_dir/ ;;
9652 esac
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9655 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9657 break 2
9658 fi
9659 done
9660 done
9661 IFS=$as_save_IFS
9662
9663 fi ;;
9664 esac
9665 fi
9666 OTOOL=$ac_cv_prog_OTOOL
9667 if test -n "$OTOOL"; then
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9669 printf "%s\n" "$OTOOL" >&6; }
9670 else
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 printf "%s\n" "no" >&6; }
9673 fi
9674
9675
9676 fi
9677 if test -z "$ac_cv_prog_OTOOL"; then
9678 ac_ct_OTOOL=$OTOOL
9679 # Extract the first word of "otool", so it can be a program name with args.
9680 set dummy otool; ac_word=$2
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 printf %s "checking for $ac_word... " >&6; }
9683 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9684 then :
9685 printf %s "(cached) " >&6
9686 else case e in #(
9687 e) if test -n "$ac_ct_OTOOL"; then
9688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9689 else
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 for as_dir in $PATH
9692 do
9693 IFS=$as_save_IFS
9694 case $as_dir in #(((
9695 '') as_dir=./ ;;
9696 */) ;;
9697 *) as_dir=$as_dir/ ;;
9698 esac
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9701 ac_cv_prog_ac_ct_OTOOL="otool"
9702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705 done
9706 done
9707 IFS=$as_save_IFS
9708
9709 fi ;;
9710 esac
9711 fi
9712 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9713 if test -n "$ac_ct_OTOOL"; then
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9715 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9716 else
9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 printf "%s\n" "no" >&6; }
9719 fi
9720
9721 if test "x$ac_ct_OTOOL" = x; then
9722 OTOOL=":"
9723 else
9724 case $cross_compiling:$ac_tool_warned in
9725 yes:)
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9727 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9728 ac_tool_warned=yes ;;
9729 esac
9730 OTOOL=$ac_ct_OTOOL
9731 fi
9732 else
9733 OTOOL="$ac_cv_prog_OTOOL"
9734 fi
9735
9736 if test -n "$ac_tool_prefix"; then
9737 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9738 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9740 printf %s "checking for $ac_word... " >&6; }
9741 if test ${ac_cv_prog_OTOOL64+y}
9742 then :
9743 printf %s "(cached) " >&6
9744 else case e in #(
9745 e) if test -n "$OTOOL64"; then
9746 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9747 else
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9750 do
9751 IFS=$as_save_IFS
9752 case $as_dir in #(((
9753 '') as_dir=./ ;;
9754 */) ;;
9755 *) as_dir=$as_dir/ ;;
9756 esac
9757 for ac_exec_ext in '' $ac_executable_extensions; do
9758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9759 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9761 break 2
9762 fi
9763 done
9764 done
9765 IFS=$as_save_IFS
9766
9767 fi ;;
9768 esac
9769 fi
9770 OTOOL64=$ac_cv_prog_OTOOL64
9771 if test -n "$OTOOL64"; then
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9773 printf "%s\n" "$OTOOL64" >&6; }
9774 else
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 printf "%s\n" "no" >&6; }
9777 fi
9778
9779
9780 fi
9781 if test -z "$ac_cv_prog_OTOOL64"; then
9782 ac_ct_OTOOL64=$OTOOL64
9783 # Extract the first word of "otool64", so it can be a program name with args.
9784 set dummy otool64; ac_word=$2
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 printf %s "checking for $ac_word... " >&6; }
9787 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9788 then :
9789 printf %s "(cached) " >&6
9790 else case e in #(
9791 e) if test -n "$ac_ct_OTOOL64"; then
9792 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9793 else
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9796 do
9797 IFS=$as_save_IFS
9798 case $as_dir in #(((
9799 '') as_dir=./ ;;
9800 */) ;;
9801 *) as_dir=$as_dir/ ;;
9802 esac
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9805 ac_cv_prog_ac_ct_OTOOL64="otool64"
9806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9807 break 2
9808 fi
9809 done
9810 done
9811 IFS=$as_save_IFS
9812
9813 fi ;;
9814 esac
9815 fi
9816 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9817 if test -n "$ac_ct_OTOOL64"; then
9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9819 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9820 else
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822 printf "%s\n" "no" >&6; }
9823 fi
9824
9825 if test "x$ac_ct_OTOOL64" = x; then
9826 OTOOL64=":"
9827 else
9828 case $cross_compiling:$ac_tool_warned in
9829 yes:)
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9831 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9832 ac_tool_warned=yes ;;
9833 esac
9834 OTOOL64=$ac_ct_OTOOL64
9835 fi
9836 else
9837 OTOOL64="$ac_cv_prog_OTOOL64"
9838 fi
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9867 printf %s "checking for -single_module linker flag... " >&6; }
9868 if test ${lt_cv_apple_cc_single_mod+y}
9869 then :
9870 printf %s "(cached) " >&6
9871 else case e in #(
9872 e) lt_cv_apple_cc_single_mod=no
9873 if test -z "$LT_MULTI_MODULE"; then
9874 # By default we will add the -single_module flag. You can override
9875 # by either setting the environment variable LT_MULTI_MODULE
9876 # non-empty at configure time, or by adding -multi_module to the
9877 # link flags.
9878 rm -rf libconftest.dylib*
9879 echo "int foo(void){return 1;}" > conftest.c
9880 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9881 -dynamiclib -Wl,-single_module conftest.c" >&5
9882 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9883 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9884 _lt_result=$?
9885 # If there is a non-empty error log, and "single_module"
9886 # appears in it, assume the flag caused a linker warning
9887 if test -s conftest.err && $GREP single_module conftest.err; then
9888 cat conftest.err >&5
9889 # Otherwise, if the output was created with a 0 exit code from
9890 # the compiler, it worked.
9891 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9892 lt_cv_apple_cc_single_mod=yes
9893 else
9894 cat conftest.err >&5
9895 fi
9896 rm -rf libconftest.dylib*
9897 rm -f conftest.*
9898 fi ;;
9899 esac
9900 fi
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9902 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9903
9904 # Feature test to disable chained fixups since it is not
9905 # compatible with '-undefined dynamic_lookup'
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9907 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9908 if test ${lt_cv_support_no_fixup_chains+y}
9909 then :
9910 printf %s "(cached) " >&6
9911 else case e in #(
9912 e) save_LDFLAGS=$LDFLAGS
9913 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9916
9917 int
9918 main (void)
9919 {
9920
9921 ;
9922 return 0;
9923 }
9924 _ACEOF
9925 if ac_fn_c_try_link "$LINENO"
9926 then :
9927 lt_cv_support_no_fixup_chains=yes
9928 else case e in #(
9929 e) lt_cv_support_no_fixup_chains=no
9930 ;;
9931 esac
9932 fi
9933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9934 conftest$ac_exeext conftest.$ac_ext
9935 LDFLAGS=$save_LDFLAGS
9936
9937 ;;
9938 esac
9939 fi
9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9941 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9942
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9944 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9945 if test ${lt_cv_ld_exported_symbols_list+y}
9946 then :
9947 printf %s "(cached) " >&6
9948 else case e in #(
9949 e) lt_cv_ld_exported_symbols_list=no
9950 save_LDFLAGS=$LDFLAGS
9951 echo "_main" > conftest.sym
9952 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9955
9956 int
9957 main (void)
9958 {
9959
9960 ;
9961 return 0;
9962 }
9963 _ACEOF
9964 if ac_fn_c_try_link "$LINENO"
9965 then :
9966 lt_cv_ld_exported_symbols_list=yes
9967 else case e in #(
9968 e) lt_cv_ld_exported_symbols_list=no ;;
9969 esac
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9972 conftest$ac_exeext conftest.$ac_ext
9973 LDFLAGS=$save_LDFLAGS
9974 ;;
9975 esac
9976 fi
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9978 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9979
9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9981 printf %s "checking for -force_load linker flag... " >&6; }
9982 if test ${lt_cv_ld_force_load+y}
9983 then :
9984 printf %s "(cached) " >&6
9985 else case e in #(
9986 e) lt_cv_ld_force_load=no
9987 cat > conftest.c << _LT_EOF
9988 int forced_loaded() { return 2;}
9989 _LT_EOF
9990 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9991 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9992 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9993 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9994 echo "$RANLIB libconftest.a" >&5
9995 $RANLIB libconftest.a 2>&5
9996 cat > conftest.c << _LT_EOF
9997 int main(void) { return 0;}
9998 _LT_EOF
9999 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10000 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10001 _lt_result=$?
10002 if test -s conftest.err && $GREP force_load conftest.err; then
10003 cat conftest.err >&5
10004 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10005 lt_cv_ld_force_load=yes
10006 else
10007 cat conftest.err >&5
10008 fi
10009 rm -f conftest.err libconftest.a conftest conftest.c
10010 rm -rf conftest.dSYM
10011 ;;
10012 esac
10013 fi
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10015 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10016 case $host_os in
10017 rhapsody* | darwin1.[012])
10018 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10019 darwin1.*)
10020 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10021 darwin*)
10022 case $MACOSX_DEPLOYMENT_TARGET,$host in
10023 10.[012],*|,*powerpc*-darwin[5-8]*)
10024 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10025 *)
10026 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10027 if test yes = "$lt_cv_support_no_fixup_chains"; then
10028 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10029 fi
10030 ;;
10031 esac
10032 ;;
10033 esac
10034 if test yes = "$lt_cv_apple_cc_single_mod"; then
10035 _lt_dar_single_mod='$single_module'
10036 fi
10037 _lt_dar_needs_single_mod=no
10038 case $host_os in
10039 rhapsody* | darwin1.*)
10040 _lt_dar_needs_single_mod=yes ;;
10041 darwin*)
10042 # When targeting Mac OS X 10.4 (darwin 8) or later,
10043 # -single_module is the default and -multi_module is unsupported.
10044 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10045 # target any OS version that needs -single_module.
10046 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10047 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10048 _lt_dar_needs_single_mod=yes ;;
10049 esac
10050 ;;
10051 esac
10052 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10053 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10054 else
10055 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10056 fi
10057 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10058 _lt_dsymutil='~$DSYMUTIL $lib || :'
10059 else
10060 _lt_dsymutil=
10061 fi
10062 ;;
10063 esac
10064
10065 # func_munge_path_list VARIABLE PATH
10066 # -----------------------------------
10067 # VARIABLE is name of variable containing _space_ separated list of
10068 # directories to be munged by the contents of PATH, which is string
10069 # having a format:
10070 # "DIR[:DIR]:"
10071 # string "DIR[ DIR]" will be prepended to VARIABLE
10072 # ":DIR[:DIR]"
10073 # string "DIR[ DIR]" will be appended to VARIABLE
10074 # "DIRP[:DIRP]::[DIRA:]DIRA"
10075 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10076 # "DIRA[ DIRA]" will be appended to VARIABLE
10077 # "DIR[:DIR]"
10078 # VARIABLE will be replaced by "DIR[ DIR]"
10079 func_munge_path_list ()
10080 {
10081 case x$2 in
10082 x)
10083 ;;
10084 *:)
10085 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10086 ;;
10087 x:*)
10088 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10089 ;;
10090 *::*)
10091 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10092 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10093 ;;
10094 *)
10095 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10096 ;;
10097 esac
10098 }
10099
10100 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10101 "
10102 if test "x$ac_cv_header_dlfcn_h" = xyes
10103 then :
10104 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10105
10106 fi
10107
10108
10109
10110
10111
10112 # Set options
10113 enable_win32_dll=yes
10114
10115 case $host in
10116 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10117 if test -n "$ac_tool_prefix"; then
10118 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10119 set dummy ${ac_tool_prefix}as; ac_word=$2
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 printf %s "checking for $ac_word... " >&6; }
10122 if test ${ac_cv_prog_AS+y}
10123 then :
10124 printf %s "(cached) " >&6
10125 else case e in #(
10126 e) if test -n "$AS"; then
10127 ac_cv_prog_AS="$AS" # Let the user override the test.
10128 else
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10131 do
10132 IFS=$as_save_IFS
10133 case $as_dir in #(((
10134 '') as_dir=./ ;;
10135 */) ;;
10136 *) as_dir=$as_dir/ ;;
10137 esac
10138 for ac_exec_ext in '' $ac_executable_extensions; do
10139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10140 ac_cv_prog_AS="${ac_tool_prefix}as"
10141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10142 break 2
10143 fi
10144 done
10145 done
10146 IFS=$as_save_IFS
10147
10148 fi ;;
10149 esac
10150 fi
10151 AS=$ac_cv_prog_AS
10152 if test -n "$AS"; then
10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10154 printf "%s\n" "$AS" >&6; }
10155 else
10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 printf "%s\n" "no" >&6; }
10158 fi
10159
10160
10161 fi
10162 if test -z "$ac_cv_prog_AS"; then
10163 ac_ct_AS=$AS
10164 # Extract the first word of "as", so it can be a program name with args.
10165 set dummy as; ac_word=$2
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 printf %s "checking for $ac_word... " >&6; }
10168 if test ${ac_cv_prog_ac_ct_AS+y}
10169 then :
10170 printf %s "(cached) " >&6
10171 else case e in #(
10172 e) if test -n "$ac_ct_AS"; then
10173 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10174 else
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10177 do
10178 IFS=$as_save_IFS
10179 case $as_dir in #(((
10180 '') as_dir=./ ;;
10181 */) ;;
10182 *) as_dir=$as_dir/ ;;
10183 esac
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10186 ac_cv_prog_ac_ct_AS="as"
10187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10188 break 2
10189 fi
10190 done
10191 done
10192 IFS=$as_save_IFS
10193
10194 fi ;;
10195 esac
10196 fi
10197 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10198 if test -n "$ac_ct_AS"; then
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10200 printf "%s\n" "$ac_ct_AS" >&6; }
10201 else
10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 printf "%s\n" "no" >&6; }
10204 fi
10205
10206 if test "x$ac_ct_AS" = x; then
10207 AS="false"
10208 else
10209 case $cross_compiling:$ac_tool_warned in
10210 yes:)
10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10212 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10213 ac_tool_warned=yes ;;
10214 esac
10215 AS=$ac_ct_AS
10216 fi
10217 else
10218 AS="$ac_cv_prog_AS"
10219 fi
10220
10221 if test -n "$ac_tool_prefix"; then
10222 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10223 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10225 printf %s "checking for $ac_word... " >&6; }
10226 if test ${ac_cv_prog_DLLTOOL+y}
10227 then :
10228 printf %s "(cached) " >&6
10229 else case e in #(
10230 e) if test -n "$DLLTOOL"; then
10231 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10232 else
10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234 for as_dir in $PATH
10235 do
10236 IFS=$as_save_IFS
10237 case $as_dir in #(((
10238 '') as_dir=./ ;;
10239 */) ;;
10240 *) as_dir=$as_dir/ ;;
10241 esac
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10244 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10246 break 2
10247 fi
10248 done
10249 done
10250 IFS=$as_save_IFS
10251
10252 fi ;;
10253 esac
10254 fi
10255 DLLTOOL=$ac_cv_prog_DLLTOOL
10256 if test -n "$DLLTOOL"; then
10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10258 printf "%s\n" "$DLLTOOL" >&6; }
10259 else
10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 printf "%s\n" "no" >&6; }
10262 fi
10263
10264
10265 fi
10266 if test -z "$ac_cv_prog_DLLTOOL"; then
10267 ac_ct_DLLTOOL=$DLLTOOL
10268 # Extract the first word of "dlltool", so it can be a program name with args.
10269 set dummy dlltool; ac_word=$2
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 printf %s "checking for $ac_word... " >&6; }
10272 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10273 then :
10274 printf %s "(cached) " >&6
10275 else case e in #(
10276 e) if test -n "$ac_ct_DLLTOOL"; then
10277 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10278 else
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10281 do
10282 IFS=$as_save_IFS
10283 case $as_dir in #(((
10284 '') as_dir=./ ;;
10285 */) ;;
10286 *) as_dir=$as_dir/ ;;
10287 esac
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10290 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10292 break 2
10293 fi
10294 done
10295 done
10296 IFS=$as_save_IFS
10297
10298 fi ;;
10299 esac
10300 fi
10301 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10302 if test -n "$ac_ct_DLLTOOL"; then
10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10304 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10305 else
10306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307 printf "%s\n" "no" >&6; }
10308 fi
10309
10310 if test "x$ac_ct_DLLTOOL" = x; then
10311 DLLTOOL="false"
10312 else
10313 case $cross_compiling:$ac_tool_warned in
10314 yes:)
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10316 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10317 ac_tool_warned=yes ;;
10318 esac
10319 DLLTOOL=$ac_ct_DLLTOOL
10320 fi
10321 else
10322 DLLTOOL="$ac_cv_prog_DLLTOOL"
10323 fi
10324
10325 if test -n "$ac_tool_prefix"; then
10326 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10327 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329 printf %s "checking for $ac_word... " >&6; }
10330 if test ${ac_cv_prog_OBJDUMP+y}
10331 then :
10332 printf %s "(cached) " >&6
10333 else case e in #(
10334 e) if test -n "$OBJDUMP"; then
10335 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10336 else
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10339 do
10340 IFS=$as_save_IFS
10341 case $as_dir in #(((
10342 '') as_dir=./ ;;
10343 */) ;;
10344 *) as_dir=$as_dir/ ;;
10345 esac
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10348 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10350 break 2
10351 fi
10352 done
10353 done
10354 IFS=$as_save_IFS
10355
10356 fi ;;
10357 esac
10358 fi
10359 OBJDUMP=$ac_cv_prog_OBJDUMP
10360 if test -n "$OBJDUMP"; then
10361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10362 printf "%s\n" "$OBJDUMP" >&6; }
10363 else
10364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 printf "%s\n" "no" >&6; }
10366 fi
10367
10368
10369 fi
10370 if test -z "$ac_cv_prog_OBJDUMP"; then
10371 ac_ct_OBJDUMP=$OBJDUMP
10372 # Extract the first word of "objdump", so it can be a program name with args.
10373 set dummy objdump; ac_word=$2
10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 printf %s "checking for $ac_word... " >&6; }
10376 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10377 then :
10378 printf %s "(cached) " >&6
10379 else case e in #(
10380 e) if test -n "$ac_ct_OBJDUMP"; then
10381 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10382 else
10383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384 for as_dir in $PATH
10385 do
10386 IFS=$as_save_IFS
10387 case $as_dir in #(((
10388 '') as_dir=./ ;;
10389 */) ;;
10390 *) as_dir=$as_dir/ ;;
10391 esac
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10394 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10396 break 2
10397 fi
10398 done
10399 done
10400 IFS=$as_save_IFS
10401
10402 fi ;;
10403 esac
10404 fi
10405 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10406 if test -n "$ac_ct_OBJDUMP"; then
10407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10408 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10409 else
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 printf "%s\n" "no" >&6; }
10412 fi
10413
10414 if test "x$ac_ct_OBJDUMP" = x; then
10415 OBJDUMP="false"
10416 else
10417 case $cross_compiling:$ac_tool_warned in
10418 yes:)
10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10420 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10421 ac_tool_warned=yes ;;
10422 esac
10423 OBJDUMP=$ac_ct_OBJDUMP
10424 fi
10425 else
10426 OBJDUMP="$ac_cv_prog_OBJDUMP"
10427 fi
10428
10429 ;;
10430 esac
10431
10432 test -z "$AS" && AS=as
10433
10434
10435
10436
10437
10438 test -z "$DLLTOOL" && DLLTOOL=dlltool
10439
10440
10441
10442
10443
10444 test -z "$OBJDUMP" && OBJDUMP=objdump
10445
10446
10447
10448
10449
10450
10451
10452 enable_dlopen=no
10453
10454
10455
10456 # Check whether --enable-shared was given.
10457 if test ${enable_shared+y}
10458 then :
10459 enableval=$enable_shared; p=${PACKAGE-default}
10460 case $enableval in
10461 yes) enable_shared=yes ;;
10462 no) enable_shared=no ;;
10463 *)
10464 enable_shared=no
10465 # Look at the argument we got. We use all the common list separators.
10466 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10467 for pkg in $enableval; do
10468 IFS=$lt_save_ifs
10469 if test "X$pkg" = "X$p"; then
10470 enable_shared=yes
10471 fi
10472 done
10473 IFS=$lt_save_ifs
10474 ;;
10475 esac
10476 else case e in #(
10477 e) enable_shared=yes ;;
10478 esac
10479 fi
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489 # Check whether --enable-static was given.
10490 if test ${enable_static+y}
10491 then :
10492 enableval=$enable_static; p=${PACKAGE-default}
10493 case $enableval in
10494 yes) enable_static=yes ;;
10495 no) enable_static=no ;;
10496 *)
10497 enable_static=no
10498 # Look at the argument we got. We use all the common list separators.
10499 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10500 for pkg in $enableval; do
10501 IFS=$lt_save_ifs
10502 if test "X$pkg" = "X$p"; then
10503 enable_static=yes
10504 fi
10505 done
10506 IFS=$lt_save_ifs
10507 ;;
10508 esac
10509 else case e in #(
10510 e) enable_static=yes ;;
10511 esac
10512 fi
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522 # Check whether --enable-pic was given.
10523 if test ${enable_pic+y}
10524 then :
10525 enableval=$enable_pic; lt_p=${PACKAGE-default}
10526 case $enableval in
10527 yes|no) pic_mode=$enableval ;;
10528 *)
10529 pic_mode=default
10530 # Look at the argument we got. We use all the common list separators.
10531 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10532 for lt_pkg in $enableval; do
10533 IFS=$lt_save_ifs
10534 if test "X$lt_pkg" = "X$lt_p"; then
10535 pic_mode=yes
10536 fi
10537 done
10538 IFS=$lt_save_ifs
10539 ;;
10540 esac
10541 else case e in #(
10542 e) # Check whether --with-pic was given.
10543 if test ${with_pic+y}
10544 then :
10545 withval=$with_pic; lt_p=${PACKAGE-default}
10546 case $withval in
10547 yes|no) pic_mode=$withval ;;
10548 *)
10549 pic_mode=default
10550 # Look at the argument we got. We use all the common list separators.
10551 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10552 for lt_pkg in $withval; do
10553 IFS=$lt_save_ifs
10554 if test "X$lt_pkg" = "X$lt_p"; then
10555 pic_mode=yes
10556 fi
10557 done
10558 IFS=$lt_save_ifs
10559 ;;
10560 esac
10561 else case e in #(
10562 e) pic_mode=default ;;
10563 esac
10564 fi
10565
10566 ;;
10567 esac
10568 fi
10569
10570
10571
10572
10573
10574
10575
10576
10577 # Check whether --enable-fast-install was given.
10578 if test ${enable_fast_install+y}
10579 then :
10580 enableval=$enable_fast_install; p=${PACKAGE-default}
10581 case $enableval in
10582 yes) enable_fast_install=yes ;;
10583 no) enable_fast_install=no ;;
10584 *)
10585 enable_fast_install=no
10586 # Look at the argument we got. We use all the common list separators.
10587 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10588 for pkg in $enableval; do
10589 IFS=$lt_save_ifs
10590 if test "X$pkg" = "X$p"; then
10591 enable_fast_install=yes
10592 fi
10593 done
10594 IFS=$lt_save_ifs
10595 ;;
10596 esac
10597 else case e in #(
10598 e) enable_fast_install=yes ;;
10599 esac
10600 fi
10601
10602
10603
10604
10605
10606
10607
10608
10609 shared_archive_member_spec=
10610 case $host,$enable_shared in
10611 power*-*-aix[5-9]*,yes)
10612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10613 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10614 # Check whether --enable-aix-soname was given.
10615 if test ${enable_aix_soname+y}
10616 then :
10617 enableval=$enable_aix_soname; case $enableval in
10618 aix|svr4|both)
10619 ;;
10620 *)
10621 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10622 ;;
10623 esac
10624 lt_cv_with_aix_soname=$enable_aix_soname
10625 else case e in #(
10626 e) # Check whether --with-aix-soname was given.
10627 if test ${with_aix_soname+y}
10628 then :
10629 withval=$with_aix_soname; case $withval in
10630 aix|svr4|both)
10631 ;;
10632 *)
10633 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10634 ;;
10635 esac
10636 lt_cv_with_aix_soname=$with_aix_soname
10637 else case e in #(
10638 e) if test ${lt_cv_with_aix_soname+y}
10639 then :
10640 printf %s "(cached) " >&6
10641 else case e in #(
10642 e) lt_cv_with_aix_soname=aix ;;
10643 esac
10644 fi
10645 ;;
10646 esac
10647 fi
10648
10649 enable_aix_soname=$lt_cv_with_aix_soname ;;
10650 esac
10651 fi
10652
10653 with_aix_soname=$enable_aix_soname
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10655 printf "%s\n" "$with_aix_soname" >&6; }
10656 if test aix != "$with_aix_soname"; then
10657 # For the AIX way of multilib, we name the shared archive member
10658 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10659 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10660 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10661 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10662 if test 64 = "${OBJECT_MODE-32}"; then
10663 shared_archive_member_spec=shr_64
10664 else
10665 shared_archive_member_spec=shr
10666 fi
10667 fi
10668 ;;
10669 *)
10670 with_aix_soname=aix
10671 ;;
10672 esac
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 # This can be used to rebuild libtool when needed
10684 LIBTOOL_DEPS=$ltmain
10685
10686 # Always use our own libtool.
10687 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718 test -z "$LN_S" && LN_S="ln -s"
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733 if test -n "${ZSH_VERSION+set}"; then
10734 setopt NO_GLOB_SUBST
10735 fi
10736
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10738 printf %s "checking for objdir... " >&6; }
10739 if test ${lt_cv_objdir+y}
10740 then :
10741 printf %s "(cached) " >&6
10742 else case e in #(
10743 e) rm -f .libs 2>/dev/null
10744 mkdir .libs 2>/dev/null
10745 if test -d .libs; then
10746 lt_cv_objdir=.libs
10747 else
10748 # MS-DOS does not allow filenames that begin with a dot.
10749 lt_cv_objdir=_libs
10750 fi
10751 rmdir .libs 2>/dev/null ;;
10752 esac
10753 fi
10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10755 printf "%s\n" "$lt_cv_objdir" >&6; }
10756 objdir=$lt_cv_objdir
10757
10758
10759
10760
10761
10762 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10763
10764
10765
10766
10767 case $host_os in
10768 aix3*)
10769 # AIX sometimes has problems with the GCC collect2 program. For some
10770 # reason, if we set the COLLECT_NAMES environment variable, the problems
10771 # vanish in a puff of smoke.
10772 if test set != "${COLLECT_NAMES+set}"; then
10773 COLLECT_NAMES=
10774 export COLLECT_NAMES
10775 fi
10776 ;;
10777 esac
10778
10779 # Global variables:
10780 ofile=libtool
10781 can_build_shared=yes
10782
10783 # All known linkers require a '.a' archive for static linking (except MSVC and
10784 # ICC, which need '.lib').
10785 libext=a
10786
10787 with_gnu_ld=$lt_cv_prog_gnu_ld
10788
10789 old_CC=$CC
10790 old_CFLAGS=$CFLAGS
10791
10792 # Set sane defaults for various variables
10793 test -z "$CC" && CC=cc
10794 test -z "$LTCC" && LTCC=$CC
10795 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10796 test -z "$LD" && LD=ld
10797 test -z "$ac_objext" && ac_objext=o
10798
10799 func_cc_basename $compiler
10800 cc_basename=$func_cc_basename_result
10801
10802
10803 # Only perform the check for file, if the check method requires it
10804 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10805 case $deplibs_check_method in
10806 file_magic*)
10807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10809 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10810 if test ${lt_cv_path_MAGIC_CMD+y}
10811 then :
10812 printf %s "(cached) " >&6
10813 else case e in #(
10814 e) case $MAGIC_CMD in
10815 [\\/*] | ?:[\\/]*)
10816 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10817 ;;
10818 *)
10819 lt_save_MAGIC_CMD=$MAGIC_CMD
10820 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10821 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10822 for ac_dir in $ac_dummy; do
10823 IFS=$lt_save_ifs
10824 test -z "$ac_dir" && ac_dir=.
10825 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10826 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10827 if test -n "$file_magic_test_file"; then
10828 case $deplibs_check_method in
10829 "file_magic "*)
10830 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10831 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10832 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10833 $EGREP "$file_magic_regex" > /dev/null; then
10834 :
10835 else
10836 cat <<_LT_EOF 1>&2
10837
10838 *** Warning: the command libtool uses to detect shared libraries,
10839 *** $file_magic_cmd, produces output that libtool cannot recognize.
10840 *** The result is that libtool may fail to recognize shared libraries
10841 *** as such. This will affect the creation of libtool libraries that
10842 *** depend on shared libraries, but programs linked with such libtool
10843 *** libraries will work regardless of this problem. Nevertheless, you
10844 *** may want to report the problem to your system manager and/or to
10845 *** [email protected]
10846
10847 _LT_EOF
10848 fi ;;
10849 esac
10850 fi
10851 break
10852 fi
10853 done
10854 IFS=$lt_save_ifs
10855 MAGIC_CMD=$lt_save_MAGIC_CMD
10856 ;;
10857 esac ;;
10858 esac
10859 fi
10860
10861 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10862 if test -n "$MAGIC_CMD"; then
10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10864 printf "%s\n" "$MAGIC_CMD" >&6; }
10865 else
10866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 printf "%s\n" "no" >&6; }
10868 fi
10869
10870
10871
10872
10873
10874 if test -z "$lt_cv_path_MAGIC_CMD"; then
10875 if test -n "$ac_tool_prefix"; then
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10877 printf %s "checking for file... " >&6; }
10878 if test ${lt_cv_path_MAGIC_CMD+y}
10879 then :
10880 printf %s "(cached) " >&6
10881 else case e in #(
10882 e) case $MAGIC_CMD in
10883 [\\/*] | ?:[\\/]*)
10884 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10885 ;;
10886 *)
10887 lt_save_MAGIC_CMD=$MAGIC_CMD
10888 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10890 for ac_dir in $ac_dummy; do
10891 IFS=$lt_save_ifs
10892 test -z "$ac_dir" && ac_dir=.
10893 if test -f "$ac_dir/file"; then
10894 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10895 if test -n "$file_magic_test_file"; then
10896 case $deplibs_check_method in
10897 "file_magic "*)
10898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10899 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10901 $EGREP "$file_magic_regex" > /dev/null; then
10902 :
10903 else
10904 cat <<_LT_EOF 1>&2
10905
10906 *** Warning: the command libtool uses to detect shared libraries,
10907 *** $file_magic_cmd, produces output that libtool cannot recognize.
10908 *** The result is that libtool may fail to recognize shared libraries
10909 *** as such. This will affect the creation of libtool libraries that
10910 *** depend on shared libraries, but programs linked with such libtool
10911 *** libraries will work regardless of this problem. Nevertheless, you
10912 *** may want to report the problem to your system manager and/or to
10913 *** [email protected]
10914
10915 _LT_EOF
10916 fi ;;
10917 esac
10918 fi
10919 break
10920 fi
10921 done
10922 IFS=$lt_save_ifs
10923 MAGIC_CMD=$lt_save_MAGIC_CMD
10924 ;;
10925 esac ;;
10926 esac
10927 fi
10928
10929 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10930 if test -n "$MAGIC_CMD"; then
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10932 printf "%s\n" "$MAGIC_CMD" >&6; }
10933 else
10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 printf "%s\n" "no" >&6; }
10936 fi
10937
10938
10939 else
10940 MAGIC_CMD=:
10941 fi
10942 fi
10943
10944 fi
10945 ;;
10946 esac
10947
10948 # Use C for the default configuration in the libtool script
10949
10950 lt_save_CC=$CC
10951 ac_ext=c
10952 ac_cpp='$CPP $CPPFLAGS'
10953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10956
10957
10958 # Source file extension for C test sources.
10959 ac_ext=c
10960
10961 # Object file extension for compiled C test sources.
10962 objext=o
10963 objext=$objext
10964
10965 # Code to be used in simple compile tests
10966 lt_simple_compile_test_code="int some_variable = 0;"
10967
10968 # Code to be used in simple link tests
10969 lt_simple_link_test_code='int main(void){return(0);}'
10970
10971
10972
10973
10974
10975
10976
10977 # If no C compiler was specified, use CC.
10978 LTCC=${LTCC-"$CC"}
10979
10980 # If no C compiler flags were specified, use CFLAGS.
10981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10982
10983 # Allow CC to be a program name with arguments.
10984 compiler=$CC
10985
10986 # Save the default compiler, since it gets overwritten when the other
10987 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10988 compiler_DEFAULT=$CC
10989
10990 # save warnings/boilerplate of simple test code
10991 ac_outfile=conftest.$ac_objext
10992 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10994 _lt_compiler_boilerplate=`cat conftest.err`
10995 $RM conftest*
10996
10997 ac_outfile=conftest.$ac_objext
10998 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11000 _lt_linker_boilerplate=`cat conftest.err`
11001 $RM -r conftest*
11002
11003
11004 ## CAVEAT EMPTOR:
11005 ## There is no encapsulation within the following macros, do not change
11006 ## the running order or otherwise move them around unless you know exactly
11007 ## what you are doing...
11008 if test -n "$compiler"; then
11009
11010 lt_prog_compiler_no_builtin_flag=
11011
11012 if test yes = "$GCC"; then
11013 case $cc_basename in
11014 nvcc*)
11015 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11016 *)
11017 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11018 esac
11019
11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11021 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11022 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11023 then :
11024 printf %s "(cached) " >&6
11025 else case e in #(
11026 e) lt_cv_prog_compiler_rtti_exceptions=no
11027 ac_outfile=conftest.$ac_objext
11028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11029 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11030 # Insert the option either (1) after the last *FLAGS variable, or
11031 # (2) before a word containing "conftest.", or (3) at the end.
11032 # Note that $ac_compile itself does not contain backslashes and begins
11033 # with a dollar sign (not a hyphen), so the echo should work correctly.
11034 # The option is referenced via a variable to avoid confusing sed.
11035 lt_compile=`echo "$ac_compile" | $SED \
11036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11038 -e 's:$: $lt_compiler_flag:'`
11039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11040 (eval "$lt_compile" 2>conftest.err)
11041 ac_status=$?
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 if (exit $ac_status) && test -s "$ac_outfile"; then
11045 # The compiler can only warn and ignore the option if not recognized
11046 # So say no if there are warnings other than the usual output.
11047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11050 lt_cv_prog_compiler_rtti_exceptions=yes
11051 fi
11052 fi
11053 $RM conftest*
11054 ;;
11055 esac
11056 fi
11057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11058 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11059
11060 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11061 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11062 else
11063 :
11064 fi
11065
11066 fi
11067
11068
11069
11070
11071
11072
11073 lt_prog_compiler_wl=
11074 lt_prog_compiler_pic=
11075 lt_prog_compiler_static=
11076
11077
11078 if test yes = "$GCC"; then
11079 lt_prog_compiler_wl='-Wl,'
11080 lt_prog_compiler_static='-static'
11081
11082 case $host_os in
11083 aix*)
11084 # All AIX code is PIC.
11085 if test ia64 = "$host_cpu"; then
11086 # AIX 5 now supports IA64 processor
11087 lt_prog_compiler_static='-Bstatic'
11088 fi
11089 lt_prog_compiler_pic='-fPIC'
11090 ;;
11091
11092 amigaos*)
11093 case $host_cpu in
11094 powerpc)
11095 # see comment about AmigaOS4 .so support
11096 lt_prog_compiler_pic='-fPIC'
11097 ;;
11098 m68k)
11099 # FIXME: we need at least 68020 code to build shared libraries, but
11100 # adding the '-m68020' flag to GCC prevents building anything better,
11101 # like '-m68040'.
11102 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11103 ;;
11104 esac
11105 ;;
11106
11107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11108 # PIC is the default for these OSes.
11109 ;;
11110
11111 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11112 # This hack is so that the source file can tell whether it is being
11113 # built for inclusion in a dll (and should export symbols for example).
11114 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11115 # (--disable-auto-import) libraries
11116 lt_prog_compiler_pic='-DDLL_EXPORT'
11117 case $host_os in
11118 os2*)
11119 lt_prog_compiler_static='$wl-static'
11120 ;;
11121 esac
11122 ;;
11123
11124 darwin* | rhapsody*)
11125 # PIC is the default on this platform
11126 # Common symbols not allowed in MH_DYLIB files
11127 lt_prog_compiler_pic='-fno-common'
11128 ;;
11129
11130 haiku*)
11131 # PIC is the default for Haiku.
11132 # The "-static" flag exists, but is broken.
11133 lt_prog_compiler_static=
11134 ;;
11135
11136 hpux*)
11137 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11138 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11139 # sets the default TLS model and affects inlining.
11140 case $host_cpu in
11141 hppa*64*)
11142 # +Z the default
11143 ;;
11144 *)
11145 lt_prog_compiler_pic='-fPIC'
11146 ;;
11147 esac
11148 ;;
11149
11150 interix[3-9]*)
11151 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11152 # Instead, we relocate shared libraries at runtime.
11153 ;;
11154
11155 msdosdjgpp*)
11156 # Just because we use GCC doesn't mean we suddenly get shared libraries
11157 # on systems that don't support them.
11158 lt_prog_compiler_can_build_shared=no
11159 enable_shared=no
11160 ;;
11161
11162 *nto* | *qnx*)
11163 # QNX uses GNU C++, but need to define -shared option too, otherwise
11164 # it will coredump.
11165 lt_prog_compiler_pic='-fPIC -shared'
11166 ;;
11167
11168 sysv4*MP*)
11169 if test -d /usr/nec; then
11170 lt_prog_compiler_pic=-Kconform_pic
11171 fi
11172 ;;
11173
11174 *)
11175 lt_prog_compiler_pic='-fPIC'
11176 ;;
11177 esac
11178
11179 case $cc_basename in
11180 nvcc*) # Cuda Compiler Driver 2.2
11181 lt_prog_compiler_wl='-Xlinker '
11182 if test -n "$lt_prog_compiler_pic"; then
11183 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11184 fi
11185 ;;
11186 esac
11187 else
11188 # PORTME Check for flag to pass linker flags through the system compiler.
11189 case $host_os in
11190 aix*)
11191 lt_prog_compiler_wl='-Wl,'
11192 if test ia64 = "$host_cpu"; then
11193 # AIX 5 now supports IA64 processor
11194 lt_prog_compiler_static='-Bstatic'
11195 else
11196 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11197 fi
11198 ;;
11199
11200 darwin* | rhapsody*)
11201 # PIC is the default on this platform
11202 # Common symbols not allowed in MH_DYLIB files
11203 lt_prog_compiler_pic='-fno-common'
11204 case $cc_basename in
11205 nagfor*)
11206 # NAG Fortran compiler
11207 lt_prog_compiler_wl='-Wl,-Wl,,'
11208 lt_prog_compiler_pic='-PIC'
11209 lt_prog_compiler_static='-Bstatic'
11210 ;;
11211 esac
11212 ;;
11213
11214 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11215 # This hack is so that the source file can tell whether it is being
11216 # built for inclusion in a dll (and should export symbols for example).
11217 lt_prog_compiler_pic='-DDLL_EXPORT'
11218 case $host_os in
11219 os2*)
11220 lt_prog_compiler_static='$wl-static'
11221 ;;
11222 esac
11223 ;;
11224
11225 hpux9* | hpux10* | hpux11*)
11226 lt_prog_compiler_wl='-Wl,'
11227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11228 # not for PA HP-UX.
11229 case $host_cpu in
11230 hppa*64*|ia64*)
11231 # +Z the default
11232 ;;
11233 *)
11234 lt_prog_compiler_pic='+Z'
11235 ;;
11236 esac
11237 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11238 lt_prog_compiler_static='$wl-a ${wl}archive'
11239 ;;
11240
11241 irix5* | irix6* | nonstopux*)
11242 lt_prog_compiler_wl='-Wl,'
11243 # PIC (with -KPIC) is the default.
11244 lt_prog_compiler_static='-non_shared'
11245 ;;
11246
11247 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11248 case $cc_basename in
11249 # old Intel for x86_64, which still supported -KPIC.
11250 ecc*)
11251 lt_prog_compiler_wl='-Wl,'
11252 lt_prog_compiler_pic='-KPIC'
11253 lt_prog_compiler_static='-static'
11254 ;;
11255 *flang* | ftn | f18* | f95*)
11256 # Flang compiler.
11257 lt_prog_compiler_wl='-Wl,'
11258 lt_prog_compiler_pic='-fPIC'
11259 lt_prog_compiler_static='-static'
11260 ;;
11261 # icc used to be incompatible with GCC.
11262 # ICC 10 doesn't accept -KPIC any more.
11263 icc* | ifort*)
11264 lt_prog_compiler_wl='-Wl,'
11265 lt_prog_compiler_pic='-fPIC'
11266 lt_prog_compiler_static='-static'
11267 ;;
11268 # Lahey Fortran 8.1.
11269 lf95*)
11270 lt_prog_compiler_wl='-Wl,'
11271 lt_prog_compiler_pic='--shared'
11272 lt_prog_compiler_static='--static'
11273 ;;
11274 nagfor*)
11275 # NAG Fortran compiler
11276 lt_prog_compiler_wl='-Wl,-Wl,,'
11277 lt_prog_compiler_pic='-PIC'
11278 lt_prog_compiler_static='-Bstatic'
11279 ;;
11280 tcc*)
11281 # Fabrice Bellard et al's Tiny C Compiler
11282 lt_prog_compiler_wl='-Wl,'
11283 lt_prog_compiler_pic='-fPIC'
11284 lt_prog_compiler_static='-static'
11285 ;;
11286 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11287 # Portland Group compilers (*not* the Pentium gcc compiler,
11288 # which looks to be a dead project)
11289 lt_prog_compiler_wl='-Wl,'
11290 lt_prog_compiler_pic='-fpic'
11291 lt_prog_compiler_static='-Bstatic'
11292 ;;
11293 ccc*)
11294 lt_prog_compiler_wl='-Wl,'
11295 # All Alpha code is PIC.
11296 lt_prog_compiler_static='-non_shared'
11297 ;;
11298 xl* | bgxl* | bgf* | mpixl*)
11299 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11300 lt_prog_compiler_wl='-Wl,'
11301 lt_prog_compiler_pic='-qpic'
11302 lt_prog_compiler_static='-qstaticlink'
11303 ;;
11304 *)
11305 case `$CC -V 2>&1 | $SED 5q` in
11306 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11307 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11308 lt_prog_compiler_pic='-KPIC'
11309 lt_prog_compiler_static='-Bstatic'
11310 lt_prog_compiler_wl=''
11311 ;;
11312 *Sun\ F* | *Sun*Fortran*)
11313 lt_prog_compiler_pic='-KPIC'
11314 lt_prog_compiler_static='-Bstatic'
11315 lt_prog_compiler_wl='-Qoption ld '
11316 ;;
11317 *Sun\ C*)
11318 # Sun C 5.9
11319 lt_prog_compiler_pic='-KPIC'
11320 lt_prog_compiler_static='-Bstatic'
11321 lt_prog_compiler_wl='-Wl,'
11322 ;;
11323 *Intel*\ [CF]*Compiler*)
11324 lt_prog_compiler_wl='-Wl,'
11325 lt_prog_compiler_pic='-fPIC'
11326 lt_prog_compiler_static='-static'
11327 ;;
11328 *Portland\ Group*)
11329 lt_prog_compiler_wl='-Wl,'
11330 lt_prog_compiler_pic='-fpic'
11331 lt_prog_compiler_static='-Bstatic'
11332 ;;
11333 esac
11334 ;;
11335 esac
11336 ;;
11337
11338 newsos6)
11339 lt_prog_compiler_pic='-KPIC'
11340 lt_prog_compiler_static='-Bstatic'
11341 ;;
11342
11343 *-mlibc)
11344 lt_prog_compiler_wl='-Wl,'
11345 lt_prog_compiler_pic='-fPIC'
11346 lt_prog_compiler_static='-static'
11347 ;;
11348
11349 *nto* | *qnx*)
11350 # QNX uses GNU C++, but need to define -shared option too, otherwise
11351 # it will coredump.
11352 lt_prog_compiler_pic='-fPIC -shared'
11353 ;;
11354
11355 osf3* | osf4* | osf5*)
11356 lt_prog_compiler_wl='-Wl,'
11357 # All OSF/1 code is PIC.
11358 lt_prog_compiler_static='-non_shared'
11359 ;;
11360
11361 rdos*)
11362 lt_prog_compiler_static='-non_shared'
11363 ;;
11364
11365 serenity*)
11366 ;;
11367
11368 solaris*)
11369 lt_prog_compiler_pic='-KPIC'
11370 lt_prog_compiler_static='-Bstatic'
11371 case $cc_basename in
11372 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11373 lt_prog_compiler_wl='-Qoption ld ';;
11374 *)
11375 lt_prog_compiler_wl='-Wl,';;
11376 esac
11377 ;;
11378
11379 sunos4*)
11380 lt_prog_compiler_wl='-Qoption ld '
11381 lt_prog_compiler_pic='-PIC'
11382 lt_prog_compiler_static='-Bstatic'
11383 ;;
11384
11385 sysv4 | sysv4.2uw2* | sysv4.3*)
11386 lt_prog_compiler_wl='-Wl,'
11387 lt_prog_compiler_pic='-KPIC'
11388 lt_prog_compiler_static='-Bstatic'
11389 ;;
11390
11391 sysv4*MP*)
11392 if test -d /usr/nec; then
11393 lt_prog_compiler_pic='-Kconform_pic'
11394 lt_prog_compiler_static='-Bstatic'
11395 fi
11396 ;;
11397
11398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11399 lt_prog_compiler_wl='-Wl,'
11400 lt_prog_compiler_pic='-KPIC'
11401 lt_prog_compiler_static='-Bstatic'
11402 ;;
11403
11404 unicos*)
11405 lt_prog_compiler_wl='-Wl,'
11406 lt_prog_compiler_can_build_shared=no
11407 ;;
11408
11409 uts4*)
11410 lt_prog_compiler_pic='-pic'
11411 lt_prog_compiler_static='-Bstatic'
11412 ;;
11413
11414 *)
11415 lt_prog_compiler_can_build_shared=no
11416 ;;
11417 esac
11418 fi
11419
11420 case $host_os in
11421 # For platforms that do not support PIC, -DPIC is meaningless:
11422 *djgpp*)
11423 lt_prog_compiler_pic=
11424 ;;
11425 *)
11426 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11427 ;;
11428 esac
11429
11430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11431 printf %s "checking for $compiler option to produce PIC... " >&6; }
11432 if test ${lt_cv_prog_compiler_pic+y}
11433 then :
11434 printf %s "(cached) " >&6
11435 else case e in #(
11436 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11437 esac
11438 fi
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11440 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11441 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11442
11443 #
11444 # Check to make sure the PIC flag actually works.
11445 #
11446 if test -n "$lt_prog_compiler_pic"; then
11447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11448 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11449 if test ${lt_cv_prog_compiler_pic_works+y}
11450 then :
11451 printf %s "(cached) " >&6
11452 else case e in #(
11453 e) lt_cv_prog_compiler_pic_works=no
11454 ac_outfile=conftest.$ac_objext
11455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11456 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11457 # Insert the option either (1) after the last *FLAGS variable, or
11458 # (2) before a word containing "conftest.", or (3) at the end.
11459 # Note that $ac_compile itself does not contain backslashes and begins
11460 # with a dollar sign (not a hyphen), so the echo should work correctly.
11461 # The option is referenced via a variable to avoid confusing sed.
11462 lt_compile=`echo "$ac_compile" | $SED \
11463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11465 -e 's:$: $lt_compiler_flag:'`
11466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11467 (eval "$lt_compile" 2>conftest.err)
11468 ac_status=$?
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 if (exit $ac_status) && test -s "$ac_outfile"; then
11472 # The compiler can only warn and ignore the option if not recognized
11473 # So say no if there are warnings other than the usual output.
11474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11477 lt_cv_prog_compiler_pic_works=yes
11478 fi
11479 fi
11480 $RM conftest*
11481 ;;
11482 esac
11483 fi
11484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11485 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11486
11487 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11488 case $lt_prog_compiler_pic in
11489 "" | " "*) ;;
11490 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11491 esac
11492 else
11493 lt_prog_compiler_pic=
11494 lt_prog_compiler_can_build_shared=no
11495 fi
11496
11497 fi
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509 #
11510 # Check to make sure the static flag actually works.
11511 #
11512 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11514 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11515 if test ${lt_cv_prog_compiler_static_works+y}
11516 then :
11517 printf %s "(cached) " >&6
11518 else case e in #(
11519 e) lt_cv_prog_compiler_static_works=no
11520 save_LDFLAGS=$LDFLAGS
11521 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11522 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11523 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11524 # The linker can only warn and ignore the option if not recognized
11525 # So say no if there are warnings
11526 if test -s conftest.err; then
11527 # Append any errors to the config.log.
11528 cat conftest.err 1>&5
11529 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11531 if diff conftest.exp conftest.er2 >/dev/null; then
11532 lt_cv_prog_compiler_static_works=yes
11533 fi
11534 else
11535 lt_cv_prog_compiler_static_works=yes
11536 fi
11537 fi
11538 $RM -r conftest*
11539 LDFLAGS=$save_LDFLAGS
11540 ;;
11541 esac
11542 fi
11543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11544 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11545
11546 if test yes = "$lt_cv_prog_compiler_static_works"; then
11547 :
11548 else
11549 lt_prog_compiler_static=
11550 fi
11551
11552
11553
11554
11555
11556
11557
11558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11559 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11560 if test ${lt_cv_prog_compiler_c_o+y}
11561 then :
11562 printf %s "(cached) " >&6
11563 else case e in #(
11564 e) lt_cv_prog_compiler_c_o=no
11565 $RM -r conftest 2>/dev/null
11566 mkdir conftest
11567 cd conftest
11568 mkdir out
11569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11570
11571 lt_compiler_flag="-o out/conftest2.$ac_objext"
11572 # Insert the option either (1) after the last *FLAGS variable, or
11573 # (2) before a word containing "conftest.", or (3) at the end.
11574 # Note that $ac_compile itself does not contain backslashes and begins
11575 # with a dollar sign (not a hyphen), so the echo should work correctly.
11576 lt_compile=`echo "$ac_compile" | $SED \
11577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11579 -e 's:$: $lt_compiler_flag:'`
11580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11581 (eval "$lt_compile" 2>out/conftest.err)
11582 ac_status=$?
11583 cat out/conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11586 then
11587 # The compiler can only warn and ignore the option if not recognized
11588 # So say no if there are warnings
11589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11592 lt_cv_prog_compiler_c_o=yes
11593 fi
11594 fi
11595 chmod u+w . 2>&5
11596 $RM conftest*
11597 # SGI C++ compiler will create directory out/ii_files/ for
11598 # template instantiation
11599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11600 $RM out/* && rmdir out
11601 cd ..
11602 $RM -r conftest
11603 $RM conftest*
11604 ;;
11605 esac
11606 fi
11607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11608 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11609
11610
11611
11612
11613
11614
11615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11616 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11617 if test ${lt_cv_prog_compiler_c_o+y}
11618 then :
11619 printf %s "(cached) " >&6
11620 else case e in #(
11621 e) lt_cv_prog_compiler_c_o=no
11622 $RM -r conftest 2>/dev/null
11623 mkdir conftest
11624 cd conftest
11625 mkdir out
11626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11627
11628 lt_compiler_flag="-o out/conftest2.$ac_objext"
11629 # Insert the option either (1) after the last *FLAGS variable, or
11630 # (2) before a word containing "conftest.", or (3) at the end.
11631 # Note that $ac_compile itself does not contain backslashes and begins
11632 # with a dollar sign (not a hyphen), so the echo should work correctly.
11633 lt_compile=`echo "$ac_compile" | $SED \
11634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11636 -e 's:$: $lt_compiler_flag:'`
11637 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11638 (eval "$lt_compile" 2>out/conftest.err)
11639 ac_status=$?
11640 cat out/conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11643 then
11644 # The compiler can only warn and ignore the option if not recognized
11645 # So say no if there are warnings
11646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11647 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11648 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11649 lt_cv_prog_compiler_c_o=yes
11650 fi
11651 fi
11652 chmod u+w . 2>&5
11653 $RM conftest*
11654 # SGI C++ compiler will create directory out/ii_files/ for
11655 # template instantiation
11656 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11657 $RM out/* && rmdir out
11658 cd ..
11659 $RM -r conftest
11660 $RM conftest*
11661 ;;
11662 esac
11663 fi
11664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11665 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11666
11667
11668
11669
11670 hard_links=nottested
11671 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11672 # do not overwrite the value of need_locks provided by the user
11673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11674 printf %s "checking if we can lock with hard links... " >&6; }
11675 hard_links=yes
11676 $RM conftest*
11677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11678 touch conftest.a
11679 ln conftest.a conftest.b 2>&5 || hard_links=no
11680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11682 printf "%s\n" "$hard_links" >&6; }
11683 if test no = "$hard_links"; then
11684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11685 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11686 need_locks=warn
11687 fi
11688 else
11689 need_locks=no
11690 fi
11691
11692
11693
11694
11695
11696
11697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11698 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11699
11700 runpath_var=
11701 allow_undefined_flag=
11702 always_export_symbols=no
11703 archive_cmds=
11704 archive_expsym_cmds=
11705 compiler_needs_object=no
11706 enable_shared_with_static_runtimes=no
11707 export_dynamic_flag_spec=
11708 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11709 hardcode_automatic=no
11710 hardcode_direct=no
11711 hardcode_direct_absolute=no
11712 hardcode_libdir_flag_spec=
11713 hardcode_libdir_separator=
11714 hardcode_minus_L=no
11715 hardcode_shlibpath_var=unsupported
11716 inherit_rpath=no
11717 link_all_deplibs=unknown
11718 module_cmds=
11719 module_expsym_cmds=
11720 old_archive_from_new_cmds=
11721 old_archive_from_expsyms_cmds=
11722 thread_safe_flag_spec=
11723 whole_archive_flag_spec=
11724 # include_expsyms should be a list of space-separated symbols to be *always*
11725 # included in the symbol list
11726 include_expsyms=
11727 # exclude_expsyms can be an extended regexp of symbols to exclude
11728 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11729 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11730 # as well as any symbol that contains 'd'.
11731 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11732 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11733 # platforms (ab)use it in PIC code, but their linkers get confused if
11734 # the symbol is explicitly referenced. Since portable code cannot
11735 # rely on this symbol name, it's probably fine to never include it in
11736 # preloaded symbol tables.
11737 # Exclude shared library initialization/finalization symbols.
11738 extract_expsyms_cmds=
11739
11740 case $host_os in
11741 cygwin* | mingw* | windows* | pw32* | cegcc*)
11742 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11743 # When not using gcc, we currently assume that we are using
11744 # Microsoft Visual C++ or Intel C++ Compiler.
11745 if test yes != "$GCC"; then
11746 with_gnu_ld=no
11747 fi
11748 ;;
11749 interix*)
11750 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11751 with_gnu_ld=yes
11752 ;;
11753 esac
11754
11755 ld_shlibs=yes
11756
11757 # On some targets, GNU ld is compatible enough with the native linker
11758 # that we're better off using the native interface for both.
11759 lt_use_gnu_ld_interface=no
11760 if test yes = "$with_gnu_ld"; then
11761 case $host_os in
11762 aix*)
11763 # The AIX port of GNU ld has always aspired to compatibility
11764 # with the native linker. However, as the warning in the GNU ld
11765 # block says, versions before 2.19.5* couldn't really create working
11766 # shared libraries, regardless of the interface used.
11767 case `$LD -v 2>&1` in
11768 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11769 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11770 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11771 *)
11772 lt_use_gnu_ld_interface=yes
11773 ;;
11774 esac
11775 ;;
11776 *)
11777 lt_use_gnu_ld_interface=yes
11778 ;;
11779 esac
11780 fi
11781
11782 if test yes = "$lt_use_gnu_ld_interface"; then
11783 # If archive_cmds runs LD, not CC, wlarc should be empty
11784 wlarc='$wl'
11785
11786 # Set some defaults for GNU ld with shared library support. These
11787 # are reset later if shared libraries are not supported. Putting them
11788 # here allows them to be overridden if necessary.
11789 runpath_var=LD_RUN_PATH
11790 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11791 export_dynamic_flag_spec='$wl--export-dynamic'
11792 # ancient GNU ld didn't support --whole-archive et. al.
11793 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11794 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11795 else
11796 whole_archive_flag_spec=
11797 fi
11798 supports_anon_versioning=no
11799 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11800 *GNU\ gold*) supports_anon_versioning=yes ;;
11801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11804 *\ 2.11.*) ;; # other 2.11 versions
11805 *) supports_anon_versioning=yes ;;
11806 esac
11807
11808 # See if GNU ld supports shared libraries.
11809 case $host_os in
11810 aix[3-9]*)
11811 # On AIX/PPC, the GNU linker is very broken
11812 if test ia64 != "$host_cpu"; then
11813 ld_shlibs=no
11814 cat <<_LT_EOF 1>&2
11815
11816 *** Warning: the GNU linker, at least up to release 2.19, is reported
11817 *** to be unable to reliably create shared libraries on AIX.
11818 *** Therefore, libtool is disabling shared libraries support. If you
11819 *** really care for shared libraries, you may want to install binutils
11820 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11821 *** You will then need to restart the configuration process.
11822
11823 _LT_EOF
11824 fi
11825 ;;
11826
11827 amigaos*)
11828 case $host_cpu in
11829 powerpc)
11830 # see comment about AmigaOS4 .so support
11831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11832 archive_expsym_cmds=''
11833 ;;
11834 m68k)
11835 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)'
11836 hardcode_libdir_flag_spec='-L$libdir'
11837 hardcode_minus_L=yes
11838 ;;
11839 esac
11840 ;;
11841
11842 beos*)
11843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11844 allow_undefined_flag=unsupported
11845 # Joseph Beckenbach <[email protected]> says some releases of gcc
11846 # support --undefined. This deserves some investigation. FIXME
11847 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11848 else
11849 ld_shlibs=no
11850 fi
11851 ;;
11852
11853 cygwin* | mingw* | windows* | pw32* | cegcc*)
11854 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11855 # as there is no search path for DLLs.
11856 hardcode_libdir_flag_spec='-L$libdir'
11857 export_dynamic_flag_spec='$wl--export-all-symbols'
11858 allow_undefined_flag=unsupported
11859 always_export_symbols=no
11860 enable_shared_with_static_runtimes=yes
11861 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'
11862 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11863 file_list_spec='@'
11864
11865 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11867 # If the export-symbols file already is a .def file, use it as
11868 # is; otherwise, prepend EXPORTS...
11869 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11870 cp $export_symbols $output_objdir/$soname.def;
11871 else
11872 echo EXPORTS > $output_objdir/$soname.def;
11873 cat $export_symbols >> $output_objdir/$soname.def;
11874 fi~
11875 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11876 else
11877 ld_shlibs=no
11878 fi
11879 ;;
11880
11881 haiku*)
11882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11883 link_all_deplibs=no
11884 ;;
11885
11886 os2*)
11887 hardcode_libdir_flag_spec='-L$libdir'
11888 hardcode_minus_L=yes
11889 allow_undefined_flag=unsupported
11890 shrext_cmds=.dll
11891 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11892 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11893 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11894 $ECHO EXPORTS >> $output_objdir/$libname.def~
11895 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11896 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11897 emximp -o $lib $output_objdir/$libname.def'
11898 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11899 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11900 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11901 $ECHO EXPORTS >> $output_objdir/$libname.def~
11902 prefix_cmds="$SED"~
11903 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11904 prefix_cmds="$prefix_cmds -e 1d";
11905 fi~
11906 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11907 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11908 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11909 emximp -o $lib $output_objdir/$libname.def'
11910 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11911 enable_shared_with_static_runtimes=yes
11912 file_list_spec='@'
11913 ;;
11914
11915 interix[3-9]*)
11916 hardcode_direct=no
11917 hardcode_shlibpath_var=no
11918 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11919 export_dynamic_flag_spec='$wl-E'
11920 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11921 # Instead, shared libraries are loaded at an image base (0x10000000 by
11922 # default) and relocated if they conflict, which is a slow very memory
11923 # consuming and fragmenting process. To avoid this, we pick a random,
11924 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11925 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11927 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'
11928 ;;
11929
11930 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11931 tmp_diet=no
11932 if test linux-dietlibc = "$host_os"; then
11933 case $cc_basename in
11934 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11935 esac
11936 fi
11937 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11938 && test no = "$tmp_diet"
11939 then
11940 tmp_addflag=' $pic_flag'
11941 tmp_sharedflag='-shared'
11942 case $cc_basename,$host_cpu in
11943 pgcc*) # Portland Group C compiler
11944 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'
11945 tmp_addflag=' $pic_flag'
11946 ;;
11947 pgf77* | pgf90* | pgf95* | pgfortran*)
11948 # Portland Group f77 and f90 compilers
11949 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'
11950 tmp_addflag=' $pic_flag -Mnomain' ;;
11951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11952 tmp_addflag=' -i_dynamic' ;;
11953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11954 tmp_addflag=' -i_dynamic -nofor_main' ;;
11955 ifc* | ifort*) # Intel Fortran compiler
11956 tmp_addflag=' -nofor_main' ;;
11957 lf95*) # Lahey Fortran 8.1
11958 whole_archive_flag_spec=
11959 tmp_sharedflag='--shared' ;;
11960 nagfor*) # NAGFOR 5.3
11961 tmp_sharedflag='-Wl,-shared' ;;
11962 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11963 tmp_sharedflag='-qmkshrobj'
11964 tmp_addflag= ;;
11965 nvcc*) # Cuda Compiler Driver 2.2
11966 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'
11967 compiler_needs_object=yes
11968 ;;
11969 esac
11970 case `$CC -V 2>&1 | $SED 5q` in
11971 *Sun\ C*) # Sun C 5.9
11972 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'
11973 compiler_needs_object=yes
11974 tmp_sharedflag='-G' ;;
11975 *Sun\ F*) # Sun Fortran 8.3
11976 tmp_sharedflag='-G' ;;
11977 esac
11978 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11979
11980 if test yes = "$supports_anon_versioning"; then
11981 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11982 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11983 echo "local: *; };" >> $output_objdir/$libname.ver~
11984 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11985 fi
11986
11987 case $cc_basename in
11988 tcc*)
11989 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11990 export_dynamic_flag_spec='-rdynamic'
11991 ;;
11992 xlf* | bgf* | bgxlf* | mpixlf*)
11993 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11994 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11996 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11997 if test yes = "$supports_anon_versioning"; then
11998 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11999 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12000 echo "local: *; };" >> $output_objdir/$libname.ver~
12001 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12002 fi
12003 ;;
12004 esac
12005 else
12006 ld_shlibs=no
12007 fi
12008 ;;
12009
12010 *-mlibc)
12011 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12012 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12013 ;;
12014
12015 netbsd* | netbsdelf*-gnu)
12016 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12017 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12018 wlarc=
12019 else
12020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12021 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12022 fi
12023 ;;
12024
12025 solaris*)
12026 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12027 ld_shlibs=no
12028 cat <<_LT_EOF 1>&2
12029
12030 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12031 *** create shared libraries on Solaris systems. Therefore, libtool
12032 *** is disabling shared libraries support. We urge you to upgrade GNU
12033 *** binutils to release 2.9.1 or newer. Another option is to modify
12034 *** your PATH or compiler configuration so that the native linker is
12035 *** used, and then restart.
12036
12037 _LT_EOF
12038 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12040 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12041 else
12042 ld_shlibs=no
12043 fi
12044 ;;
12045
12046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12047 case `$LD -v 2>&1` in
12048 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12049 ld_shlibs=no
12050 cat <<_LT_EOF 1>&2
12051
12052 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12053 *** reliably create shared libraries on SCO systems. Therefore, libtool
12054 *** is disabling shared libraries support. We urge you to upgrade GNU
12055 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12056 *** your PATH or compiler configuration so that the native linker is
12057 *** used, and then restart.
12058
12059 _LT_EOF
12060 ;;
12061 *)
12062 # For security reasons, it is highly recommended that you always
12063 # use absolute paths for naming shared libraries, and exclude the
12064 # DT_RUNPATH tag from executables and libraries. But doing so
12065 # requires that you compile everything twice, which is a pain.
12066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12070 else
12071 ld_shlibs=no
12072 fi
12073 ;;
12074 esac
12075 ;;
12076
12077 sunos4*)
12078 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12079 wlarc=
12080 hardcode_direct=yes
12081 hardcode_shlibpath_var=no
12082 ;;
12083
12084 *)
12085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12087 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12088 else
12089 ld_shlibs=no
12090 fi
12091 ;;
12092 esac
12093
12094 if test no = "$ld_shlibs"; then
12095 runpath_var=
12096 hardcode_libdir_flag_spec=
12097 export_dynamic_flag_spec=
12098 whole_archive_flag_spec=
12099 fi
12100 else
12101 # PORTME fill in a description of your system's linker (not GNU ld)
12102 case $host_os in
12103 aix3*)
12104 allow_undefined_flag=unsupported
12105 always_export_symbols=yes
12106 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'
12107 # Note: this linker hardcodes the directories in LIBPATH if there
12108 # are no directories specified by -L.
12109 hardcode_minus_L=yes
12110 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12111 # Neither direct hardcoding nor static linking is supported with a
12112 # broken collect2.
12113 hardcode_direct=unsupported
12114 fi
12115 ;;
12116
12117 aix[4-9]*)
12118 if test ia64 = "$host_cpu"; then
12119 # On IA64, the linker does run time linking by default, so we don't
12120 # have to do anything special.
12121 aix_use_runtimelinking=no
12122 exp_sym_flag='-Bexport'
12123 no_entry_flag=
12124 else
12125 # If we're using GNU nm, then we don't want the "-C" option.
12126 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12127 # Without the "-l" option, or with the "-B" option, AIX nm treats
12128 # weak defined symbols like other global defined symbols, whereas
12129 # GNU nm marks them as "W".
12130 # While the 'weak' keyword is ignored in the Export File, we need
12131 # it in the Import File for the 'aix-soname' feature, so we have
12132 # to replace the "-B" option with "-P" for AIX nm.
12133 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12134 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'
12135 else
12136 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 == "L") || (\$ 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'
12137 fi
12138 aix_use_runtimelinking=no
12139
12140 # Test if we are trying to use run time linking or normal
12141 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12142 # have runtime linking enabled, and use it for executables.
12143 # For shared libraries, we enable/disable runtime linking
12144 # depending on the kind of the shared library created -
12145 # when "with_aix_soname,aix_use_runtimelinking" is:
12146 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12147 # "aix,yes" lib.so shared, rtl:yes, for executables
12148 # lib.a static archive
12149 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12150 # lib.a(lib.so.V) shared, rtl:no, for executables
12151 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12152 # lib.a(lib.so.V) shared, rtl:no
12153 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12154 # lib.a static archive
12155 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12156 for ld_flag in $LDFLAGS; do
12157 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12158 aix_use_runtimelinking=yes
12159 break
12160 fi
12161 done
12162 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12163 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12164 # so we don't have lib.a shared libs to link our executables.
12165 # We have to force runtime linking in this case.
12166 aix_use_runtimelinking=yes
12167 LDFLAGS="$LDFLAGS -Wl,-brtl"
12168 fi
12169 ;;
12170 esac
12171
12172 exp_sym_flag='-bexport'
12173 no_entry_flag='-bnoentry'
12174 fi
12175
12176 # When large executables or shared objects are built, AIX ld can
12177 # have problems creating the table of contents. If linking a library
12178 # or program results in "error TOC overflow" add -mminimal-toc to
12179 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12180 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12181
12182 archive_cmds=''
12183 hardcode_direct=yes
12184 hardcode_direct_absolute=yes
12185 hardcode_libdir_separator=':'
12186 link_all_deplibs=yes
12187 file_list_spec='$wl-f,'
12188 case $with_aix_soname,$aix_use_runtimelinking in
12189 aix,*) ;; # traditional, no import file
12190 svr4,* | *,yes) # use import file
12191 # The Import File defines what to hardcode.
12192 hardcode_direct=no
12193 hardcode_direct_absolute=no
12194 ;;
12195 esac
12196
12197 if test yes = "$GCC"; then
12198 case $host_os in aix4.[012]|aix4.[012].*)
12199 # We only want to do this on AIX 4.2 and lower, the check
12200 # below for broken collect2 doesn't work under 4.3+
12201 collect2name=`$CC -print-prog-name=collect2`
12202 if test -f "$collect2name" &&
12203 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12204 then
12205 # We have reworked collect2
12206 :
12207 else
12208 # We have old collect2
12209 hardcode_direct=unsupported
12210 # It fails to find uninstalled libraries when the uninstalled
12211 # path is not listed in the libpath. Setting hardcode_minus_L
12212 # to unsupported forces relinking
12213 hardcode_minus_L=yes
12214 hardcode_libdir_flag_spec='-L$libdir'
12215 hardcode_libdir_separator=
12216 fi
12217 ;;
12218 esac
12219 shared_flag='-shared'
12220 if test yes = "$aix_use_runtimelinking"; then
12221 shared_flag="$shared_flag "'$wl-G'
12222 fi
12223 # Need to ensure runtime linking is disabled for the traditional
12224 # shared library, or the linker may eventually find shared libraries
12225 # /with/ Import File - we do not want to mix them.
12226 shared_flag_aix='-shared'
12227 shared_flag_svr4='-shared $wl-G'
12228 else
12229 # not using gcc
12230 if test ia64 = "$host_cpu"; then
12231 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12232 # chokes on -Wl,-G. The following line is correct:
12233 shared_flag='-G'
12234 else
12235 if test yes = "$aix_use_runtimelinking"; then
12236 shared_flag='$wl-G'
12237 else
12238 shared_flag='$wl-bM:SRE'
12239 fi
12240 shared_flag_aix='$wl-bM:SRE'
12241 shared_flag_svr4='$wl-G'
12242 fi
12243 fi
12244
12245 export_dynamic_flag_spec='$wl-bexpall'
12246 # It seems that -bexpall does not export symbols beginning with
12247 # underscore (_), so it is better to generate a list of symbols to export.
12248 always_export_symbols=yes
12249 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12250 # Warning - without using the other runtime loading flags (-brtl),
12251 # -berok will link without error, but may produce a broken library.
12252 allow_undefined_flag='-berok'
12253 # Determine the default libpath from the value encoded in an
12254 # empty executable.
12255 if test set = "${lt_cv_aix_libpath+set}"; then
12256 aix_libpath=$lt_cv_aix_libpath
12257 else
12258 if test ${lt_cv_aix_libpath_+y}
12259 then :
12260 printf %s "(cached) " >&6
12261 else case e in #(
12262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264
12265 int
12266 main (void)
12267 {
12268
12269 ;
12270 return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_link "$LINENO"
12274 then :
12275
12276 lt_aix_libpath_sed='
12277 /Import File Strings/,/^$/ {
12278 /^0/ {
12279 s/^0 *\([^ ]*\) *$/\1/
12280 p
12281 }
12282 }'
12283 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12284 # Check for a 64-bit object if we didn't find anything.
12285 if test -z "$lt_cv_aix_libpath_"; then
12286 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12287 fi
12288 fi
12289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12290 conftest$ac_exeext conftest.$ac_ext
12291 if test -z "$lt_cv_aix_libpath_"; then
12292 lt_cv_aix_libpath_=/usr/lib:/lib
12293 fi
12294 ;;
12295 esac
12296 fi
12297
12298 aix_libpath=$lt_cv_aix_libpath_
12299 fi
12300
12301 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12302 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
12303 else
12304 if test ia64 = "$host_cpu"; then
12305 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12306 allow_undefined_flag="-z nodefs"
12307 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"
12308 else
12309 # Determine the default libpath from the value encoded in an
12310 # empty executable.
12311 if test set = "${lt_cv_aix_libpath+set}"; then
12312 aix_libpath=$lt_cv_aix_libpath
12313 else
12314 if test ${lt_cv_aix_libpath_+y}
12315 then :
12316 printf %s "(cached) " >&6
12317 else case e in #(
12318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320
12321 int
12322 main (void)
12323 {
12324
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"
12330 then :
12331
12332 lt_aix_libpath_sed='
12333 /Import File Strings/,/^$/ {
12334 /^0/ {
12335 s/^0 *\([^ ]*\) *$/\1/
12336 p
12337 }
12338 }'
12339 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12340 # Check for a 64-bit object if we didn't find anything.
12341 if test -z "$lt_cv_aix_libpath_"; then
12342 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12343 fi
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12346 conftest$ac_exeext conftest.$ac_ext
12347 if test -z "$lt_cv_aix_libpath_"; then
12348 lt_cv_aix_libpath_=/usr/lib:/lib
12349 fi
12350 ;;
12351 esac
12352 fi
12353
12354 aix_libpath=$lt_cv_aix_libpath_
12355 fi
12356
12357 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12358 # Warning - without using the other run time loading flags,
12359 # -berok will link without error, but may produce a broken library.
12360 no_undefined_flag=' $wl-bernotok'
12361 allow_undefined_flag=' $wl-berok'
12362 if test yes = "$with_gnu_ld"; then
12363 # We only use this code for GNU lds that support --whole-archive.
12364 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12365 else
12366 # Exported symbols can be pulled into shared objects from archives
12367 whole_archive_flag_spec='$convenience'
12368 fi
12369 archive_cmds_need_lc=yes
12370 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12371 # -brtl affects multiple linker settings, -berok does not and is overridden later
12372 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12373 if test svr4 != "$with_aix_soname"; then
12374 # This is similar to how AIX traditionally builds its shared libraries.
12375 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'
12376 fi
12377 if test aix != "$with_aix_soname"; then
12378 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'
12379 else
12380 # used by -dlpreopen to get the symbols
12381 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12382 fi
12383 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12384 fi
12385 fi
12386 ;;
12387
12388 amigaos*)
12389 case $host_cpu in
12390 powerpc)
12391 # see comment about AmigaOS4 .so support
12392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12393 archive_expsym_cmds=''
12394 ;;
12395 m68k)
12396 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)'
12397 hardcode_libdir_flag_spec='-L$libdir'
12398 hardcode_minus_L=yes
12399 ;;
12400 esac
12401 ;;
12402
12403 bsdi[45]*)
12404 export_dynamic_flag_spec=-rdynamic
12405 ;;
12406
12407 cygwin* | mingw* | windows* | pw32* | cegcc*)
12408 # When not using gcc, we currently assume that we are using
12409 # Microsoft Visual C++ or Intel C++ Compiler.
12410 # hardcode_libdir_flag_spec is actually meaningless, as there is
12411 # no search path for DLLs.
12412 case $cc_basename in
12413 cl* | icl*)
12414 # Native MSVC or ICC
12415 hardcode_libdir_flag_spec=' '
12416 allow_undefined_flag=unsupported
12417 always_export_symbols=yes
12418 file_list_spec='@'
12419 # Tell ltmain to make .lib files, not .a files.
12420 libext=lib
12421 # Tell ltmain to make .dll files, not .so files.
12422 shrext_cmds=.dll
12423 # FIXME: Setting linknames here is a bad hack.
12424 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12425 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12426 cp "$export_symbols" "$output_objdir/$soname.def";
12427 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12428 else
12429 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12430 fi~
12431 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12432 linknames='
12433 # The linker will not automatically build a static lib if we build a DLL.
12434 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12435 enable_shared_with_static_runtimes=yes
12436 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12438 # Don't use ranlib
12439 old_postinstall_cmds='chmod 644 $oldlib'
12440 postlink_cmds='lt_outputfile="@OUTPUT@"~
12441 lt_tool_outputfile="@TOOL_OUTPUT@"~
12442 case $lt_outputfile in
12443 *.exe|*.EXE) ;;
12444 *)
12445 lt_outputfile=$lt_outputfile.exe
12446 lt_tool_outputfile=$lt_tool_outputfile.exe
12447 ;;
12448 esac~
12449 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12450 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12451 $RM "$lt_outputfile.manifest";
12452 fi'
12453 ;;
12454 *)
12455 # Assume MSVC and ICC wrapper
12456 hardcode_libdir_flag_spec=' '
12457 allow_undefined_flag=unsupported
12458 # Tell ltmain to make .lib files, not .a files.
12459 libext=lib
12460 # Tell ltmain to make .dll files, not .so files.
12461 shrext_cmds=.dll
12462 # FIXME: Setting linknames here is a bad hack.
12463 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12464 # The linker will automatically build a .lib file if we build a DLL.
12465 old_archive_from_new_cmds='true'
12466 # FIXME: Should let the user specify the lib program.
12467 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12468 enable_shared_with_static_runtimes=yes
12469 ;;
12470 esac
12471 ;;
12472
12473 darwin* | rhapsody*)
12474
12475
12476 archive_cmds_need_lc=no
12477 hardcode_direct=no
12478 hardcode_automatic=yes
12479 hardcode_shlibpath_var=unsupported
12480 if test yes = "$lt_cv_ld_force_load"; then
12481 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\"`'
12482
12483 else
12484 whole_archive_flag_spec=''
12485 fi
12486 link_all_deplibs=yes
12487 allow_undefined_flag=$_lt_dar_allow_undefined
12488 case $cc_basename in
12489 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12490 *) _lt_dar_can_shared=$GCC ;;
12491 esac
12492 if test yes = "$_lt_dar_can_shared"; then
12493 output_verbose_link_cmd=func_echo_all
12494 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12495 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12496 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"
12497 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"
12498
12499 else
12500 ld_shlibs=no
12501 fi
12502
12503 ;;
12504
12505 dgux*)
12506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12507 hardcode_libdir_flag_spec='-L$libdir'
12508 hardcode_shlibpath_var=no
12509 ;;
12510
12511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12512 # support. Future versions do this automatically, but an explicit c++rt0.o
12513 # does not break anything, and helps significantly (at the cost of a little
12514 # extra space).
12515 freebsd2.2*)
12516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12517 hardcode_libdir_flag_spec='-R$libdir'
12518 hardcode_direct=yes
12519 hardcode_shlibpath_var=no
12520 ;;
12521
12522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12523 freebsd2.*)
12524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12525 hardcode_direct=yes
12526 hardcode_minus_L=yes
12527 hardcode_shlibpath_var=no
12528 ;;
12529
12530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12531 freebsd* | dragonfly* | midnightbsd*)
12532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12533 hardcode_libdir_flag_spec='-R$libdir'
12534 hardcode_direct=yes
12535 hardcode_shlibpath_var=no
12536 ;;
12537
12538 hpux9*)
12539 if test yes = "$GCC"; then
12540 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'
12541 else
12542 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'
12543 fi
12544 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12545 hardcode_libdir_separator=:
12546 hardcode_direct=yes
12547
12548 # hardcode_minus_L: Not really in the search PATH,
12549 # but as the default location of the library.
12550 hardcode_minus_L=yes
12551 export_dynamic_flag_spec='$wl-E'
12552 ;;
12553
12554 hpux10*)
12555 if test yes,no = "$GCC,$with_gnu_ld"; then
12556 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12557 else
12558 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12559 fi
12560 if test no = "$with_gnu_ld"; then
12561 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12562 hardcode_libdir_separator=:
12563 hardcode_direct=yes
12564 hardcode_direct_absolute=yes
12565 export_dynamic_flag_spec='$wl-E'
12566 # hardcode_minus_L: Not really in the search PATH,
12567 # but as the default location of the library.
12568 hardcode_minus_L=yes
12569 fi
12570 ;;
12571
12572 hpux11*)
12573 if test yes,no = "$GCC,$with_gnu_ld"; then
12574 case $host_cpu in
12575 hppa*64*)
12576 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12577 ;;
12578 ia64*)
12579 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12580 ;;
12581 *)
12582 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12583 ;;
12584 esac
12585 else
12586 case $host_cpu in
12587 hppa*64*)
12588 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12589 ;;
12590 ia64*)
12591 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12592 ;;
12593 *)
12594
12595 # Older versions of the 11.00 compiler do not understand -b yet
12596 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12598 printf %s "checking if $CC understands -b... " >&6; }
12599 if test ${lt_cv_prog_compiler__b+y}
12600 then :
12601 printf %s "(cached) " >&6
12602 else case e in #(
12603 e) lt_cv_prog_compiler__b=no
12604 save_LDFLAGS=$LDFLAGS
12605 LDFLAGS="$LDFLAGS -b"
12606 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12607 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12608 # The linker can only warn and ignore the option if not recognized
12609 # So say no if there are warnings
12610 if test -s conftest.err; then
12611 # Append any errors to the config.log.
12612 cat conftest.err 1>&5
12613 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12615 if diff conftest.exp conftest.er2 >/dev/null; then
12616 lt_cv_prog_compiler__b=yes
12617 fi
12618 else
12619 lt_cv_prog_compiler__b=yes
12620 fi
12621 fi
12622 $RM -r conftest*
12623 LDFLAGS=$save_LDFLAGS
12624 ;;
12625 esac
12626 fi
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12628 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12629
12630 if test yes = "$lt_cv_prog_compiler__b"; then
12631 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12632 else
12633 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12634 fi
12635
12636 ;;
12637 esac
12638 fi
12639 if test no = "$with_gnu_ld"; then
12640 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12641 hardcode_libdir_separator=:
12642
12643 case $host_cpu in
12644 hppa*64*|ia64*)
12645 hardcode_direct=no
12646 hardcode_shlibpath_var=no
12647 ;;
12648 *)
12649 hardcode_direct=yes
12650 hardcode_direct_absolute=yes
12651 export_dynamic_flag_spec='$wl-E'
12652
12653 # hardcode_minus_L: Not really in the search PATH,
12654 # but as the default location of the library.
12655 hardcode_minus_L=yes
12656 ;;
12657 esac
12658 fi
12659 ;;
12660
12661 irix5* | irix6* | nonstopux*)
12662 if test yes = "$GCC"; then
12663 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'
12664 # Try to use the -exported_symbol ld option, if it does not
12665 # work, assume that -exports_file does not work either and
12666 # implicitly export all symbols.
12667 # This should be the same for all languages, so no per-tag cache variable.
12668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12669 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12670 if test ${lt_cv_irix_exported_symbol+y}
12671 then :
12672 printf %s "(cached) " >&6
12673 else case e in #(
12674 e) save_LDFLAGS=$LDFLAGS
12675 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678 int foo (void) { return 0; }
12679 _ACEOF
12680 if ac_fn_c_try_link "$LINENO"
12681 then :
12682 lt_cv_irix_exported_symbol=yes
12683 else case e in #(
12684 e) lt_cv_irix_exported_symbol=no ;;
12685 esac
12686 fi
12687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12688 conftest$ac_exeext conftest.$ac_ext
12689 LDFLAGS=$save_LDFLAGS ;;
12690 esac
12691 fi
12692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12693 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12694 if test yes = "$lt_cv_irix_exported_symbol"; then
12695 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'
12696 fi
12697 else
12698 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'
12699 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'
12700 fi
12701 archive_cmds_need_lc='no'
12702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12703 hardcode_libdir_separator=:
12704 inherit_rpath=yes
12705 link_all_deplibs=yes
12706 ;;
12707
12708 linux*)
12709 case $cc_basename in
12710 tcc*)
12711 # Fabrice Bellard et al's Tiny C Compiler
12712 ld_shlibs=yes
12713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12714 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12715 ;;
12716 esac
12717 ;;
12718
12719 *-mlibc)
12720 ;;
12721
12722 netbsd* | netbsdelf*-gnu)
12723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12725 else
12726 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12727 fi
12728 hardcode_libdir_flag_spec='-R$libdir'
12729 hardcode_direct=yes
12730 hardcode_shlibpath_var=no
12731 ;;
12732
12733 newsos6)
12734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12735 hardcode_direct=yes
12736 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12737 hardcode_libdir_separator=:
12738 hardcode_shlibpath_var=no
12739 ;;
12740
12741 *nto* | *qnx*)
12742 ;;
12743
12744 openbsd*)
12745 if test -f /usr/libexec/ld.so; then
12746 hardcode_direct=yes
12747 hardcode_shlibpath_var=no
12748 hardcode_direct_absolute=yes
12749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12751 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12752 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12753 export_dynamic_flag_spec='$wl-E'
12754 else
12755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12756 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12757 fi
12758 else
12759 ld_shlibs=no
12760 fi
12761 ;;
12762
12763 os2*)
12764 hardcode_libdir_flag_spec='-L$libdir'
12765 hardcode_minus_L=yes
12766 allow_undefined_flag=unsupported
12767 shrext_cmds=.dll
12768 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12769 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12770 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12771 $ECHO EXPORTS >> $output_objdir/$libname.def~
12772 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12773 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12774 emximp -o $lib $output_objdir/$libname.def'
12775 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12776 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12777 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12778 $ECHO EXPORTS >> $output_objdir/$libname.def~
12779 prefix_cmds="$SED"~
12780 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12781 prefix_cmds="$prefix_cmds -e 1d";
12782 fi~
12783 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12784 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12785 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12786 emximp -o $lib $output_objdir/$libname.def'
12787 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12788 enable_shared_with_static_runtimes=yes
12789 file_list_spec='@'
12790 ;;
12791
12792 osf3*)
12793 if test yes = "$GCC"; then
12794 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12795 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'
12796 else
12797 allow_undefined_flag=' -expect_unresolved \*'
12798 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'
12799 fi
12800 archive_cmds_need_lc='no'
12801 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12802 hardcode_libdir_separator=:
12803 ;;
12804
12805 osf4* | osf5*) # as osf3* with the addition of -msym flag
12806 if test yes = "$GCC"; then
12807 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12808 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'
12809 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12810 else
12811 allow_undefined_flag=' -expect_unresolved \*'
12812 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'
12813 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~
12814 $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'
12815
12816 # Both c and cxx compiler support -rpath directly
12817 hardcode_libdir_flag_spec='-rpath $libdir'
12818 fi
12819 archive_cmds_need_lc='no'
12820 hardcode_libdir_separator=:
12821 ;;
12822
12823 serenity*)
12824 ;;
12825
12826 solaris*)
12827 no_undefined_flag=' -z defs'
12828 if test yes = "$GCC"; then
12829 wlarc='$wl'
12830 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12831 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12832 $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'
12833 else
12834 case `$CC -V 2>&1` in
12835 *"Compilers 5.0"*)
12836 wlarc=''
12837 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12839 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12840 ;;
12841 *)
12842 wlarc='$wl'
12843 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12844 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12845 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12846 ;;
12847 esac
12848 fi
12849 hardcode_libdir_flag_spec='-R$libdir'
12850 hardcode_shlibpath_var=no
12851 case $host_os in
12852 solaris2.[0-5] | solaris2.[0-5].*) ;;
12853 *)
12854 # The compiler driver will combine and reorder linker options,
12855 # but understands '-z linker_flag'. GCC discards it without '$wl',
12856 # but is careful enough not to reorder.
12857 # Supported since Solaris 2.6 (maybe 2.5.1?)
12858 if test yes = "$GCC"; then
12859 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12860 else
12861 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12862 fi
12863 ;;
12864 esac
12865 link_all_deplibs=yes
12866 ;;
12867
12868 sunos4*)
12869 if test sequent = "$host_vendor"; then
12870 # Use $CC to link under sequent, because it throws in some extra .o
12871 # files that make .init and .fini sections work.
12872 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12873 else
12874 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12875 fi
12876 hardcode_libdir_flag_spec='-L$libdir'
12877 hardcode_direct=yes
12878 hardcode_minus_L=yes
12879 hardcode_shlibpath_var=no
12880 ;;
12881
12882 sysv4)
12883 case $host_vendor in
12884 sni)
12885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12886 hardcode_direct=yes # is this really true???
12887 ;;
12888 siemens)
12889 ## LD is ld it makes a PLAMLIB
12890 ## CC just makes a GrossModule.
12891 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12892 reload_cmds='$CC -r -o $output$reload_objs'
12893 hardcode_direct=no
12894 ;;
12895 motorola)
12896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12898 ;;
12899 esac
12900 runpath_var='LD_RUN_PATH'
12901 hardcode_shlibpath_var=no
12902 ;;
12903
12904 sysv4.3*)
12905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12906 hardcode_shlibpath_var=no
12907 export_dynamic_flag_spec='-Bexport'
12908 ;;
12909
12910 sysv4*MP*)
12911 if test -d /usr/nec; then
12912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913 hardcode_shlibpath_var=no
12914 runpath_var=LD_RUN_PATH
12915 hardcode_runpath_var=yes
12916 ld_shlibs=yes
12917 fi
12918 ;;
12919
12920 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12921 no_undefined_flag='$wl-z,text'
12922 archive_cmds_need_lc=no
12923 hardcode_shlibpath_var=no
12924 runpath_var='LD_RUN_PATH'
12925
12926 if test yes = "$GCC"; then
12927 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12929 else
12930 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12931 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12932 fi
12933 ;;
12934
12935 sysv5* | sco3.2v5* | sco5v6*)
12936 # Note: We CANNOT use -z defs as we might desire, because we do not
12937 # link with -lc, and that would cause any symbols used from libc to
12938 # always be unresolved, which means just about no library would
12939 # ever link correctly. If we're not using GNU ld we use -z text
12940 # though, which does catch some bad symbols but isn't as heavy-handed
12941 # as -z defs.
12942 no_undefined_flag='$wl-z,text'
12943 allow_undefined_flag='$wl-z,nodefs'
12944 archive_cmds_need_lc=no
12945 hardcode_shlibpath_var=no
12946 hardcode_libdir_flag_spec='$wl-R,$libdir'
12947 hardcode_libdir_separator=':'
12948 link_all_deplibs=yes
12949 export_dynamic_flag_spec='$wl-Bexport'
12950 runpath_var='LD_RUN_PATH'
12951
12952 if test yes = "$GCC"; then
12953 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12954 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12955 else
12956 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12957 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12958 fi
12959 ;;
12960
12961 uts4*)
12962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_libdir_flag_spec='-L$libdir'
12964 hardcode_shlibpath_var=no
12965 ;;
12966
12967 *)
12968 ld_shlibs=no
12969 ;;
12970 esac
12971
12972 if test sni = "$host_vendor"; then
12973 case $host in
12974 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12975 export_dynamic_flag_spec='$wl-Blargedynsym'
12976 ;;
12977 esac
12978 fi
12979 fi
12980
12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12982 printf "%s\n" "$ld_shlibs" >&6; }
12983 test no = "$ld_shlibs" && can_build_shared=no
12984
12985 with_gnu_ld=$with_gnu_ld
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001 #
13002 # Do we need to explicitly link libc?
13003 #
13004 case "x$archive_cmds_need_lc" in
13005 x|xyes)
13006 # Assume -lc should be added
13007 archive_cmds_need_lc=yes
13008
13009 if test yes,yes = "$GCC,$enable_shared"; then
13010 case $archive_cmds in
13011 *'~'*)
13012 # FIXME: we may have to deal with multi-command sequences.
13013 ;;
13014 '$CC '*)
13015 # Test whether the compiler implicitly links with -lc since on some
13016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13017 # to ld, don't add -lc before -lgcc.
13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13019 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13020 if test ${lt_cv_archive_cmds_need_lc+y}
13021 then :
13022 printf %s "(cached) " >&6
13023 else case e in #(
13024 e) $RM conftest*
13025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13026
13027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13028 (eval $ac_compile) 2>&5
13029 ac_status=$?
13030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13031 test $ac_status = 0; } 2>conftest.err; then
13032 soname=conftest
13033 lib=conftest
13034 libobjs=conftest.$ac_objext
13035 deplibs=
13036 wl=$lt_prog_compiler_wl
13037 pic_flag=$lt_prog_compiler_pic
13038 compiler_flags=-v
13039 linker_flags=-v
13040 verstring=
13041 output_objdir=.
13042 libname=conftest
13043 lt_save_allow_undefined_flag=$allow_undefined_flag
13044 allow_undefined_flag=
13045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13046 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13047 ac_status=$?
13048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13049 test $ac_status = 0; }
13050 then
13051 lt_cv_archive_cmds_need_lc=no
13052 else
13053 lt_cv_archive_cmds_need_lc=yes
13054 fi
13055 allow_undefined_flag=$lt_save_allow_undefined_flag
13056 else
13057 cat conftest.err 1>&5
13058 fi
13059 $RM conftest*
13060 ;;
13061 esac
13062 fi
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13064 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13065 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13066 ;;
13067 esac
13068 fi
13069 ;;
13070 esac
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13224 printf %s "checking dynamic linker characteristics... " >&6; }
13225
13226 if test yes = "$GCC"; then
13227 case $host_os in
13228 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13229 *) lt_awk_arg='/^libraries:/' ;;
13230 esac
13231 case $host_os in
13232 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13233 *) lt_sed_strip_eq='s|=/|/|g' ;;
13234 esac
13235 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13236 case $lt_search_path_spec in
13237 *\;*)
13238 # if the path contains ";" then we assume it to be the separator
13239 # otherwise default to the standard path separator (i.e. ":") - it is
13240 # assumed that no part of a normal pathname contains ";" but that should
13241 # okay in the real world where ";" in dirpaths is itself problematic.
13242 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13243 ;;
13244 *)
13245 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13246 ;;
13247 esac
13248 # Ok, now we have the path, separated by spaces, we can step through it
13249 # and add multilib dir if necessary...
13250 lt_tmp_lt_search_path_spec=
13251 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13252 # ...but if some path component already ends with the multilib dir we assume
13253 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13254 case "$lt_multi_os_dir; $lt_search_path_spec " in
13255 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13256 lt_multi_os_dir=
13257 ;;
13258 esac
13259 for lt_sys_path in $lt_search_path_spec; do
13260 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13262 elif test -n "$lt_multi_os_dir"; then
13263 test -d "$lt_sys_path" && \
13264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13265 fi
13266 done
13267 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13268 BEGIN {RS = " "; FS = "/|\n";} {
13269 lt_foo = "";
13270 lt_count = 0;
13271 for (lt_i = NF; lt_i > 0; lt_i--) {
13272 if ($lt_i != "" && $lt_i != ".") {
13273 if ($lt_i == "..") {
13274 lt_count++;
13275 } else {
13276 if (lt_count == 0) {
13277 lt_foo = "/" $lt_i lt_foo;
13278 } else {
13279 lt_count--;
13280 }
13281 }
13282 }
13283 }
13284 if (lt_foo != "") { lt_freq[lt_foo]++; }
13285 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13286 }'`
13287 # AWK program above erroneously prepends '/' to C:/dos/paths
13288 # for these hosts.
13289 case $host_os in
13290 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13291 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13292 esac
13293 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13294 else
13295 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13296 fi
13297 library_names_spec=
13298 libname_spec='lib$name'
13299 soname_spec=
13300 shrext_cmds=.so
13301 postinstall_cmds=
13302 postuninstall_cmds=
13303 finish_cmds=
13304 finish_eval=
13305 shlibpath_var=
13306 shlibpath_overrides_runpath=unknown
13307 version_type=none
13308 dynamic_linker="$host_os ld.so"
13309 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13310 need_lib_prefix=unknown
13311 hardcode_into_libs=no
13312
13313 # when you set need_version to no, make sure it does not cause -set_version
13314 # flags to be left without arguments
13315 need_version=unknown
13316
13317
13318
13319 case $host_os in
13320 aix3*)
13321 version_type=linux # correct to gnu/linux during the next big refactor
13322 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13323 shlibpath_var=LIBPATH
13324
13325 # AIX 3 has no versioning support, so we append a major version to the name.
13326 soname_spec='$libname$release$shared_ext$major'
13327 ;;
13328
13329 aix[4-9]*)
13330 version_type=linux # correct to gnu/linux during the next big refactor
13331 need_lib_prefix=no
13332 need_version=no
13333 hardcode_into_libs=yes
13334 if test ia64 = "$host_cpu"; then
13335 # AIX 5 supports IA64
13336 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13337 shlibpath_var=LD_LIBRARY_PATH
13338 else
13339 # With GCC up to 2.95.x, collect2 would create an import file
13340 # for dependence libraries. The import file would start with
13341 # the line '#! .'. This would cause the generated library to
13342 # depend on '.', always an invalid library. This was fixed in
13343 # development snapshots of GCC prior to 3.0.
13344 case $host_os in
13345 aix4 | aix4.[01] | aix4.[01].*)
13346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13347 echo ' yes '
13348 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13349 :
13350 else
13351 can_build_shared=no
13352 fi
13353 ;;
13354 esac
13355 # Using Import Files as archive members, it is possible to support
13356 # filename-based versioning of shared library archives on AIX. While
13357 # this would work for both with and without runtime linking, it will
13358 # prevent static linking of such archives. So we do filename-based
13359 # shared library versioning with .so extension only, which is used
13360 # when both runtime linking and shared linking is enabled.
13361 # Unfortunately, runtime linking may impact performance, so we do
13362 # not want this to be the default eventually. Also, we use the
13363 # versioned .so libs for executables only if there is the -brtl
13364 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13365 # To allow for filename-based versioning support, we need to create
13366 # libNAME.so.V as an archive file, containing:
13367 # *) an Import File, referring to the versioned filename of the
13368 # archive as well as the shared archive member, telling the
13369 # bitwidth (32 or 64) of that shared object, and providing the
13370 # list of exported symbols of that shared object, eventually
13371 # decorated with the 'weak' keyword
13372 # *) the shared object with the F_LOADONLY flag set, to really avoid
13373 # it being seen by the linker.
13374 # At run time we better use the real file rather than another symlink,
13375 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13376
13377 case $with_aix_soname,$aix_use_runtimelinking in
13378 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13379 # soname into executable. Probably we can add versioning support to
13380 # collect2, so additional links can be useful in future.
13381 aix,yes) # traditional libtool
13382 dynamic_linker='AIX unversionable lib.so'
13383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13384 # instead of lib<name>.a to let people know that these are not
13385 # typical AIX shared libraries.
13386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13387 ;;
13388 aix,no) # traditional AIX only
13389 dynamic_linker='AIX lib.a(lib.so.V)'
13390 # We preserve .a as extension for shared libraries through AIX4.2
13391 # and later when we are not doing run time linking.
13392 library_names_spec='$libname$release.a $libname.a'
13393 soname_spec='$libname$release$shared_ext$major'
13394 ;;
13395 svr4,*) # full svr4 only
13396 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13397 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13398 # We do not specify a path in Import Files, so LIBPATH fires.
13399 shlibpath_overrides_runpath=yes
13400 ;;
13401 *,yes) # both, prefer svr4
13402 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13403 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13404 # unpreferred sharedlib libNAME.a needs extra handling
13405 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"'
13406 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"'
13407 # We do not specify a path in Import Files, so LIBPATH fires.
13408 shlibpath_overrides_runpath=yes
13409 ;;
13410 *,no) # both, prefer aix
13411 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13412 library_names_spec='$libname$release.a $libname.a'
13413 soname_spec='$libname$release$shared_ext$major'
13414 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13415 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)'
13416 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"'
13417 ;;
13418 esac
13419 shlibpath_var=LIBPATH
13420 fi
13421 ;;
13422
13423 amigaos*)
13424 case $host_cpu in
13425 powerpc)
13426 # Since July 2007 AmigaOS4 officially supports .so libraries.
13427 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13429 ;;
13430 m68k)
13431 library_names_spec='$libname.ixlibrary $libname.a'
13432 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13433 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'
13434 ;;
13435 esac
13436 ;;
13437
13438 beos*)
13439 library_names_spec='$libname$shared_ext'
13440 dynamic_linker="$host_os ld.so"
13441 shlibpath_var=LIBRARY_PATH
13442 ;;
13443
13444 bsdi[45]*)
13445 version_type=linux # correct to gnu/linux during the next big refactor
13446 need_version=no
13447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13448 soname_spec='$libname$release$shared_ext$major'
13449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13453 # the default ld.so.conf also contains /usr/contrib/lib and
13454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13455 # libtool to hard-code these into programs
13456 ;;
13457
13458 cygwin* | mingw* | windows* | pw32* | cegcc*)
13459 version_type=windows
13460 shrext_cmds=.dll
13461 need_version=no
13462 need_lib_prefix=no
13463
13464 case $GCC,$cc_basename in
13465 yes,*)
13466 # gcc
13467 library_names_spec='$libname.dll.a'
13468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13469 # If user builds GCC with multilib enabled,
13470 # it should just install on $(libdir)
13471 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13472 if test xyes = x"$multilib"; then
13473 postinstall_cmds='base_file=`basename \$file`~
13474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13475 dldir=$destdir/`dirname \$dlpath`~
13476 $install_prog $dir/$dlname $destdir/$dlname~
13477 chmod a+x $destdir/$dlname~
13478 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13479 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13480 fi'
13481 else
13482 postinstall_cmds='base_file=`basename \$file`~
13483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13484 dldir=$destdir/`dirname \$dlpath`~
13485 test -d \$dldir || mkdir -p \$dldir~
13486 $install_prog $dir/$dlname \$dldir/$dlname~
13487 chmod a+x \$dldir/$dlname~
13488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13490 fi'
13491 fi
13492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13493 dlpath=$dir/\$dldll~
13494 $RM \$dlpath'
13495 shlibpath_overrides_runpath=yes
13496
13497 case $host_os in
13498 cygwin*)
13499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13500 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13501
13502 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13503 ;;
13504 mingw* | windows* | cegcc*)
13505 # MinGW DLLs use traditional 'lib' prefix
13506 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13507 ;;
13508 pw32*)
13509 # pw32 DLLs use 'pw' prefix rather than 'lib'
13510 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13511 ;;
13512 esac
13513 dynamic_linker='Win32 ld.exe'
13514 ;;
13515
13516 *,cl* | *,icl*)
13517 # Native MSVC or ICC
13518 libname_spec='$name'
13519 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13520 library_names_spec='$libname.dll.lib'
13521
13522 case $build_os in
13523 mingw* | windows*)
13524 sys_lib_search_path_spec=
13525 lt_save_ifs=$IFS
13526 IFS=';'
13527 for lt_path in $LIB
13528 do
13529 IFS=$lt_save_ifs
13530 # Let DOS variable expansion print the short 8.3 style file name.
13531 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13532 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13533 done
13534 IFS=$lt_save_ifs
13535 # Convert to MSYS style.
13536 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13537 ;;
13538 cygwin*)
13539 # Convert to unix form, then to dos form, then back to unix form
13540 # but this time dos style (no spaces!) so that the unix form looks
13541 # like /cygdrive/c/PROGRA~1:/cygdr...
13542 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13543 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13544 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13545 ;;
13546 *)
13547 sys_lib_search_path_spec=$LIB
13548 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13549 # It is most probably a Windows format PATH.
13550 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13551 else
13552 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13553 fi
13554 # FIXME: find the short name or the path components, as spaces are
13555 # common. (e.g. "Program Files" -> "PROGRA~1")
13556 ;;
13557 esac
13558
13559 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13560 postinstall_cmds='base_file=`basename \$file`~
13561 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13562 dldir=$destdir/`dirname \$dlpath`~
13563 test -d \$dldir || mkdir -p \$dldir~
13564 $install_prog $dir/$dlname \$dldir/$dlname'
13565 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13566 dlpath=$dir/\$dldll~
13567 $RM \$dlpath'
13568 shlibpath_overrides_runpath=yes
13569 dynamic_linker='Win32 link.exe'
13570 ;;
13571
13572 *)
13573 # Assume MSVC and ICC wrapper
13574 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13575 dynamic_linker='Win32 ld.exe'
13576 ;;
13577 esac
13578 # FIXME: first we should search . and the directory the executable is in
13579 shlibpath_var=PATH
13580 ;;
13581
13582 darwin* | rhapsody*)
13583 dynamic_linker="$host_os dyld"
13584 version_type=darwin
13585 need_lib_prefix=no
13586 need_version=no
13587 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13588 soname_spec='$libname$release$major$shared_ext'
13589 shlibpath_overrides_runpath=yes
13590 shlibpath_var=DYLD_LIBRARY_PATH
13591 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13592
13593 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13594 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13595 ;;
13596
13597 dgux*)
13598 version_type=linux # correct to gnu/linux during the next big refactor
13599 need_lib_prefix=no
13600 need_version=no
13601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13602 soname_spec='$libname$release$shared_ext$major'
13603 shlibpath_var=LD_LIBRARY_PATH
13604 ;;
13605
13606 freebsd* | dragonfly* | midnightbsd*)
13607 # DragonFly does not have aout. When/if they implement a new
13608 # versioning mechanism, adjust this.
13609 if test -x /usr/bin/objformat; then
13610 objformat=`/usr/bin/objformat`
13611 else
13612 case $host_os in
13613 freebsd[23].*) objformat=aout ;;
13614 *) objformat=elf ;;
13615 esac
13616 fi
13617 version_type=freebsd-$objformat
13618 case $version_type in
13619 freebsd-elf*)
13620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13621 soname_spec='$libname$release$shared_ext$major'
13622 need_version=no
13623 need_lib_prefix=no
13624 ;;
13625 freebsd-*)
13626 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13627 need_version=yes
13628 ;;
13629 esac
13630 case $host_cpu in
13631 powerpc64)
13632 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13633 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636 int test_pointer_size[sizeof (void *) - 5];
13637
13638 _ACEOF
13639 if ac_fn_c_try_compile "$LINENO"
13640 then :
13641 shlibpath_var=LD_LIBRARY_PATH
13642 else case e in #(
13643 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13644 esac
13645 fi
13646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13647 ;;
13648 *)
13649 shlibpath_var=LD_LIBRARY_PATH
13650 ;;
13651 esac
13652 case $host_os in
13653 freebsd2.*)
13654 shlibpath_overrides_runpath=yes
13655 ;;
13656 freebsd3.[01]* | freebsdelf3.[01]*)
13657 shlibpath_overrides_runpath=yes
13658 hardcode_into_libs=yes
13659 ;;
13660 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13661 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13662 shlibpath_overrides_runpath=no
13663 hardcode_into_libs=yes
13664 ;;
13665 *) # from 4.6 on, and DragonFly
13666 shlibpath_overrides_runpath=yes
13667 hardcode_into_libs=yes
13668 ;;
13669 esac
13670 ;;
13671
13672 haiku*)
13673 version_type=linux # correct to gnu/linux during the next big refactor
13674 need_lib_prefix=no
13675 need_version=no
13676 dynamic_linker="$host_os runtime_loader"
13677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13678 soname_spec='$libname$release$shared_ext$major'
13679 shlibpath_var=LIBRARY_PATH
13680 shlibpath_overrides_runpath=no
13681 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13682 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13683 hardcode_into_libs=no
13684 ;;
13685
13686 hpux9* | hpux10* | hpux11*)
13687 # Give a soname corresponding to the major version so that dld.sl refuses to
13688 # link against other versions.
13689 version_type=sunos
13690 need_lib_prefix=no
13691 need_version=no
13692 case $host_cpu in
13693 ia64*)
13694 shrext_cmds='.so'
13695 hardcode_into_libs=yes
13696 dynamic_linker="$host_os dld.so"
13697 shlibpath_var=LD_LIBRARY_PATH
13698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13700 soname_spec='$libname$release$shared_ext$major'
13701 if test 32 = "$HPUX_IA64_MODE"; then
13702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13703 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13704 else
13705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13706 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13707 fi
13708 ;;
13709 hppa*64*)
13710 shrext_cmds='.sl'
13711 hardcode_into_libs=yes
13712 dynamic_linker="$host_os dld.sl"
13713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13716 soname_spec='$libname$release$shared_ext$major'
13717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13719 ;;
13720 *)
13721 shrext_cmds='.sl'
13722 dynamic_linker="$host_os dld.sl"
13723 shlibpath_var=SHLIB_PATH
13724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13726 soname_spec='$libname$release$shared_ext$major'
13727 ;;
13728 esac
13729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13730 postinstall_cmds='chmod 555 $lib'
13731 # or fails outright, so override atomically:
13732 install_override_mode=555
13733 ;;
13734
13735 interix[3-9]*)
13736 version_type=linux # correct to gnu/linux during the next big refactor
13737 need_lib_prefix=no
13738 need_version=no
13739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13740 soname_spec='$libname$release$shared_ext$major'
13741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 shlibpath_overrides_runpath=no
13744 hardcode_into_libs=yes
13745 ;;
13746
13747 irix5* | irix6* | nonstopux*)
13748 case $host_os in
13749 nonstopux*) version_type=nonstopux ;;
13750 *)
13751 if test yes = "$lt_cv_prog_gnu_ld"; then
13752 version_type=linux # correct to gnu/linux during the next big refactor
13753 else
13754 version_type=irix
13755 fi ;;
13756 esac
13757 need_lib_prefix=no
13758 need_version=no
13759 soname_spec='$libname$release$shared_ext$major'
13760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13761 case $host_os in
13762 irix5* | nonstopux*)
13763 libsuff= shlibsuff=
13764 ;;
13765 *)
13766 case $LD in # libtool.m4 will add one of these switches to LD
13767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13768 libsuff= shlibsuff= libmagic=32-bit;;
13769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13770 libsuff=32 shlibsuff=N32 libmagic=N32;;
13771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13773 *) libsuff= shlibsuff= libmagic=never-match;;
13774 esac
13775 ;;
13776 esac
13777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13778 shlibpath_overrides_runpath=no
13779 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13780 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13781 hardcode_into_libs=yes
13782 ;;
13783
13784 # No shared lib support for Linux oldld, aout, or coff.
13785 linux*oldld* | linux*aout* | linux*coff*)
13786 dynamic_linker=no
13787 ;;
13788
13789 linux*android*)
13790 version_type=none # Android doesn't support versioned libraries.
13791 need_lib_prefix=no
13792 need_version=no
13793 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13794 soname_spec='$libname$release$shared_ext'
13795 finish_cmds=
13796 shlibpath_var=LD_LIBRARY_PATH
13797 shlibpath_overrides_runpath=yes
13798
13799 # This implies no fast_install, which is unacceptable.
13800 # Some rework will be needed to allow for fast_install
13801 # before this can be enabled.
13802 hardcode_into_libs=yes
13803
13804 dynamic_linker='Android linker'
13805 # -rpath works at least for libraries that are not overridden by
13806 # libraries installed in system locations.
13807 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13808 ;;
13809
13810 # This must be glibc/ELF.
13811 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13812 version_type=linux # correct to gnu/linux during the next big refactor
13813 need_lib_prefix=no
13814 need_version=no
13815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13816 soname_spec='$libname$release$shared_ext$major'
13817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13818 shlibpath_var=LD_LIBRARY_PATH
13819 shlibpath_overrides_runpath=no
13820
13821 # Some binutils ld are patched to set DT_RUNPATH
13822 if test ${lt_cv_shlibpath_overrides_runpath+y}
13823 then :
13824 printf %s "(cached) " >&6
13825 else case e in #(
13826 e) lt_cv_shlibpath_overrides_runpath=no
13827 save_LDFLAGS=$LDFLAGS
13828 save_libdir=$libdir
13829 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13830 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13833
13834 int
13835 main (void)
13836 {
13837
13838 ;
13839 return 0;
13840 }
13841 _ACEOF
13842 if ac_fn_c_try_link "$LINENO"
13843 then :
13844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13845 then :
13846 lt_cv_shlibpath_overrides_runpath=yes
13847 fi
13848 fi
13849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LDFLAGS=$save_LDFLAGS
13852 libdir=$save_libdir
13853 ;;
13854 esac
13855 fi
13856
13857 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13858
13859 # This implies no fast_install, which is unacceptable.
13860 # Some rework will be needed to allow for fast_install
13861 # before this can be enabled.
13862 hardcode_into_libs=yes
13863
13864 # Ideally, we could use ldconfig to report *all* directories which are
13865 # searched for libraries, however this is still not possible. Aside from not
13866 # being certain /sbin/ldconfig is available, command
13867 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13868 # even though it is searched at run-time. Try to do the best guess by
13869 # appending ld.so.conf contents (and includes) to the search path.
13870 if test -f /etc/ld.so.conf; then
13871 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' ' '`
13872 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13873 fi
13874
13875 # We used to test for /lib/ld.so.1 and disable shared libraries on
13876 # powerpc, because MkLinux only supported shared libraries with the
13877 # GNU dynamic linker. Since this was broken with cross compilers,
13878 # most powerpc-linux boxes support dynamic linking these days and
13879 # people can always --disable-shared, the test was removed, and we
13880 # assume the GNU/Linux dynamic linker is in use.
13881 dynamic_linker='GNU/Linux ld.so'
13882 ;;
13883
13884 netbsdelf*-gnu)
13885 version_type=linux
13886 need_lib_prefix=no
13887 need_version=no
13888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13889 soname_spec='$libname$release$shared_ext$major'
13890 shlibpath_var=LD_LIBRARY_PATH
13891 shlibpath_overrides_runpath=no
13892 hardcode_into_libs=yes
13893 dynamic_linker='NetBSD ld.elf_so'
13894 ;;
13895
13896 netbsd*)
13897 version_type=sunos
13898 need_lib_prefix=no
13899 need_version=no
13900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13901 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13903 dynamic_linker='NetBSD (a.out) ld.so'
13904 else
13905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13906 soname_spec='$libname$release$shared_ext$major'
13907 dynamic_linker='NetBSD ld.elf_so'
13908 fi
13909 shlibpath_var=LD_LIBRARY_PATH
13910 shlibpath_overrides_runpath=yes
13911 hardcode_into_libs=yes
13912 ;;
13913
13914 *-mlibc)
13915 version_type=linux # correct to gnu/linux during the next big refactor
13916 need_lib_prefix=no
13917 need_version=no
13918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13919 soname_spec='$libname$release$shared_ext$major'
13920 dynamic_linker='mlibc ld.so'
13921 shlibpath_var=LD_LIBRARY_PATH
13922 shlibpath_overrides_runpath=no
13923 hardcode_into_libs=yes
13924 ;;
13925
13926 newsos6)
13927 version_type=linux # correct to gnu/linux during the next big refactor
13928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13929 shlibpath_var=LD_LIBRARY_PATH
13930 shlibpath_overrides_runpath=yes
13931 ;;
13932
13933 *nto* | *qnx*)
13934 version_type=qnx
13935 need_lib_prefix=no
13936 need_version=no
13937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13938 soname_spec='$libname$release$shared_ext$major'
13939 shlibpath_var=LD_LIBRARY_PATH
13940 shlibpath_overrides_runpath=no
13941 hardcode_into_libs=yes
13942 dynamic_linker='ldqnx.so'
13943 ;;
13944
13945 openbsd*)
13946 version_type=sunos
13947 sys_lib_dlsearch_path_spec=/usr/lib
13948 need_lib_prefix=no
13949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13950 need_version=no
13951 else
13952 need_version=yes
13953 fi
13954 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13956 shlibpath_var=LD_LIBRARY_PATH
13957 shlibpath_overrides_runpath=yes
13958 ;;
13959
13960 os2*)
13961 libname_spec='$name'
13962 version_type=windows
13963 shrext_cmds=.dll
13964 need_version=no
13965 need_lib_prefix=no
13966 # OS/2 can only load a DLL with a base name of 8 characters or less.
13967 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13968 v=$($ECHO $release$versuffix | tr -d .-);
13969 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13970 $ECHO $n$v`$shared_ext'
13971 library_names_spec='${libname}_dll.$libext'
13972 dynamic_linker='OS/2 ld.exe'
13973 shlibpath_var=BEGINLIBPATH
13974 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13976 postinstall_cmds='base_file=`basename \$file`~
13977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13978 dldir=$destdir/`dirname \$dlpath`~
13979 test -d \$dldir || mkdir -p \$dldir~
13980 $install_prog $dir/$dlname \$dldir/$dlname~
13981 chmod a+x \$dldir/$dlname~
13982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13984 fi'
13985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13986 dlpath=$dir/\$dldll~
13987 $RM \$dlpath'
13988 ;;
13989
13990 osf3* | osf4* | osf5*)
13991 version_type=osf
13992 need_lib_prefix=no
13993 need_version=no
13994 soname_spec='$libname$release$shared_ext$major'
13995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13996 shlibpath_var=LD_LIBRARY_PATH
13997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13999 ;;
14000
14001 rdos*)
14002 dynamic_linker=no
14003 ;;
14004
14005 serenity*)
14006 version_type=linux # correct to gnu/linux during the next big refactor
14007 need_lib_prefix=no
14008 need_version=no
14009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14010 soname_spec='$libname$release$shared_ext$major'
14011 shlibpath_var=LD_LIBRARY_PATH
14012 shlibpath_overrides_runpath=no
14013 dynamic_linker='SerenityOS LibELF'
14014 ;;
14015
14016 solaris*)
14017 version_type=linux # correct to gnu/linux during the next big refactor
14018 need_lib_prefix=no
14019 need_version=no
14020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14021 soname_spec='$libname$release$shared_ext$major'
14022 shlibpath_var=LD_LIBRARY_PATH
14023 shlibpath_overrides_runpath=yes
14024 hardcode_into_libs=yes
14025 # ldd complains unless libraries are executable
14026 postinstall_cmds='chmod +x $lib'
14027 ;;
14028
14029 sunos4*)
14030 version_type=sunos
14031 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14033 shlibpath_var=LD_LIBRARY_PATH
14034 shlibpath_overrides_runpath=yes
14035 if test yes = "$with_gnu_ld"; then
14036 need_lib_prefix=no
14037 fi
14038 need_version=yes
14039 ;;
14040
14041 sysv4 | sysv4.3*)
14042 version_type=linux # correct to gnu/linux during the next big refactor
14043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14044 soname_spec='$libname$release$shared_ext$major'
14045 shlibpath_var=LD_LIBRARY_PATH
14046 case $host_vendor in
14047 sni)
14048 shlibpath_overrides_runpath=no
14049 need_lib_prefix=no
14050 runpath_var=LD_RUN_PATH
14051 ;;
14052 siemens)
14053 need_lib_prefix=no
14054 ;;
14055 motorola)
14056 need_lib_prefix=no
14057 need_version=no
14058 shlibpath_overrides_runpath=no
14059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14060 ;;
14061 esac
14062 ;;
14063
14064 sysv4*MP*)
14065 if test -d /usr/nec; then
14066 version_type=linux # correct to gnu/linux during the next big refactor
14067 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14068 soname_spec='$libname$shared_ext.$major'
14069 shlibpath_var=LD_LIBRARY_PATH
14070 fi
14071 ;;
14072
14073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14074 version_type=sco
14075 need_lib_prefix=no
14076 need_version=no
14077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14078 soname_spec='$libname$release$shared_ext$major'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 shlibpath_overrides_runpath=yes
14081 hardcode_into_libs=yes
14082 if test yes = "$with_gnu_ld"; then
14083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14084 else
14085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14086 case $host_os in
14087 sco3.2v5*)
14088 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14089 ;;
14090 esac
14091 fi
14092 sys_lib_dlsearch_path_spec='/usr/lib'
14093 ;;
14094
14095 tpf*)
14096 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14097 version_type=linux # correct to gnu/linux during the next big refactor
14098 need_lib_prefix=no
14099 need_version=no
14100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14101 shlibpath_var=LD_LIBRARY_PATH
14102 shlibpath_overrides_runpath=no
14103 hardcode_into_libs=yes
14104 ;;
14105
14106 uts4*)
14107 version_type=linux # correct to gnu/linux during the next big refactor
14108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14109 soname_spec='$libname$release$shared_ext$major'
14110 shlibpath_var=LD_LIBRARY_PATH
14111 ;;
14112
14113 emscripten*)
14114 version_type=none
14115 need_lib_prefix=no
14116 need_version=no
14117 library_names_spec='$libname$release$shared_ext'
14118 soname_spec='$libname$release$shared_ext'
14119 finish_cmds=
14120 dynamic_linker="Emscripten linker"
14121 lt_prog_compiler_wl=
14122 lt_prog_compiler_pic=
14123 lt_prog_compiler_static=
14124
14125
14126 if test yes = "$GCC"; then
14127 lt_prog_compiler_wl='-Wl,'
14128 lt_prog_compiler_static='-static'
14129
14130 case $host_os in
14131 aix*)
14132 # All AIX code is PIC.
14133 if test ia64 = "$host_cpu"; then
14134 # AIX 5 now supports IA64 processor
14135 lt_prog_compiler_static='-Bstatic'
14136 fi
14137 lt_prog_compiler_pic='-fPIC'
14138 ;;
14139
14140 amigaos*)
14141 case $host_cpu in
14142 powerpc)
14143 # see comment about AmigaOS4 .so support
14144 lt_prog_compiler_pic='-fPIC'
14145 ;;
14146 m68k)
14147 # FIXME: we need at least 68020 code to build shared libraries, but
14148 # adding the '-m68020' flag to GCC prevents building anything better,
14149 # like '-m68040'.
14150 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14151 ;;
14152 esac
14153 ;;
14154
14155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14156 # PIC is the default for these OSes.
14157 ;;
14158
14159 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14160 # This hack is so that the source file can tell whether it is being
14161 # built for inclusion in a dll (and should export symbols for example).
14162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14163 # (--disable-auto-import) libraries
14164 lt_prog_compiler_pic='-DDLL_EXPORT'
14165 case $host_os in
14166 os2*)
14167 lt_prog_compiler_static='$wl-static'
14168 ;;
14169 esac
14170 ;;
14171
14172 darwin* | rhapsody*)
14173 # PIC is the default on this platform
14174 # Common symbols not allowed in MH_DYLIB files
14175 lt_prog_compiler_pic='-fno-common'
14176 ;;
14177
14178 haiku*)
14179 # PIC is the default for Haiku.
14180 # The "-static" flag exists, but is broken.
14181 lt_prog_compiler_static=
14182 ;;
14183
14184 hpux*)
14185 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14186 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14187 # sets the default TLS model and affects inlining.
14188 case $host_cpu in
14189 hppa*64*)
14190 # +Z the default
14191 ;;
14192 *)
14193 lt_prog_compiler_pic='-fPIC'
14194 ;;
14195 esac
14196 ;;
14197
14198 interix[3-9]*)
14199 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14200 # Instead, we relocate shared libraries at runtime.
14201 ;;
14202
14203 msdosdjgpp*)
14204 # Just because we use GCC doesn't mean we suddenly get shared libraries
14205 # on systems that don't support them.
14206 lt_prog_compiler_can_build_shared=no
14207 enable_shared=no
14208 ;;
14209
14210 *nto* | *qnx*)
14211 # QNX uses GNU C++, but need to define -shared option too, otherwise
14212 # it will coredump.
14213 lt_prog_compiler_pic='-fPIC -shared'
14214 ;;
14215
14216 sysv4*MP*)
14217 if test -d /usr/nec; then
14218 lt_prog_compiler_pic=-Kconform_pic
14219 fi
14220 ;;
14221
14222 *)
14223 lt_prog_compiler_pic='-fPIC'
14224 ;;
14225 esac
14226
14227 case $cc_basename in
14228 nvcc*) # Cuda Compiler Driver 2.2
14229 lt_prog_compiler_wl='-Xlinker '
14230 if test -n "$lt_prog_compiler_pic"; then
14231 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14232 fi
14233 ;;
14234 esac
14235 else
14236 # PORTME Check for flag to pass linker flags through the system compiler.
14237 case $host_os in
14238 aix*)
14239 lt_prog_compiler_wl='-Wl,'
14240 if test ia64 = "$host_cpu"; then
14241 # AIX 5 now supports IA64 processor
14242 lt_prog_compiler_static='-Bstatic'
14243 else
14244 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14245 fi
14246 ;;
14247
14248 darwin* | rhapsody*)
14249 # PIC is the default on this platform
14250 # Common symbols not allowed in MH_DYLIB files
14251 lt_prog_compiler_pic='-fno-common'
14252 case $cc_basename in
14253 nagfor*)
14254 # NAG Fortran compiler
14255 lt_prog_compiler_wl='-Wl,-Wl,,'
14256 lt_prog_compiler_pic='-PIC'
14257 lt_prog_compiler_static='-Bstatic'
14258 ;;
14259 esac
14260 ;;
14261
14262 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14263 # This hack is so that the source file can tell whether it is being
14264 # built for inclusion in a dll (and should export symbols for example).
14265 lt_prog_compiler_pic='-DDLL_EXPORT'
14266 case $host_os in
14267 os2*)
14268 lt_prog_compiler_static='$wl-static'
14269 ;;
14270 esac
14271 ;;
14272
14273 hpux9* | hpux10* | hpux11*)
14274 lt_prog_compiler_wl='-Wl,'
14275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14276 # not for PA HP-UX.
14277 case $host_cpu in
14278 hppa*64*|ia64*)
14279 # +Z the default
14280 ;;
14281 *)
14282 lt_prog_compiler_pic='+Z'
14283 ;;
14284 esac
14285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14286 lt_prog_compiler_static='$wl-a ${wl}archive'
14287 ;;
14288
14289 irix5* | irix6* | nonstopux*)
14290 lt_prog_compiler_wl='-Wl,'
14291 # PIC (with -KPIC) is the default.
14292 lt_prog_compiler_static='-non_shared'
14293 ;;
14294
14295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14296 case $cc_basename in
14297 # old Intel for x86_64, which still supported -KPIC.
14298 ecc*)
14299 lt_prog_compiler_wl='-Wl,'
14300 lt_prog_compiler_pic='-KPIC'
14301 lt_prog_compiler_static='-static'
14302 ;;
14303 *flang* | ftn | f18* | f95*)
14304 # Flang compiler.
14305 lt_prog_compiler_wl='-Wl,'
14306 lt_prog_compiler_pic='-fPIC'
14307 lt_prog_compiler_static='-static'
14308 ;;
14309 # icc used to be incompatible with GCC.
14310 # ICC 10 doesn't accept -KPIC any more.
14311 icc* | ifort*)
14312 lt_prog_compiler_wl='-Wl,'
14313 lt_prog_compiler_pic='-fPIC'
14314 lt_prog_compiler_static='-static'
14315 ;;
14316 # Lahey Fortran 8.1.
14317 lf95*)
14318 lt_prog_compiler_wl='-Wl,'
14319 lt_prog_compiler_pic='--shared'
14320 lt_prog_compiler_static='--static'
14321 ;;
14322 nagfor*)
14323 # NAG Fortran compiler
14324 lt_prog_compiler_wl='-Wl,-Wl,,'
14325 lt_prog_compiler_pic='-PIC'
14326 lt_prog_compiler_static='-Bstatic'
14327 ;;
14328 tcc*)
14329 # Fabrice Bellard et al's Tiny C Compiler
14330 lt_prog_compiler_wl='-Wl,'
14331 lt_prog_compiler_pic='-fPIC'
14332 lt_prog_compiler_static='-static'
14333 ;;
14334 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14335 # Portland Group compilers (*not* the Pentium gcc compiler,
14336 # which looks to be a dead project)
14337 lt_prog_compiler_wl='-Wl,'
14338 lt_prog_compiler_pic='-fpic'
14339 lt_prog_compiler_static='-Bstatic'
14340 ;;
14341 ccc*)
14342 lt_prog_compiler_wl='-Wl,'
14343 # All Alpha code is PIC.
14344 lt_prog_compiler_static='-non_shared'
14345 ;;
14346 xl* | bgxl* | bgf* | mpixl*)
14347 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14348 lt_prog_compiler_wl='-Wl,'
14349 lt_prog_compiler_pic='-qpic'
14350 lt_prog_compiler_static='-qstaticlink'
14351 ;;
14352 *)
14353 case `$CC -V 2>&1 | $SED 5q` in
14354 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14355 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14356 lt_prog_compiler_pic='-KPIC'
14357 lt_prog_compiler_static='-Bstatic'
14358 lt_prog_compiler_wl=''
14359 ;;
14360 *Sun\ F* | *Sun*Fortran*)
14361 lt_prog_compiler_pic='-KPIC'
14362 lt_prog_compiler_static='-Bstatic'
14363 lt_prog_compiler_wl='-Qoption ld '
14364 ;;
14365 *Sun\ C*)
14366 # Sun C 5.9
14367 lt_prog_compiler_pic='-KPIC'
14368 lt_prog_compiler_static='-Bstatic'
14369 lt_prog_compiler_wl='-Wl,'
14370 ;;
14371 *Intel*\ [CF]*Compiler*)
14372 lt_prog_compiler_wl='-Wl,'
14373 lt_prog_compiler_pic='-fPIC'
14374 lt_prog_compiler_static='-static'
14375 ;;
14376 *Portland\ Group*)
14377 lt_prog_compiler_wl='-Wl,'
14378 lt_prog_compiler_pic='-fpic'
14379 lt_prog_compiler_static='-Bstatic'
14380 ;;
14381 esac
14382 ;;
14383 esac
14384 ;;
14385
14386 newsos6)
14387 lt_prog_compiler_pic='-KPIC'
14388 lt_prog_compiler_static='-Bstatic'
14389 ;;
14390
14391 *-mlibc)
14392 lt_prog_compiler_wl='-Wl,'
14393 lt_prog_compiler_pic='-fPIC'
14394 lt_prog_compiler_static='-static'
14395 ;;
14396
14397 *nto* | *qnx*)
14398 # QNX uses GNU C++, but need to define -shared option too, otherwise
14399 # it will coredump.
14400 lt_prog_compiler_pic='-fPIC -shared'
14401 ;;
14402
14403 osf3* | osf4* | osf5*)
14404 lt_prog_compiler_wl='-Wl,'
14405 # All OSF/1 code is PIC.
14406 lt_prog_compiler_static='-non_shared'
14407 ;;
14408
14409 rdos*)
14410 lt_prog_compiler_static='-non_shared'
14411 ;;
14412
14413 serenity*)
14414 ;;
14415
14416 solaris*)
14417 lt_prog_compiler_pic='-KPIC'
14418 lt_prog_compiler_static='-Bstatic'
14419 case $cc_basename in
14420 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14421 lt_prog_compiler_wl='-Qoption ld ';;
14422 *)
14423 lt_prog_compiler_wl='-Wl,';;
14424 esac
14425 ;;
14426
14427 sunos4*)
14428 lt_prog_compiler_wl='-Qoption ld '
14429 lt_prog_compiler_pic='-PIC'
14430 lt_prog_compiler_static='-Bstatic'
14431 ;;
14432
14433 sysv4 | sysv4.2uw2* | sysv4.3*)
14434 lt_prog_compiler_wl='-Wl,'
14435 lt_prog_compiler_pic='-KPIC'
14436 lt_prog_compiler_static='-Bstatic'
14437 ;;
14438
14439 sysv4*MP*)
14440 if test -d /usr/nec; then
14441 lt_prog_compiler_pic='-Kconform_pic'
14442 lt_prog_compiler_static='-Bstatic'
14443 fi
14444 ;;
14445
14446 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14447 lt_prog_compiler_wl='-Wl,'
14448 lt_prog_compiler_pic='-KPIC'
14449 lt_prog_compiler_static='-Bstatic'
14450 ;;
14451
14452 unicos*)
14453 lt_prog_compiler_wl='-Wl,'
14454 lt_prog_compiler_can_build_shared=no
14455 ;;
14456
14457 uts4*)
14458 lt_prog_compiler_pic='-pic'
14459 lt_prog_compiler_static='-Bstatic'
14460 ;;
14461
14462 *)
14463 lt_prog_compiler_can_build_shared=no
14464 ;;
14465 esac
14466 fi
14467
14468 case $host_os in
14469 # For platforms that do not support PIC, -DPIC is meaningless:
14470 *djgpp*)
14471 lt_prog_compiler_pic=
14472 ;;
14473 *)
14474 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14475 ;;
14476 esac
14477
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14479 printf %s "checking for $compiler option to produce PIC... " >&6; }
14480 if test ${lt_cv_prog_compiler_pic+y}
14481 then :
14482 printf %s "(cached) " >&6
14483 else case e in #(
14484 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14485 esac
14486 fi
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14488 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14489 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14490
14491 #
14492 # Check to make sure the PIC flag actually works.
14493 #
14494 if test -n "$lt_prog_compiler_pic"; then
14495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14496 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14497 if test ${lt_cv_prog_compiler_pic_works+y}
14498 then :
14499 printf %s "(cached) " >&6
14500 else case e in #(
14501 e) lt_cv_prog_compiler_pic_works=no
14502 ac_outfile=conftest.$ac_objext
14503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14504 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14505 # Insert the option either (1) after the last *FLAGS variable, or
14506 # (2) before a word containing "conftest.", or (3) at the end.
14507 # Note that $ac_compile itself does not contain backslashes and begins
14508 # with a dollar sign (not a hyphen), so the echo should work correctly.
14509 # The option is referenced via a variable to avoid confusing sed.
14510 lt_compile=`echo "$ac_compile" | $SED \
14511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14513 -e 's:$: $lt_compiler_flag:'`
14514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14515 (eval "$lt_compile" 2>conftest.err)
14516 ac_status=$?
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 if (exit $ac_status) && test -s "$ac_outfile"; then
14520 # The compiler can only warn and ignore the option if not recognized
14521 # So say no if there are warnings other than the usual output.
14522 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14525 lt_cv_prog_compiler_pic_works=yes
14526 fi
14527 fi
14528 $RM conftest*
14529 ;;
14530 esac
14531 fi
14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14533 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14534
14535 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14536 case $lt_prog_compiler_pic in
14537 "" | " "*) ;;
14538 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14539 esac
14540 else
14541 lt_prog_compiler_pic=
14542 lt_prog_compiler_can_build_shared=no
14543 fi
14544
14545 fi
14546
14547
14548
14549
14550
14551 #
14552 # Check to make sure the static flag actually works.
14553 #
14554 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14556 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14557 if test ${lt_cv_prog_compiler_static_works+y}
14558 then :
14559 printf %s "(cached) " >&6
14560 else case e in #(
14561 e) lt_cv_prog_compiler_static_works=no
14562 save_LDFLAGS=$LDFLAGS
14563 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14564 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14566 # The linker can only warn and ignore the option if not recognized
14567 # So say no if there are warnings
14568 if test -s conftest.err; then
14569 # Append any errors to the config.log.
14570 cat conftest.err 1>&5
14571 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14573 if diff conftest.exp conftest.er2 >/dev/null; then
14574 lt_cv_prog_compiler_static_works=yes
14575 fi
14576 else
14577 lt_cv_prog_compiler_static_works=yes
14578 fi
14579 fi
14580 $RM -r conftest*
14581 LDFLAGS=$save_LDFLAGS
14582 ;;
14583 esac
14584 fi
14585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14586 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14587
14588 if test yes = "$lt_cv_prog_compiler_static_works"; then
14589 :
14590 else
14591 lt_prog_compiler_static=
14592 fi
14593
14594
14595
14596 ='-fPIC'
14597 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14598 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
14599 archive_cmds_need_lc=no
14600 no_undefined_flag=
14601 ;;
14602
14603 *)
14604 dynamic_linker=no
14605 ;;
14606 esac
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14608 printf "%s\n" "$dynamic_linker" >&6; }
14609 test no = "$dynamic_linker" && can_build_shared=no
14610
14611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14612 if test yes = "$GCC"; then
14613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14614 fi
14615
14616 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14617 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14618 fi
14619
14620 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14621 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14622 fi
14623
14624 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14625 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14626
14627 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14628 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14629
14630 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14631 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14730 printf %s "checking how to hardcode library paths into programs... " >&6; }
14731 hardcode_action=
14732 if test -n "$hardcode_libdir_flag_spec" ||
14733 test -n "$runpath_var" ||
14734 test yes = "$hardcode_automatic"; then
14735
14736 # We can hardcode non-existent directories.
14737 if test no != "$hardcode_direct" &&
14738 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14739 # have to relink, otherwise we might link with an installed library
14740 # when we should be linking with a yet-to-be-installed one
14741 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14742 test no != "$hardcode_minus_L"; then
14743 # Linking always hardcodes the temporary library directory.
14744 hardcode_action=relink
14745 else
14746 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14747 hardcode_action=immediate
14748 fi
14749 else
14750 # We cannot hardcode anything, or else we can only hardcode existing
14751 # directories.
14752 hardcode_action=unsupported
14753 fi
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14755 printf "%s\n" "$hardcode_action" >&6; }
14756
14757 if test relink = "$hardcode_action" ||
14758 test yes = "$inherit_rpath"; then
14759 # Fast installation is not supported
14760 enable_fast_install=no
14761 elif test yes = "$shlibpath_overrides_runpath" ||
14762 test no = "$enable_shared"; then
14763 # Fast installation is not necessary
14764 enable_fast_install=needless
14765 fi
14766
14767
14768
14769
14770
14771
14772 if test yes != "$enable_dlopen"; then
14773 enable_dlopen=unknown
14774 enable_dlopen_self=unknown
14775 enable_dlopen_self_static=unknown
14776 else
14777 lt_cv_dlopen=no
14778 lt_cv_dlopen_libs=
14779
14780 case $host_os in
14781 beos*)
14782 lt_cv_dlopen=load_add_on
14783 lt_cv_dlopen_libs=
14784 lt_cv_dlopen_self=yes
14785 ;;
14786
14787 mingw* | windows* | pw32* | cegcc*)
14788 lt_cv_dlopen=LoadLibrary
14789 lt_cv_dlopen_libs=
14790 ;;
14791
14792 cygwin*)
14793 lt_cv_dlopen=dlopen
14794 lt_cv_dlopen_libs=
14795 ;;
14796
14797 darwin*)
14798 # if libdl is installed we need to link against it
14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14800 printf %s "checking for dlopen in -ldl... " >&6; }
14801 if test ${ac_cv_lib_dl_dlopen+y}
14802 then :
14803 printf %s "(cached) " >&6
14804 else case e in #(
14805 e) ac_check_lib_save_LIBS=$LIBS
14806 LIBS="-ldl $LIBS"
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14809
14810 /* Override any GCC internal prototype to avoid an error.
14811 Use char because int might match the return type of a GCC
14812 builtin and then its argument prototype would still apply.
14813 The 'extern "C"' is for builds by C++ compilers;
14814 although this is not generally supported in C code supporting it here
14815 has little cost and some practical benefit (sr 110532). */
14816 #ifdef __cplusplus
14817 extern "C"
14818 #endif
14819 char dlopen (void);
14820 int
14821 main (void)
14822 {
14823 return dlopen ();
14824 ;
14825 return 0;
14826 }
14827 _ACEOF
14828 if ac_fn_c_try_link "$LINENO"
14829 then :
14830 ac_cv_lib_dl_dlopen=yes
14831 else case e in #(
14832 e) ac_cv_lib_dl_dlopen=no ;;
14833 esac
14834 fi
14835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14836 conftest$ac_exeext conftest.$ac_ext
14837 LIBS=$ac_check_lib_save_LIBS ;;
14838 esac
14839 fi
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14841 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14842 if test "x$ac_cv_lib_dl_dlopen" = xyes
14843 then :
14844 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14845 else case e in #(
14846 e)
14847 lt_cv_dlopen=dyld
14848 lt_cv_dlopen_libs=
14849 lt_cv_dlopen_self=yes
14850 ;;
14851 esac
14852 fi
14853
14854 ;;
14855
14856 tpf*)
14857 # Don't try to run any link tests for TPF. We know it's impossible
14858 # because TPF is a cross-compiler, and we know how we open DSOs.
14859 lt_cv_dlopen=dlopen
14860 lt_cv_dlopen_libs=
14861 lt_cv_dlopen_self=no
14862 ;;
14863
14864 *)
14865 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14866 if test "x$ac_cv_func_shl_load" = xyes
14867 then :
14868 lt_cv_dlopen=shl_load
14869 else case e in #(
14870 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14871 printf %s "checking for shl_load in -ldld... " >&6; }
14872 if test ${ac_cv_lib_dld_shl_load+y}
14873 then :
14874 printf %s "(cached) " >&6
14875 else case e in #(
14876 e) ac_check_lib_save_LIBS=$LIBS
14877 LIBS="-ldld $LIBS"
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880
14881 /* Override any GCC internal prototype to avoid an error.
14882 Use char because int might match the return type of a GCC
14883 builtin and then its argument prototype would still apply.
14884 The 'extern "C"' is for builds by C++ compilers;
14885 although this is not generally supported in C code supporting it here
14886 has little cost and some practical benefit (sr 110532). */
14887 #ifdef __cplusplus
14888 extern "C"
14889 #endif
14890 char shl_load (void);
14891 int
14892 main (void)
14893 {
14894 return shl_load ();
14895 ;
14896 return 0;
14897 }
14898 _ACEOF
14899 if ac_fn_c_try_link "$LINENO"
14900 then :
14901 ac_cv_lib_dld_shl_load=yes
14902 else case e in #(
14903 e) ac_cv_lib_dld_shl_load=no ;;
14904 esac
14905 fi
14906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14907 conftest$ac_exeext conftest.$ac_ext
14908 LIBS=$ac_check_lib_save_LIBS ;;
14909 esac
14910 fi
14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14912 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14913 if test "x$ac_cv_lib_dld_shl_load" = xyes
14914 then :
14915 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14916 else case e in #(
14917 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14918 if test "x$ac_cv_func_dlopen" = xyes
14919 then :
14920 lt_cv_dlopen=dlopen
14921 else case e in #(
14922 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14923 printf %s "checking for dlopen in -ldl... " >&6; }
14924 if test ${ac_cv_lib_dl_dlopen+y}
14925 then :
14926 printf %s "(cached) " >&6
14927 else case e in #(
14928 e) ac_check_lib_save_LIBS=$LIBS
14929 LIBS="-ldl $LIBS"
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14932
14933 /* Override any GCC internal prototype to avoid an error.
14934 Use char because int might match the return type of a GCC
14935 builtin and then its argument prototype would still apply.
14936 The 'extern "C"' is for builds by C++ compilers;
14937 although this is not generally supported in C code supporting it here
14938 has little cost and some practical benefit (sr 110532). */
14939 #ifdef __cplusplus
14940 extern "C"
14941 #endif
14942 char dlopen (void);
14943 int
14944 main (void)
14945 {
14946 return dlopen ();
14947 ;
14948 return 0;
14949 }
14950 _ACEOF
14951 if ac_fn_c_try_link "$LINENO"
14952 then :
14953 ac_cv_lib_dl_dlopen=yes
14954 else case e in #(
14955 e) ac_cv_lib_dl_dlopen=no ;;
14956 esac
14957 fi
14958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14959 conftest$ac_exeext conftest.$ac_ext
14960 LIBS=$ac_check_lib_save_LIBS ;;
14961 esac
14962 fi
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14964 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14965 if test "x$ac_cv_lib_dl_dlopen" = xyes
14966 then :
14967 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14968 else case e in #(
14969 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14970 printf %s "checking for dlopen in -lsvld... " >&6; }
14971 if test ${ac_cv_lib_svld_dlopen+y}
14972 then :
14973 printf %s "(cached) " >&6
14974 else case e in #(
14975 e) ac_check_lib_save_LIBS=$LIBS
14976 LIBS="-lsvld $LIBS"
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979
14980 /* Override any GCC internal prototype to avoid an error.
14981 Use char because int might match the return type of a GCC
14982 builtin and then its argument prototype would still apply.
14983 The 'extern "C"' is for builds by C++ compilers;
14984 although this is not generally supported in C code supporting it here
14985 has little cost and some practical benefit (sr 110532). */
14986 #ifdef __cplusplus
14987 extern "C"
14988 #endif
14989 char dlopen (void);
14990 int
14991 main (void)
14992 {
14993 return dlopen ();
14994 ;
14995 return 0;
14996 }
14997 _ACEOF
14998 if ac_fn_c_try_link "$LINENO"
14999 then :
15000 ac_cv_lib_svld_dlopen=yes
15001 else case e in #(
15002 e) ac_cv_lib_svld_dlopen=no ;;
15003 esac
15004 fi
15005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15006 conftest$ac_exeext conftest.$ac_ext
15007 LIBS=$ac_check_lib_save_LIBS ;;
15008 esac
15009 fi
15010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15011 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15012 if test "x$ac_cv_lib_svld_dlopen" = xyes
15013 then :
15014 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15015 else case e in #(
15016 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15017 printf %s "checking for dld_link in -ldld... " >&6; }
15018 if test ${ac_cv_lib_dld_dld_link+y}
15019 then :
15020 printf %s "(cached) " >&6
15021 else case e in #(
15022 e) ac_check_lib_save_LIBS=$LIBS
15023 LIBS="-ldld $LIBS"
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15026
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply.
15030 The 'extern "C"' is for builds by C++ compilers;
15031 although this is not generally supported in C code supporting it here
15032 has little cost and some practical benefit (sr 110532). */
15033 #ifdef __cplusplus
15034 extern "C"
15035 #endif
15036 char dld_link (void);
15037 int
15038 main (void)
15039 {
15040 return dld_link ();
15041 ;
15042 return 0;
15043 }
15044 _ACEOF
15045 if ac_fn_c_try_link "$LINENO"
15046 then :
15047 ac_cv_lib_dld_dld_link=yes
15048 else case e in #(
15049 e) ac_cv_lib_dld_dld_link=no ;;
15050 esac
15051 fi
15052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15053 conftest$ac_exeext conftest.$ac_ext
15054 LIBS=$ac_check_lib_save_LIBS ;;
15055 esac
15056 fi
15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15058 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15059 if test "x$ac_cv_lib_dld_dld_link" = xyes
15060 then :
15061 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15062 fi
15063
15064 ;;
15065 esac
15066 fi
15067
15068 ;;
15069 esac
15070 fi
15071
15072 ;;
15073 esac
15074 fi
15075
15076 ;;
15077 esac
15078 fi
15079
15080 ;;
15081 esac
15082 fi
15083
15084 ;;
15085 esac
15086
15087 if test no = "$lt_cv_dlopen"; then
15088 enable_dlopen=no
15089 else
15090 enable_dlopen=yes
15091 fi
15092
15093 case $lt_cv_dlopen in
15094 dlopen)
15095 save_CPPFLAGS=$CPPFLAGS
15096 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15097
15098 save_LDFLAGS=$LDFLAGS
15099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15100
15101 save_LIBS=$LIBS
15102 LIBS="$lt_cv_dlopen_libs $LIBS"
15103
15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15105 printf %s "checking whether a program can dlopen itself... " >&6; }
15106 if test ${lt_cv_dlopen_self+y}
15107 then :
15108 printf %s "(cached) " >&6
15109 else case e in #(
15110 e) if test yes = "$cross_compiling"; then :
15111 lt_cv_dlopen_self=cross
15112 else
15113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15114 lt_status=$lt_dlunknown
15115 cat > conftest.$ac_ext <<_LT_EOF
15116 #line $LINENO "configure"
15117 #include "confdefs.h"
15118
15119 #if HAVE_DLFCN_H
15120 #include <dlfcn.h>
15121 #endif
15122
15123 #include <stdio.h>
15124
15125 #ifdef RTLD_GLOBAL
15126 # define LT_DLGLOBAL RTLD_GLOBAL
15127 #else
15128 # ifdef DL_GLOBAL
15129 # define LT_DLGLOBAL DL_GLOBAL
15130 # else
15131 # define LT_DLGLOBAL 0
15132 # endif
15133 #endif
15134
15135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15136 find out it does not work in some platform. */
15137 #ifndef LT_DLLAZY_OR_NOW
15138 # ifdef RTLD_LAZY
15139 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15140 # else
15141 # ifdef DL_LAZY
15142 # define LT_DLLAZY_OR_NOW DL_LAZY
15143 # else
15144 # ifdef RTLD_NOW
15145 # define LT_DLLAZY_OR_NOW RTLD_NOW
15146 # else
15147 # ifdef DL_NOW
15148 # define LT_DLLAZY_OR_NOW DL_NOW
15149 # else
15150 # define LT_DLLAZY_OR_NOW 0
15151 # endif
15152 # endif
15153 # endif
15154 # endif
15155 #endif
15156
15157 /* When -fvisibility=hidden is used, assume the code has been annotated
15158 correspondingly for the symbols needed. */
15159 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15160 int fnord (void) __attribute__((visibility("default")));
15161 #endif
15162
15163 int fnord (void) { return 42; }
15164 int main (void)
15165 {
15166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15167 int status = $lt_dlunknown;
15168
15169 if (self)
15170 {
15171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15172 else
15173 {
15174 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15175 else puts (dlerror ());
15176 }
15177 /* dlclose (self); */
15178 }
15179 else
15180 puts (dlerror ());
15181
15182 return status;
15183 }
15184 _LT_EOF
15185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15186 (eval $ac_link) 2>&5
15187 ac_status=$?
15188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15190 (./conftest; exit; ) >&5 2>/dev/null
15191 lt_status=$?
15192 case x$lt_status in
15193 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15194 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15195 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15196 esac
15197 else :
15198 # compilation failed
15199 lt_cv_dlopen_self=no
15200 fi
15201 fi
15202 rm -fr conftest*
15203
15204 ;;
15205 esac
15206 fi
15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15208 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15209
15210 if test yes = "$lt_cv_dlopen_self"; then
15211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15213 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15214 if test ${lt_cv_dlopen_self_static+y}
15215 then :
15216 printf %s "(cached) " >&6
15217 else case e in #(
15218 e) if test yes = "$cross_compiling"; then :
15219 lt_cv_dlopen_self_static=cross
15220 else
15221 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15222 lt_status=$lt_dlunknown
15223 cat > conftest.$ac_ext <<_LT_EOF
15224 #line $LINENO "configure"
15225 #include "confdefs.h"
15226
15227 #if HAVE_DLFCN_H
15228 #include <dlfcn.h>
15229 #endif
15230
15231 #include <stdio.h>
15232
15233 #ifdef RTLD_GLOBAL
15234 # define LT_DLGLOBAL RTLD_GLOBAL
15235 #else
15236 # ifdef DL_GLOBAL
15237 # define LT_DLGLOBAL DL_GLOBAL
15238 # else
15239 # define LT_DLGLOBAL 0
15240 # endif
15241 #endif
15242
15243 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15244 find out it does not work in some platform. */
15245 #ifndef LT_DLLAZY_OR_NOW
15246 # ifdef RTLD_LAZY
15247 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15248 # else
15249 # ifdef DL_LAZY
15250 # define LT_DLLAZY_OR_NOW DL_LAZY
15251 # else
15252 # ifdef RTLD_NOW
15253 # define LT_DLLAZY_OR_NOW RTLD_NOW
15254 # else
15255 # ifdef DL_NOW
15256 # define LT_DLLAZY_OR_NOW DL_NOW
15257 # else
15258 # define LT_DLLAZY_OR_NOW 0
15259 # endif
15260 # endif
15261 # endif
15262 # endif
15263 #endif
15264
15265 /* When -fvisibility=hidden is used, assume the code has been annotated
15266 correspondingly for the symbols needed. */
15267 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15268 int fnord (void) __attribute__((visibility("default")));
15269 #endif
15270
15271 int fnord (void) { return 42; }
15272 int main (void)
15273 {
15274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15275 int status = $lt_dlunknown;
15276
15277 if (self)
15278 {
15279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15280 else
15281 {
15282 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15283 else puts (dlerror ());
15284 }
15285 /* dlclose (self); */
15286 }
15287 else
15288 puts (dlerror ());
15289
15290 return status;
15291 }
15292 _LT_EOF
15293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15294 (eval $ac_link) 2>&5
15295 ac_status=$?
15296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15297 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15298 (./conftest; exit; ) >&5 2>/dev/null
15299 lt_status=$?
15300 case x$lt_status in
15301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15304 esac
15305 else :
15306 # compilation failed
15307 lt_cv_dlopen_self_static=no
15308 fi
15309 fi
15310 rm -fr conftest*
15311
15312 ;;
15313 esac
15314 fi
15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15316 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15317 fi
15318
15319 CPPFLAGS=$save_CPPFLAGS
15320 LDFLAGS=$save_LDFLAGS
15321 LIBS=$save_LIBS
15322 ;;
15323 esac
15324
15325 case $lt_cv_dlopen_self in
15326 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15327 *) enable_dlopen_self=unknown ;;
15328 esac
15329
15330 case $lt_cv_dlopen_self_static in
15331 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15332 *) enable_dlopen_self_static=unknown ;;
15333 esac
15334 fi
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352 striplib=
15353 old_striplib=
15354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15355 printf %s "checking whether stripping libraries is possible... " >&6; }
15356 if test -z "$STRIP"; then
15357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15358 printf "%s\n" "no" >&6; }
15359 else
15360 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15361 old_striplib="$STRIP --strip-debug"
15362 striplib="$STRIP --strip-unneeded"
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15364 printf "%s\n" "yes" >&6; }
15365 else
15366 case $host_os in
15367 darwin*)
15368 # FIXME - insert some real tests, host_os isn't really good enough
15369 striplib="$STRIP -x"
15370 old_striplib="$STRIP -S"
15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15372 printf "%s\n" "yes" >&6; }
15373 ;;
15374 freebsd*)
15375 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15376 old_striplib="$STRIP --strip-debug"
15377 striplib="$STRIP --strip-unneeded"
15378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15379 printf "%s\n" "yes" >&6; }
15380 else
15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15382 printf "%s\n" "no" >&6; }
15383 fi
15384 ;;
15385 *)
15386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 printf "%s\n" "no" >&6; }
15388 ;;
15389 esac
15390 fi
15391 fi
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404 # Report what library types will actually be built
15405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15406 printf %s "checking if libtool supports shared libraries... " >&6; }
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15408 printf "%s\n" "$can_build_shared" >&6; }
15409
15410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15411 printf %s "checking whether to build shared libraries... " >&6; }
15412 test no = "$can_build_shared" && enable_shared=no
15413
15414 # On AIX, shared libraries and static libraries use the same namespace, and
15415 # are all built from PIC.
15416 case $host_os in
15417 aix3*)
15418 test yes = "$enable_shared" && enable_static=no
15419 if test -n "$RANLIB"; then
15420 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15421 postinstall_cmds='$RANLIB $lib'
15422 fi
15423 ;;
15424
15425 aix[4-9]*)
15426 if test ia64 != "$host_cpu"; then
15427 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15428 yes,aix,yes) ;; # shared object as lib.so file only
15429 yes,svr4,*) ;; # shared object as lib.so archive member only
15430 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15431 esac
15432 fi
15433 ;;
15434 esac
15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15436 printf "%s\n" "$enable_shared" >&6; }
15437
15438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15439 printf %s "checking whether to build static libraries... " >&6; }
15440 # Make sure either enable_shared or enable_static is yes.
15441 test yes = "$enable_shared" || enable_static=yes
15442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15443 printf "%s\n" "$enable_static" >&6; }
15444
15445
15446
15447
15448 fi
15449 ac_ext=c
15450 ac_cpp='$CPP $CPPFLAGS'
15451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15454
15455 CC=$lt_save_CC
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471 ac_config_commands="$ac_config_commands libtool"
15472
15473
15474
15475
15476 # Only expand once:
15477
15478
15479
15480 # The cast to long int works around a bug in the HP C Compiler
15481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15482 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
15483 # This bug is HP SR number 8606223364.
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15485 printf %s "checking size of void *... " >&6; }
15486 if test ${ac_cv_sizeof_void_p+y}
15487 then :
15488 printf %s "(cached) " >&6
15489 else case e in #(
15490 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
15491 then :
15492
15493 else case e in #(
15494 e) if test "$ac_cv_type_void_p" = yes; then
15495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15496 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15497 as_fn_error 77 "cannot compute sizeof (void *)
15498 See 'config.log' for more details" "$LINENO" 5; }
15499 else
15500 ac_cv_sizeof_void_p=0
15501 fi ;;
15502 esac
15503 fi
15504 ;;
15505 esac
15506 fi
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15508 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
15509
15510
15511
15512 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
15513
15514
15515 case $host:$ac_cv_sizeof_void_p in #(
15516 *-*-mingw*:4) :
15517 kpse_dll_name=texlua ;; #(
15518 *-*-mingw*:8) :
15519 kpse_dll_name=texlua ;; #(
15520 *-*-cygwin:4) :
15521 kpse_dll_name= ;; #(
15522 *-*-cygwin:8) :
15523 kpse_dll_name= ;; #(
15524 *) :
15525 kpse_dll_name= ;;
15526 esac
15527
15528
15529
15530
15531
15532 ac_config_headers="$ac_config_headers config.h"
15533
15534 if test "x$enable_build" != xno; then
15535 build_TRUE=
15536 build_FALSE='#'
15537 else
15538 build_TRUE='#'
15539 build_FALSE=
15540 fi
15541
15542
15543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
15544 printf %s "checking for library containing pow... " >&6; }
15545 if test ${ac_cv_search_pow+y}
15546 then :
15547 printf %s "(cached) " >&6
15548 else case e in #(
15549 e) ac_func_search_save_LIBS=$LIBS
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552
15553 /* Override any GCC internal prototype to avoid an error.
15554 Use char because int might match the return type of a GCC
15555 builtin and then its argument prototype would still apply.
15556 The 'extern "C"' is for builds by C++ compilers;
15557 although this is not generally supported in C code supporting it here
15558 has little cost and some practical benefit (sr 110532). */
15559 #ifdef __cplusplus
15560 extern "C"
15561 #endif
15562 char pow (void);
15563 int
15564 main (void)
15565 {
15566 return pow ();
15567 ;
15568 return 0;
15569 }
15570 _ACEOF
15571 for ac_lib in '' m
15572 do
15573 if test -z "$ac_lib"; then
15574 ac_res="none required"
15575 else
15576 ac_res=-l$ac_lib
15577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15578 fi
15579 if ac_fn_c_try_link "$LINENO"
15580 then :
15581 ac_cv_search_pow=$ac_res
15582 fi
15583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15584 conftest$ac_exeext
15585 if test ${ac_cv_search_pow+y}
15586 then :
15587 break
15588 fi
15589 done
15590 if test ${ac_cv_search_pow+y}
15591 then :
15592
15593 else case e in #(
15594 e) ac_cv_search_pow=no ;;
15595 esac
15596 fi
15597 rm conftest.$ac_ext
15598 LIBS=$ac_func_search_save_LIBS ;;
15599 esac
15600 fi
15601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
15602 printf "%s\n" "$ac_cv_search_pow" >&6; }
15603 ac_res=$ac_cv_search_pow
15604 if test "$ac_res" != no
15605 then :
15606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15607
15608 fi
15609
15610
15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
15612 printf %s "checking for native WIN32 or MINGW32... " >&6; }
15613 if test ${kpse_cv_have_win32+y}
15614 then :
15615 printf %s "(cached) " >&6
15616 else case e in #(
15617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15619 #ifndef WIN32
15620 choke me
15621 #endif
15622 int
15623 main (void)
15624 {
15625
15626 ;
15627 return 0;
15628 }
15629 _ACEOF
15630 if ac_fn_c_try_compile "$LINENO"
15631 then :
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 #ifndef __MINGW32__
15635 choke me
15636 #endif
15637 int
15638 main (void)
15639 {
15640
15641 ;
15642 return 0;
15643 }
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"
15646 then :
15647 kpse_cv_have_win32=mingw32
15648 else case e in #(
15649 e) kpse_cv_have_win32=native ;;
15650 esac
15651 fi
15652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15653 else case e in #(
15654 e) kpse_cv_have_win32=no ;;
15655 esac
15656 fi
15657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15658 esac
15659 fi
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
15661 printf "%s\n" "$kpse_cv_have_win32" >&6; }
15662
15663 LUA53_DEFINES='-DLUA_COMPAT_MODULE -DLUA_COMPAT_5_2 -DLUAI_HASHLIMIT=6'
15664
15665 if test "x$kpse_cv_have_win32" = xno; then
15666 LUA53_DEFINES="$LUA53_DEFINES -DLUA_USE_POSIX"
15667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15668 printf %s "checking for library containing dlopen... " >&6; }
15669 if test ${ac_cv_search_dlopen+y}
15670 then :
15671 printf %s "(cached) " >&6
15672 else case e in #(
15673 e) ac_func_search_save_LIBS=$LIBS
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676
15677 /* Override any GCC internal prototype to avoid an error.
15678 Use char because int might match the return type of a GCC
15679 builtin and then its argument prototype would still apply.
15680 The 'extern "C"' is for builds by C++ compilers;
15681 although this is not generally supported in C code supporting it here
15682 has little cost and some practical benefit (sr 110532). */
15683 #ifdef __cplusplus
15684 extern "C"
15685 #endif
15686 char dlopen (void);
15687 int
15688 main (void)
15689 {
15690 return dlopen ();
15691 ;
15692 return 0;
15693 }
15694 _ACEOF
15695 for ac_lib in '' dl
15696 do
15697 if test -z "$ac_lib"; then
15698 ac_res="none required"
15699 else
15700 ac_res=-l$ac_lib
15701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15702 fi
15703 if ac_fn_c_try_link "$LINENO"
15704 then :
15705 ac_cv_search_dlopen=$ac_res
15706 fi
15707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15708 conftest$ac_exeext
15709 if test ${ac_cv_search_dlopen+y}
15710 then :
15711 break
15712 fi
15713 done
15714 if test ${ac_cv_search_dlopen+y}
15715 then :
15716
15717 else case e in #(
15718 e) ac_cv_search_dlopen=no ;;
15719 esac
15720 fi
15721 rm conftest.$ac_ext
15722 LIBS=$ac_func_search_save_LIBS ;;
15723 esac
15724 fi
15725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15726 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
15727 ac_res=$ac_cv_search_dlopen
15728 if test "$ac_res" != no
15729 then :
15730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15731
15732 fi
15733
15734 if test "x$ac_cv_search_dlopen" != xno; then
15735 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15736 "
15737 if test "x$ac_cv_header_dlfcn_h" = xyes
15738 then :
15739 LUA53_DEFINES="$LUA53_DEFINES -DLUA_USE_DLOPEN"
15740 fi
15741
15742 fi
15743 fi
15744
15745 # Check whether --enable-largefile was given.
15746 if test ${enable_largefile+y}
15747 then :
15748 enableval=$enable_largefile;
15749 fi
15750 if test "$enable_largefile,$enable_year2038" != no,no
15751 then :
15752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15753 printf %s "checking for $CC option to enable large file support... " >&6; }
15754 if test ${ac_cv_sys_largefile_opts+y}
15755 then :
15756 printf %s "(cached) " >&6
15757 else case e in #(
15758 e) ac_save_CC="$CC"
15759 ac_opt_found=no
15760 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15761 if test x"$ac_opt" != x"none needed"
15762 then :
15763 CC="$ac_save_CC $ac_opt"
15764 fi
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767 #include <sys/types.h>
15768 #ifndef FTYPE
15769 # define FTYPE off_t
15770 #endif
15771 /* Check that FTYPE can represent 2**63 - 1 correctly.
15772 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15773 since some C++ compilers masquerading as C compilers
15774 incorrectly reject 9223372036854775807. */
15775 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15776 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15777 && LARGE_FTYPE % 2147483647 == 1)
15778 ? 1 : -1];
15779 int
15780 main (void)
15781 {
15782
15783 ;
15784 return 0;
15785 }
15786 _ACEOF
15787 if ac_fn_c_try_compile "$LINENO"
15788 then :
15789 if test x"$ac_opt" = x"none needed"
15790 then :
15791 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15792 CC="$CC -DFTYPE=ino_t"
15793 if ac_fn_c_try_compile "$LINENO"
15794 then :
15795
15796 else case e in #(
15797 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15798 if ac_fn_c_try_compile "$LINENO"
15799 then :
15800 ac_opt='-D_FILE_OFFSET_BITS=64'
15801 fi
15802 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15803 esac
15804 fi
15805 rm -f core conftest.err conftest.$ac_objext conftest.beam
15806 fi
15807 ac_cv_sys_largefile_opts=$ac_opt
15808 ac_opt_found=yes
15809 fi
15810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15811 test $ac_opt_found = no || break
15812 done
15813 CC="$ac_save_CC"
15814
15815 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15816 esac
15817 fi
15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15819 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15820
15821 ac_have_largefile=yes
15822 case $ac_cv_sys_largefile_opts in #(
15823 "none needed") :
15824 ;; #(
15825 "supported through gnulib") :
15826 ;; #(
15827 "support not detected") :
15828 ac_have_largefile=no ;; #(
15829 "-D_FILE_OFFSET_BITS=64") :
15830
15831 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15832 ;; #(
15833 "-D_LARGE_FILES=1") :
15834
15835 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15836 ;; #(
15837 "-n32") :
15838 CC="$CC -n32" ;; #(
15839 *) :
15840 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15841 esac
15842
15843 if test "$enable_year2038" != no
15844 then :
15845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15846 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15847 if test ${ac_cv_sys_year2038_opts+y}
15848 then :
15849 printf %s "(cached) " >&6
15850 else case e in #(
15851 e) ac_save_CPPFLAGS="$CPPFLAGS"
15852 ac_opt_found=no
15853 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
15854 if test x"$ac_opt" != x"none needed"
15855 then :
15856 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15857 fi
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h. */
15860
15861 #include <time.h>
15862 /* Check that time_t can represent 2**32 - 1 correctly. */
15863 #define LARGE_TIME_T \\
15864 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15865 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15866 && LARGE_TIME_T % 65537 == 0)
15867 ? 1 : -1];
15868
15869 int
15870 main (void)
15871 {
15872
15873 ;
15874 return 0;
15875 }
15876 _ACEOF
15877 if ac_fn_c_try_compile "$LINENO"
15878 then :
15879 ac_cv_sys_year2038_opts="$ac_opt"
15880 ac_opt_found=yes
15881 fi
15882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15883 test $ac_opt_found = no || break
15884 done
15885 CPPFLAGS="$ac_save_CPPFLAGS"
15886 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15887 esac
15888 fi
15889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15890 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15891
15892 ac_have_year2038=yes
15893 case $ac_cv_sys_year2038_opts in #(
15894 "none needed") :
15895 ;; #(
15896 "support not detected") :
15897 ac_have_year2038=no ;; #(
15898 "-D_TIME_BITS=64") :
15899
15900 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15901 ;; #(
15902 "-D__MINGW_USE_VC2005_COMPAT") :
15903
15904 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15905 ;; #(
15906 "-U_USE_32_BIT_TIME_T"*) :
15907 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15908 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15909 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15910 will stop working after mid-January 2038. Remove
15911 _USE_32BIT_TIME_T from the compiler flags.
15912 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15913 *) :
15914 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15915 esac
15916
15917 fi
15918
15919 fi
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15921 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15922 if test ${ac_cv_func_fseeko_ftello+y}
15923 then :
15924 printf %s "(cached) " >&6
15925 else case e in #(
15926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15928
15929 #if defined __hpux && !defined _LARGEFILE_SOURCE
15930 # include <limits.h>
15931 # if LONG_MAX >> 31 == 0
15932 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15933 # endif
15934 #endif
15935 #include <sys/types.h> /* for off_t */
15936 #include <stdio.h>
15937
15938 int
15939 main (void)
15940 {
15941
15942 int (*fp1) (FILE *, off_t, int) = fseeko;
15943 off_t (*fp2) (FILE *) = ftello;
15944 return fseeko (stdin, 0, 0)
15945 && fp1 (stdin, 0, 0)
15946 && ftello (stdin) >= 0
15947 && fp2 (stdin) >= 0;
15948
15949 ;
15950 return 0;
15951 }
15952 _ACEOF
15953 if ac_fn_c_try_compile "$LINENO"
15954 then :
15955 ac_cv_func_fseeko_ftello=yes
15956 else case e in #(
15957 e) ac_save_CPPFLAGS="$CPPFLAGS"
15958 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15961
15962 #if defined __hpux && !defined _LARGEFILE_SOURCE
15963 # include <limits.h>
15964 # if LONG_MAX >> 31 == 0
15965 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15966 # endif
15967 #endif
15968 #include <sys/types.h> /* for off_t */
15969 #include <stdio.h>
15970
15971 int
15972 main (void)
15973 {
15974
15975 int (*fp1) (FILE *, off_t, int) = fseeko;
15976 off_t (*fp2) (FILE *) = ftello;
15977 return fseeko (stdin, 0, 0)
15978 && fp1 (stdin, 0, 0)
15979 && ftello (stdin) >= 0
15980 && fp2 (stdin) >= 0;
15981
15982 ;
15983 return 0;
15984 }
15985 _ACEOF
15986 if ac_fn_c_try_compile "$LINENO"
15987 then :
15988 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15989 else case e in #(
15990 e) ac_cv_func_fseeko_ftello=no ;;
15991 esac
15992 fi
15993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15994 esac
15995 fi
15996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15997 esac
15998 fi
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
16000 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
16001 if test "$ac_cv_func_fseeko_ftello" != no
16002 then :
16003
16004 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
16005
16006 fi
16007 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
16008 then :
16009
16010 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
16011
16012 fi
16013
16014 if test "x$enable_largefile" != xno; then
16015 case $ac_cv_sys_file_offset_bits in #(
16016 no) :
16017 ;; #(
16018 unknown) :
16019 case $ac_cv_sys_large_files in #(
16020 no | unknown) :
16021 ;; #(
16022 *) :
16023 LUA53_DEFINES="$LUA53_DEFINES -D_LARGE_FILES" ;;
16024 esac ;; #(
16025 *) :
16026 LUA53_DEFINES="$LUA53_DEFINES -D_FILE_OFFSET_BITS=64" ;;
16027 esac
16028 fi
16029 case $ac_cv_sys_largefile_source in #(
16030 no | unknown) :
16031 ;; #(
16032 *) :
16033 LUA53_DEFINES="$LUA53_DEFINES -D_LARGEFILE_SOURCE" ;;
16034 esac
16035
16036
16037 if test "x$ac_cv_header_stdc" = xyes; then
16038 LUA53_DEFINES="$LUA53_DEFINES -DHAVE_UNISTD_H"
16039 fi
16040
16041 LUA53_DEFINES="$LUA53_DEFINES -DLUA_COMPAT_5_2"
16042 LUA53_CFLAGS="-DLUA_COMPAT_5_2"
16043
16044 LUA53_TREE=lua53-src
16045
16046
16047 ac_config_files="$ac_config_files Makefile include/Makefile texlua53.pc"
16048
16049
16050 cat >confcache <<\_ACEOF
16051 # This file is a shell script that caches the results of configure
16052 # tests run on this system so they can be shared between configure
16053 # scripts and configure runs, see configure's option --config-cache.
16054 # It is not useful on other systems. If it contains results you don't
16055 # want to keep, you may remove or edit it.
16056 #
16057 # config.status only pays attention to the cache file if you give it
16058 # the --recheck option to rerun configure.
16059 #
16060 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16061 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16062 # following values.
16063
16064 _ACEOF
16065
16066 # The following way of writing the cache mishandles newlines in values,
16067 # but we know of no workaround that is simple, portable, and efficient.
16068 # So, we kill variables containing newlines.
16069 # Ultrix sh set writes to stderr and can't be redirected directly,
16070 # and sets the high bit in the cache file unless we assign to the vars.
16071 (
16072 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16073 eval ac_val=\$$ac_var
16074 case $ac_val in #(
16075 *${as_nl}*)
16076 case $ac_var in #(
16077 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16078 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16079 esac
16080 case $ac_var in #(
16081 _ | IFS | as_nl) ;; #(
16082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16083 *) { eval $ac_var=; unset $ac_var;} ;;
16084 esac ;;
16085 esac
16086 done
16087
16088 (set) 2>&1 |
16089 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16090 *${as_nl}ac_space=\ *)
16091 # 'set' does not quote correctly, so add quotes: double-quote
16092 # substitution turns \\\\ into \\, and sed turns \\ into \.
16093 sed -n \
16094 "s/'/'\\\\''/g;
16095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16096 ;; #(
16097 *)
16098 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16100 ;;
16101 esac |
16102 sort
16103 ) |
16104 sed '
16105 /^ac_cv_env_/b end
16106 t clear
16107 :clear
16108 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16109 t end
16110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16111 :end' >>confcache
16112 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16113 if test -w "$cache_file"; then
16114 if test "x$cache_file" != "x/dev/null"; then
16115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16116 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16117 if test ! -f "$cache_file" || test -h "$cache_file"; then
16118 cat confcache >"$cache_file"
16119 else
16120 case $cache_file in #(
16121 */* | ?:*)
16122 mv -f confcache "$cache_file"$$ &&
16123 mv -f "$cache_file"$$ "$cache_file" ;; #(
16124 *)
16125 mv -f confcache "$cache_file" ;;
16126 esac
16127 fi
16128 fi
16129 else
16130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16131 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16132 fi
16133 fi
16134 rm -f confcache
16135
16136 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16137 # Let make expand exec_prefix.
16138 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16139
16140 DEFS=-DHAVE_CONFIG_H
16141
16142 ac_libobjs=
16143 ac_ltlibobjs=
16144 U=
16145 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16146 # 1. Remove the extension, and $U if already installed.
16147 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16148 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16149 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16150 # will be set to the directory where LIBOBJS objects are built.
16151 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16152 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16153 done
16154 LIBOBJS=$ac_libobjs
16155
16156 LTLIBOBJS=$ac_ltlibobjs
16157
16158
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16160 printf %s "checking that generated files are newer than configure... " >&6; }
16161 if test -n "$am_sleep_pid"; then
16162 # Hide warnings about reused PIDs.
16163 wait $am_sleep_pid 2>/dev/null
16164 fi
16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16166 printf "%s\n" "done" >&6; }
16167 case $enable_silent_rules in # (((
16168 yes) AM_DEFAULT_VERBOSITY=0;;
16169 no) AM_DEFAULT_VERBOSITY=1;;
16170 esac
16171 if test $am_cv_make_support_nested_variables = yes; then
16172 AM_V='$(V)'
16173 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16174 else
16175 AM_V=$AM_DEFAULT_VERBOSITY
16176 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16177 fi
16178
16179 if test -n "$EXEEXT"; then
16180 am__EXEEXT_TRUE=
16181 am__EXEEXT_FALSE='#'
16182 else
16183 am__EXEEXT_TRUE='#'
16184 am__EXEEXT_FALSE=
16185 fi
16186
16187 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16188 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16190 fi
16191 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16192 as_fn_error $? "conditional \"AMDEP\" was never defined.
16193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16194 fi
16195 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16196 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16198 fi
16199 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16200 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16202 fi
16203 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
16204 as_fn_error $? "conditional \"build\" was never defined.
16205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16206 fi
16207 # Check whether --enable-year2038 was given.
16208 if test ${enable_year2038+y}
16209 then :
16210 enableval=$enable_year2038;
16211 fi
16212
16213
16214 : "${CONFIG_STATUS=./config.status}"
16215 ac_write_fail=0
16216 ac_clean_files_save=$ac_clean_files
16217 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16219 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16220 as_write_fail=0
16221 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16222 #! $SHELL
16223 # Generated by $as_me.
16224 # Run this file to recreate the current configuration.
16225 # Compiler output produced by configure, useful for debugging
16226 # configure, is in config.log if it exists.
16227
16228 debug=false
16229 ac_cs_recheck=false
16230 ac_cs_silent=false
16231
16232 SHELL=\${CONFIG_SHELL-$SHELL}
16233 export SHELL
16234 _ASEOF
16235 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16236 ## -------------------- ##
16237 ## M4sh Initialization. ##
16238 ## -------------------- ##
16239
16240 # Be more Bourne compatible
16241 DUALCASE=1; export DUALCASE # for MKS sh
16242 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16243 then :
16244 emulate sh
16245 NULLCMD=:
16246 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16247 # is contrary to our usage. Disable this feature.
16248 alias -g '${1+"$@"}'='"$@"'
16249 setopt NO_GLOB_SUBST
16250 else case e in #(
16251 e) case `(set -o) 2>/dev/null` in #(
16252 *posix*) :
16253 set -o posix ;; #(
16254 *) :
16255 ;;
16256 esac ;;
16257 esac
16258 fi
16259
16260
16261
16262 # Reset variables that may have inherited troublesome values from
16263 # the environment.
16264
16265 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16266 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16267 # side effect of setting IFS to empty, thus disabling word splitting.)
16268 # Quoting is to prevent editors from complaining about space-tab.
16269 as_nl='
16270 '
16271 export as_nl
16272 IFS=" "" $as_nl"
16273
16274 PS1='$ '
16275 PS2='> '
16276 PS4='+ '
16277
16278 # Ensure predictable behavior from utilities with locale-dependent output.
16279 LC_ALL=C
16280 export LC_ALL
16281 LANGUAGE=C
16282 export LANGUAGE
16283
16284 # We cannot yet rely on "unset" to work, but we need these variables
16285 # to be unset--not just set to an empty or harmless value--now, to
16286 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16287 # also avoids known problems related to "unset" and subshell syntax
16288 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16289 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16290 do eval test \${$as_var+y} \
16291 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16292 done
16293
16294 # Ensure that fds 0, 1, and 2 are open.
16295 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16296 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16297 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16298
16299 # The user is always right.
16300 if ${PATH_SEPARATOR+false} :; then
16301 PATH_SEPARATOR=:
16302 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16303 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16304 PATH_SEPARATOR=';'
16305 }
16306 fi
16307
16308
16309 # Find who we are. Look in the path if we contain no directory separator.
16310 as_myself=
16311 case $0 in #((
16312 *[\\/]* ) as_myself=$0 ;;
16313 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16314 for as_dir in $PATH
16315 do
16316 IFS=$as_save_IFS
16317 case $as_dir in #(((
16318 '') as_dir=./ ;;
16319 */) ;;
16320 *) as_dir=$as_dir/ ;;
16321 esac
16322 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16323 done
16324 IFS=$as_save_IFS
16325
16326 ;;
16327 esac
16328 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16329 # in which case we are not to be found in the path.
16330 if test "x$as_myself" = x; then
16331 as_myself=$0
16332 fi
16333 if test ! -f "$as_myself"; then
16334 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16335 exit 1
16336 fi
16337
16338
16339
16340 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16341 # ----------------------------------------
16342 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16343 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16344 # script with STATUS, using 1 if that was 0.
16345 as_fn_error ()
16346 {
16347 as_status=$1; test $as_status -eq 0 && as_status=1
16348 if test "$4"; then
16349 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16351 fi
16352 printf "%s\n" "$as_me: error: $2" >&2
16353 as_fn_exit $as_status
16354 } # as_fn_error
16355
16356
16357 # as_fn_set_status STATUS
16358 # -----------------------
16359 # Set $? to STATUS, without forking.
16360 as_fn_set_status ()
16361 {
16362 return $1
16363 } # as_fn_set_status
16364
16365 # as_fn_exit STATUS
16366 # -----------------
16367 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16368 as_fn_exit ()
16369 {
16370 set +e
16371 as_fn_set_status $1
16372 exit $1
16373 } # as_fn_exit
16374
16375 # as_fn_unset VAR
16376 # ---------------
16377 # Portably unset VAR.
16378 as_fn_unset ()
16379 {
16380 { eval $1=; unset $1;}
16381 }
16382 as_unset=as_fn_unset
16383
16384 # as_fn_append VAR VALUE
16385 # ----------------------
16386 # Append the text in VALUE to the end of the definition contained in VAR. Take
16387 # advantage of any shell optimizations that allow amortized linear growth over
16388 # repeated appends, instead of the typical quadratic growth present in naive
16389 # implementations.
16390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16391 then :
16392 eval 'as_fn_append ()
16393 {
16394 eval $1+=\$2
16395 }'
16396 else case e in #(
16397 e) as_fn_append ()
16398 {
16399 eval $1=\$$1\$2
16400 } ;;
16401 esac
16402 fi # as_fn_append
16403
16404 # as_fn_arith ARG...
16405 # ------------------
16406 # Perform arithmetic evaluation on the ARGs, and store the result in the
16407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16408 # must be portable across $(()) and expr.
16409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16410 then :
16411 eval 'as_fn_arith ()
16412 {
16413 as_val=$(( $* ))
16414 }'
16415 else case e in #(
16416 e) as_fn_arith ()
16417 {
16418 as_val=`expr "$@" || test $? -eq 1`
16419 } ;;
16420 esac
16421 fi # as_fn_arith
16422
16423
16424 if expr a : '\(a\)' >/dev/null 2>&1 &&
16425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16426 as_expr=expr
16427 else
16428 as_expr=false
16429 fi
16430
16431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16432 as_basename=basename
16433 else
16434 as_basename=false
16435 fi
16436
16437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16438 as_dirname=dirname
16439 else
16440 as_dirname=false
16441 fi
16442
16443 as_me=`$as_basename -- "$0" ||
16444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16445 X"$0" : 'X\(//\)$' \| \
16446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16447 printf "%s\n" X/"$0" |
16448 sed '/^.*\/\([^/][^/]*\)\/*$/{
16449 s//\1/
16450 q
16451 }
16452 /^X\/\(\/\/\)$/{
16453 s//\1/
16454 q
16455 }
16456 /^X\/\(\/\).*/{
16457 s//\1/
16458 q
16459 }
16460 s/.*/./; q'`
16461
16462 # Avoid depending upon Character Ranges.
16463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16466 as_cr_digits='0123456789'
16467 as_cr_alnum=$as_cr_Letters$as_cr_digits
16468
16469
16470 # Determine whether it's possible to make 'echo' print without a newline.
16471 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16472 # for compatibility with existing Makefiles.
16473 ECHO_C= ECHO_N= ECHO_T=
16474 case `echo -n x` in #(((((
16475 -n*)
16476 case `echo 'xy\c'` in
16477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16478 xy) ECHO_C='\c';;
16479 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16480 ECHO_T=' ';;
16481 esac;;
16482 *)
16483 ECHO_N='-n';;
16484 esac
16485
16486 # For backward compatibility with old third-party macros, we provide
16487 # the shell variables $as_echo and $as_echo_n. New code should use
16488 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16489 as_echo='printf %s\n'
16490 as_echo_n='printf %s'
16491
16492 rm -f conf$$ conf$$.exe conf$$.file
16493 if test -d conf$$.dir; then
16494 rm -f conf$$.dir/conf$$.file
16495 else
16496 rm -f conf$$.dir
16497 mkdir conf$$.dir 2>/dev/null
16498 fi
16499 if (echo >conf$$.file) 2>/dev/null; then
16500 if ln -s conf$$.file conf$$ 2>/dev/null; then
16501 as_ln_s='ln -s'
16502 # ... but there are two gotchas:
16503 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16504 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16505 # In both cases, we have to default to 'cp -pR'.
16506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16507 as_ln_s='cp -pR'
16508 elif ln conf$$.file conf$$ 2>/dev/null; then
16509 as_ln_s=ln
16510 else
16511 as_ln_s='cp -pR'
16512 fi
16513 else
16514 as_ln_s='cp -pR'
16515 fi
16516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16517 rmdir conf$$.dir 2>/dev/null
16518
16519
16520 # as_fn_mkdir_p
16521 # -------------
16522 # Create "$as_dir" as a directory, including parents if necessary.
16523 as_fn_mkdir_p ()
16524 {
16525
16526 case $as_dir in #(
16527 -*) as_dir=./$as_dir;;
16528 esac
16529 test -d "$as_dir" || eval $as_mkdir_p || {
16530 as_dirs=
16531 while :; do
16532 case $as_dir in #(
16533 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16534 *) as_qdir=$as_dir;;
16535 esac
16536 as_dirs="'$as_qdir' $as_dirs"
16537 as_dir=`$as_dirname -- "$as_dir" ||
16538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16539 X"$as_dir" : 'X\(//\)[^/]' \| \
16540 X"$as_dir" : 'X\(//\)$' \| \
16541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16542 printf "%s\n" X"$as_dir" |
16543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16544 s//\1/
16545 q
16546 }
16547 /^X\(\/\/\)[^/].*/{
16548 s//\1/
16549 q
16550 }
16551 /^X\(\/\/\)$/{
16552 s//\1/
16553 q
16554 }
16555 /^X\(\/\).*/{
16556 s//\1/
16557 q
16558 }
16559 s/.*/./; q'`
16560 test -d "$as_dir" && break
16561 done
16562 test -z "$as_dirs" || eval "mkdir $as_dirs"
16563 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16564
16565
16566 } # as_fn_mkdir_p
16567 if mkdir -p . 2>/dev/null; then
16568 as_mkdir_p='mkdir -p "$as_dir"'
16569 else
16570 test -d ./-p && rmdir ./-p
16571 as_mkdir_p=false
16572 fi
16573
16574
16575 # as_fn_executable_p FILE
16576 # -----------------------
16577 # Test if FILE is an executable regular file.
16578 as_fn_executable_p ()
16579 {
16580 test -f "$1" && test -x "$1"
16581 } # as_fn_executable_p
16582 as_test_x='test -x'
16583 as_executable_p=as_fn_executable_p
16584
16585 # Sed expression to map a string onto a valid CPP name.
16586 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16587 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16588
16589 # Sed expression to map a string onto a valid variable name.
16590 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16591 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16592
16593
16594 exec 6>&1
16595 ## ----------------------------------- ##
16596 ## Main body of $CONFIG_STATUS script. ##
16597 ## ----------------------------------- ##
16598 _ASEOF
16599 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16600
16601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16602 # Save the log message, to keep $0 and so on meaningful, and to
16603 # report actual input values of CONFIG_FILES etc. instead of their
16604 # values after options handling.
16605 ac_log="
16606 This file was extended by lua53 (TeX Live) $as_me 5.3.6, which was
16607 generated by GNU Autoconf 2.72. Invocation command line was
16608
16609 CONFIG_FILES = $CONFIG_FILES
16610 CONFIG_HEADERS = $CONFIG_HEADERS
16611 CONFIG_LINKS = $CONFIG_LINKS
16612 CONFIG_COMMANDS = $CONFIG_COMMANDS
16613 $ $0 $@
16614
16615 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16616 "
16617
16618 _ACEOF
16619
16620 case $ac_config_files in *"
16621 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16622 esac
16623
16624 case $ac_config_headers in *"
16625 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16626 esac
16627
16628
16629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16630 # Files that config.status was made for.
16631 config_files="$ac_config_files"
16632 config_headers="$ac_config_headers"
16633 config_commands="$ac_config_commands"
16634
16635 _ACEOF
16636
16637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16638 ac_cs_usage="\
16639 '$as_me' instantiates files and other configuration actions
16640 from templates according to the current configuration. Unless the files
16641 and actions are specified as TAGs, all are instantiated by default.
16642
16643 Usage: $0 [OPTION]... [TAG]...
16644
16645 -h, --help print this help, then exit
16646 -V, --version print version number and configuration settings, then exit
16647 --config print configuration, then exit
16648 -q, --quiet, --silent
16649 do not print progress messages
16650 -d, --debug don't remove temporary files
16651 --recheck update $as_me by reconfiguring in the same conditions
16652 --file=FILE[:TEMPLATE]
16653 instantiate the configuration file FILE
16654 --header=FILE[:TEMPLATE]
16655 instantiate the configuration header FILE
16656
16657 Configuration files:
16658 $config_files
16659
16660 Configuration headers:
16661 $config_headers
16662
16663 Configuration commands:
16664 $config_commands
16665
16666 Report bugs to <[email protected]>."
16667
16668 _ACEOF
16669 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16670 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16672 ac_cs_config='$ac_cs_config_escaped'
16673 ac_cs_version="\\
16674 lua53 (TeX Live) config.status 5.3.6
16675 configured by $0, generated by GNU Autoconf 2.72,
16676 with options \\"\$ac_cs_config\\"
16677
16678 Copyright (C) 2023 Free Software Foundation, Inc.
16679 This config.status script is free software; the Free Software Foundation
16680 gives unlimited permission to copy, distribute and modify it."
16681
16682 ac_pwd='$ac_pwd'
16683 srcdir='$srcdir'
16684 INSTALL='$INSTALL'
16685 MKDIR_P='$MKDIR_P'
16686 AWK='$AWK'
16687 test -n "\$AWK" || AWK=awk
16688 _ACEOF
16689
16690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16691 # The default lists apply if the user does not specify any file.
16692 ac_need_defaults=:
16693 while test $# != 0
16694 do
16695 case $1 in
16696 --*=?*)
16697 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16698 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16699 ac_shift=:
16700 ;;
16701 --*=)
16702 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16703 ac_optarg=
16704 ac_shift=:
16705 ;;
16706 *)
16707 ac_option=$1
16708 ac_optarg=$2
16709 ac_shift=shift
16710 ;;
16711 esac
16712
16713 case $ac_option in
16714 # Handling of the options.
16715 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16716 ac_cs_recheck=: ;;
16717 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16718 printf "%s\n" "$ac_cs_version"; exit ;;
16719 --config | --confi | --conf | --con | --co | --c )
16720 printf "%s\n" "$ac_cs_config"; exit ;;
16721 --debug | --debu | --deb | --de | --d | -d )
16722 debug=: ;;
16723 --file | --fil | --fi | --f )
16724 $ac_shift
16725 case $ac_optarg in
16726 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16727 '') as_fn_error $? "missing file argument" ;;
16728 esac
16729 as_fn_append CONFIG_FILES " '$ac_optarg'"
16730 ac_need_defaults=false;;
16731 --header | --heade | --head | --hea )
16732 $ac_shift
16733 case $ac_optarg in
16734 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16735 esac
16736 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16737 ac_need_defaults=false;;
16738 --he | --h)
16739 # Conflict between --help and --header
16740 as_fn_error $? "ambiguous option: '$1'
16741 Try '$0 --help' for more information.";;
16742 --help | --hel | -h )
16743 printf "%s\n" "$ac_cs_usage"; exit ;;
16744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16745 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16746 ac_cs_silent=: ;;
16747
16748 # This is an error.
16749 -*) as_fn_error $? "unrecognized option: '$1'
16750 Try '$0 --help' for more information." ;;
16751
16752 *) as_fn_append ac_config_targets " $1"
16753 ac_need_defaults=false ;;
16754
16755 esac
16756 shift
16757 done
16758
16759 ac_configure_extra_args=
16760
16761 if $ac_cs_silent; then
16762 exec 6>/dev/null
16763 ac_configure_extra_args="$ac_configure_extra_args --silent"
16764 fi
16765
16766 _ACEOF
16767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16768 if \$ac_cs_recheck; then
16769 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16770 shift
16771 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16772 CONFIG_SHELL='$SHELL'
16773 export CONFIG_SHELL
16774 exec "\$@"
16775 fi
16776
16777 _ACEOF
16778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16779 exec 5>>config.log
16780 {
16781 echo
16782 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16783 ## Running $as_me. ##
16784 _ASBOX
16785 printf "%s\n" "$ac_log"
16786 } >&5
16787
16788 _ACEOF
16789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16790 #
16791 # INIT-COMMANDS
16792 #
16793 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16794
16795
16796 # The HP-UX ksh and POSIX shell print the target directory to stdout
16797 # if CDPATH is set.
16798 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16799
16800 sed_quote_subst='$sed_quote_subst'
16801 double_quote_subst='$double_quote_subst'
16802 delay_variable_subst='$delay_variable_subst'
16803 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16804 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16805 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16806 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16807 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16808 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16809 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16810 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16811 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16812 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16813 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16814 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16815 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16816 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16817 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16818 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16819 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16820 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16821 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16822 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16823 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16824 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16825 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16826 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16827 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16828 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16829 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16830 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16831 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16832 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16833 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16834 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16835 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16836 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16837 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16838 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16839 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16840 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16841 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16842 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16843 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16844 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16845 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16846 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16847 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16848 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16849 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16850 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16851 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16852 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16853 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16854 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16855 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16856 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16857 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16858 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16859 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16860 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16861 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16862 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16863 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16864 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"`'
16865 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16866 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16867 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16868 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16869 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16870 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16871 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16872 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16873 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16874 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16875 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16876 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16877 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16878 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16879 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16880 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16881 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16882 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16883 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16884 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16885 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16886 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16887 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16888 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16889 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16890 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16891 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16892 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16893 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16894 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16895 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16896 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16897 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16898 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16899 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16900 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16901 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16902 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16903 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16904 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16905 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16906 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16907 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16908 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16909 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16910 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16911 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16912 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16913 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16914 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16915 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16916 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16917 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16918 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16919 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16920 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16921 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16922 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16923 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16924 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16925 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16926 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16927 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16928 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16929 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16930 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16931 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16932 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16933 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16934 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16935 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16936 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16937 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16938 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16939 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16940 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16941
16942 LTCC='$LTCC'
16943 LTCFLAGS='$LTCFLAGS'
16944 compiler='$compiler_DEFAULT'
16945
16946 # A function that is used when there is no print builtin or printf.
16947 func_fallback_echo ()
16948 {
16949 eval 'cat <<_LTECHO_EOF
16950 \$1
16951 _LTECHO_EOF'
16952 }
16953
16954 # Quote evaled strings.
16955 for var in AS \
16956 DLLTOOL \
16957 OBJDUMP \
16958 SHELL \
16959 ECHO \
16960 PATH_SEPARATOR \
16961 SED \
16962 GREP \
16963 EGREP \
16964 FGREP \
16965 LD \
16966 NM \
16967 LN_S \
16968 lt_SP2NL \
16969 lt_NL2SP \
16970 reload_flag \
16971 FILECMD \
16972 deplibs_check_method \
16973 file_magic_cmd \
16974 file_magic_glob \
16975 want_nocaseglob \
16976 sharedlib_from_linklib_cmd \
16977 AR \
16978 archiver_list_spec \
16979 STRIP \
16980 RANLIB \
16981 CC \
16982 CFLAGS \
16983 compiler \
16984 lt_cv_sys_global_symbol_pipe \
16985 lt_cv_sys_global_symbol_to_cdecl \
16986 lt_cv_sys_global_symbol_to_import \
16987 lt_cv_sys_global_symbol_to_c_name_address \
16988 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16989 lt_cv_nm_interface \
16990 nm_file_list_spec \
16991 lt_cv_truncate_bin \
16992 lt_prog_compiler_no_builtin_flag \
16993 lt_prog_compiler_pic \
16994 lt_prog_compiler_wl \
16995 lt_prog_compiler_static \
16996 lt_cv_prog_compiler_c_o \
16997 need_locks \
16998 MANIFEST_TOOL \
16999 DSYMUTIL \
17000 NMEDIT \
17001 LIPO \
17002 OTOOL \
17003 OTOOL64 \
17004 shrext_cmds \
17005 export_dynamic_flag_spec \
17006 whole_archive_flag_spec \
17007 compiler_needs_object \
17008 with_gnu_ld \
17009 allow_undefined_flag \
17010 no_undefined_flag \
17011 hardcode_libdir_flag_spec \
17012 hardcode_libdir_separator \
17013 exclude_expsyms \
17014 include_expsyms \
17015 file_list_spec \
17016 variables_saved_for_relink \
17017 libname_spec \
17018 library_names_spec \
17019 soname_spec \
17020 install_override_mode \
17021 finish_eval \
17022 old_striplib \
17023 striplib; do
17024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17025 *[\\\\\\\`\\"\\\$]*)
17026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17027 ;;
17028 *)
17029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17030 ;;
17031 esac
17032 done
17033
17034 # Double-quote double-evaled strings.
17035 for var in reload_cmds \
17036 old_postinstall_cmds \
17037 old_postuninstall_cmds \
17038 old_archive_cmds \
17039 extract_expsyms_cmds \
17040 old_archive_from_new_cmds \
17041 old_archive_from_expsyms_cmds \
17042 archive_cmds \
17043 archive_expsym_cmds \
17044 module_cmds \
17045 module_expsym_cmds \
17046 export_symbols_cmds \
17047 prelink_cmds \
17048 postlink_cmds \
17049 postinstall_cmds \
17050 postuninstall_cmds \
17051 finish_cmds \
17052 sys_lib_search_path_spec \
17053 configure_time_dlsearch_path \
17054 configure_time_lt_sys_library_path; do
17055 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17056 *[\\\\\\\`\\"\\\$]*)
17057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17058 ;;
17059 *)
17060 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17061 ;;
17062 esac
17063 done
17064
17065 ac_aux_dir='$ac_aux_dir'
17066
17067 # See if we are running on zsh, and set the options that allow our
17068 # commands through without removal of \ escapes INIT.
17069 if test -n "\${ZSH_VERSION+set}"; then
17070 setopt NO_GLOB_SUBST
17071 fi
17072
17073
17074 PACKAGE='$PACKAGE'
17075 VERSION='$VERSION'
17076 RM='$RM'
17077 ofile='$ofile'
17078
17079 kpse_dll_name='$kpse_dll_name'
17080
17081
17082
17083 _ACEOF
17084
17085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17086
17087 # Handling of arguments.
17088 for ac_config_target in $ac_config_targets
17089 do
17090 case $ac_config_target in
17091 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17092 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17093 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17094 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17095 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17096 "texlua53.pc") CONFIG_FILES="$CONFIG_FILES texlua53.pc" ;;
17097
17098 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17099 esac
17100 done
17101
17102
17103 # If the user did not use the arguments to specify the items to instantiate,
17104 # then the envvar interface is used. Set only those that are not.
17105 # We use the long form for the default assignment because of an extremely
17106 # bizarre bug on SunOS 4.1.3.
17107 if $ac_need_defaults; then
17108 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17109 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17110 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17111 fi
17112
17113 # Have a temporary directory for convenience. Make it in the build tree
17114 # simply because there is no reason against having it here, and in addition,
17115 # creating and moving files from /tmp can sometimes cause problems.
17116 # Hook for its removal unless debugging.
17117 # Note that there is a small window in which the directory will not be cleaned:
17118 # after its creation but before its name has been assigned to '$tmp'.
17119 $debug ||
17120 {
17121 tmp= ac_tmp=
17122 trap 'exit_status=$?
17123 : "${ac_tmp:=$tmp}"
17124 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17125 ' 0
17126 trap 'as_fn_exit 1' 1 2 13 15
17127 }
17128 # Create a (secure) tmp directory for tmp files.
17129
17130 {
17131 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17132 test -d "$tmp"
17133 } ||
17134 {
17135 tmp=./conf$$-$RANDOM
17136 (umask 077 && mkdir "$tmp")
17137 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17138 ac_tmp=$tmp
17139
17140 # Set up the scripts for CONFIG_FILES section.
17141 # No need to generate them if there are no CONFIG_FILES.
17142 # This happens for instance with './config.status config.h'.
17143 if test -n "$CONFIG_FILES"; then
17144
17145
17146 ac_cr=`echo X | tr X '\015'`
17147 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17148 # But we know of no other shell where ac_cr would be empty at this
17149 # point, so we can use a bashism as a fallback.
17150 if test "x$ac_cr" = x; then
17151 eval ac_cr=\$\'\\r\'
17152 fi
17153 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17154 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17155 ac_cs_awk_cr='\\r'
17156 else
17157 ac_cs_awk_cr=$ac_cr
17158 fi
17159
17160 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17161 _ACEOF
17162
17163
17164 {
17165 echo "cat >conf$$subs.awk <<_ACEOF" &&
17166 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17167 echo "_ACEOF"
17168 } >conf$$subs.sh ||
17169 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17170 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17171 ac_delim='%!_!# '
17172 for ac_last_try in false false false false false :; do
17173 . ./conf$$subs.sh ||
17174 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17175
17176 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17177 if test $ac_delim_n = $ac_delim_num; then
17178 break
17179 elif $ac_last_try; then
17180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17181 else
17182 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17183 fi
17184 done
17185 rm -f conf$$subs.sh
17186
17187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17188 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17189 _ACEOF
17190 sed -n '
17191 h
17192 s/^/S["/; s/!.*/"]=/
17193 p
17194 g
17195 s/^[^!]*!//
17196 :repl
17197 t repl
17198 s/'"$ac_delim"'$//
17199 t delim
17200 :nl
17201 h
17202 s/\(.\{148\}\)..*/\1/
17203 t more1
17204 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17205 p
17206 n
17207 b repl
17208 :more1
17209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17210 p
17211 g
17212 s/.\{148\}//
17213 t nl
17214 :delim
17215 h
17216 s/\(.\{148\}\)..*/\1/
17217 t more2
17218 s/["\\]/\\&/g; s/^/"/; s/$/"/
17219 p
17220 b
17221 :more2
17222 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17223 p
17224 g
17225 s/.\{148\}//
17226 t delim
17227 ' <conf$$subs.awk | sed '
17228 /^[^""]/{
17229 N
17230 s/\n//
17231 }
17232 ' >>$CONFIG_STATUS || ac_write_fail=1
17233 rm -f conf$$subs.awk
17234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17235 _ACAWK
17236 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17237 for (key in S) S_is_set[key] = 1
17238 FS = ""
17239
17240 }
17241 {
17242 line = $ 0
17243 nfields = split(line, field, "@")
17244 substed = 0
17245 len = length(field[1])
17246 for (i = 2; i < nfields; i++) {
17247 key = field[i]
17248 keylen = length(key)
17249 if (S_is_set[key]) {
17250 value = S[key]
17251 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17252 len += length(value) + length(field[++i])
17253 substed = 1
17254 } else
17255 len += 1 + keylen
17256 }
17257
17258 print line
17259 }
17260
17261 _ACAWK
17262 _ACEOF
17263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17264 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17265 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17266 else
17267 cat
17268 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17269 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17270 _ACEOF
17271
17272 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17273 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17274 # trailing colons and then remove the whole line if VPATH becomes empty
17275 # (actually we leave an empty line to preserve line numbers).
17276 if test "x$srcdir" = x.; then
17277 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17278 h
17279 s///
17280 s/^/:/
17281 s/[ ]*$/:/
17282 s/:\$(srcdir):/:/g
17283 s/:\${srcdir}:/:/g
17284 s/:@srcdir@:/:/g
17285 s/^:*//
17286 s/:*$//
17287 x
17288 s/\(=[ ]*\).*/\1/
17289 G
17290 s/\n//
17291 s/^[^=]*=[ ]*$//
17292 }'
17293 fi
17294
17295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17296 fi # test -n "$CONFIG_FILES"
17297
17298 # Set up the scripts for CONFIG_HEADERS section.
17299 # No need to generate them if there are no CONFIG_HEADERS.
17300 # This happens for instance with './config.status Makefile'.
17301 if test -n "$CONFIG_HEADERS"; then
17302 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17303 BEGIN {
17304 _ACEOF
17305
17306 # Transform confdefs.h into an awk script 'defines.awk', embedded as
17307 # here-document in config.status, that substitutes the proper values into
17308 # config.h.in to produce config.h.
17309
17310 # Create a delimiter string that does not exist in confdefs.h, to ease
17311 # handling of long lines.
17312 ac_delim='%!_!# '
17313 for ac_last_try in false false :; do
17314 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17315 if test -z "$ac_tt"; then
17316 break
17317 elif $ac_last_try; then
17318 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17319 else
17320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17321 fi
17322 done
17323
17324 # For the awk script, D is an array of macro values keyed by name,
17325 # likewise P contains macro parameters if any. Preserve backslash
17326 # newline sequences.
17327
17328 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17329 sed -n '
17330 s/.\{148\}/&'"$ac_delim"'/g
17331 t rset
17332 :rset
17333 s/^[ ]*#[ ]*define[ ][ ]*/ /
17334 t def
17335 d
17336 :def
17337 s/\\$//
17338 t bsnl
17339 s/["\\]/\\&/g
17340 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17341 D["\1"]=" \3"/p
17342 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17343 d
17344 :bsnl
17345 s/["\\]/\\&/g
17346 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17347 D["\1"]=" \3\\\\\\n"\\/p
17348 t cont
17349 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17350 t cont
17351 d
17352 :cont
17353 n
17354 s/.\{148\}/&'"$ac_delim"'/g
17355 t clear
17356 :clear
17357 s/\\$//
17358 t bsnlc
17359 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17360 d
17361 :bsnlc
17362 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17363 b cont
17364 ' <confdefs.h | sed '
17365 s/'"$ac_delim"'/"\\\
17366 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17367
17368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17369 for (key in D) D_is_set[key] = 1
17370 FS = ""
17371 }
17372 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17373 line = \$ 0
17374 split(line, arg, " ")
17375 if (arg[1] == "#") {
17376 defundef = arg[2]
17377 mac1 = arg[3]
17378 } else {
17379 defundef = substr(arg[1], 2)
17380 mac1 = arg[2]
17381 }
17382 split(mac1, mac2, "(") #)
17383 macro = mac2[1]
17384 prefix = substr(line, 1, index(line, defundef) - 1)
17385 if (D_is_set[macro]) {
17386 # Preserve the white space surrounding the "#".
17387 print prefix "define", macro P[macro] D[macro]
17388 next
17389 } else {
17390 # Replace #undef with comments. This is necessary, for example,
17391 # in the case of _POSIX_SOURCE, which is predefined and required
17392 # on some systems where configure will not decide to define it.
17393 if (defundef == "undef") {
17394 print "/*", prefix defundef, macro, "*/"
17395 next
17396 }
17397 }
17398 }
17399 { print }
17400 _ACAWK
17401 _ACEOF
17402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17403 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17404 fi # test -n "$CONFIG_HEADERS"
17405
17406
17407 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17408 shift
17409 for ac_tag
17410 do
17411 case $ac_tag in
17412 :[FHLC]) ac_mode=$ac_tag; continue;;
17413 esac
17414 case $ac_mode$ac_tag in
17415 :[FHL]*:*);;
17416 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17417 :[FH]-) ac_tag=-:-;;
17418 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17419 esac
17420 ac_save_IFS=$IFS
17421 IFS=:
17422 set x $ac_tag
17423 IFS=$ac_save_IFS
17424 shift
17425 ac_file=$1
17426 shift
17427
17428 case $ac_mode in
17429 :L) ac_source=$1;;
17430 :[FH])
17431 ac_file_inputs=
17432 for ac_f
17433 do
17434 case $ac_f in
17435 -) ac_f="$ac_tmp/stdin";;
17436 *) # Look for the file first in the build tree, then in the source tree
17437 # (if the path is not absolute). The absolute path cannot be DOS-style,
17438 # because $ac_f cannot contain ':'.
17439 test -f "$ac_f" ||
17440 case $ac_f in
17441 [\\/$]*) false;;
17442 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17443 esac ||
17444 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17445 esac
17446 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17447 as_fn_append ac_file_inputs " '$ac_f'"
17448 done
17449
17450 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17451 # use $as_me), people would be surprised to read:
17452 # /* config.h. Generated by config.status. */
17453 configure_input='Generated from '`
17454 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17455 `' by configure.'
17456 if test x"$ac_file" != x-; then
17457 configure_input="$ac_file. $configure_input"
17458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17459 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17460 fi
17461 # Neutralize special characters interpreted by sed in replacement strings.
17462 case $configure_input in #(
17463 *\&* | *\|* | *\\* )
17464 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17465 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17466 *) ac_sed_conf_input=$configure_input;;
17467 esac
17468
17469 case $ac_tag in
17470 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17472 esac
17473 ;;
17474 esac
17475
17476 ac_dir=`$as_dirname -- "$ac_file" ||
17477 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17478 X"$ac_file" : 'X\(//\)[^/]' \| \
17479 X"$ac_file" : 'X\(//\)$' \| \
17480 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17481 printf "%s\n" X"$ac_file" |
17482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17483 s//\1/
17484 q
17485 }
17486 /^X\(\/\/\)[^/].*/{
17487 s//\1/
17488 q
17489 }
17490 /^X\(\/\/\)$/{
17491 s//\1/
17492 q
17493 }
17494 /^X\(\/\).*/{
17495 s//\1/
17496 q
17497 }
17498 s/.*/./; q'`
17499 as_dir="$ac_dir"; as_fn_mkdir_p
17500 ac_builddir=.
17501
17502 case "$ac_dir" in
17503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17504 *)
17505 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17506 # A ".." for each directory in $ac_dir_suffix.
17507 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17508 case $ac_top_builddir_sub in
17509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17511 esac ;;
17512 esac
17513 ac_abs_top_builddir=$ac_pwd
17514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17515 # for backward compatibility:
17516 ac_top_builddir=$ac_top_build_prefix
17517
17518 case $srcdir in
17519 .) # We are building in place.
17520 ac_srcdir=.
17521 ac_top_srcdir=$ac_top_builddir_sub
17522 ac_abs_top_srcdir=$ac_pwd ;;
17523 [\\/]* | ?:[\\/]* ) # Absolute name.
17524 ac_srcdir=$srcdir$ac_dir_suffix;
17525 ac_top_srcdir=$srcdir
17526 ac_abs_top_srcdir=$srcdir ;;
17527 *) # Relative name.
17528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17529 ac_top_srcdir=$ac_top_build_prefix$srcdir
17530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17531 esac
17532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17533
17534
17535 case $ac_mode in
17536 :F)
17537 #
17538 # CONFIG_FILE
17539 #
17540
17541 case $INSTALL in
17542 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17543 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17544 esac
17545 ac_MKDIR_P=$MKDIR_P
17546 case $MKDIR_P in
17547 [\\/$]* | ?:[\\/]* ) ;;
17548 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17549 esac
17550 _ACEOF
17551
17552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17553 # If the template does not know about datarootdir, expand it.
17554 # FIXME: This hack should be removed a few years after 2.60.
17555 ac_datarootdir_hack=; ac_datarootdir_seen=
17556 ac_sed_dataroot='
17557 /datarootdir/ {
17558 p
17559 q
17560 }
17561 /@datadir@/p
17562 /@docdir@/p
17563 /@infodir@/p
17564 /@localedir@/p
17565 /@mandir@/p'
17566 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17567 *datarootdir*) ac_datarootdir_seen=yes;;
17568 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17570 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17571 _ACEOF
17572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17573 ac_datarootdir_hack='
17574 s&@datadir@&$datadir&g
17575 s&@docdir@&$docdir&g
17576 s&@infodir@&$infodir&g
17577 s&@localedir@&$localedir&g
17578 s&@mandir@&$mandir&g
17579 s&\\\${datarootdir}&$datarootdir&g' ;;
17580 esac
17581 _ACEOF
17582
17583 # Neutralize VPATH when '$srcdir' = '.'.
17584 # Shell code in configure.ac might set extrasub.
17585 # FIXME: do we really want to maintain this feature?
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587 ac_sed_extra="$ac_vpsub
17588 $extrasub
17589 _ACEOF
17590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17591 :t
17592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17593 s|@configure_input@|$ac_sed_conf_input|;t t
17594 s&@top_builddir@&$ac_top_builddir_sub&;t t
17595 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17596 s&@srcdir@&$ac_srcdir&;t t
17597 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17598 s&@top_srcdir@&$ac_top_srcdir&;t t
17599 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17600 s&@builddir@&$ac_builddir&;t t
17601 s&@abs_builddir@&$ac_abs_builddir&;t t
17602 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17603 s&@INSTALL@&$ac_INSTALL&;t t
17604 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17605 $ac_datarootdir_hack
17606 "
17607 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17608 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17609
17610 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17611 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17612 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17613 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17615 which seems to be undefined. Please make sure it is defined" >&5
17616 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17617 which seems to be undefined. Please make sure it is defined" >&2;}
17618
17619 rm -f "$ac_tmp/stdin"
17620 case $ac_file in
17621 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17622 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17623 esac \
17624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17625 ;;
17626 :H)
17627 #
17628 # CONFIG_HEADER
17629 #
17630 if test x"$ac_file" != x-; then
17631 {
17632 printf "%s\n" "/* $configure_input */" >&1 \
17633 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17634 } >"$ac_tmp/config.h" \
17635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17636 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17638 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17639 else
17640 rm -f "$ac_file"
17641 mv "$ac_tmp/config.h" "$ac_file" \
17642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17643 fi
17644 else
17645 printf "%s\n" "/* $configure_input */" >&1 \
17646 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17647 || as_fn_error $? "could not create -" "$LINENO" 5
17648 fi
17649 # Compute "$ac_file"'s index in $config_headers.
17650 _am_arg="$ac_file"
17651 _am_stamp_count=1
17652 for _am_header in $config_headers :; do
17653 case $_am_header in
17654 $_am_arg | $_am_arg:* )
17655 break ;;
17656 * )
17657 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17658 esac
17659 done
17660 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17661 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17662 X"$_am_arg" : 'X\(//\)[^/]' \| \
17663 X"$_am_arg" : 'X\(//\)$' \| \
17664 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17665 printf "%s\n" X"$_am_arg" |
17666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17667 s//\1/
17668 q
17669 }
17670 /^X\(\/\/\)[^/].*/{
17671 s//\1/
17672 q
17673 }
17674 /^X\(\/\/\)$/{
17675 s//\1/
17676 q
17677 }
17678 /^X\(\/\).*/{
17679 s//\1/
17680 q
17681 }
17682 s/.*/./; q'`/stamp-h$_am_stamp_count
17683 ;;
17684
17685 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17686 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17687 ;;
17688 esac
17689
17690
17691 case $ac_file$ac_mode in
17692 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17693 # Older Autoconf quotes --file arguments for eval, but not when files
17694 # are listed without --file. Let's play safe and only enable the eval
17695 # if we detect the quoting.
17696 # TODO: see whether this extra hack can be removed once we start
17697 # requiring Autoconf 2.70 or later.
17698 case $CONFIG_FILES in #(
17699 *\'*) :
17700 eval set x "$CONFIG_FILES" ;; #(
17701 *) :
17702 set x $CONFIG_FILES ;; #(
17703 *) :
17704 ;;
17705 esac
17706 shift
17707 # Used to flag and report bootstrapping failures.
17708 am_rc=0
17709 for am_mf
17710 do
17711 # Strip MF so we end up with the name of the file.
17712 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17713 # Check whether this is an Automake generated Makefile which includes
17714 # dependency-tracking related rules and includes.
17715 # Grep'ing the whole file directly is not great: AIX grep has a line
17716 # limit of 2048, but all sed's we know have understand at least 4000.
17717 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17718 || continue
17719 am_dirpart=`$as_dirname -- "$am_mf" ||
17720 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17721 X"$am_mf" : 'X\(//\)[^/]' \| \
17722 X"$am_mf" : 'X\(//\)$' \| \
17723 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17724 printf "%s\n" X"$am_mf" |
17725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17726 s//\1/
17727 q
17728 }
17729 /^X\(\/\/\)[^/].*/{
17730 s//\1/
17731 q
17732 }
17733 /^X\(\/\/\)$/{
17734 s//\1/
17735 q
17736 }
17737 /^X\(\/\).*/{
17738 s//\1/
17739 q
17740 }
17741 s/.*/./; q'`
17742 am_filepart=`$as_basename -- "$am_mf" ||
17743 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17744 X"$am_mf" : 'X\(//\)$' \| \
17745 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17746 printf "%s\n" X/"$am_mf" |
17747 sed '/^.*\/\([^/][^/]*\)\/*$/{
17748 s//\1/
17749 q
17750 }
17751 /^X\/\(\/\/\)$/{
17752 s//\1/
17753 q
17754 }
17755 /^X\/\(\/\).*/{
17756 s//\1/
17757 q
17758 }
17759 s/.*/./; q'`
17760 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17761 && sed -e '/# am--include-marker/d' "$am_filepart" \
17762 | $MAKE -f - am--depfiles" >&5
17763 (cd "$am_dirpart" \
17764 && sed -e '/# am--include-marker/d' "$am_filepart" \
17765 | $MAKE -f - am--depfiles) >&5 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } || am_rc=$?
17769 done
17770 if test $am_rc -ne 0; then
17771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17772 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17773 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17774 for automatic dependency tracking. If GNU make was not used, consider
17775 re-running the configure script with MAKE=\"gmake\" (or whatever is
17776 necessary). You can also try re-running configure with the
17777 '--disable-dependency-tracking' option to at least be able to build
17778 the package (albeit without support for automatic dependency tracking).
17779 See 'config.log' for more details" "$LINENO" 5; }
17780 fi
17781 { am_dirpart=; unset am_dirpart;}
17782 { am_filepart=; unset am_filepart;}
17783 { am_mf=; unset am_mf;}
17784 { am_rc=; unset am_rc;}
17785 rm -f conftest-deps.mk
17786 }
17787 ;;
17788 "libtool":C)
17789
17790 # See if we are running on zsh, and set the options that allow our
17791 # commands through without removal of \ escapes.
17792 if test -n "${ZSH_VERSION+set}"; then
17793 setopt NO_GLOB_SUBST
17794 fi
17795
17796 cfgfile=${ofile}T
17797 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17798 $RM "$cfgfile"
17799
17800 cat <<_LT_EOF >> "$cfgfile"
17801 #! $SHELL
17802 # Generated automatically by $as_me ($PACKAGE) $VERSION
17803 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17804
17805 # Provide generalized library-building support services.
17806 # Written by Gordon Matzigkeit, 1996
17807
17808 # Copyright (C) 2024 Free Software Foundation, Inc.
17809 # This is free software; see the source for copying conditions. There is NO
17810 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17811
17812 # GNU Libtool is free software; you can redistribute it and/or modify
17813 # it under the terms of the GNU General Public License as published by
17814 # the Free Software Foundation; either version 2 of the License, or
17815 # (at your option) any later version.
17816 #
17817 # As a special exception to the GNU General Public License, if you
17818 # distribute this file as part of a program or library that is built
17819 # using GNU Libtool, you may include this file under the same
17820 # distribution terms that you use for the rest of that program.
17821 #
17822 # GNU Libtool is distributed in the hope that it will be useful, but
17823 # WITHOUT ANY WARRANTY; without even the implied warranty of
17824 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17825 # GNU General Public License for more details.
17826 #
17827 # You should have received a copy of the GNU General Public License
17828 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17829
17830
17831 # The names of the tagged configurations supported by this script.
17832 available_tags=''
17833
17834 # Configured defaults for sys_lib_dlsearch_path munging.
17835 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17836
17837 # ### BEGIN LIBTOOL CONFIG
17838
17839 # Which release of libtool.m4 was used?
17840 macro_version=$macro_version
17841 macro_revision=$macro_revision
17842
17843 # Assembler program.
17844 AS=$lt_AS
17845
17846 # DLL creation program.
17847 DLLTOOL=$lt_DLLTOOL
17848
17849 # Object dumper program.
17850 OBJDUMP=$lt_OBJDUMP
17851
17852 # Whether or not to build shared libraries.
17853 build_libtool_libs=$enable_shared
17854
17855 # Whether or not to build static libraries.
17856 build_old_libs=$enable_static
17857
17858 # What type of objects to build.
17859 pic_mode=$pic_mode
17860
17861 # Whether or not to optimize for fast installation.
17862 fast_install=$enable_fast_install
17863
17864 # Shared archive member basename,for filename based shared library versioning on AIX.
17865 shared_archive_member_spec=$shared_archive_member_spec
17866
17867 # Shell to use when invoking shell scripts.
17868 SHELL=$lt_SHELL
17869
17870 # An echo program that protects backslashes.
17871 ECHO=$lt_ECHO
17872
17873 # The PATH separator for the build system.
17874 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17875
17876 # The host system.
17877 host_alias=$host_alias
17878 host=$host
17879 host_os=$host_os
17880
17881 # The build system.
17882 build_alias=$build_alias
17883 build=$build
17884 build_os=$build_os
17885
17886 # A sed program that does not truncate output.
17887 SED=$lt_SED
17888
17889 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17890 Xsed="\$SED -e 1s/^X//"
17891
17892 # A grep program that handles long lines.
17893 GREP=$lt_GREP
17894
17895 # An ERE matcher.
17896 EGREP=$lt_EGREP
17897
17898 # A literal string matcher.
17899 FGREP=$lt_FGREP
17900
17901 # A BSD- or MS-compatible name lister.
17902 NM=$lt_NM
17903
17904 # Whether we need soft or hard links.
17905 LN_S=$lt_LN_S
17906
17907 # What is the maximum length of a command?
17908 max_cmd_len=$max_cmd_len
17909
17910 # Object file suffix (normally "o").
17911 objext=$ac_objext
17912
17913 # Executable file suffix (normally "").
17914 exeext=$exeext
17915
17916 # whether the shell understands "unset".
17917 lt_unset=$lt_unset
17918
17919 # turn spaces into newlines.
17920 SP2NL=$lt_lt_SP2NL
17921
17922 # turn newlines into spaces.
17923 NL2SP=$lt_lt_NL2SP
17924
17925 # convert \$build file names to \$host format.
17926 to_host_file_cmd=$lt_cv_to_host_file_cmd
17927
17928 # convert \$build files to toolchain format.
17929 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17930
17931 # A file(cmd) program that detects file types.
17932 FILECMD=$lt_FILECMD
17933
17934 # Method to check whether dependent libraries are shared objects.
17935 deplibs_check_method=$lt_deplibs_check_method
17936
17937 # Command to use when deplibs_check_method = "file_magic".
17938 file_magic_cmd=$lt_file_magic_cmd
17939
17940 # How to find potential files when deplibs_check_method = "file_magic".
17941 file_magic_glob=$lt_file_magic_glob
17942
17943 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17944 want_nocaseglob=$lt_want_nocaseglob
17945
17946 # Command to associate shared and link libraries.
17947 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17948
17949 # The archiver.
17950 AR=$lt_AR
17951
17952 # Flags to create an archive (by configure).
17953 lt_ar_flags=$lt_ar_flags
17954
17955 # Flags to create an archive.
17956 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17957
17958 # How to feed a file listing to the archiver.
17959 archiver_list_spec=$lt_archiver_list_spec
17960
17961 # A symbol stripping program.
17962 STRIP=$lt_STRIP
17963
17964 # Commands used to install an old-style archive.
17965 RANLIB=$lt_RANLIB
17966 old_postinstall_cmds=$lt_old_postinstall_cmds
17967 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17968
17969 # Whether to use a lock for old archive extraction.
17970 lock_old_archive_extraction=$lock_old_archive_extraction
17971
17972 # A C compiler.
17973 LTCC=$lt_CC
17974
17975 # LTCC compiler flags.
17976 LTCFLAGS=$lt_CFLAGS
17977
17978 # Take the output of nm and produce a listing of raw symbols and C names.
17979 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17980
17981 # Transform the output of nm in a proper C declaration.
17982 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17983
17984 # Transform the output of nm into a list of symbols to manually relocate.
17985 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17986
17987 # Transform the output of nm in a C name address pair.
17988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17989
17990 # Transform the output of nm in a C name address pair when lib prefix is needed.
17991 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17992
17993 # The name lister interface.
17994 nm_interface=$lt_lt_cv_nm_interface
17995
17996 # Specify filename containing input files for \$NM.
17997 nm_file_list_spec=$lt_nm_file_list_spec
17998
17999 # The root where to search for dependent libraries,and where our libraries should be installed.
18000 lt_sysroot=$lt_sysroot
18001
18002 # Command to truncate a binary pipe.
18003 lt_truncate_bin=$lt_lt_cv_truncate_bin
18004
18005 # The name of the directory that contains temporary libtool files.
18006 objdir=$objdir
18007
18008 # Used to examine libraries when file_magic_cmd begins with "file".
18009 MAGIC_CMD=$MAGIC_CMD
18010
18011 # Must we lock files when doing compilation?
18012 need_locks=$lt_need_locks
18013
18014 # Manifest tool.
18015 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18016
18017 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18018 DSYMUTIL=$lt_DSYMUTIL
18019
18020 # Tool to change global to local symbols on Mac OS X.
18021 NMEDIT=$lt_NMEDIT
18022
18023 # Tool to manipulate fat objects and archives on Mac OS X.
18024 LIPO=$lt_LIPO
18025
18026 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18027 OTOOL=$lt_OTOOL
18028
18029 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18030 OTOOL64=$lt_OTOOL64
18031
18032 # Old archive suffix (normally "a").
18033 libext=$libext
18034
18035 # Shared library suffix (normally ".so").
18036 shrext_cmds=$lt_shrext_cmds
18037
18038 # The commands to extract the exported symbol list from a shared archive.
18039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18040
18041 # Variables whose values should be saved in libtool wrapper scripts and
18042 # restored at link time.
18043 variables_saved_for_relink=$lt_variables_saved_for_relink
18044
18045 # Do we need the "lib" prefix for modules?
18046 need_lib_prefix=$need_lib_prefix
18047
18048 # Do we need a version for libraries?
18049 need_version=$need_version
18050
18051 # Library versioning type.
18052 version_type=$version_type
18053
18054 # Shared library runtime path variable.
18055 runpath_var=$runpath_var
18056
18057 # Shared library path variable.
18058 shlibpath_var=$shlibpath_var
18059
18060 # Is shlibpath searched before the hard-coded library search path?
18061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18062
18063 # Format of library name prefix.
18064 libname_spec=$lt_libname_spec
18065
18066 # List of archive names. First name is the real one, the rest are links.
18067 # The last name is the one that the linker finds with -lNAME
18068 library_names_spec=$lt_library_names_spec
18069
18070 # The coded name of the library, if different from the real name.
18071 soname_spec=$lt_soname_spec
18072
18073 # Permission mode override for installation of shared libraries.
18074 install_override_mode=$lt_install_override_mode
18075
18076 # Command to use after installation of a shared archive.
18077 postinstall_cmds=$lt_postinstall_cmds
18078
18079 # Command to use after uninstallation of a shared archive.
18080 postuninstall_cmds=$lt_postuninstall_cmds
18081
18082 # Commands used to finish a libtool library installation in a directory.
18083 finish_cmds=$lt_finish_cmds
18084
18085 # As "finish_cmds", except a single script fragment to be evaled but
18086 # not shown.
18087 finish_eval=$lt_finish_eval
18088
18089 # Whether we should hardcode library paths into libraries.
18090 hardcode_into_libs=$hardcode_into_libs
18091
18092 # Compile-time system search path for libraries.
18093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18094
18095 # Detected run-time system search path for libraries.
18096 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18097
18098 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18099 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18100
18101 # Whether dlopen is supported.
18102 dlopen_support=$enable_dlopen
18103
18104 # Whether dlopen of programs is supported.
18105 dlopen_self=$enable_dlopen_self
18106
18107 # Whether dlopen of statically linked programs is supported.
18108 dlopen_self_static=$enable_dlopen_self_static
18109
18110 # Commands to strip libraries.
18111 old_striplib=$lt_old_striplib
18112 striplib=$lt_striplib
18113
18114
18115 # The linker used to build libraries.
18116 LD=$lt_LD
18117
18118 # How to create reloadable object files.
18119 reload_flag=$lt_reload_flag
18120 reload_cmds=$lt_reload_cmds
18121
18122 # Commands used to build an old-style archive.
18123 old_archive_cmds=$lt_old_archive_cmds
18124
18125 # A language specific compiler.
18126 CC=$lt_compiler
18127
18128 # Is the compiler the GNU compiler?
18129 with_gcc=$GCC
18130
18131 # Compiler flag to turn off builtin functions.
18132 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18133
18134 # Additional compiler flags for building library objects.
18135 pic_flag=$lt_lt_prog_compiler_pic
18136
18137 # How to pass a linker flag through the compiler.
18138 wl=$lt_lt_prog_compiler_wl
18139
18140 # Compiler flag to prevent dynamic linking.
18141 link_static_flag=$lt_lt_prog_compiler_static
18142
18143 # Does compiler simultaneously support -c and -o options?
18144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18145
18146 # Whether or not to add -lc for building shared libraries.
18147 build_libtool_need_lc=$archive_cmds_need_lc
18148
18149 # Whether or not to disallow shared libs when runtime libs are static.
18150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18151
18152 # Compiler flag to allow reflexive dlopens.
18153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18154
18155 # Compiler flag to generate shared objects directly from archives.
18156 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18157
18158 # Whether the compiler copes with passing no objects directly.
18159 compiler_needs_object=$lt_compiler_needs_object
18160
18161 # Create an old-style archive from a shared archive.
18162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18163
18164 # Create a temporary old-style archive to link instead of a shared archive.
18165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18166
18167 # Commands used to build a shared archive.
18168 archive_cmds=$lt_archive_cmds
18169 archive_expsym_cmds=$lt_archive_expsym_cmds
18170
18171 # Commands used to build a loadable module if different from building
18172 # a shared archive.
18173 module_cmds=$lt_module_cmds
18174 module_expsym_cmds=$lt_module_expsym_cmds
18175
18176 # Whether we are building with GNU ld or not.
18177 with_gnu_ld=$lt_with_gnu_ld
18178
18179 # Flag that allows shared libraries with undefined symbols to be built.
18180 allow_undefined_flag=$lt_allow_undefined_flag
18181
18182 # Flag that enforces no undefined symbols.
18183 no_undefined_flag=$lt_no_undefined_flag
18184
18185 # Flag to hardcode \$libdir into a binary during linking.
18186 # This must work even if \$libdir does not exist
18187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18188
18189 # Whether we need a single "-rpath" flag with a separated argument.
18190 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18191
18192 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18193 # DIR into the resulting binary.
18194 hardcode_direct=$hardcode_direct
18195
18196 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18197 # DIR into the resulting binary and the resulting library dependency is
18198 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
18199 # library is relocated.
18200 hardcode_direct_absolute=$hardcode_direct_absolute
18201
18202 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18203 # into the resulting binary.
18204 hardcode_minus_L=$hardcode_minus_L
18205
18206 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18207 # into the resulting binary.
18208 hardcode_shlibpath_var=$hardcode_shlibpath_var
18209
18210 # Set to "yes" if building a shared library automatically hardcodes DIR
18211 # into the library and all subsequent libraries and executables linked
18212 # against it.
18213 hardcode_automatic=$hardcode_automatic
18214
18215 # Set to yes if linker adds runtime paths of dependent libraries
18216 # to runtime path list.
18217 inherit_rpath=$inherit_rpath
18218
18219 # Whether libtool must link a program against all its dependency libraries.
18220 link_all_deplibs=$link_all_deplibs
18221
18222 # Set to "yes" if exported symbols are required.
18223 always_export_symbols=$always_export_symbols
18224
18225 # The commands to list exported symbols.
18226 export_symbols_cmds=$lt_export_symbols_cmds
18227
18228 # Symbols that should not be listed in the preloaded symbols.
18229 exclude_expsyms=$lt_exclude_expsyms
18230
18231 # Symbols that must always be exported.
18232 include_expsyms=$lt_include_expsyms
18233
18234 # Commands necessary for linking programs (against libraries) with templates.
18235 prelink_cmds=$lt_prelink_cmds
18236
18237 # Commands necessary for finishing linking programs.
18238 postlink_cmds=$lt_postlink_cmds
18239
18240 # Specify filename containing input files.
18241 file_list_spec=$lt_file_list_spec
18242
18243 # How to hardcode a shared library path into an executable.
18244 hardcode_action=$hardcode_action
18245
18246 # ### END LIBTOOL CONFIG
18247
18248 _LT_EOF
18249
18250 cat <<'_LT_EOF' >> "$cfgfile"
18251
18252 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18253
18254 # func_munge_path_list VARIABLE PATH
18255 # -----------------------------------
18256 # VARIABLE is name of variable containing _space_ separated list of
18257 # directories to be munged by the contents of PATH, which is string
18258 # having a format:
18259 # "DIR[:DIR]:"
18260 # string "DIR[ DIR]" will be prepended to VARIABLE
18261 # ":DIR[:DIR]"
18262 # string "DIR[ DIR]" will be appended to VARIABLE
18263 # "DIRP[:DIRP]::[DIRA:]DIRA"
18264 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18265 # "DIRA[ DIRA]" will be appended to VARIABLE
18266 # "DIR[:DIR]"
18267 # VARIABLE will be replaced by "DIR[ DIR]"
18268 func_munge_path_list ()
18269 {
18270 case x$2 in
18271 x)
18272 ;;
18273 *:)
18274 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18275 ;;
18276 x:*)
18277 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18278 ;;
18279 *::*)
18280 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18281 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18282 ;;
18283 *)
18284 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18285 ;;
18286 esac
18287 }
18288
18289
18290 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18291 func_cc_basename ()
18292 {
18293 for cc_temp in $*""; do
18294 case $cc_temp in
18295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18297 \-*) ;;
18298 *) break;;
18299 esac
18300 done
18301 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18302 }
18303
18304
18305 # ### END FUNCTIONS SHARED WITH CONFIGURE
18306
18307 _LT_EOF
18308
18309 case $host_os in
18310 aix3*)
18311 cat <<\_LT_EOF >> "$cfgfile"
18312 # AIX sometimes has problems with the GCC collect2 program. For some
18313 # reason, if we set the COLLECT_NAMES environment variable, the problems
18314 # vanish in a puff of smoke.
18315 if test set != "${COLLECT_NAMES+set}"; then
18316 COLLECT_NAMES=
18317 export COLLECT_NAMES
18318 fi
18319 _LT_EOF
18320 ;;
18321 esac
18322
18323
18324
18325 ltmain=$ac_aux_dir/ltmain.sh
18326
18327
18328 # We use sed instead of cat because bash on DJGPP gets confused if
18329 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18330 # text mode, it properly converts lines to CR/LF. This bash problem
18331 # is reportedly fixed, but why not run on old versions too?
18332 $SED '$q' "$ltmain" >> "$cfgfile" \
18333 || (rm -f "$cfgfile"; exit 1)
18334
18335 mv -f "$cfgfile" "$ofile" ||
18336 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18337 chmod +x "$ofile"
18338
18339 ## KPSE_DLL_NAME: Specify the DLL name
18340 if test "x$kpse_dll_name" != x; then
18341 $SED '/^soname_spec=/a\
18342 ## KPSE_DLL_NAME: Specify the DLL name\
18343 soname_spec='$kpse_dll_name'.dll\
18344 ' "$ofile" >"$cfgfile"
18345 mv "$cfgfile" "$ofile" ||
18346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18347 chmod +x "$ofile"
18348 fi
18349 ;;
18350
18351 esac
18352 done # for ac_tag
18353
18354
18355 as_fn_exit 0
18356 _ACEOF
18357 ac_clean_files=$ac_clean_files_save
18358
18359 test $ac_write_fail = 0 ||
18360 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18361
18362
18363 # configure is writing to config.log, and then calls config.status.
18364 # config.status does its own redirection, appending to config.log.
18365 # Unfortunately, on DOS this fails, as config.log is still kept open
18366 # by configure, so config.status won't be able to write to it; its
18367 # output is simply discarded. So we exec the FD to /dev/null,
18368 # effectively closing config.log, so it can be properly (re)opened and
18369 # appended to by config.status. When coming back to configure, we
18370 # need to make the FD available again.
18371 if test "$no_create" != yes; then
18372 ac_cs_success=:
18373 ac_config_status_args=
18374 test "$silent" = yes &&
18375 ac_config_status_args="$ac_config_status_args --quiet"
18376 exec 5>/dev/null
18377 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18378 exec 5>>config.log
18379 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18380 # would make configure fail if this is the last instruction.
18381 $ac_cs_success || as_fn_exit 1
18382 fi
18383 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18385 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18386 fi
18387
18388