Debian Codegraph @

texk/dtl/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 dtl (TeX Live) 0.6.0.
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='dtl (TeX Live)'
616 PACKAGE_TARNAME='dtl--tex-live-'
617 PACKAGE_VERSION='0.6.0'
618 PACKAGE_STRING='dtl (TeX Live) 0.6.0'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="dv2dt.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 KPATHSEA_RULE
661 KPATHSEA_DEPEND
662 KPATHSEA_LIBS
663 KPATHSEA_INCLUDES
664 PKG_CONFIG
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 FILECMD
674 LN_S
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 EGREP
681 GREP
682 SED
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LIBTOOL
692 OBJDUMP
693 DLLTOOL
694 AS
695 ac_ct_AR
696 AR
697 WARNING_CFLAGS
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 am__xargs_n
718 am__rm_f_notfound
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 CSCOPE
724 ETAGS
725 CTAGS
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 runstatedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL
788 am__quote'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_maintainer_mode
794 enable_dependency_tracking
795 enable_compiler_warnings
796 enable_shared
797 enable_static
798 enable_pic
799 with_pic
800 enable_fast_install
801 enable_aix_soname
802 with_aix_soname
803 with_gnu_ld
804 with_sysroot
805 enable_libtool_lock
806 enable_largefile
807 with_system_kpathsea
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 dtl (TeX Live) 0.6.0 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 [DATAROOTDIR/doc/dtl--tex-live-]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1421 _ACEOF
1422
1423 cat <<\_ACEOF
1424
1425 Program names:
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429
1430 System types:
1431 --build=BUILD configure for building on BUILD [guessed]
1432 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1433 _ACEOF
1434 fi
1435
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of dtl (TeX Live) 0.6.0:";;
1439 esac
1440 cat <<\_ACEOF
1441
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-silent-rules less verbose build output (undo: "make V=1")
1447 --disable-silent-rules verbose build output (undo: "make V=0")
1448 --enable-maintainer-mode
1449 enable make rules and dependencies not useful (and
1450 sometimes confusing) to the casual installer
1451 --enable-dependency-tracking
1452 do not reject slow dependency extractors
1453 --disable-dependency-tracking
1454 speeds up one-time build
1455 --enable-compiler-warnings=[no|min|yes|max|all]
1456 Turn on compiler warnings [default: yes if
1457 maintainer-mode, min otherwise]
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
1464 --enable-aix-soname=aix|svr4|both
1465 shared library versioning (aka "SONAME") variant to
1466 provide on AIX, [default=aix].
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --disable-largefile omit support for large files
1469 --enable-year2038 support timestamps after 2038
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1476 compiler's sysroot if not specified).
1477 --with-system-kpathsea use installed kpathsea headers and library (requires
1478 pkg-config)
1479
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 LT_SYS_LIBRARY_PATH
1489 User-defined run-time library search path.
1490
1491 Use these variables to override the choices made by 'configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <[email protected]>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" ||
1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504 continue
1505 ac_builddir=.
1506
1507 case "$ac_dir" in
1508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *)
1510 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1511 # A ".." for each directory in $ac_dir_suffix.
1512 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1513 case $ac_top_builddir_sub in
1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 esac ;;
1517 esac
1518 ac_abs_top_builddir=$ac_pwd
1519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520 # for backward compatibility:
1521 ac_top_builddir=$ac_top_build_prefix
1522
1523 case $srcdir in
1524 .) # We are building in place.
1525 ac_srcdir=.
1526 ac_top_srcdir=$ac_top_builddir_sub
1527 ac_abs_top_srcdir=$ac_pwd ;;
1528 [\\/]* | ?:[\\/]* ) # Absolute name.
1529 ac_srcdir=$srcdir$ac_dir_suffix;
1530 ac_top_srcdir=$srcdir
1531 ac_abs_top_srcdir=$srcdir ;;
1532 *) # Relative name.
1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534 ac_top_srcdir=$ac_top_build_prefix$srcdir
1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 esac
1537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538
1539 cd "$ac_dir" || { ac_status=$?; continue; }
1540 # Check for configure.gnu first; this name is used for a wrapper for
1541 # Metaconfig's "Configure" on case-insensitive file systems.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1548 else
1549 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1552 done
1553 fi
1554
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557 cat <<\_ACEOF
1558 dtl (TeX Live) configure 0.6.0
1559 generated by GNU Autoconf 2.72
1560
1561 Copyright (C) 2023 Free Software Foundation, Inc.
1562 This configure script is free software; the Free Software Foundation
1563 gives unlimited permission to copy, distribute and modify it.
1564 _ACEOF
1565 exit
1566 fi
1567
1568 ## ------------------------ ##
1569 ## Autoconf initialization. ##
1570 ## ------------------------ ##
1571
1572 # ac_fn_c_try_compile LINENO
1573 # --------------------------
1574 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_compile ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext conftest.beam
1579 if { { ac_try="$ac_compile"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 printf "%s\n" "$ac_try_echo"; } >&5
1586 (eval "$ac_compile") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest.$ac_objext
1598 then :
1599 ac_retval=0
1600 else case e in #(
1601 e) printf "%s\n" "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1 ;;
1605 esac
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 printf %s "checking for $2... " >&6; }
1621 if eval test \${$3+y}
1622 then :
1623 printf %s "(cached) " >&6
1624 else case e in #(
1625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"
1631 then :
1632 eval "$3=yes"
1633 else case e in #(
1634 e) eval "$3=no" ;;
1635 esac
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1638 esac
1639 fi
1640 eval ac_res=\$$3
1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 printf "%s\n" "$ac_res" >&6; }
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645 } # ac_fn_c_check_header_compile
1646
1647 # ac_fn_c_try_link LINENO
1648 # -----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_link ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1654 if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 printf "%s\n" "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest$ac_exeext && {
1673 test "$cross_compiling" = yes ||
1674 test -x conftest$ac_exeext
1675 }
1676 then :
1677 ac_retval=0
1678 else case e in #(
1679 e) printf "%s\n" "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1 ;;
1683 esac
1684 fi
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_link
1694
1695 # ac_fn_c_check_func LINENO FUNC VAR
1696 # ----------------------------------
1697 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1698 ac_fn_c_check_func ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 printf %s "checking for $2... " >&6; }
1703 if eval test \${$3+y}
1704 then :
1705 printf %s "(cached) " >&6
1706 else case e in #(
1707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1711 #define $2 innocuous_$2
1712
1713 /* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char $2 (void); below. */
1715
1716 #include <limits.h>
1717 #undef $2
1718
1719 /* Override any GCC internal prototype to avoid an error.
1720 Use char because int might match the return type of a GCC
1721 builtin and then its argument prototype would still apply. */
1722 #ifdef __cplusplus
1723 extern "C"
1724 #endif
1725 char $2 (void);
1726 /* The GNU C library defines this for functions which it implements
1727 to always fail with ENOSYS. Some functions are actually named
1728 something starting with __ and the normal name is an alias. */
1729 #if defined __stub_$2 || defined __stub___$2
1730 choke me
1731 #endif
1732
1733 int
1734 main (void)
1735 {
1736 return $2 ();
1737 ;
1738 return 0;
1739 }
1740 _ACEOF
1741 if ac_fn_c_try_link "$LINENO"
1742 then :
1743 eval "$3=yes"
1744 else case e in #(
1745 e) eval "$3=no" ;;
1746 esac
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1749 conftest$ac_exeext conftest.$ac_ext ;;
1750 esac
1751 fi
1752 eval ac_res=\$$3
1753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 printf "%s\n" "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_func
1758
1759 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1760 # -------------------------------------------
1761 # Tests whether TYPE exists after having included INCLUDES, setting cache
1762 # variable VAR accordingly.
1763 ac_fn_c_check_type ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 printf %s "checking for $2... " >&6; }
1768 if eval test \${$3+y}
1769 then :
1770 printf %s "(cached) " >&6
1771 else case e in #(
1772 e) eval "$3=no"
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 int
1777 main (void)
1778 {
1779 if (sizeof ($2))
1780 return 0;
1781 ;
1782 return 0;
1783 }
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"
1786 then :
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 int
1791 main (void)
1792 {
1793 if (sizeof (($2)))
1794 return 0;
1795 ;
1796 return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"
1800 then :
1801
1802 else case e in #(
1803 e) eval "$3=yes" ;;
1804 esac
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1809 esac
1810 fi
1811 eval ac_res=\$$3
1812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 printf "%s\n" "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_type
1817
1818 # ac_fn_c_find_intX_t LINENO BITS VAR
1819 # -----------------------------------
1820 # Finds a signed integer type with width BITS, setting cache variable VAR
1821 # accordingly.
1822 ac_fn_c_find_intX_t ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1826 printf %s "checking for int$2_t... " >&6; }
1827 if eval test \${$3+y}
1828 then :
1829 printf %s "(cached) " >&6
1830 else case e in #(
1831 e) eval "$3=no"
1832 # Order is important - never check a type that is potentially smaller
1833 # than half of the expected target width.
1834 for ac_type in int$2_t 'int' 'long int' \
1835 'long long int' 'short int' 'signed char'; do
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $ac_includes_default
1839 enum { N = $2 / 2 - 1 };
1840 int
1841 main (void)
1842 {
1843 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1844 test_array [0] = 0;
1845 return test_array [0];
1846
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"
1852 then :
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 $ac_includes_default
1856 enum { N = $2 / 2 - 1 };
1857 int
1858 main (void)
1859 {
1860 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1861 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1862 test_array [0] = 0;
1863 return test_array [0];
1864
1865 ;
1866 return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"
1870 then :
1871
1872 else case e in #(
1873 e) case $ac_type in #(
1874 int$2_t) :
1875 eval "$3=yes" ;; #(
1876 *) :
1877 eval "$3=\$ac_type" ;;
1878 esac ;;
1879 esac
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1884 if eval test \"x\$"$3"\" = x"no"
1885 then :
1886
1887 else case e in #(
1888 e) break ;;
1889 esac
1890 fi
1891 done ;;
1892 esac
1893 fi
1894 eval ac_res=\$$3
1895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 printf "%s\n" "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_find_intX_t
1900
1901 # ac_fn_c_find_uintX_t LINENO BITS VAR
1902 # ------------------------------------
1903 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1904 # accordingly.
1905 ac_fn_c_find_uintX_t ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1909 printf %s "checking for uint$2_t... " >&6; }
1910 if eval test \${$3+y}
1911 then :
1912 printf %s "(cached) " >&6
1913 else case e in #(
1914 e) eval "$3=no"
1915 # Order is important - never check a type that is potentially smaller
1916 # than half of the expected target width.
1917 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1918 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $ac_includes_default
1922 int
1923 main (void)
1924 {
1925 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1926 test_array [0] = 0;
1927 return test_array [0];
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"
1934 then :
1935 case $ac_type in #(
1936 uint$2_t) :
1937 eval "$3=yes" ;; #(
1938 *) :
1939 eval "$3=\$ac_type" ;;
1940 esac
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1943 if eval test \"x\$"$3"\" = x"no"
1944 then :
1945
1946 else case e in #(
1947 e) break ;;
1948 esac
1949 fi
1950 done ;;
1951 esac
1952 fi
1953 eval ac_res=\$$3
1954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 printf "%s\n" "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958 } # ac_fn_c_find_uintX_t
1959
1960 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1961 # ------------------------------------------------------------------
1962 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1963 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1964 ac_fn_check_decl ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 as_decl_name=`echo $2|sed 's/ *(.*//'`
1968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1969 printf %s "checking whether $as_decl_name is declared... " >&6; }
1970 if eval test \${$3+y}
1971 then :
1972 printf %s "(cached) " >&6
1973 else case e in #(
1974 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1975 eval ac_save_FLAGS=\$$6
1976 as_fn_append $6 " $5"
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 $4
1980 int
1981 main (void)
1982 {
1983 #ifndef $as_decl_name
1984 #ifdef __cplusplus
1985 (void) $as_decl_use;
1986 #else
1987 (void) $as_decl_name;
1988 #endif
1989 #endif
1990
1991 ;
1992 return 0;
1993 }
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"
1996 then :
1997 eval "$3=yes"
1998 else case e in #(
1999 e) eval "$3=no" ;;
2000 esac
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2003 eval $6=\$ac_save_FLAGS
2004 ;;
2005 esac
2006 fi
2007 eval ac_res=\$$3
2008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 printf "%s\n" "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012 } # ac_fn_check_decl
2013
2014 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2015 # ----------------------------------------------------
2016 # Tries to find if the field MEMBER exists in type AGGR, after including
2017 # INCLUDES, setting cache variable VAR accordingly.
2018 ac_fn_c_check_member ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2022 printf %s "checking for $2.$3... " >&6; }
2023 if eval test \${$4+y}
2024 then :
2025 printf %s "(cached) " >&6
2026 else case e in #(
2027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $5
2030 int
2031 main (void)
2032 {
2033 static $2 ac_aggr;
2034 if (ac_aggr.$3)
2035 return 0;
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"
2041 then :
2042 eval "$4=yes"
2043 else case e in #(
2044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $5
2047 int
2048 main (void)
2049 {
2050 static $2 ac_aggr;
2051 if (sizeof ac_aggr.$3)
2052 return 0;
2053 ;
2054 return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"
2058 then :
2059 eval "$4=yes"
2060 else case e in #(
2061 e) eval "$4=no" ;;
2062 esac
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2065 esac
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2068 esac
2069 fi
2070 eval ac_res=\$$4
2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 printf "%s\n" "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_member
2076
2077 # ac_fn_c_try_run LINENO
2078 # ----------------------
2079 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2080 # executables *can* be run.
2081 ac_fn_c_try_run ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 if { { ac_try="$ac_link"
2085 case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088 esac
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 printf "%s\n" "$ac_try_echo"; } >&5
2091 (eval "$ac_link") 2>&5
2092 ac_status=$?
2093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2095 { { case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098 esac
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 printf "%s\n" "$ac_try_echo"; } >&5
2101 (eval "$ac_try") 2>&5
2102 ac_status=$?
2103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; }; }
2105 then :
2106 ac_retval=0
2107 else case e in #(
2108 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2109 printf "%s\n" "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2111
2112 ac_retval=$ac_status ;;
2113 esac
2114 fi
2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status $ac_retval
2118
2119 } # ac_fn_c_try_run
2120
2121 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2122 # --------------------------------------------
2123 # Tries to find the compile-time value of EXPR in a program that includes
2124 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2125 # computed
2126 ac_fn_c_compute_int ()
2127 {
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if test "$cross_compiling" = yes; then
2130 # Depending upon the size, compute the lo and hi bounds.
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 $4
2134 int
2135 main (void)
2136 {
2137 static int test_array [1 - 2 * !(($2) >= 0)];
2138 test_array [0] = 0;
2139 return test_array [0];
2140
2141 ;
2142 return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"
2146 then :
2147 ac_lo=0 ac_mid=0
2148 while :; do
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2151 $4
2152 int
2153 main (void)
2154 {
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 test_array [0] = 0;
2157 return test_array [0];
2158
2159 ;
2160 return 0;
2161 }
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"
2164 then :
2165 ac_hi=$ac_mid; break
2166 else case e in #(
2167 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2168 if test $ac_lo -le $ac_mid; then
2169 ac_lo= ac_hi=
2170 break
2171 fi
2172 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2173 esac
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2176 done
2177 else case e in #(
2178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 $4
2181 int
2182 main (void)
2183 {
2184 static int test_array [1 - 2 * !(($2) < 0)];
2185 test_array [0] = 0;
2186 return test_array [0];
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"
2193 then :
2194 ac_hi=-1 ac_mid=-1
2195 while :; do
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 $4
2199 int
2200 main (void)
2201 {
2202 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206 ;
2207 return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"
2211 then :
2212 ac_lo=$ac_mid; break
2213 else case e in #(
2214 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2215 if test $ac_mid -le $ac_hi; then
2216 ac_lo= ac_hi=
2217 break
2218 fi
2219 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2220 esac
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2223 done
2224 else case e in #(
2225 e) ac_lo= ac_hi= ;;
2226 esac
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2229 esac
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2232 # Binary search between lo and hi bounds.
2233 while test "x$ac_lo" != "x$ac_hi"; do
2234 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2237 $4
2238 int
2239 main (void)
2240 {
2241 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2242 test_array [0] = 0;
2243 return test_array [0];
2244
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"
2250 then :
2251 ac_hi=$ac_mid
2252 else case e in #(
2253 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2254 esac
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2257 done
2258 case $ac_lo in #((
2259 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2260 '') ac_retval=1 ;;
2261 esac
2262 else
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 $4
2266 static long int longval (void) { return $2; }
2267 static unsigned long int ulongval (void) { return $2; }
2268 #include <stdio.h>
2269 #include <stdlib.h>
2270 int
2271 main (void)
2272 {
2273
2274 FILE *f = fopen ("conftest.val", "w");
2275 if (! f)
2276 return 1;
2277 if (($2) < 0)
2278 {
2279 long int i = longval ();
2280 if (i != ($2))
2281 return 1;
2282 fprintf (f, "%ld", i);
2283 }
2284 else
2285 {
2286 unsigned long int i = ulongval ();
2287 if (i != ($2))
2288 return 1;
2289 fprintf (f, "%lu", i);
2290 }
2291 /* Do not output a trailing newline, as this causes \r\n confusion
2292 on some platforms. */
2293 return ferror (f) || fclose (f) != 0;
2294
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_run "$LINENO"
2300 then :
2301 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2302 else case e in #(
2303 e) ac_retval=1 ;;
2304 esac
2305 fi
2306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2307 conftest.$ac_objext conftest.beam conftest.$ac_ext
2308 rm -f conftest.val
2309
2310 fi
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 as_fn_set_status $ac_retval
2313
2314 } # ac_fn_c_compute_int
2315 ac_configure_args_raw=
2316 for ac_arg
2317 do
2318 case $ac_arg in
2319 *\'*)
2320 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 esac
2322 as_fn_append ac_configure_args_raw " '$ac_arg'"
2323 done
2324
2325 case $ac_configure_args_raw in
2326 *$as_nl*)
2327 ac_safe_unquote= ;;
2328 *)
2329 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2330 ac_unsafe_a="$ac_unsafe_z#~"
2331 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2332 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2333 esac
2334
2335 cat >config.log <<_ACEOF
2336 This file contains any messages produced by compilers while
2337 running configure, to aid debugging if configure makes a mistake.
2338
2339 It was created by dtl (TeX Live) $as_me 0.6.0, which was
2340 generated by GNU Autoconf 2.72. Invocation command line was
2341
2342 $ $0$ac_configure_args_raw
2343
2344 _ACEOF
2345 exec 5>>config.log
2346 {
2347 cat <<_ASUNAME
2348 ## --------- ##
2349 ## Platform. ##
2350 ## --------- ##
2351
2352 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2353 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2354 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2355 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2356 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2357
2358 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2359 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2360
2361 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2362 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2363 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2364 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2365 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2366 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2367 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2368
2369 _ASUNAME
2370
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374 IFS=$as_save_IFS
2375 case $as_dir in #(((
2376 '') as_dir=./ ;;
2377 */) ;;
2378 *) as_dir=$as_dir/ ;;
2379 esac
2380 printf "%s\n" "PATH: $as_dir"
2381 done
2382 IFS=$as_save_IFS
2383
2384 } >&5
2385
2386 cat >&5 <<_ACEOF
2387
2388
2389 ## ----------- ##
2390 ## Core tests. ##
2391 ## ----------- ##
2392
2393 _ACEOF
2394
2395
2396 # Keep a trace of the command line.
2397 # Strip out --no-create and --no-recursion so they do not pile up.
2398 # Strip out --silent because we don't want to record it for future runs.
2399 # Also quote any args containing shell meta-characters.
2400 # Make two passes to allow for proper duplicate-argument suppression.
2401 ac_configure_args=
2402 ac_configure_args0=
2403 ac_configure_args1=
2404 ac_must_keep_next=false
2405 for ac_pass in 1 2
2406 do
2407 for ac_arg
2408 do
2409 case $ac_arg in
2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2412 | -silent | --silent | --silen | --sile | --sil)
2413 continue ;;
2414 *\'*)
2415 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 esac
2417 case $ac_pass in
2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2419 2)
2420 as_fn_append ac_configure_args1 " '$ac_arg'"
2421 if test $ac_must_keep_next = true; then
2422 ac_must_keep_next=false # Got value, back to normal.
2423 else
2424 case $ac_arg in
2425 *=* | --config-cache | -C | -disable-* | --disable-* \
2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2428 | -with-* | --with-* | -without-* | --without-* | --x)
2429 case "$ac_configure_args0 " in
2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2431 esac
2432 ;;
2433 -* ) ac_must_keep_next=true ;;
2434 esac
2435 fi
2436 as_fn_append ac_configure_args " '$ac_arg'"
2437 ;;
2438 esac
2439 done
2440 done
2441 { ac_configure_args0=; unset ac_configure_args0;}
2442 { ac_configure_args1=; unset ac_configure_args1;}
2443
2444 # When interrupted or exit'd, cleanup temporary files, and complete
2445 # config.log. We remove comments because anyway the quotes in there
2446 # would cause problems or look ugly.
2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2449 trap 'exit_status=$?
2450 # Sanitize IFS.
2451 IFS=" "" $as_nl"
2452 # Save into config.log some information that might help in debugging.
2453 {
2454 echo
2455
2456 printf "%s\n" "## ---------------- ##
2457 ## Cache variables. ##
2458 ## ---------------- ##"
2459 echo
2460 # The following way of writing the cache mishandles newlines in values,
2461 (
2462 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2463 eval ac_val=\$$ac_var
2464 case $ac_val in #(
2465 *${as_nl}*)
2466 case $ac_var in #(
2467 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2468 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2469 esac
2470 case $ac_var in #(
2471 _ | IFS | as_nl) ;; #(
2472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2473 *) { eval $ac_var=; unset $ac_var;} ;;
2474 esac ;;
2475 esac
2476 done
2477 (set) 2>&1 |
2478 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2479 *${as_nl}ac_space=\ *)
2480 sed -n \
2481 "s/'\''/'\''\\\\'\'''\''/g;
2482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2483 ;; #(
2484 *)
2485 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2486 ;;
2487 esac |
2488 sort
2489 )
2490 echo
2491
2492 printf "%s\n" "## ----------------- ##
2493 ## Output variables. ##
2494 ## ----------------- ##"
2495 echo
2496 for ac_var in $ac_subst_vars
2497 do
2498 eval ac_val=\$$ac_var
2499 case $ac_val in
2500 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2501 esac
2502 printf "%s\n" "$ac_var='\''$ac_val'\''"
2503 done | sort
2504 echo
2505
2506 if test -n "$ac_subst_files"; then
2507 printf "%s\n" "## ------------------- ##
2508 ## File substitutions. ##
2509 ## ------------------- ##"
2510 echo
2511 for ac_var in $ac_subst_files
2512 do
2513 eval ac_val=\$$ac_var
2514 case $ac_val in
2515 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516 esac
2517 printf "%s\n" "$ac_var='\''$ac_val'\''"
2518 done | sort
2519 echo
2520 fi
2521
2522 if test -s confdefs.h; then
2523 printf "%s\n" "## ----------- ##
2524 ## confdefs.h. ##
2525 ## ----------- ##"
2526 echo
2527 cat confdefs.h
2528 echo
2529 fi
2530 test "$ac_signal" != 0 &&
2531 printf "%s\n" "$as_me: caught signal $ac_signal"
2532 printf "%s\n" "$as_me: exit $exit_status"
2533 } >&5
2534 rm -f core *.core core.conftest.* &&
2535 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2536 exit $exit_status
2537 ' 0
2538 for ac_signal in 1 2 13 15; do
2539 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2540 done
2541 ac_signal=0
2542
2543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2544 rm -f -r conftest* confdefs.h
2545
2546 printf "%s\n" "/* confdefs.h */" > confdefs.h
2547
2548 # Predefined preprocessor variables.
2549
2550 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2551
2552 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2553
2554 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2555
2556 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2557
2558 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2559
2560 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2561
2562
2563 # Let the site file select an alternate cache file if it wants to.
2564 # Prefer an explicitly selected file to automatically selected ones.
2565 if test -n "$CONFIG_SITE"; then
2566 ac_site_files="$CONFIG_SITE"
2567 elif test "x$prefix" != xNONE; then
2568 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2569 else
2570 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2571 fi
2572
2573 for ac_site_file in $ac_site_files
2574 do
2575 case $ac_site_file in #(
2576 */*) :
2577 ;; #(
2578 *) :
2579 ac_site_file=./$ac_site_file ;;
2580 esac
2581 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2583 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2584 sed 's/^/| /' "$ac_site_file" >&5
2585 . "$ac_site_file" \
2586 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2587 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2588 as_fn_error $? "failed to load site script $ac_site_file
2589 See 'config.log' for more details" "$LINENO" 5; }
2590 fi
2591 done
2592
2593 if test -r "$cache_file"; then
2594 # Some versions of bash will fail to source /dev/null (special files
2595 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2596 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2598 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2599 case $cache_file in
2600 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2601 *) . "./$cache_file";;
2602 esac
2603 fi
2604 else
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2606 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2607 >$cache_file
2608 fi
2609
2610 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2611 # Test code for whether the C compiler supports C89 (global declarations)
2612 ac_c_conftest_c89_globals='
2613 /* Does the compiler advertise C89 conformance?
2614 Do not test the value of __STDC__, because some compilers set it to 0
2615 while being otherwise adequately conformant. */
2616 #if !defined __STDC__
2617 # error "Compiler does not advertise C89 conformance"
2618 #endif
2619
2620 #include <stddef.h>
2621 #include <stdarg.h>
2622 struct stat;
2623 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2624 struct buf { int x; };
2625 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2626 static char *e (char **p, int i)
2627 {
2628 return p[i];
2629 }
2630 static char *f (char * (*g) (char **, int), char **p, ...)
2631 {
2632 char *s;
2633 va_list v;
2634 va_start (v,p);
2635 s = g (p, va_arg (v,int));
2636 va_end (v);
2637 return s;
2638 }
2639
2640 /* C89 style stringification. */
2641 #define noexpand_stringify(a) #a
2642 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2643
2644 /* C89 style token pasting. Exercises some of the corner cases that
2645 e.g. old MSVC gets wrong, but not very hard. */
2646 #define noexpand_concat(a,b) a##b
2647 #define expand_concat(a,b) noexpand_concat(a,b)
2648 extern int vA;
2649 extern int vbee;
2650 #define aye A
2651 #define bee B
2652 int *pvA = &expand_concat(v,aye);
2653 int *pvbee = &noexpand_concat(v,bee);
2654
2655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2656 function prototypes and stuff, but not \xHH hex character constants.
2657 These do not provoke an error unfortunately, instead are silently treated
2658 as an "x". The following induces an error, until -std is added to get
2659 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2660 array size at least. It is necessary to write \x00 == 0 to get something
2661 that is true only with -std. */
2662 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2663
2664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2665 inside strings and character constants. */
2666 #define FOO(x) '\''x'\''
2667 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2668
2669 int test (int i, double x);
2670 struct s1 {int (*f) (int a);};
2671 struct s2 {int (*f) (double a);};
2672 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2673 int, int);'
2674
2675 # Test code for whether the C compiler supports C89 (body of main).
2676 ac_c_conftest_c89_main='
2677 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2678 '
2679
2680 # Test code for whether the C compiler supports C99 (global declarations)
2681 ac_c_conftest_c99_globals='
2682 /* Does the compiler advertise C99 conformance? */
2683 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2684 # error "Compiler does not advertise C99 conformance"
2685 #endif
2686
2687 // See if C++-style comments work.
2688
2689 #include <stdbool.h>
2690 extern int puts (const char *);
2691 extern int printf (const char *, ...);
2692 extern int dprintf (int, const char *, ...);
2693 extern void *malloc (size_t);
2694 extern void free (void *);
2695
2696 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2697 // dprintf is used instead of fprintf to avoid needing to declare
2698 // FILE and stderr.
2699 #define debug(...) dprintf (2, __VA_ARGS__)
2700 #define showlist(...) puts (#__VA_ARGS__)
2701 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2702 static void
2703 test_varargs_macros (void)
2704 {
2705 int x = 1234;
2706 int y = 5678;
2707 debug ("Flag");
2708 debug ("X = %d\n", x);
2709 showlist (The first, second, and third items.);
2710 report (x>y, "x is %d but y is %d", x, y);
2711 }
2712
2713 // Check long long types.
2714 #define BIG64 18446744073709551615ull
2715 #define BIG32 4294967295ul
2716 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2717 #if !BIG_OK
2718 #error "your preprocessor is broken"
2719 #endif
2720 #if BIG_OK
2721 #else
2722 #error "your preprocessor is broken"
2723 #endif
2724 static long long int bignum = -9223372036854775807LL;
2725 static unsigned long long int ubignum = BIG64;
2726
2727 struct incomplete_array
2728 {
2729 int datasize;
2730 double data[];
2731 };
2732
2733 struct named_init {
2734 int number;
2735 const wchar_t *name;
2736 double average;
2737 };
2738
2739 typedef const char *ccp;
2740
2741 static inline int
2742 test_restrict (ccp restrict text)
2743 {
2744 // Iterate through items via the restricted pointer.
2745 // Also check for declarations in for loops.
2746 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2747 continue;
2748 return 0;
2749 }
2750
2751 // Check varargs and va_copy.
2752 static bool
2753 test_varargs (const char *format, ...)
2754 {
2755 va_list args;
2756 va_start (args, format);
2757 va_list args_copy;
2758 va_copy (args_copy, args);
2759
2760 const char *str = "";
2761 int number = 0;
2762 float fnumber = 0;
2763
2764 while (*format)
2765 {
2766 switch (*format++)
2767 {
2768 case '\''s'\'': // string
2769 str = va_arg (args_copy, const char *);
2770 break;
2771 case '\''d'\'': // int
2772 number = va_arg (args_copy, int);
2773 break;
2774 case '\''f'\'': // float
2775 fnumber = va_arg (args_copy, double);
2776 break;
2777 default:
2778 break;
2779 }
2780 }
2781 va_end (args_copy);
2782 va_end (args);
2783
2784 return *str && number && fnumber;
2785 }
2786 '
2787
2788 # Test code for whether the C compiler supports C99 (body of main).
2789 ac_c_conftest_c99_main='
2790 // Check bool.
2791 _Bool success = false;
2792 success |= (argc != 0);
2793
2794 // Check restrict.
2795 if (test_restrict ("String literal") == 0)
2796 success = true;
2797 char *restrict newvar = "Another string";
2798
2799 // Check varargs.
2800 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2801 test_varargs_macros ();
2802
2803 // Check flexible array members.
2804 struct incomplete_array *ia =
2805 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2806 ia->datasize = 10;
2807 for (int i = 0; i < ia->datasize; ++i)
2808 ia->data[i] = i * 1.234;
2809 // Work around memory leak warnings.
2810 free (ia);
2811
2812 // Check named initializers.
2813 struct named_init ni = {
2814 .number = 34,
2815 .name = L"Test wide string",
2816 .average = 543.34343,
2817 };
2818
2819 ni.number = 58;
2820
2821 int dynamic_array[ni.number];
2822 dynamic_array[0] = argv[0][0];
2823 dynamic_array[ni.number - 1] = 543;
2824
2825 // work around unused variable warnings
2826 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2827 || dynamic_array[ni.number - 1] != 543);
2828 '
2829
2830 # Test code for whether the C compiler supports C11 (global declarations)
2831 ac_c_conftest_c11_globals='
2832 /* Does the compiler advertise C11 conformance? */
2833 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2834 # error "Compiler does not advertise C11 conformance"
2835 #endif
2836
2837 // Check _Alignas.
2838 char _Alignas (double) aligned_as_double;
2839 char _Alignas (0) no_special_alignment;
2840 extern char aligned_as_int;
2841 char _Alignas (0) _Alignas (int) aligned_as_int;
2842
2843 // Check _Alignof.
2844 enum
2845 {
2846 int_alignment = _Alignof (int),
2847 int_array_alignment = _Alignof (int[100]),
2848 char_alignment = _Alignof (char)
2849 };
2850 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2851
2852 // Check _Noreturn.
2853 int _Noreturn does_not_return (void) { for (;;) continue; }
2854
2855 // Check _Static_assert.
2856 struct test_static_assert
2857 {
2858 int x;
2859 _Static_assert (sizeof (int) <= sizeof (long int),
2860 "_Static_assert does not work in struct");
2861 long int y;
2862 };
2863
2864 // Check UTF-8 literals.
2865 #define u8 syntax error!
2866 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2867
2868 // Check duplicate typedefs.
2869 typedef long *long_ptr;
2870 typedef long int *long_ptr;
2871 typedef long_ptr long_ptr;
2872
2873 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2874 struct anonymous
2875 {
2876 union {
2877 struct { int i; int j; };
2878 struct { int k; long int l; } w;
2879 };
2880 int m;
2881 } v1;
2882 '
2883
2884 # Test code for whether the C compiler supports C11 (body of main).
2885 ac_c_conftest_c11_main='
2886 _Static_assert ((offsetof (struct anonymous, i)
2887 == offsetof (struct anonymous, w.k)),
2888 "Anonymous union alignment botch");
2889 v1.i = 2;
2890 v1.w.k = 5;
2891 ok |= v1.i != 5;
2892 '
2893
2894 # Test code for whether the C compiler supports C11 (complete).
2895 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2896 ${ac_c_conftest_c99_globals}
2897 ${ac_c_conftest_c11_globals}
2898
2899 int
2900 main (int argc, char **argv)
2901 {
2902 int ok = 0;
2903 ${ac_c_conftest_c89_main}
2904 ${ac_c_conftest_c99_main}
2905 ${ac_c_conftest_c11_main}
2906 return ok;
2907 }
2908 "
2909
2910 # Test code for whether the C compiler supports C99 (complete).
2911 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2912 ${ac_c_conftest_c99_globals}
2913
2914 int
2915 main (int argc, char **argv)
2916 {
2917 int ok = 0;
2918 ${ac_c_conftest_c89_main}
2919 ${ac_c_conftest_c99_main}
2920 return ok;
2921 }
2922 "
2923
2924 # Test code for whether the C compiler supports C89 (complete).
2925 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2926
2927 int
2928 main (int argc, char **argv)
2929 {
2930 int ok = 0;
2931 ${ac_c_conftest_c89_main}
2932 return ok;
2933 }
2934 "
2935
2936 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2937 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2938 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2939 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2940 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2941 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2942 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2943 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2944 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2945 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2946
2947 # Auxiliary files required by this configure script.
2948 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2949
2950 # Locations in which to look for auxiliary files.
2951 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2952
2953 # Search for a directory containing all of the required auxiliary files,
2954 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2955 # If we don't find one directory that contains all the files we need,
2956 # we report the set of missing files from the *first* directory in
2957 # $ac_aux_dir_candidates and give up.
2958 ac_missing_aux_files=""
2959 ac_first_candidate=:
2960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 as_found=false
2963 for as_dir in $ac_aux_dir_candidates
2964 do
2965 IFS=$as_save_IFS
2966 case $as_dir in #(((
2967 '') as_dir=./ ;;
2968 */) ;;
2969 *) as_dir=$as_dir/ ;;
2970 esac
2971 as_found=:
2972
2973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2974 ac_aux_dir_found=yes
2975 ac_install_sh=
2976 for ac_aux in $ac_aux_files
2977 do
2978 # As a special case, if "install-sh" is required, that requirement
2979 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2980 # and $ac_install_sh is set appropriately for whichever one is found.
2981 if test x"$ac_aux" = x"install-sh"
2982 then
2983 if test -f "${as_dir}install-sh"; then
2984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2985 ac_install_sh="${as_dir}install-sh -c"
2986 elif test -f "${as_dir}install.sh"; then
2987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2988 ac_install_sh="${as_dir}install.sh -c"
2989 elif test -f "${as_dir}shtool"; then
2990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2991 ac_install_sh="${as_dir}shtool install -c"
2992 else
2993 ac_aux_dir_found=no
2994 if $ac_first_candidate; then
2995 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2996 else
2997 break
2998 fi
2999 fi
3000 else
3001 if test -f "${as_dir}${ac_aux}"; then
3002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3003 else
3004 ac_aux_dir_found=no
3005 if $ac_first_candidate; then
3006 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3007 else
3008 break
3009 fi
3010 fi
3011 fi
3012 done
3013 if test "$ac_aux_dir_found" = yes; then
3014 ac_aux_dir="$as_dir"
3015 break
3016 fi
3017 ac_first_candidate=false
3018
3019 as_found=false
3020 done
3021 IFS=$as_save_IFS
3022 if $as_found
3023 then :
3024
3025 else case e in #(
3026 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3027 esac
3028 fi
3029
3030
3031 # These three variables are undocumented and unsupported,
3032 # and are intended to be withdrawn in a future Autoconf release.
3033 # They can cause serious problems if a builder's source tree is in a directory
3034 # whose full name contains unusual characters.
3035 if test -f "${ac_aux_dir}config.guess"; then
3036 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3037 fi
3038 if test -f "${ac_aux_dir}config.sub"; then
3039 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3040 fi
3041 if test -f "$ac_aux_dir/configure"; then
3042 ac_configure="$SHELL ${ac_aux_dir}configure"
3043 fi
3044
3045 # Check that the precious variables saved in the cache have kept the same
3046 # value.
3047 ac_cache_corrupted=false
3048 for ac_var in $ac_precious_vars; do
3049 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3050 eval ac_new_set=\$ac_env_${ac_var}_set
3051 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3052 eval ac_new_val=\$ac_env_${ac_var}_value
3053 case $ac_old_set,$ac_new_set in
3054 set,)
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3056 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3057 ac_cache_corrupted=: ;;
3058 ,set)
3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3060 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3061 ac_cache_corrupted=: ;;
3062 ,);;
3063 *)
3064 if test "x$ac_old_val" != "x$ac_new_val"; then
3065 # differences in whitespace do not lead to failure.
3066 ac_old_val_w=`echo x $ac_old_val`
3067 ac_new_val_w=`echo x $ac_new_val`
3068 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3070 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3071 ac_cache_corrupted=:
3072 else
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3074 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3075 eval $ac_var=\$ac_old_val
3076 fi
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3078 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3080 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3081 fi;;
3082 esac
3083 # Pass precious variables to config.status.
3084 if test "$ac_new_set" = set; then
3085 case $ac_new_val in
3086 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3087 *) ac_arg=$ac_var=$ac_new_val ;;
3088 esac
3089 case " $ac_configure_args " in
3090 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3091 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3092 esac
3093 fi
3094 done
3095 if $ac_cache_corrupted; then
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3097 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3099 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3100 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3101 and start over" "$LINENO" 5
3102 fi
3103 ## -------------------- ##
3104 ## Main body of script. ##
3105 ## -------------------- ##
3106
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112
3113
3114
3115
3116
3117
3118
3119 am__api_version='1.18'
3120
3121
3122
3123 # Find a good install program. We prefer a C program (faster),
3124 # so one script is as good as another. But avoid the broken or
3125 # incompatible versions:
3126 # SysV /etc/install, /usr/sbin/install
3127 # SunOS /usr/etc/install
3128 # IRIX /sbin/install
3129 # AIX /bin/install
3130 # AmigaOS /C/install, which installs bootblocks on floppy discs
3131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3134 # OS/2's system install, which has a completely different semantic
3135 # ./install, which can be erroneously created by make from ./install.sh.
3136 # Reject install programs that cannot install multiple files.
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3138 printf %s "checking for a BSD-compatible install... " >&6; }
3139 if test -z "$INSTALL"; then
3140 if test ${ac_cv_path_install+y}
3141 then :
3142 printf %s "(cached) " >&6
3143 else case e in #(
3144 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 case $as_dir in #(((
3149 '') as_dir=./ ;;
3150 */) ;;
3151 *) as_dir=$as_dir/ ;;
3152 esac
3153 # Account for fact that we put trailing slashes in our PATH walk.
3154 case $as_dir in #((
3155 ./ | /[cC]/* | \
3156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3157 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3158 /usr/ucb/* ) ;;
3159 *)
3160 # OSF1 and SCO ODT 3.0 have their own names for install.
3161 # Don't use installbsd from OSF since it installs stuff as root
3162 # by default.
3163 for ac_prog in ginstall scoinst install; do
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3166 if test $ac_prog = install &&
3167 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3168 # AIX install. It has an incompatible calling convention.
3169 :
3170 elif test $ac_prog = install &&
3171 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3172 # program-specific install script used by HP pwplus--don't use.
3173 :
3174 else
3175 rm -rf conftest.one conftest.two conftest.dir
3176 echo one > conftest.one
3177 echo two > conftest.two
3178 mkdir conftest.dir
3179 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3180 test -s conftest.one && test -s conftest.two &&
3181 test -s conftest.dir/conftest.one &&
3182 test -s conftest.dir/conftest.two
3183 then
3184 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3185 break 3
3186 fi
3187 fi
3188 fi
3189 done
3190 done
3191 ;;
3192 esac
3193
3194 done
3195 IFS=$as_save_IFS
3196
3197 rm -rf conftest.one conftest.two conftest.dir
3198 ;;
3199 esac
3200 fi
3201 if test ${ac_cv_path_install+y}; then
3202 INSTALL=$ac_cv_path_install
3203 else
3204 # As a last resort, use the slow shell script. Don't cache a
3205 # value for INSTALL within a source directory, because that will
3206 # break other packages using the cache if that directory is
3207 # removed, or if the value is a relative name.
3208 INSTALL=$ac_install_sh
3209 fi
3210 fi
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3212 printf "%s\n" "$INSTALL" >&6; }
3213
3214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3215 # It thinks the first close brace ends the variable substitution.
3216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3217
3218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3219
3220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3221
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3223 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3224 if test ${am_cv_sleep_fractional_seconds+y}
3225 then :
3226 printf %s "(cached) " >&6
3227 else case e in #(
3228 e) if sleep 0.001 2>/dev/null
3229 then :
3230 am_cv_sleep_fractional_seconds=yes
3231 else case e in #(
3232 e) am_cv_sleep_fractional_seconds=no ;;
3233 esac
3234 fi
3235 ;;
3236 esac
3237 fi
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3239 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3240
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3242 printf %s "checking filesystem timestamp resolution... " >&6; }
3243 if test ${am_cv_filesystem_timestamp_resolution+y}
3244 then :
3245 printf %s "(cached) " >&6
3246 else case e in #(
3247 e) # Default to the worst case.
3248 am_cv_filesystem_timestamp_resolution=2
3249
3250 # Only try to go finer than 1 sec if sleep can do it.
3251 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3252 # - 1 sec is not much of a win compared to 2 sec, and
3253 # - it takes 2 seconds to perform the test whether 1 sec works.
3254 #
3255 # Instead, just use the default 2s on platforms that have 1s resolution,
3256 # accept the extra 1s delay when using $sleep in the Automake tests, in
3257 # exchange for not incurring the 2s delay for running the test for all
3258 # packages.
3259 #
3260 am_try_resolutions=
3261 if test "$am_cv_sleep_fractional_seconds" = yes; then
3262 # Even a millisecond often causes a bunch of false positives,
3263 # so just try a hundredth of a second. The time saved between .001 and
3264 # .01 is not terribly consequential.
3265 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3266 fi
3267
3268 # In order to catch current-generation FAT out, we must *modify* files
3269 # that already exist; the *creation* timestamp is finer. Use names
3270 # that make ls -t sort them differently when they have equal
3271 # timestamps than when they have distinct timestamps, keeping
3272 # in mind that ls -t prints the *newest* file first.
3273 rm -f conftest.ts?
3274 : > conftest.ts1
3275 : > conftest.ts2
3276 : > conftest.ts3
3277
3278 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3279 # clobber the current shell's arguments. (Outer-level square brackets
3280 # are removed by m4; they're present so that m4 does not expand
3281 # <dollar><star>; be careful, easy to get confused.)
3282 if (
3283 set X `ls -t conftest.ts[12]` &&
3284 {
3285 test "$*" != "X conftest.ts1 conftest.ts2" ||
3286 test "$*" != "X conftest.ts2 conftest.ts1";
3287 }
3288 ); then :; else
3289 # If neither matched, then we have a broken ls. This can happen
3290 # if, for instance, CONFIG_SHELL is bash and it inherits a
3291 # broken ls alias from the environment. This has actually
3292 # happened. Such a system could not be considered "sane".
3293 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3295 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3296 as_fn_error $? "ls -t produces unexpected output.
3297 Make sure there is not a broken ls alias in your environment.
3298 See 'config.log' for more details" "$LINENO" 5; }
3299 fi
3300
3301 for am_try_res in $am_try_resolutions; do
3302 # Any one fine-grained sleep might happen to cross the boundary
3303 # between two values of a coarser actual resolution, but if we do
3304 # two fine-grained sleeps in a row, at least one of them will fall
3305 # entirely within a coarse interval.
3306 echo alpha > conftest.ts1
3307 sleep $am_try_res
3308 echo beta > conftest.ts2
3309 sleep $am_try_res
3310 echo gamma > conftest.ts3
3311
3312 # We assume that 'ls -t' will make use of high-resolution
3313 # timestamps if the operating system supports them at all.
3314 if (set X `ls -t conftest.ts?` &&
3315 test "$2" = conftest.ts3 &&
3316 test "$3" = conftest.ts2 &&
3317 test "$4" = conftest.ts1); then
3318 #
3319 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3320 # because we don't need to test make.
3321 make_ok=true
3322 if test $am_try_res != 1; then
3323 # But if we've succeeded so far with a subsecond resolution, we
3324 # have one more thing to check: make. It can happen that
3325 # everything else supports the subsecond mtimes, but make doesn't;
3326 # notably on macOS, which ships make 3.81 from 2006 (the last one
3327 # released under GPLv2). https://bugs.gnu.org/68808
3328 #
3329 # We test $MAKE if it is defined in the environment, else "make".
3330 # It might get overridden later, but our hope is that in practice
3331 # it does not matter: it is the system "make" which is (by far)
3332 # the most likely to be broken, whereas if the user overrides it,
3333 # probably they did so with a better, or at least not worse, make.
3334 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3335 #
3336 # Create a Makefile (real tab character here):
3337 rm -f conftest.mk
3338 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3339 echo ' touch conftest.ts2' >>conftest.mk
3340 #
3341 # Now, running
3342 # touch conftest.ts1; touch conftest.ts2; make
3343 # should touch ts1 because ts2 is newer. This could happen by luck,
3344 # but most often, it will fail if make's support is insufficient. So
3345 # test for several consecutive successes.
3346 #
3347 # (We reuse conftest.ts[12] because we still want to modify existing
3348 # files, not create new ones, per above.)
3349 n=0
3350 make=${MAKE-make}
3351 until test $n -eq 3; do
3352 echo one > conftest.ts1
3353 sleep $am_try_res
3354 echo two > conftest.ts2 # ts2 should now be newer than ts1
3355 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3356 make_ok=false
3357 break # out of $n loop
3358 fi
3359 n=`expr $n + 1`
3360 done
3361 fi
3362 #
3363 if $make_ok; then
3364 # Everything we know to check worked out, so call this resolution good.
3365 am_cv_filesystem_timestamp_resolution=$am_try_res
3366 break # out of $am_try_res loop
3367 fi
3368 # Otherwise, we'll go on to check the next resolution.
3369 fi
3370 done
3371 rm -f conftest.ts?
3372 # (end _am_filesystem_timestamp_resolution)
3373 ;;
3374 esac
3375 fi
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3377 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3378
3379 # This check should not be cached, as it may vary across builds of
3380 # different projects.
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3382 printf %s "checking whether build environment is sane... " >&6; }
3383 # Reject unsafe characters in $srcdir or the absolute working directory
3384 # name. Accept space and tab only in the latter.
3385 am_lf='
3386 '
3387 case `pwd` in
3388 *[\\\"\#\$\&\'\`$am_lf]*)
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 printf "%s\n" "no" >&6; }
3391 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3392 esac
3393 case $srcdir in
3394 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 printf "%s\n" "no" >&6; }
3397 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3398 esac
3399
3400 # Do 'set' in a subshell so we don't clobber the current shell's
3401 # arguments. Must try -L first in case configure is actually a
3402 # symlink; some systems play weird games with the mod time of symlinks
3403 # (eg FreeBSD returns the mod time of the symlink's containing
3404 # directory).
3405 am_build_env_is_sane=no
3406 am_has_slept=no
3407 rm -f conftest.file
3408 for am_try in 1 2; do
3409 echo "timestamp, slept: $am_has_slept" > conftest.file
3410 if (
3411 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3412 if test "$*" = "X"; then
3413 # -L didn't work.
3414 set X `ls -t "$srcdir/configure" conftest.file`
3415 fi
3416 test "$2" = conftest.file
3417 ); then
3418 am_build_env_is_sane=yes
3419 break
3420 fi
3421 # Just in case.
3422 sleep "$am_cv_filesystem_timestamp_resolution"
3423 am_has_slept=yes
3424 done
3425
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3427 printf "%s\n" "$am_build_env_is_sane" >&6; }
3428 if test "$am_build_env_is_sane" = no; then
3429 as_fn_error $? "newly created file is older than distributed files!
3430 Check your system clock" "$LINENO" 5
3431 fi
3432
3433 # If we didn't sleep, we still need to ensure time stamps of config.status and
3434 # generated files are strictly newer.
3435 am_sleep_pid=
3436 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3437 then :
3438
3439 else case e in #(
3440 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3441 am_sleep_pid=$!
3442 ;;
3443 esac
3444 fi
3445
3446 rm -f conftest.file
3447
3448 test "$program_prefix" != NONE &&
3449 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3450 # Use a double $ so make ignores it.
3451 test "$program_suffix" != NONE &&
3452 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3453 # Double any \ or $.
3454 # By default was 's,x,x', remove it if useless.
3455 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3456 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3457
3458
3459 # Expand $ac_aux_dir to an absolute path.
3460 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3461
3462
3463 if test x"${MISSING+set}" != xset; then
3464 MISSING="\${SHELL} '$am_aux_dir/missing'"
3465 fi
3466 # Use eval to expand $SHELL
3467 if eval "$MISSING --is-lightweight"; then
3468 am_missing_run="$MISSING "
3469 else
3470 am_missing_run=
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3472 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3473 fi
3474
3475 if test x"${install_sh+set}" != xset; then
3476 case $am_aux_dir in
3477 *\ * | *\ *)
3478 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3479 *)
3480 install_sh="\${SHELL} $am_aux_dir/install-sh"
3481 esac
3482 fi
3483
3484 # Installed binaries are usually stripped using 'strip' when the user
3485 # run "make install-strip". However 'strip' might not be the right
3486 # tool to use in cross-compilation environments, therefore Automake
3487 # will honor the 'STRIP' environment variable to overrule this program.
3488 if test "$cross_compiling" != no; then
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}strip; ac_word=$2
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 printf %s "checking for $ac_word... " >&6; }
3494 if test ${ac_cv_prog_STRIP+y}
3495 then :
3496 printf %s "(cached) " >&6
3497 else case e in #(
3498 e) if test -n "$STRIP"; then
3499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 case $as_dir in #(((
3506 '') as_dir=./ ;;
3507 */) ;;
3508 *) as_dir=$as_dir/ ;;
3509 esac
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518 IFS=$as_save_IFS
3519
3520 fi ;;
3521 esac
3522 fi
3523 STRIP=$ac_cv_prog_STRIP
3524 if test -n "$STRIP"; then
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3526 printf "%s\n" "$STRIP" >&6; }
3527 else
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 printf "%s\n" "no" >&6; }
3530 fi
3531
3532
3533 fi
3534 if test -z "$ac_cv_prog_STRIP"; then
3535 ac_ct_STRIP=$STRIP
3536 # Extract the first word of "strip", so it can be a program name with args.
3537 set dummy strip; ac_word=$2
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 printf %s "checking for $ac_word... " >&6; }
3540 if test ${ac_cv_prog_ac_ct_STRIP+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else case e in #(
3544 e) if test -n "$ac_ct_STRIP"; then
3545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550 IFS=$as_save_IFS
3551 case $as_dir in #(((
3552 '') as_dir=./ ;;
3553 */) ;;
3554 *) as_dir=$as_dir/ ;;
3555 esac
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_ac_ct_STRIP="strip"
3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562 done
3563 done
3564 IFS=$as_save_IFS
3565
3566 fi ;;
3567 esac
3568 fi
3569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3570 if test -n "$ac_ct_STRIP"; then
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3572 printf "%s\n" "$ac_ct_STRIP" >&6; }
3573 else
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 printf "%s\n" "no" >&6; }
3576 fi
3577
3578 if test "x$ac_ct_STRIP" = x; then
3579 STRIP=":"
3580 else
3581 case $cross_compiling:$ac_tool_warned in
3582 yes:)
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned=yes ;;
3586 esac
3587 STRIP=$ac_ct_STRIP
3588 fi
3589 else
3590 STRIP="$ac_cv_prog_STRIP"
3591 fi
3592
3593 fi
3594 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3595
3596
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3598 printf %s "checking for a race-free mkdir -p... " >&6; }
3599 if test -z "$MKDIR_P"; then
3600 if test ${ac_cv_path_mkdir+y}
3601 then :
3602 printf %s "(cached) " >&6
3603 else case e in #(
3604 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3606 do
3607 IFS=$as_save_IFS
3608 case $as_dir in #(((
3609 '') as_dir=./ ;;
3610 */) ;;
3611 *) as_dir=$as_dir/ ;;
3612 esac
3613 for ac_prog in mkdir gmkdir; do
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3616 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3617 'mkdir ('*'coreutils) '* | \
3618 *'BusyBox '* | \
3619 'mkdir (fileutils) '4.1*)
3620 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3621 break 3;;
3622 esac
3623 done
3624 done
3625 done
3626 IFS=$as_save_IFS
3627 ;;
3628 esac
3629 fi
3630
3631 test -d ./--version && rmdir ./--version
3632 if test ${ac_cv_path_mkdir+y}; then
3633 MKDIR_P="$ac_cv_path_mkdir -p"
3634 else
3635 # As a last resort, use plain mkdir -p,
3636 # in the hope it doesn't have the bugs of ancient mkdir.
3637 MKDIR_P='mkdir -p'
3638 fi
3639 fi
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3641 printf "%s\n" "$MKDIR_P" >&6; }
3642
3643 for ac_prog in gawk mawk nawk awk
3644 do
3645 # Extract the first word of "$ac_prog", so it can be a program name with args.
3646 set dummy $ac_prog; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_AWK+y}
3650 then :
3651 printf %s "(cached) " >&6
3652 else case e in #(
3653 e) if test -n "$AWK"; then
3654 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 case $as_dir in #(((
3661 '') as_dir=./ ;;
3662 */) ;;
3663 *) as_dir=$as_dir/ ;;
3664 esac
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_AWK="$ac_prog"
3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673 IFS=$as_save_IFS
3674
3675 fi ;;
3676 esac
3677 fi
3678 AWK=$ac_cv_prog_AWK
3679 if test -n "$AWK"; then
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3681 printf "%s\n" "$AWK" >&6; }
3682 else
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 printf "%s\n" "no" >&6; }
3685 fi
3686
3687
3688 test -n "$AWK" && break
3689 done
3690
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3692 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3693 set x ${MAKE-make}
3694 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3695 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3696 then :
3697 printf %s "(cached) " >&6
3698 else case e in #(
3699 e) cat >conftest.make <<\_ACEOF
3700 SHELL = /bin/sh
3701 all:
3702 @echo '@@@%%%=$(MAKE)=@@@%%%'
3703 _ACEOF
3704 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3705 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3706 *@@@%%%=?*=@@@%%%*)
3707 eval ac_cv_prog_make_${ac_make}_set=yes;;
3708 *)
3709 eval ac_cv_prog_make_${ac_make}_set=no;;
3710 esac
3711 rm -f conftest.make ;;
3712 esac
3713 fi
3714 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 printf "%s\n" "yes" >&6; }
3717 SET_MAKE=
3718 else
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 printf "%s\n" "no" >&6; }
3721 SET_MAKE="MAKE=${MAKE-make}"
3722 fi
3723
3724 rm -rf .tst 2>/dev/null
3725 mkdir .tst 2>/dev/null
3726 if test -d .tst; then
3727 am__leading_dot=.
3728 else
3729 am__leading_dot=_
3730 fi
3731 rmdir .tst 2>/dev/null
3732
3733 AM_DEFAULT_VERBOSITY=1
3734 # Check whether --enable-silent-rules was given.
3735 if test ${enable_silent_rules+y}
3736 then :
3737 enableval=$enable_silent_rules;
3738 fi
3739
3740 am_make=${MAKE-make}
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3742 printf %s "checking whether $am_make supports nested variables... " >&6; }
3743 if test ${am_cv_make_support_nested_variables+y}
3744 then :
3745 printf %s "(cached) " >&6
3746 else case e in #(
3747 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3748 BAR0=false
3749 BAR1=true
3750 V=1
3751 am__doit:
3752 @$(TRUE)
3753 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3754 am_cv_make_support_nested_variables=yes
3755 else
3756 am_cv_make_support_nested_variables=no
3757 fi ;;
3758 esac
3759 fi
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3761 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3762 AM_BACKSLASH='\'
3763
3764 am__rm_f_notfound=
3765 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3766 then :
3767
3768 else case e in #(
3769 e) am__rm_f_notfound='""' ;;
3770 esac
3771 fi
3772
3773
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3775 printf %s "checking xargs -n works... " >&6; }
3776 if test ${am_cv_xargs_n_works+y}
3777 then :
3778 printf %s "(cached) " >&6
3779 else case e in #(
3780 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3781 3"
3782 then :
3783 am_cv_xargs_n_works=yes
3784 else case e in #(
3785 e) am_cv_xargs_n_works=no ;;
3786 esac
3787 fi ;;
3788 esac
3789 fi
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3791 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3792 if test "$am_cv_xargs_n_works" = yes
3793 then :
3794 am__xargs_n='xargs -n'
3795 else case e in #(
3796 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3797 ;;
3798 esac
3799 fi
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810 DEPDIR="${am__leading_dot}deps"
3811
3812 ac_config_commands="$ac_config_commands depfiles"
3813
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3815 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3816 cat > confinc.mk << 'END'
3817 am__doit:
3818 @echo this is the am__doit target >confinc.out
3819 .PHONY: am__doit
3820 END
3821 am__include="#"
3822 am__quote=
3823 # BSD make does it like this.
3824 echo '.include "confinc.mk" # ignored' > confmf.BSD
3825 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3826 echo 'include confinc.mk # ignored' > confmf.GNU
3827 _am_result=no
3828 for s in GNU BSD; do
3829 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3830 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }
3834 case $?:`cat confinc.out 2>/dev/null` in #(
3835 '0:this is the am__doit target') :
3836 case $s in #(
3837 BSD) :
3838 am__include='.include' am__quote='"' ;; #(
3839 *) :
3840 am__include='include' am__quote='' ;;
3841 esac ;; #(
3842 *) :
3843 ;;
3844 esac
3845 if test "$am__include" != "#"; then
3846 _am_result="yes ($s style)"
3847 break
3848 fi
3849 done
3850 rm -f confinc.* confmf.*
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3852 printf "%s\n" "${_am_result}" >&6; }
3853
3854 # Check whether --enable-dependency-tracking was given.
3855 if test ${enable_dependency_tracking+y}
3856 then :
3857 enableval=$enable_dependency_tracking;
3858 fi
3859
3860 if test "x$enable_dependency_tracking" != xno; then
3861 am_depcomp="$ac_aux_dir/depcomp"
3862 AMDEPBACKSLASH='\'
3863 am__nodep='_no'
3864 fi
3865 if test "x$enable_dependency_tracking" != xno; then
3866 AMDEP_TRUE=
3867 AMDEP_FALSE='#'
3868 else
3869 AMDEP_TRUE='#'
3870 AMDEP_FALSE=
3871 fi
3872
3873
3874 ac_ext=c
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879 if test -n "$ac_tool_prefix"; then
3880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 printf %s "checking for $ac_word... " >&6; }
3884 if test ${ac_cv_prog_CC+y}
3885 then :
3886 printf %s "(cached) " >&6
3887 else case e in #(
3888 e) if test -n "$CC"; then
3889 ac_cv_prog_CC="$CC" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 case $as_dir in #(((
3896 '') as_dir=./ ;;
3897 */) ;;
3898 *) as_dir=$as_dir/ ;;
3899 esac
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 fi ;;
3911 esac
3912 fi
3913 CC=$ac_cv_prog_CC
3914 if test -n "$CC"; then
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3916 printf "%s\n" "$CC" >&6; }
3917 else
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 printf "%s\n" "no" >&6; }
3920 fi
3921
3922
3923 fi
3924 if test -z "$ac_cv_prog_CC"; then
3925 ac_ct_CC=$CC
3926 # Extract the first word of "gcc", so it can be a program name with args.
3927 set dummy gcc; ac_word=$2
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 printf %s "checking for $ac_word... " >&6; }
3930 if test ${ac_cv_prog_ac_ct_CC+y}
3931 then :
3932 printf %s "(cached) " >&6
3933 else case e in #(
3934 e) if test -n "$ac_ct_CC"; then
3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 case $as_dir in #(((
3942 '') as_dir=./ ;;
3943 */) ;;
3944 *) as_dir=$as_dir/ ;;
3945 esac
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_ac_ct_CC="gcc"
3949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi ;;
3957 esac
3958 fi
3959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3960 if test -n "$ac_ct_CC"; then
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3962 printf "%s\n" "$ac_ct_CC" >&6; }
3963 else
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 printf "%s\n" "no" >&6; }
3966 fi
3967
3968 if test "x$ac_ct_CC" = x; then
3969 CC=""
3970 else
3971 case $cross_compiling:$ac_tool_warned in
3972 yes:)
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975 ac_tool_warned=yes ;;
3976 esac
3977 CC=$ac_ct_CC
3978 fi
3979 else
3980 CC="$ac_cv_prog_CC"
3981 fi
3982
3983 if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}cc; ac_word=$2
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 printf %s "checking for $ac_word... " >&6; }
3989 if test ${ac_cv_prog_CC+y}
3990 then :
3991 printf %s "(cached) " >&6
3992 else case e in #(
3993 e) if test -n "$CC"; then
3994 ac_cv_prog_CC="$CC" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 case $as_dir in #(((
4001 '') as_dir=./ ;;
4002 */) ;;
4003 *) as_dir=$as_dir/ ;;
4004 esac
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_CC="${ac_tool_prefix}cc"
4008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015 fi ;;
4016 esac
4017 fi
4018 CC=$ac_cv_prog_CC
4019 if test -n "$CC"; then
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4021 printf "%s\n" "$CC" >&6; }
4022 else
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 printf "%s\n" "no" >&6; }
4025 fi
4026
4027
4028 fi
4029 fi
4030 if test -z "$CC"; then
4031 # Extract the first word of "cc", so it can be a program name with args.
4032 set dummy cc; ac_word=$2
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 printf %s "checking for $ac_word... " >&6; }
4035 if test ${ac_cv_prog_CC+y}
4036 then :
4037 printf %s "(cached) " >&6
4038 else case e in #(
4039 e) if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 ac_prog_rejected=no
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046 IFS=$as_save_IFS
4047 case $as_dir in #(((
4048 '') as_dir=./ ;;
4049 */) ;;
4050 *) as_dir=$as_dir/ ;;
4051 esac
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4054 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4055 ac_prog_rejected=yes
4056 continue
4057 fi
4058 ac_cv_prog_CC="cc"
4059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4060 break 2
4061 fi
4062 done
4063 done
4064 IFS=$as_save_IFS
4065
4066 if test $ac_prog_rejected = yes; then
4067 # We found a bogon in the path, so make sure we never use it.
4068 set dummy $ac_cv_prog_CC
4069 shift
4070 if test $# != 0; then
4071 # We chose a different compiler from the bogus one.
4072 # However, it has the same basename, so the bogon will be chosen
4073 # first if we set CC to just the basename; use the full file name.
4074 shift
4075 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4076 fi
4077 fi
4078 fi ;;
4079 esac
4080 fi
4081 CC=$ac_cv_prog_CC
4082 if test -n "$CC"; then
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4084 printf "%s\n" "$CC" >&6; }
4085 else
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 printf "%s\n" "no" >&6; }
4088 fi
4089
4090
4091 fi
4092 if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
4094 for ac_prog in cl.exe
4095 do
4096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 printf %s "checking for $ac_word... " >&6; }
4100 if test ${ac_cv_prog_CC+y}
4101 then :
4102 printf %s "(cached) " >&6
4103 else case e in #(
4104 e) if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110 IFS=$as_save_IFS
4111 case $as_dir in #(((
4112 '') as_dir=./ ;;
4113 */) ;;
4114 *) as_dir=$as_dir/ ;;
4115 esac
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122 done
4123 done
4124 IFS=$as_save_IFS
4125
4126 fi ;;
4127 esac
4128 fi
4129 CC=$ac_cv_prog_CC
4130 if test -n "$CC"; then
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4132 printf "%s\n" "$CC" >&6; }
4133 else
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 printf "%s\n" "no" >&6; }
4136 fi
4137
4138
4139 test -n "$CC" && break
4140 done
4141 fi
4142 if test -z "$CC"; then
4143 ac_ct_CC=$CC
4144 for ac_prog in cl.exe
4145 do
4146 # Extract the first word of "$ac_prog", so it can be a program name with args.
4147 set dummy $ac_prog; ac_word=$2
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 printf %s "checking for $ac_word... " >&6; }
4150 if test ${ac_cv_prog_ac_ct_CC+y}
4151 then :
4152 printf %s "(cached) " >&6
4153 else case e in #(
4154 e) if test -n "$ac_ct_CC"; then
4155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160 IFS=$as_save_IFS
4161 case $as_dir in #(((
4162 '') as_dir=./ ;;
4163 */) ;;
4164 *) as_dir=$as_dir/ ;;
4165 esac
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_ac_ct_CC="$ac_prog"
4169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172 done
4173 done
4174 IFS=$as_save_IFS
4175
4176 fi ;;
4177 esac
4178 fi
4179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4180 if test -n "$ac_ct_CC"; then
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4182 printf "%s\n" "$ac_ct_CC" >&6; }
4183 else
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 printf "%s\n" "no" >&6; }
4186 fi
4187
4188
4189 test -n "$ac_ct_CC" && break
4190 done
4191
4192 if test "x$ac_ct_CC" = x; then
4193 CC=""
4194 else
4195 case $cross_compiling:$ac_tool_warned in
4196 yes:)
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4198 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4199 ac_tool_warned=yes ;;
4200 esac
4201 CC=$ac_ct_CC
4202 fi
4203 fi
4204
4205 fi
4206 if test -z "$CC"; then
4207 if test -n "$ac_tool_prefix"; then
4208 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4209 set dummy ${ac_tool_prefix}clang; ac_word=$2
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 printf %s "checking for $ac_word... " >&6; }
4212 if test ${ac_cv_prog_CC+y}
4213 then :
4214 printf %s "(cached) " >&6
4215 else case e in #(
4216 e) if test -n "$CC"; then
4217 ac_cv_prog_CC="$CC" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222 IFS=$as_save_IFS
4223 case $as_dir in #(((
4224 '') as_dir=./ ;;
4225 */) ;;
4226 *) as_dir=$as_dir/ ;;
4227 esac
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_CC="${ac_tool_prefix}clang"
4231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 fi ;;
4239 esac
4240 fi
4241 CC=$ac_cv_prog_CC
4242 if test -n "$CC"; then
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4244 printf "%s\n" "$CC" >&6; }
4245 else
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 printf "%s\n" "no" >&6; }
4248 fi
4249
4250
4251 fi
4252 if test -z "$ac_cv_prog_CC"; then
4253 ac_ct_CC=$CC
4254 # Extract the first word of "clang", so it can be a program name with args.
4255 set dummy clang; ac_word=$2
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 printf %s "checking for $ac_word... " >&6; }
4258 if test ${ac_cv_prog_ac_ct_CC+y}
4259 then :
4260 printf %s "(cached) " >&6
4261 else case e in #(
4262 e) if test -n "$ac_ct_CC"; then
4263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268 IFS=$as_save_IFS
4269 case $as_dir in #(((
4270 '') as_dir=./ ;;
4271 */) ;;
4272 *) as_dir=$as_dir/ ;;
4273 esac
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_ac_ct_CC="clang"
4277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280 done
4281 done
4282 IFS=$as_save_IFS
4283
4284 fi ;;
4285 esac
4286 fi
4287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4288 if test -n "$ac_ct_CC"; then
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4290 printf "%s\n" "$ac_ct_CC" >&6; }
4291 else
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 printf "%s\n" "no" >&6; }
4294 fi
4295
4296 if test "x$ac_ct_CC" = x; then
4297 CC=""
4298 else
4299 case $cross_compiling:$ac_tool_warned in
4300 yes:)
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4302 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4303 ac_tool_warned=yes ;;
4304 esac
4305 CC=$ac_ct_CC
4306 fi
4307 else
4308 CC="$ac_cv_prog_CC"
4309 fi
4310
4311 fi
4312
4313
4314 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4315 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4316 as_fn_error $? "no acceptable C compiler found in \$PATH
4317 See 'config.log' for more details" "$LINENO" 5; }
4318
4319 # Provide some information about the compiler.
4320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4321 set X $ac_compile
4322 ac_compiler=$2
4323 for ac_option in --version -v -V -qversion -version; do
4324 { { ac_try="$ac_compiler $ac_option >&5"
4325 case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 printf "%s\n" "$ac_try_echo"; } >&5
4331 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4332 ac_status=$?
4333 if test -s conftest.err; then
4334 sed '10a\
4335 ... rest of stderr output deleted ...
4336 10q' conftest.err >conftest.er1
4337 cat conftest.er1 >&5
4338 fi
4339 rm -f conftest.er1 conftest.err
4340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; }
4342 done
4343
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346
4347 int
4348 main (void)
4349 {
4350
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 ac_clean_files_save=$ac_clean_files
4356 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4357 # Try to create an executable without -o first, disregard a.out.
4358 # It will help us diagnose broken compilers, and finding out an intuition
4359 # of exeext.
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4361 printf %s "checking whether the C compiler works... " >&6; }
4362 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4363
4364 # The possible output files:
4365 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4366
4367 ac_rmfiles=
4368 for ac_file in $ac_files
4369 do
4370 case $ac_file in
4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4372 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4373 esac
4374 done
4375 rm -f $ac_rmfiles
4376
4377 if { { ac_try="$ac_link_default"
4378 case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 printf "%s\n" "$ac_try_echo"; } >&5
4384 (eval "$ac_link_default") 2>&5
4385 ac_status=$?
4386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }
4388 then :
4389 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4390 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4391 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4392 # so that the user can short-circuit this test for compilers unknown to
4393 # Autoconf.
4394 for ac_file in $ac_files ''
4395 do
4396 test -f "$ac_file" || continue
4397 case $ac_file in
4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4399 ;;
4400 [ab].out )
4401 # We found the default executable, but exeext='' is most
4402 # certainly right.
4403 break;;
4404 *.* )
4405 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4406 then :; else
4407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408 fi
4409 # We set ac_cv_exeext here because the later test for it is not
4410 # safe: cross compilers may not add the suffix if given an '-o'
4411 # argument, so we may need to know it at that point already.
4412 # Even if this section looks crufty: it has the advantage of
4413 # actually working.
4414 break;;
4415 * )
4416 break;;
4417 esac
4418 done
4419 test "$ac_cv_exeext" = no && ac_cv_exeext=
4420
4421 else case e in #(
4422 e) ac_file='' ;;
4423 esac
4424 fi
4425 if test -z "$ac_file"
4426 then :
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 printf "%s\n" "no" >&6; }
4429 printf "%s\n" "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4433 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4434 as_fn_error 77 "C compiler cannot create executables
4435 See 'config.log' for more details" "$LINENO" 5; }
4436 else case e in #(
4437 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438 printf "%s\n" "yes" >&6; } ;;
4439 esac
4440 fi
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4442 printf %s "checking for C compiler default output file name... " >&6; }
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4444 printf "%s\n" "$ac_file" >&6; }
4445 ac_exeext=$ac_cv_exeext
4446
4447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4448 ac_clean_files=$ac_clean_files_save
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4450 printf %s "checking for suffix of executables... " >&6; }
4451 if { { ac_try="$ac_link"
4452 case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 printf "%s\n" "$ac_try_echo"; } >&5
4458 (eval "$ac_link") 2>&5
4459 ac_status=$?
4460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }
4462 then :
4463 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4464 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4465 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4466 # 'rm'.
4467 for ac_file in conftest.exe conftest conftest.*; do
4468 test -f "$ac_file" || continue
4469 case $ac_file in
4470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4472 break;;
4473 * ) break;;
4474 esac
4475 done
4476 else case e in #(
4477 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4478 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4479 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4480 See 'config.log' for more details" "$LINENO" 5; } ;;
4481 esac
4482 fi
4483 rm -f conftest conftest$ac_cv_exeext
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4485 printf "%s\n" "$ac_cv_exeext" >&6; }
4486
4487 rm -f conftest.$ac_ext
4488 EXEEXT=$ac_cv_exeext
4489 ac_exeext=$EXEEXT
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 #include <stdio.h>
4493 int
4494 main (void)
4495 {
4496 FILE *f = fopen ("conftest.out", "w");
4497 if (!f)
4498 return 1;
4499 return ferror (f) || fclose (f) != 0;
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 ac_clean_files="$ac_clean_files conftest.out"
4506 # Check that the compiler produces executables we can run. If not, either
4507 # the compiler is broken, or we cross compile.
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4509 printf %s "checking whether we are cross compiling... " >&6; }
4510 if test "$cross_compiling" != yes; then
4511 { { ac_try="$ac_link"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 printf "%s\n" "$ac_try_echo"; } >&5
4518 (eval "$ac_link") 2>&5
4519 ac_status=$?
4520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }
4522 if { ac_try='./conftest$ac_cv_exeext'
4523 { { case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 printf "%s\n" "$ac_try_echo"; } >&5
4529 (eval "$ac_try") 2>&5
4530 ac_status=$?
4531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; }; then
4533 cross_compiling=no
4534 else
4535 if test "$cross_compiling" = maybe; then
4536 cross_compiling=yes
4537 else
4538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4539 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4540 as_fn_error 77 "cannot run C compiled programs.
4541 If you meant to cross compile, use '--host'.
4542 See 'config.log' for more details" "$LINENO" 5; }
4543 fi
4544 fi
4545 fi
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4547 printf "%s\n" "$cross_compiling" >&6; }
4548
4549 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4550 conftest.o conftest.obj conftest.out
4551 ac_clean_files=$ac_clean_files_save
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4553 printf %s "checking for suffix of object files... " >&6; }
4554 if test ${ac_cv_objext+y}
4555 then :
4556 printf %s "(cached) " >&6
4557 else case e in #(
4558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560
4561 int
4562 main (void)
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest.o conftest.obj
4570 if { { ac_try="$ac_compile"
4571 case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576 printf "%s\n" "$ac_try_echo"; } >&5
4577 (eval "$ac_compile") 2>&5
4578 ac_status=$?
4579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }
4581 then :
4582 for ac_file in conftest.o conftest.obj conftest.*; do
4583 test -f "$ac_file" || continue;
4584 case $ac_file in
4585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4586 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4587 break;;
4588 esac
4589 done
4590 else case e in #(
4591 e) printf "%s\n" "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4595 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4596 as_fn_error $? "cannot compute suffix of object files: cannot compile
4597 See 'config.log' for more details" "$LINENO" 5; } ;;
4598 esac
4599 fi
4600 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4601 esac
4602 fi
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4604 printf "%s\n" "$ac_cv_objext" >&6; }
4605 OBJEXT=$ac_cv_objext
4606 ac_objext=$OBJEXT
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4608 printf %s "checking whether the compiler supports GNU C... " >&6; }
4609 if test ${ac_cv_c_compiler_gnu+y}
4610 then :
4611 printf %s "(cached) " >&6
4612 else case e in #(
4613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4615
4616 int
4617 main (void)
4618 {
4619 #ifndef __GNUC__
4620 choke me
4621 #endif
4622
4623 ;
4624 return 0;
4625 }
4626 _ACEOF
4627 if ac_fn_c_try_compile "$LINENO"
4628 then :
4629 ac_compiler_gnu=yes
4630 else case e in #(
4631 e) ac_compiler_gnu=no ;;
4632 esac
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4636 ;;
4637 esac
4638 fi
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4640 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642
4643 if test $ac_compiler_gnu = yes; then
4644 GCC=yes
4645 else
4646 GCC=
4647 fi
4648 ac_test_CFLAGS=${CFLAGS+y}
4649 ac_save_CFLAGS=$CFLAGS
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4651 printf %s "checking whether $CC accepts -g... " >&6; }
4652 if test ${ac_cv_prog_cc_g+y}
4653 then :
4654 printf %s "(cached) " >&6
4655 else case e in #(
4656 e) ac_save_c_werror_flag=$ac_c_werror_flag
4657 ac_c_werror_flag=yes
4658 ac_cv_prog_cc_g=no
4659 CFLAGS="-g"
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662
4663 int
4664 main (void)
4665 {
4666
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"
4672 then :
4673 ac_cv_prog_cc_g=yes
4674 else case e in #(
4675 e) CFLAGS=""
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678
4679 int
4680 main (void)
4681 {
4682
4683 ;
4684 return 0;
4685 }
4686 _ACEOF
4687 if ac_fn_c_try_compile "$LINENO"
4688 then :
4689
4690 else case e in #(
4691 e) ac_c_werror_flag=$ac_save_c_werror_flag
4692 CFLAGS="-g"
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695
4696 int
4697 main (void)
4698 {
4699
4700 ;
4701 return 0;
4702 }
4703 _ACEOF
4704 if ac_fn_c_try_compile "$LINENO"
4705 then :
4706 ac_cv_prog_cc_g=yes
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4709 esac
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4712 esac
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4715 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4716 esac
4717 fi
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4719 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4720 if test $ac_test_CFLAGS; then
4721 CFLAGS=$ac_save_CFLAGS
4722 elif test $ac_cv_prog_cc_g = yes; then
4723 if test "$GCC" = yes; then
4724 CFLAGS="-g -O2"
4725 else
4726 CFLAGS="-g"
4727 fi
4728 else
4729 if test "$GCC" = yes; then
4730 CFLAGS="-O2"
4731 else
4732 CFLAGS=
4733 fi
4734 fi
4735 ac_prog_cc_stdc=no
4736 if test x$ac_prog_cc_stdc = xno
4737 then :
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4739 printf %s "checking for $CC option to enable C11 features... " >&6; }
4740 if test ${ac_cv_prog_cc_c11+y}
4741 then :
4742 printf %s "(cached) " >&6
4743 else case e in #(
4744 e) ac_cv_prog_cc_c11=no
4745 ac_save_CC=$CC
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 $ac_c_conftest_c11_program
4749 _ACEOF
4750 for ac_arg in '' -std=gnu11
4751 do
4752 CC="$ac_save_CC $ac_arg"
4753 if ac_fn_c_try_compile "$LINENO"
4754 then :
4755 ac_cv_prog_cc_c11=$ac_arg
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.beam
4758 test "x$ac_cv_prog_cc_c11" != "xno" && break
4759 done
4760 rm -f conftest.$ac_ext
4761 CC=$ac_save_CC ;;
4762 esac
4763 fi
4764
4765 if test "x$ac_cv_prog_cc_c11" = xno
4766 then :
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4768 printf "%s\n" "unsupported" >&6; }
4769 else case e in #(
4770 e) if test "x$ac_cv_prog_cc_c11" = x
4771 then :
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4773 printf "%s\n" "none needed" >&6; }
4774 else case e in #(
4775 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4776 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4777 CC="$CC $ac_cv_prog_cc_c11" ;;
4778 esac
4779 fi
4780 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4781 ac_prog_cc_stdc=c11 ;;
4782 esac
4783 fi
4784 fi
4785 if test x$ac_prog_cc_stdc = xno
4786 then :
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4788 printf %s "checking for $CC option to enable C99 features... " >&6; }
4789 if test ${ac_cv_prog_cc_c99+y}
4790 then :
4791 printf %s "(cached) " >&6
4792 else case e in #(
4793 e) ac_cv_prog_cc_c99=no
4794 ac_save_CC=$CC
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 $ac_c_conftest_c99_program
4798 _ACEOF
4799 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4800 do
4801 CC="$ac_save_CC $ac_arg"
4802 if ac_fn_c_try_compile "$LINENO"
4803 then :
4804 ac_cv_prog_cc_c99=$ac_arg
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.beam
4807 test "x$ac_cv_prog_cc_c99" != "xno" && break
4808 done
4809 rm -f conftest.$ac_ext
4810 CC=$ac_save_CC ;;
4811 esac
4812 fi
4813
4814 if test "x$ac_cv_prog_cc_c99" = xno
4815 then :
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4817 printf "%s\n" "unsupported" >&6; }
4818 else case e in #(
4819 e) if test "x$ac_cv_prog_cc_c99" = x
4820 then :
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4822 printf "%s\n" "none needed" >&6; }
4823 else case e in #(
4824 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4825 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4826 CC="$CC $ac_cv_prog_cc_c99" ;;
4827 esac
4828 fi
4829 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4830 ac_prog_cc_stdc=c99 ;;
4831 esac
4832 fi
4833 fi
4834 if test x$ac_prog_cc_stdc = xno
4835 then :
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4837 printf %s "checking for $CC option to enable C89 features... " >&6; }
4838 if test ${ac_cv_prog_cc_c89+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else case e in #(
4842 e) ac_cv_prog_cc_c89=no
4843 ac_save_CC=$CC
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846 $ac_c_conftest_c89_program
4847 _ACEOF
4848 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4849 do
4850 CC="$ac_save_CC $ac_arg"
4851 if ac_fn_c_try_compile "$LINENO"
4852 then :
4853 ac_cv_prog_cc_c89=$ac_arg
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.beam
4856 test "x$ac_cv_prog_cc_c89" != "xno" && break
4857 done
4858 rm -f conftest.$ac_ext
4859 CC=$ac_save_CC ;;
4860 esac
4861 fi
4862
4863 if test "x$ac_cv_prog_cc_c89" = xno
4864 then :
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4866 printf "%s\n" "unsupported" >&6; }
4867 else case e in #(
4868 e) if test "x$ac_cv_prog_cc_c89" = x
4869 then :
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4871 printf "%s\n" "none needed" >&6; }
4872 else case e in #(
4873 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4874 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4875 CC="$CC $ac_cv_prog_cc_c89" ;;
4876 esac
4877 fi
4878 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4879 ac_prog_cc_stdc=c89 ;;
4880 esac
4881 fi
4882 fi
4883
4884 ac_ext=c
4885 ac_cpp='$CPP $CPPFLAGS'
4886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889
4890
4891 ac_ext=c
4892 ac_cpp='$CPP $CPPFLAGS'
4893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4897 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4898 if test ${am_cv_prog_cc_c_o+y}
4899 then :
4900 printf %s "(cached) " >&6
4901 else case e in #(
4902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904
4905 int
4906 main (void)
4907 {
4908
4909 ;
4910 return 0;
4911 }
4912 _ACEOF
4913 # Make sure it works both with $CC and with simple cc.
4914 # Following AC_PROG_CC_C_O, we do the test twice because some
4915 # compilers refuse to overwrite an existing .o file with -o,
4916 # though they will create one.
4917 am_cv_prog_cc_c_o=yes
4918 for am_i in 1 2; do
4919 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4920 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } \
4924 && test -f conftest2.$ac_objext; then
4925 : OK
4926 else
4927 am_cv_prog_cc_c_o=no
4928 break
4929 fi
4930 done
4931 # aligned with autoconf, so not including core; see bug#72225.
4932 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4933 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4934 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4935 unset am_i ;;
4936 esac
4937 fi
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4939 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4940 if test "$am_cv_prog_cc_c_o" != yes; then
4941 # Losing compiler, so override with the script.
4942 # FIXME: It is wrong to rewrite CC.
4943 # But if we don't then we get into trouble of one sort or another.
4944 # A longer-term fix would be to have automake use am__CC in this case,
4945 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4946 CC="$am_aux_dir/compile $CC"
4947 fi
4948 ac_ext=c
4949 ac_cpp='$CPP $CPPFLAGS'
4950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4953
4954
4955 depcc="$CC" am_compiler_list=
4956
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4958 printf %s "checking dependency style of $depcc... " >&6; }
4959 if test ${am_cv_CC_dependencies_compiler_type+y}
4960 then :
4961 printf %s "(cached) " >&6
4962 else case e in #(
4963 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4964 # We make a subdir and do the tests there. Otherwise we can end up
4965 # making bogus files that we don't know about and never remove. For
4966 # instance it was reported that on HP-UX the gcc test will end up
4967 # making a dummy file named 'D' -- because '-MD' means "put the output
4968 # in D".
4969 rm -rf conftest.dir
4970 mkdir conftest.dir
4971 # Copy depcomp to subdir because otherwise we won't find it if we're
4972 # using a relative directory.
4973 cp "$am_depcomp" conftest.dir
4974 cd conftest.dir
4975 # We will build objects and dependencies in a subdirectory because
4976 # it helps to detect inapplicable dependency modes. For instance
4977 # both Tru64's cc and ICC support -MD to output dependencies as a
4978 # side effect of compilation, but ICC will put the dependencies in
4979 # the current directory while Tru64 will put them in the object
4980 # directory.
4981 mkdir sub
4982
4983 am_cv_CC_dependencies_compiler_type=none
4984 if test "$am_compiler_list" = ""; then
4985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4986 fi
4987 am__universal=false
4988 case " $depcc " in #(
4989 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4990 esac
4991
4992 for depmode in $am_compiler_list; do
4993 # Setup a source with many dependencies, because some compilers
4994 # like to wrap large dependency lists on column 80 (with \), and
4995 # we should not choose a depcomp mode which is confused by this.
4996 #
4997 # We need to recreate these files for each test, as the compiler may
4998 # overwrite some of them when testing with obscure command lines.
4999 # This happens at least with the AIX C compiler.
5000 : > sub/conftest.c
5001 for i in 1 2 3 4 5 6; do
5002 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5003 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5004 # Solaris 10 /bin/sh.
5005 echo '/* dummy */' > sub/conftst$i.h
5006 done
5007 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5008
5009 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5010 # mode. It turns out that the SunPro C++ compiler does not properly
5011 # handle '-M -o', and we need to detect this. Also, some Intel
5012 # versions had trouble with output in subdirs.
5013 am__obj=sub/conftest.${OBJEXT-o}
5014 am__minus_obj="-o $am__obj"
5015 case $depmode in
5016 gcc)
5017 # This depmode causes a compiler race in universal mode.
5018 test "$am__universal" = false || continue
5019 ;;
5020 nosideeffect)
5021 # After this tag, mechanisms are not by side-effect, so they'll
5022 # only be used when explicitly requested.
5023 if test "x$enable_dependency_tracking" = xyes; then
5024 continue
5025 else
5026 break
5027 fi
5028 ;;
5029 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5030 # This compiler won't grok '-c -o', but also, the minuso test has
5031 # not run yet. These depmodes are late enough in the game, and
5032 # so weak that their functioning should not be impacted.
5033 am__obj=conftest.${OBJEXT-o}
5034 am__minus_obj=
5035 ;;
5036 none) break ;;
5037 esac
5038 if depmode=$depmode \
5039 source=sub/conftest.c object=$am__obj \
5040 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5041 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5042 >/dev/null 2>conftest.err &&
5043 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5044 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5045 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5046 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5047 # icc doesn't choke on unknown options, it will just issue warnings
5048 # or remarks (even with -Werror). So we grep stderr for any message
5049 # that says an option was ignored or not supported.
5050 # When given -MP, icc 7.0 and 7.1 complain thus:
5051 # icc: Command line warning: ignoring option '-M'; no argument required
5052 # The diagnosis changed in icc 8.0:
5053 # icc: Command line remark: option '-MP' not supported
5054 if (grep 'ignoring option' conftest.err ||
5055 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5056 am_cv_CC_dependencies_compiler_type=$depmode
5057 break
5058 fi
5059 fi
5060 done
5061
5062 cd ..
5063 rm -rf conftest.dir
5064 else
5065 am_cv_CC_dependencies_compiler_type=none
5066 fi
5067 ;;
5068 esac
5069 fi
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5071 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5073
5074 if
5075 test "x$enable_dependency_tracking" != xno \
5076 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5077 am__fastdepCC_TRUE=
5078 am__fastdepCC_FALSE='#'
5079 else
5080 am__fastdepCC_TRUE='#'
5081 am__fastdepCC_FALSE=
5082 fi
5083
5084
5085
5086 ac_header= ac_cache=
5087 for ac_item in $ac_header_c_list
5088 do
5089 if test $ac_cache; then
5090 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5091 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5092 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5093 fi
5094 ac_header= ac_cache=
5095 elif test $ac_header; then
5096 ac_cache=$ac_item
5097 else
5098 ac_header=$ac_item
5099 fi
5100 done
5101
5102
5103
5104
5105
5106
5107
5108
5109 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5110 then :
5111
5112 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5113
5114 fi
5115
5116
5117
5118
5119
5120
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5122 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5123 if test ${ac_cv_safe_to_define___extensions__+y}
5124 then :
5125 printf %s "(cached) " >&6
5126 else case e in #(
5127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129
5130 # define __EXTENSIONS__ 1
5131 $ac_includes_default
5132 int
5133 main (void)
5134 {
5135
5136 ;
5137 return 0;
5138 }
5139 _ACEOF
5140 if ac_fn_c_try_compile "$LINENO"
5141 then :
5142 ac_cv_safe_to_define___extensions__=yes
5143 else case e in #(
5144 e) ac_cv_safe_to_define___extensions__=no ;;
5145 esac
5146 fi
5147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5148 esac
5149 fi
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5151 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5152
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5154 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5155 if test ${ac_cv_should_define__xopen_source+y}
5156 then :
5157 printf %s "(cached) " >&6
5158 else case e in #(
5159 e) ac_cv_should_define__xopen_source=no
5160 if test $ac_cv_header_wchar_h = yes
5161 then :
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164
5165 #include <wchar.h>
5166 mbstate_t x;
5167 int
5168 main (void)
5169 {
5170
5171 ;
5172 return 0;
5173 }
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"
5176 then :
5177
5178 else case e in #(
5179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181
5182 #define _XOPEN_SOURCE 500
5183 #include <wchar.h>
5184 mbstate_t x;
5185 int
5186 main (void)
5187 {
5188
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_compile "$LINENO"
5194 then :
5195 ac_cv_should_define__xopen_source=yes
5196 fi
5197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5198 esac
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5201 fi ;;
5202 esac
5203 fi
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5205 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5206
5207 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5208
5209 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5210
5211 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5212
5213 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5214
5215 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5216
5217 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5218
5219 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5220
5221 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5222
5223 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5224
5225 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5226
5227 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5228
5229 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5230
5231 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5232
5233 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5234
5235 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5236
5237 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5238
5239 if test $ac_cv_header_minix_config_h = yes
5240 then :
5241 MINIX=yes
5242 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5243
5244 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5245
5246 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5247
5248 else case e in #(
5249 e) MINIX= ;;
5250 esac
5251 fi
5252 if test $ac_cv_safe_to_define___extensions__ = yes
5253 then :
5254 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5255
5256 fi
5257 if test $ac_cv_should_define__xopen_source = yes
5258 then :
5259 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5260
5261 fi
5262
5263 # Check whether --enable-compiler-warnings was given.
5264 if test ${enable_compiler_warnings+y}
5265 then :
5266 enableval=$enable_compiler_warnings;
5267 fi
5268 case $enable_compiler_warnings in #(
5269 no | min | yes | max | all) :
5270 ;; #(
5271 *) :
5272 if test "x$enable_maintainer_mode" = xyes
5273 then :
5274 enable_compiler_warnings=yes
5275 else case e in #(
5276 e) enable_compiler_warnings=min ;;
5277 esac
5278 fi ;;
5279 esac
5280
5281 case `pwd` in
5282 *\ * | *\ *)
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5284 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5285 esac
5286
5287
5288
5289 macro_version='2.5.4'
5290 macro_revision='2.5.4'
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305 ltmain=$ac_aux_dir/ltmain.sh
5306
5307
5308
5309 # Make sure we can run config.sub.
5310 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5311 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5312
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5314 printf %s "checking build system type... " >&6; }
5315 if test ${ac_cv_build+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else case e in #(
5319 e) ac_build_alias=$build_alias
5320 test "x$ac_build_alias" = x &&
5321 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5322 test "x$ac_build_alias" = x &&
5323 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5324 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5325 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5326 ;;
5327 esac
5328 fi
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5330 printf "%s\n" "$ac_cv_build" >&6; }
5331 case $ac_cv_build in
5332 *-*-*) ;;
5333 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5334 esac
5335 build=$ac_cv_build
5336 ac_save_IFS=$IFS; IFS='-'
5337 set x $ac_cv_build
5338 shift
5339 build_cpu=$1
5340 build_vendor=$2
5341 shift; shift
5342 # Remember, the first character of IFS is used to create $*,
5343 # except with old shells:
5344 build_os=$*
5345 IFS=$ac_save_IFS
5346 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5347
5348
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5350 printf %s "checking host system type... " >&6; }
5351 if test ${ac_cv_host+y}
5352 then :
5353 printf %s "(cached) " >&6
5354 else case e in #(
5355 e) if test "x$host_alias" = x; then
5356 ac_cv_host=$ac_cv_build
5357 else
5358 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5359 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5360 fi
5361 ;;
5362 esac
5363 fi
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5365 printf "%s\n" "$ac_cv_host" >&6; }
5366 case $ac_cv_host in
5367 *-*-*) ;;
5368 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5369 esac
5370 host=$ac_cv_host
5371 ac_save_IFS=$IFS; IFS='-'
5372 set x $ac_cv_host
5373 shift
5374 host_cpu=$1
5375 host_vendor=$2
5376 shift; shift
5377 # Remember, the first character of IFS is used to create $*,
5378 # except with old shells:
5379 host_os=$*
5380 IFS=$ac_save_IFS
5381 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5382
5383
5384 # Backslashify metacharacters that are still active within
5385 # double-quoted strings.
5386 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5387
5388 # Same as above, but do not quote variable references.
5389 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5390
5391 # Sed substitution to delay expansion of an escaped shell variable in a
5392 # double_quote_subst'ed string.
5393 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5394
5395 # Sed substitution to delay expansion of an escaped single quote.
5396 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5397
5398 # Sed substitution to avoid accidental globbing in evaled expressions
5399 no_glob_subst='s/\*/\\\*/g'
5400
5401 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5402 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5403 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5404
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5406 printf %s "checking how to print strings... " >&6; }
5407 # Test print first, because it will be a builtin if present.
5408 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5409 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5410 ECHO='print -r --'
5411 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5412 ECHO='printf %s\n'
5413 else
5414 # Use this function as a fallback that always works.
5415 func_fallback_echo ()
5416 {
5417 eval 'cat <<_LTECHO_EOF
5418 $1
5419 _LTECHO_EOF'
5420 }
5421 ECHO='func_fallback_echo'
5422 fi
5423
5424 # func_echo_all arg...
5425 # Invoke $ECHO with all args, space-separated.
5426 func_echo_all ()
5427 {
5428 $ECHO ""
5429 }
5430
5431 case $ECHO in
5432 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5433 printf "%s\n" "printf" >&6; } ;;
5434 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5435 printf "%s\n" "print -r" >&6; } ;;
5436 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5437 printf "%s\n" "cat" >&6; } ;;
5438 esac
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5454 printf %s "checking for a sed that does not truncate output... " >&6; }
5455 if test ${ac_cv_path_SED+y}
5456 then :
5457 printf %s "(cached) " >&6
5458 else case e in #(
5459 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5460 for ac_i in 1 2 3 4 5 6 7; do
5461 ac_script="$ac_script$as_nl$ac_script"
5462 done
5463 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5464 { ac_script=; unset ac_script;}
5465 if test -z "$SED"; then
5466 ac_path_SED_found=false
5467 # Loop through the user's path and test for each of PROGNAME-LIST
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471 IFS=$as_save_IFS
5472 case $as_dir in #(((
5473 '') as_dir=./ ;;
5474 */) ;;
5475 *) as_dir=$as_dir/ ;;
5476 esac
5477 for ac_prog in sed gsed
5478 do
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5481 as_fn_executable_p "$ac_path_SED" || continue
5482 # Check for GNU ac_path_SED and select it if it is found.
5483 # Check for GNU $ac_path_SED
5484 case `"$ac_path_SED" --version 2>&1` in #(
5485 *GNU*)
5486 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5487 #(
5488 *)
5489 ac_count=0
5490 printf %s 0123456789 >"conftest.in"
5491 while :
5492 do
5493 cat "conftest.in" "conftest.in" >"conftest.tmp"
5494 mv "conftest.tmp" "conftest.in"
5495 cp "conftest.in" "conftest.nl"
5496 printf "%s\n" '' >> "conftest.nl"
5497 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5499 as_fn_arith $ac_count + 1 && ac_count=$as_val
5500 if test $ac_count -gt ${ac_path_SED_max-0}; then
5501 # Best one so far, save it but keep looking for a better one
5502 ac_cv_path_SED="$ac_path_SED"
5503 ac_path_SED_max=$ac_count
5504 fi
5505 # 10*(2^10) chars as input seems more than enough
5506 test $ac_count -gt 10 && break
5507 done
5508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5509 esac
5510
5511 $ac_path_SED_found && break 3
5512 done
5513 done
5514 done
5515 IFS=$as_save_IFS
5516 if test -z "$ac_cv_path_SED"; then
5517 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5518 fi
5519 else
5520 ac_cv_path_SED=$SED
5521 fi
5522 ;;
5523 esac
5524 fi
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5526 printf "%s\n" "$ac_cv_path_SED" >&6; }
5527 SED="$ac_cv_path_SED"
5528 rm -f conftest.sed
5529
5530 test -z "$SED" && SED=sed
5531 Xsed="$SED -e 1s/^X//"
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5544 printf %s "checking for grep that handles long lines and -e... " >&6; }
5545 if test ${ac_cv_path_GREP+y}
5546 then :
5547 printf %s "(cached) " >&6
5548 else case e in #(
5549 e) if test -z "$GREP"; then
5550 ac_path_GREP_found=false
5551 # Loop through the user's path and test for each of PROGNAME-LIST
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5554 do
5555 IFS=$as_save_IFS
5556 case $as_dir in #(((
5557 '') as_dir=./ ;;
5558 */) ;;
5559 *) as_dir=$as_dir/ ;;
5560 esac
5561 for ac_prog in grep ggrep
5562 do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5565 as_fn_executable_p "$ac_path_GREP" || continue
5566 # Check for GNU ac_path_GREP and select it if it is found.
5567 # Check for GNU $ac_path_GREP
5568 case `"$ac_path_GREP" --version 2>&1` in #(
5569 *GNU*)
5570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5571 #(
5572 *)
5573 ac_count=0
5574 printf %s 0123456789 >"conftest.in"
5575 while :
5576 do
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 printf "%s\n" 'GREP' >> "conftest.nl"
5581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 as_fn_arith $ac_count + 1 && ac_count=$as_val
5584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_GREP="$ac_path_GREP"
5587 ac_path_GREP_max=$ac_count
5588 fi
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5591 done
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593 esac
5594
5595 $ac_path_GREP_found && break 3
5596 done
5597 done
5598 done
5599 IFS=$as_save_IFS
5600 if test -z "$ac_cv_path_GREP"; then
5601 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5602 fi
5603 else
5604 ac_cv_path_GREP=$GREP
5605 fi
5606 ;;
5607 esac
5608 fi
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5610 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5611 GREP="$ac_cv_path_GREP"
5612
5613
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5615 printf %s "checking for egrep... " >&6; }
5616 if test ${ac_cv_path_EGREP+y}
5617 then :
5618 printf %s "(cached) " >&6
5619 else case e in #(
5620 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5621 then ac_cv_path_EGREP="$GREP -E"
5622 else
5623 if test -z "$EGREP"; then
5624 ac_path_EGREP_found=false
5625 # Loop through the user's path and test for each of PROGNAME-LIST
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5628 do
5629 IFS=$as_save_IFS
5630 case $as_dir in #(((
5631 '') as_dir=./ ;;
5632 */) ;;
5633 *) as_dir=$as_dir/ ;;
5634 esac
5635 for ac_prog in egrep
5636 do
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5639 as_fn_executable_p "$ac_path_EGREP" || continue
5640 # Check for GNU ac_path_EGREP and select it if it is found.
5641 # Check for GNU $ac_path_EGREP
5642 case `"$ac_path_EGREP" --version 2>&1` in #(
5643 *GNU*)
5644 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5645 #(
5646 *)
5647 ac_count=0
5648 printf %s 0123456789 >"conftest.in"
5649 while :
5650 do
5651 cat "conftest.in" "conftest.in" >"conftest.tmp"
5652 mv "conftest.tmp" "conftest.in"
5653 cp "conftest.in" "conftest.nl"
5654 printf "%s\n" 'EGREP' >> "conftest.nl"
5655 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5657 as_fn_arith $ac_count + 1 && ac_count=$as_val
5658 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5659 # Best one so far, save it but keep looking for a better one
5660 ac_cv_path_EGREP="$ac_path_EGREP"
5661 ac_path_EGREP_max=$ac_count
5662 fi
5663 # 10*(2^10) chars as input seems more than enough
5664 test $ac_count -gt 10 && break
5665 done
5666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 esac
5668
5669 $ac_path_EGREP_found && break 3
5670 done
5671 done
5672 done
5673 IFS=$as_save_IFS
5674 if test -z "$ac_cv_path_EGREP"; then
5675 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5676 fi
5677 else
5678 ac_cv_path_EGREP=$EGREP
5679 fi
5680
5681 fi ;;
5682 esac
5683 fi
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5685 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5686 EGREP="$ac_cv_path_EGREP"
5687
5688 EGREP_TRADITIONAL=$EGREP
5689 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5690
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5692 printf %s "checking for fgrep... " >&6; }
5693 if test ${ac_cv_path_FGREP+y}
5694 then :
5695 printf %s "(cached) " >&6
5696 else case e in #(
5697 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5698 then ac_cv_path_FGREP="$GREP -F"
5699 else
5700 if test -z "$FGREP"; then
5701 ac_path_FGREP_found=false
5702 # Loop through the user's path and test for each of PROGNAME-LIST
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5705 do
5706 IFS=$as_save_IFS
5707 case $as_dir in #(((
5708 '') as_dir=./ ;;
5709 */) ;;
5710 *) as_dir=$as_dir/ ;;
5711 esac
5712 for ac_prog in fgrep
5713 do
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5716 as_fn_executable_p "$ac_path_FGREP" || continue
5717 # Check for GNU ac_path_FGREP and select it if it is found.
5718 # Check for GNU $ac_path_FGREP
5719 case `"$ac_path_FGREP" --version 2>&1` in #(
5720 *GNU*)
5721 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5722 #(
5723 *)
5724 ac_count=0
5725 printf %s 0123456789 >"conftest.in"
5726 while :
5727 do
5728 cat "conftest.in" "conftest.in" >"conftest.tmp"
5729 mv "conftest.tmp" "conftest.in"
5730 cp "conftest.in" "conftest.nl"
5731 printf "%s\n" 'FGREP' >> "conftest.nl"
5732 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5734 as_fn_arith $ac_count + 1 && ac_count=$as_val
5735 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5736 # Best one so far, save it but keep looking for a better one
5737 ac_cv_path_FGREP="$ac_path_FGREP"
5738 ac_path_FGREP_max=$ac_count
5739 fi
5740 # 10*(2^10) chars as input seems more than enough
5741 test $ac_count -gt 10 && break
5742 done
5743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5744 esac
5745
5746 $ac_path_FGREP_found && break 3
5747 done
5748 done
5749 done
5750 IFS=$as_save_IFS
5751 if test -z "$ac_cv_path_FGREP"; then
5752 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5753 fi
5754 else
5755 ac_cv_path_FGREP=$FGREP
5756 fi
5757
5758 fi ;;
5759 esac
5760 fi
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5762 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5763 FGREP="$ac_cv_path_FGREP"
5764
5765
5766 test -z "$GREP" && GREP=grep
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786 # Check whether --with-gnu-ld was given.
5787 if test ${with_gnu_ld+y}
5788 then :
5789 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5790 else case e in #(
5791 e) with_gnu_ld=no ;;
5792 esac
5793 fi
5794
5795 ac_prog=ld
5796 if test yes = "$GCC"; then
5797 # Check if gcc -print-prog-name=ld gives a path.
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5799 printf %s "checking for ld used by $CC... " >&6; }
5800 case $host in
5801 *-*-mingw* | *-*-windows*)
5802 # gcc leaves a trailing carriage return, which upsets mingw
5803 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5804 *)
5805 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5806 esac
5807 case $ac_prog in
5808 # Accept absolute paths.
5809 [\\/]* | ?:[\\/]*)
5810 re_direlt='/[^/][^/]*/\.\./'
5811 # Canonicalize the pathname of ld
5812 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5813 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5814 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5815 done
5816 test -z "$LD" && LD=$ac_prog
5817 ;;
5818 "")
5819 # If it fails, then pretend we aren't using GCC.
5820 ac_prog=ld
5821 ;;
5822 *)
5823 # If it is relative, then search for the first ld in PATH.
5824 with_gnu_ld=unknown
5825 ;;
5826 esac
5827 elif test yes = "$with_gnu_ld"; then
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5829 printf %s "checking for GNU ld... " >&6; }
5830 else
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5832 printf %s "checking for non-GNU ld... " >&6; }
5833 fi
5834 if test ${lt_cv_path_LD+y}
5835 then :
5836 printf %s "(cached) " >&6
5837 else case e in #(
5838 e) if test -z "$LD"; then
5839 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5840 for ac_dir in $PATH; do
5841 IFS=$lt_save_ifs
5842 test -z "$ac_dir" && ac_dir=.
5843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5844 lt_cv_path_LD=$ac_dir/$ac_prog
5845 # Check to see if the program is GNU ld. I'd rather use --version,
5846 # but apparently some variants of GNU ld only accept -v.
5847 # Break only if it was the GNU/non-GNU ld that we prefer.
5848 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5849 *GNU* | *'with BFD'*)
5850 test no != "$with_gnu_ld" && break
5851 ;;
5852 *)
5853 test yes != "$with_gnu_ld" && break
5854 ;;
5855 esac
5856 fi
5857 done
5858 IFS=$lt_save_ifs
5859 else
5860 lt_cv_path_LD=$LD # Let the user override the test with a path.
5861 fi ;;
5862 esac
5863 fi
5864
5865 LD=$lt_cv_path_LD
5866 if test -n "$LD"; then
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5868 printf "%s\n" "$LD" >&6; }
5869 else
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 printf "%s\n" "no" >&6; }
5872 fi
5873 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5875 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5876 if test ${lt_cv_prog_gnu_ld+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else case e in #(
5880 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5881 case `$LD -v 2>&1 </dev/null` in
5882 *GNU* | *'with BFD'*)
5883 lt_cv_prog_gnu_ld=yes
5884 ;;
5885 *)
5886 lt_cv_prog_gnu_ld=no
5887 ;;
5888 esac ;;
5889 esac
5890 fi
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5892 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5893 with_gnu_ld=$lt_cv_prog_gnu_ld
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5904 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5905 if test ${lt_cv_path_NM+y}
5906 then :
5907 printf %s "(cached) " >&6
5908 else case e in #(
5909 e) if test -n "$NM"; then
5910 # Let the user override the test.
5911 lt_cv_path_NM=$NM
5912 else
5913 lt_nm_to_check=${ac_tool_prefix}nm
5914 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5915 lt_nm_to_check="$lt_nm_to_check nm"
5916 fi
5917 for lt_tmp_nm in $lt_nm_to_check; do
5918 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5919 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5920 IFS=$lt_save_ifs
5921 test -z "$ac_dir" && ac_dir=.
5922 tmp_nm=$ac_dir/$lt_tmp_nm
5923 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5924 # Check to see if the nm accepts a BSD-compat flag.
5925 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5926 # nm: unknown option "B" ignored
5927 # Tru64's nm complains that /dev/null is an invalid object file
5928 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5929 case $build_os in
5930 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5931 *) lt_bad_file=/dev/null ;;
5932 esac
5933 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5934 *$lt_bad_file* | *'Invalid file or object type'*)
5935 lt_cv_path_NM="$tmp_nm -B"
5936 break 2
5937 ;;
5938 *)
5939 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5940 */dev/null*)
5941 lt_cv_path_NM="$tmp_nm -p"
5942 break 2
5943 ;;
5944 *)
5945 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5946 continue # so that we can try to find one that supports BSD flags
5947 ;;
5948 esac
5949 ;;
5950 esac
5951 fi
5952 done
5953 IFS=$lt_save_ifs
5954 done
5955 : ${lt_cv_path_NM=no}
5956 fi ;;
5957 esac
5958 fi
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5960 printf "%s\n" "$lt_cv_path_NM" >&6; }
5961 if test no != "$lt_cv_path_NM"; then
5962 NM=$lt_cv_path_NM
5963 else
5964 # Didn't find any BSD compatible name lister, look for dumpbin.
5965 if test -n "$DUMPBIN"; then :
5966 # Let the user override the test.
5967 else
5968 if test -n "$ac_tool_prefix"; then
5969 for ac_prog in dumpbin "link -dump"
5970 do
5971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 printf %s "checking for $ac_word... " >&6; }
5975 if test ${ac_cv_prog_DUMPBIN+y}
5976 then :
5977 printf %s "(cached) " >&6
5978 else case e in #(
5979 e) if test -n "$DUMPBIN"; then
5980 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985 IFS=$as_save_IFS
5986 case $as_dir in #(((
5987 '') as_dir=./ ;;
5988 */) ;;
5989 *) as_dir=$as_dir/ ;;
5990 esac
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5995 break 2
5996 fi
5997 done
5998 done
5999 IFS=$as_save_IFS
6000
6001 fi ;;
6002 esac
6003 fi
6004 DUMPBIN=$ac_cv_prog_DUMPBIN
6005 if test -n "$DUMPBIN"; then
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6007 printf "%s\n" "$DUMPBIN" >&6; }
6008 else
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 printf "%s\n" "no" >&6; }
6011 fi
6012
6013
6014 test -n "$DUMPBIN" && break
6015 done
6016 fi
6017 if test -z "$DUMPBIN"; then
6018 ac_ct_DUMPBIN=$DUMPBIN
6019 for ac_prog in dumpbin "link -dump"
6020 do
6021 # Extract the first word of "$ac_prog", so it can be a program name with args.
6022 set dummy $ac_prog; ac_word=$2
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 printf %s "checking for $ac_word... " >&6; }
6025 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6026 then :
6027 printf %s "(cached) " >&6
6028 else case e in #(
6029 e) if test -n "$ac_ct_DUMPBIN"; then
6030 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035 IFS=$as_save_IFS
6036 case $as_dir in #(((
6037 '') as_dir=./ ;;
6038 */) ;;
6039 *) as_dir=$as_dir/ ;;
6040 esac
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047 done
6048 done
6049 IFS=$as_save_IFS
6050
6051 fi ;;
6052 esac
6053 fi
6054 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6055 if test -n "$ac_ct_DUMPBIN"; then
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6057 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6058 else
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 printf "%s\n" "no" >&6; }
6061 fi
6062
6063
6064 test -n "$ac_ct_DUMPBIN" && break
6065 done
6066
6067 if test "x$ac_ct_DUMPBIN" = x; then
6068 DUMPBIN=":"
6069 else
6070 case $cross_compiling:$ac_tool_warned in
6071 yes:)
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074 ac_tool_warned=yes ;;
6075 esac
6076 DUMPBIN=$ac_ct_DUMPBIN
6077 fi
6078 fi
6079
6080 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6081 *COFF*)
6082 DUMPBIN="$DUMPBIN -symbols -headers"
6083 ;;
6084 *)
6085 DUMPBIN=:
6086 ;;
6087 esac
6088 fi
6089
6090 if test : != "$DUMPBIN"; then
6091 NM=$DUMPBIN
6092 fi
6093 fi
6094 test -z "$NM" && NM=nm
6095
6096
6097
6098
6099
6100
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6102 printf %s "checking the name lister ($NM) interface... " >&6; }
6103 if test ${lt_cv_nm_interface+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else case e in #(
6107 e) lt_cv_nm_interface="BSD nm"
6108 echo "int some_variable = 0;" > conftest.$ac_ext
6109 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6110 (eval "$ac_compile" 2>conftest.err)
6111 cat conftest.err >&5
6112 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6113 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6114 cat conftest.err >&5
6115 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6116 cat conftest.out >&5
6117 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6118 lt_cv_nm_interface="MS dumpbin"
6119 fi
6120 rm -f conftest* ;;
6121 esac
6122 fi
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6124 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6125
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6127 printf %s "checking whether ln -s works... " >&6; }
6128 LN_S=$as_ln_s
6129 if test "$LN_S" = "ln -s"; then
6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6131 printf "%s\n" "yes" >&6; }
6132 else
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6134 printf "%s\n" "no, using $LN_S" >&6; }
6135 fi
6136
6137 # find the maximum length of command line arguments
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6139 printf %s "checking the maximum length of command line arguments... " >&6; }
6140 if test ${lt_cv_sys_max_cmd_len+y}
6141 then :
6142 printf %s "(cached) " >&6
6143 else case e in #(
6144 e) i=0
6145 teststring=ABCD
6146
6147 case $build_os in
6148 msdosdjgpp*)
6149 # On DJGPP, this test can blow up pretty badly due to problems in libc
6150 # (any single argument exceeding 2000 bytes causes a buffer overrun
6151 # during glob expansion). Even if it were fixed, the result of this
6152 # check would be larger than it should be.
6153 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6154 ;;
6155
6156 gnu* | ironclad*)
6157 # Under GNU Hurd and Ironclad, this test is not required because there
6158 # is no limit to the length of command line arguments.
6159 # Libtool will interpret -1 as no limit whatsoever
6160 lt_cv_sys_max_cmd_len=-1;
6161 ;;
6162
6163 cygwin* | mingw* | windows* | cegcc*)
6164 # On Win9x/ME, this test blows up -- it succeeds, but takes
6165 # about 5 minutes as the teststring grows exponentially.
6166 # Worse, since 9x/ME are not pre-emptively multitasking,
6167 # you end up with a "frozen" computer, even though with patience
6168 # the test eventually succeeds (with a max line length of 256k).
6169 # Instead, let's just punt: use the minimum linelength reported by
6170 # all of the supported platforms: 8192 (on NT/2K/XP).
6171 lt_cv_sys_max_cmd_len=8192;
6172 ;;
6173
6174 mint*)
6175 # On MiNT this can take a long time and run out of memory.
6176 lt_cv_sys_max_cmd_len=8192;
6177 ;;
6178
6179 amigaos*)
6180 # On AmigaOS with pdksh, this test takes hours, literally.
6181 # So we just punt and use a minimum line length of 8192.
6182 lt_cv_sys_max_cmd_len=8192;
6183 ;;
6184
6185 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6186 # This has been around since 386BSD, at least. Likely further.
6187 if test -x /sbin/sysctl; then
6188 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6189 elif test -x /usr/sbin/sysctl; then
6190 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6191 else
6192 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6193 fi
6194 # And add a safety zone
6195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6197 ;;
6198
6199 interix*)
6200 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6201 lt_cv_sys_max_cmd_len=196608
6202 ;;
6203
6204 os2*)
6205 # The test takes a long time on OS/2.
6206 lt_cv_sys_max_cmd_len=8192
6207 ;;
6208
6209 osf*)
6210 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6211 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6212 # nice to cause kernel panics so lets avoid the loop below.
6213 # First set a reasonable default.
6214 lt_cv_sys_max_cmd_len=16384
6215 #
6216 if test -x /sbin/sysconfig; then
6217 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6218 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6219 esac
6220 fi
6221 ;;
6222 sco3.2v5*)
6223 lt_cv_sys_max_cmd_len=102400
6224 ;;
6225 sysv5* | sco5v6* | sysv4.2uw2*)
6226 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6227 if test -n "$kargmax"; then
6228 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6229 else
6230 lt_cv_sys_max_cmd_len=32768
6231 fi
6232 ;;
6233 *)
6234 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6235 if test -n "$lt_cv_sys_max_cmd_len" && \
6236 test undefined != "$lt_cv_sys_max_cmd_len"; then
6237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6239 else
6240 # Make teststring a little bigger before we do anything with it.
6241 # a 1K string should be a reasonable start.
6242 for i in 1 2 3 4 5 6 7 8; do
6243 teststring=$teststring$teststring
6244 done
6245 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6246 # If test is not a shell built-in, we'll probably end up computing a
6247 # maximum length that is only half of the actual maximum length, but
6248 # we can't tell.
6249 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6250 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6251 test 17 != "$i" # 1/2 MB should be enough
6252 do
6253 i=`expr $i + 1`
6254 teststring=$teststring$teststring
6255 done
6256 # Only check the string length outside the loop.
6257 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6258 teststring=
6259 # Add a significant safety factor because C++ compilers can tack on
6260 # massive amounts of additional arguments before passing them to the
6261 # linker. It appears as though 1/2 is a usable value.
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6263 fi
6264 ;;
6265 esac
6266 ;;
6267 esac
6268 fi
6269
6270 if test -n "$lt_cv_sys_max_cmd_len"; then
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6272 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6273 else
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6275 printf "%s\n" "none" >&6; }
6276 fi
6277 max_cmd_len=$lt_cv_sys_max_cmd_len
6278
6279
6280
6281
6282
6283
6284 : ${CP="cp -f"}
6285 : ${MV="mv -f"}
6286 : ${RM="rm -f"}
6287
6288 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6289 lt_unset=unset
6290 else
6291 lt_unset=false
6292 fi
6293
6294
6295
6296
6297
6298 # test EBCDIC or ASCII
6299 case `echo X|tr X '\101'` in
6300 A) # ASCII based system
6301 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6302 lt_SP2NL='tr \040 \012'
6303 lt_NL2SP='tr \015\012 \040\040'
6304 ;;
6305 *) # EBCDIC based system
6306 lt_SP2NL='tr \100 \n'
6307 lt_NL2SP='tr \r\n \100\100'
6308 ;;
6309 esac
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6320 printf %s "checking how to convert $build file names to $host format... " >&6; }
6321 if test ${lt_cv_to_host_file_cmd+y}
6322 then :
6323 printf %s "(cached) " >&6
6324 else case e in #(
6325 e) case $host in
6326 *-*-mingw* )
6327 case $build in
6328 *-*-mingw* | *-*-windows* ) # actually msys
6329 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6330 ;;
6331 *-*-cygwin* )
6332 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6333 ;;
6334 * ) # otherwise, assume *nix
6335 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6336 ;;
6337 esac
6338 ;;
6339 *-*-cygwin* )
6340 case $build in
6341 *-*-mingw* | *-*-windows* ) # actually msys
6342 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6343 ;;
6344 *-*-cygwin* )
6345 lt_cv_to_host_file_cmd=func_convert_file_noop
6346 ;;
6347 * ) # otherwise, assume *nix
6348 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6349 ;;
6350 esac
6351 ;;
6352 * ) # unhandled hosts (and "normal" native builds)
6353 lt_cv_to_host_file_cmd=func_convert_file_noop
6354 ;;
6355 esac
6356 ;;
6357 esac
6358 fi
6359
6360 to_host_file_cmd=$lt_cv_to_host_file_cmd
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6362 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6363
6364
6365
6366
6367
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6369 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6370 if test ${lt_cv_to_tool_file_cmd+y}
6371 then :
6372 printf %s "(cached) " >&6
6373 else case e in #(
6374 e) #assume ordinary cross tools, or native build.
6375 lt_cv_to_tool_file_cmd=func_convert_file_noop
6376 case $host in
6377 *-*-mingw* | *-*-windows* )
6378 case $build in
6379 *-*-mingw* | *-*-windows* ) # actually msys
6380 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6381 ;;
6382 esac
6383 ;;
6384 esac
6385 ;;
6386 esac
6387 fi
6388
6389 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6391 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6392
6393
6394
6395
6396
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6398 printf %s "checking for $LD option to reload object files... " >&6; }
6399 if test ${lt_cv_ld_reload_flag+y}
6400 then :
6401 printf %s "(cached) " >&6
6402 else case e in #(
6403 e) lt_cv_ld_reload_flag='-r' ;;
6404 esac
6405 fi
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6407 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6408 reload_flag=$lt_cv_ld_reload_flag
6409 case $reload_flag in
6410 "" | " "*) ;;
6411 *) reload_flag=" $reload_flag" ;;
6412 esac
6413 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6414 case $host_os in
6415 cygwin* | mingw* | windows* | pw32* | cegcc*)
6416 if test yes != "$GCC"; then
6417 reload_cmds=false
6418 fi
6419 ;;
6420 darwin*)
6421 if test yes = "$GCC"; then
6422 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6423 else
6424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6425 fi
6426 ;;
6427 esac
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 # Extract the first word of "file", so it can be a program name with args.
6438 set dummy file; ac_word=$2
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 printf %s "checking for $ac_word... " >&6; }
6441 if test ${ac_cv_prog_FILECMD+y}
6442 then :
6443 printf %s "(cached) " >&6
6444 else case e in #(
6445 e) if test -n "$FILECMD"; then
6446 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 case $as_dir in #(((
6453 '') as_dir=./ ;;
6454 */) ;;
6455 *) as_dir=$as_dir/ ;;
6456 esac
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_FILECMD="file"
6460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463 done
6464 done
6465 IFS=$as_save_IFS
6466
6467 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6468 fi ;;
6469 esac
6470 fi
6471 FILECMD=$ac_cv_prog_FILECMD
6472 if test -n "$FILECMD"; then
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6474 printf "%s\n" "$FILECMD" >&6; }
6475 else
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 printf "%s\n" "no" >&6; }
6478 fi
6479
6480
6481
6482
6483
6484
6485
6486
6487 if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 printf %s "checking for $ac_word... " >&6; }
6492 if test ${ac_cv_prog_OBJDUMP+y}
6493 then :
6494 printf %s "(cached) " >&6
6495 else case e in #(
6496 e) if test -n "$OBJDUMP"; then
6497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502 IFS=$as_save_IFS
6503 case $as_dir in #(((
6504 '') as_dir=./ ;;
6505 */) ;;
6506 *) as_dir=$as_dir/ ;;
6507 esac
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514 done
6515 done
6516 IFS=$as_save_IFS
6517
6518 fi ;;
6519 esac
6520 fi
6521 OBJDUMP=$ac_cv_prog_OBJDUMP
6522 if test -n "$OBJDUMP"; then
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6524 printf "%s\n" "$OBJDUMP" >&6; }
6525 else
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 printf "%s\n" "no" >&6; }
6528 fi
6529
6530
6531 fi
6532 if test -z "$ac_cv_prog_OBJDUMP"; then
6533 ac_ct_OBJDUMP=$OBJDUMP
6534 # Extract the first word of "objdump", so it can be a program name with args.
6535 set dummy objdump; ac_word=$2
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 printf %s "checking for $ac_word... " >&6; }
6538 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6539 then :
6540 printf %s "(cached) " >&6
6541 else case e in #(
6542 e) if test -n "$ac_ct_OBJDUMP"; then
6543 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 case $as_dir in #(((
6550 '') as_dir=./ ;;
6551 */) ;;
6552 *) as_dir=$as_dir/ ;;
6553 esac
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560 done
6561 done
6562 IFS=$as_save_IFS
6563
6564 fi ;;
6565 esac
6566 fi
6567 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6568 if test -n "$ac_ct_OBJDUMP"; then
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6570 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6571 else
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 printf "%s\n" "no" >&6; }
6574 fi
6575
6576 if test "x$ac_ct_OBJDUMP" = x; then
6577 OBJDUMP="false"
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580 yes:)
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583 ac_tool_warned=yes ;;
6584 esac
6585 OBJDUMP=$ac_ct_OBJDUMP
6586 fi
6587 else
6588 OBJDUMP="$ac_cv_prog_OBJDUMP"
6589 fi
6590
6591 test -z "$OBJDUMP" && OBJDUMP=objdump
6592
6593
6594
6595
6596
6597
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6599 printf %s "checking how to recognize dependent libraries... " >&6; }
6600 if test ${lt_cv_deplibs_check_method+y}
6601 then :
6602 printf %s "(cached) " >&6
6603 else case e in #(
6604 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6605 lt_cv_file_magic_test_file=
6606 lt_cv_deplibs_check_method='unknown'
6607 # Need to set the preceding variable on all platforms that support
6608 # interlibrary dependencies.
6609 # 'none' -- dependencies not supported.
6610 # 'unknown' -- same as none, but documents that we really don't know.
6611 # 'pass_all' -- all dependencies passed with no checks.
6612 # 'file_magic [[regex]]' -- check by looking for files in library path
6613 # that responds to the $file_magic_cmd with a given extended regex.
6614 # If you have 'file' or equivalent on your system and you're not sure
6615 # whether 'pass_all' will *always* work, you probably want this one.
6616
6617 case $host_os in
6618 aix[4-9]*)
6619 lt_cv_deplibs_check_method=pass_all
6620 ;;
6621
6622 beos*)
6623 lt_cv_deplibs_check_method=pass_all
6624 ;;
6625
6626 bsdi[45]*)
6627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6628 lt_cv_file_magic_cmd='$FILECMD -L'
6629 lt_cv_file_magic_test_file=/shlib/libc.so
6630 ;;
6631
6632 cygwin*)
6633 # func_win32_libid is a shell function defined in ltmain.sh
6634 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6635 lt_cv_file_magic_cmd='func_win32_libid'
6636 ;;
6637
6638 mingw* | windows* | pw32*)
6639 # Base MSYS/MinGW do not provide the 'file' command needed by
6640 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6641 # unless we find 'file', for example because we are cross-compiling.
6642 if ( file / ) >/dev/null 2>&1; then
6643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6644 lt_cv_file_magic_cmd='func_win32_libid'
6645 else
6646 # Keep this pattern in sync with the one in func_win32_libid.
6647 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6648 lt_cv_file_magic_cmd='$OBJDUMP -f'
6649 fi
6650 ;;
6651
6652 cegcc*)
6653 # use the weaker test based on 'objdump'. See mingw*.
6654 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6655 lt_cv_file_magic_cmd='$OBJDUMP -f'
6656 ;;
6657
6658 darwin* | rhapsody*)
6659 lt_cv_deplibs_check_method=pass_all
6660 ;;
6661
6662 freebsd* | dragonfly* | midnightbsd*)
6663 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6664 case $host_cpu in
6665 i*86 )
6666 # Not sure whether the presence of OpenBSD here was a mistake.
6667 # Let's accept both of them until this is cleared up.
6668 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6669 lt_cv_file_magic_cmd=$FILECMD
6670 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6671 ;;
6672 esac
6673 else
6674 lt_cv_deplibs_check_method=pass_all
6675 fi
6676 ;;
6677
6678 haiku*)
6679 lt_cv_deplibs_check_method=pass_all
6680 ;;
6681
6682 hpux10.20* | hpux11*)
6683 lt_cv_file_magic_cmd=$FILECMD
6684 case $host_cpu in
6685 ia64*)
6686 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6687 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6688 ;;
6689 hppa*64*)
6690 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]'
6691 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6692 ;;
6693 *)
6694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6695 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6696 ;;
6697 esac
6698 ;;
6699
6700 interix[3-9]*)
6701 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6703 ;;
6704
6705 irix5* | irix6* | nonstopux*)
6706 case $LD in
6707 *-32|*"-32 ") libmagic=32-bit;;
6708 *-n32|*"-n32 ") libmagic=N32;;
6709 *-64|*"-64 ") libmagic=64-bit;;
6710 *) libmagic=never-match;;
6711 esac
6712 lt_cv_deplibs_check_method=pass_all
6713 ;;
6714
6715 # This must be glibc/ELF.
6716 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6717 lt_cv_deplibs_check_method=pass_all
6718 ;;
6719
6720 *-mlibc)
6721 lt_cv_deplibs_check_method=pass_all
6722 ;;
6723
6724 netbsd* | netbsdelf*-gnu)
6725 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6727 else
6728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6729 fi
6730 ;;
6731
6732 newos6*)
6733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6734 lt_cv_file_magic_cmd=$FILECMD
6735 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6736 ;;
6737
6738 *nto* | *qnx*)
6739 lt_cv_deplibs_check_method=pass_all
6740 ;;
6741
6742 openbsd*)
6743 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6745 else
6746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6747 fi
6748 ;;
6749
6750 osf3* | osf4* | osf5*)
6751 lt_cv_deplibs_check_method=pass_all
6752 ;;
6753
6754 rdos*)
6755 lt_cv_deplibs_check_method=pass_all
6756 ;;
6757
6758 serenity*)
6759 lt_cv_deplibs_check_method=pass_all
6760 ;;
6761
6762 solaris*)
6763 lt_cv_deplibs_check_method=pass_all
6764 ;;
6765
6766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769
6770 sysv4 | sysv4.3*)
6771 case $host_vendor in
6772 motorola)
6773 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]'
6774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6775 ;;
6776 ncr)
6777 lt_cv_deplibs_check_method=pass_all
6778 ;;
6779 sequent)
6780 lt_cv_file_magic_cmd='/bin/file'
6781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6782 ;;
6783 sni)
6784 lt_cv_file_magic_cmd='/bin/file'
6785 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6786 lt_cv_file_magic_test_file=/lib/libc.so
6787 ;;
6788 siemens)
6789 lt_cv_deplibs_check_method=pass_all
6790 ;;
6791 pc)
6792 lt_cv_deplibs_check_method=pass_all
6793 ;;
6794 esac
6795 ;;
6796
6797 tpf*)
6798 lt_cv_deplibs_check_method=pass_all
6799 ;;
6800 os2*)
6801 lt_cv_deplibs_check_method=pass_all
6802 ;;
6803 esac
6804 ;;
6805 esac
6806 fi
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6808 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6809
6810 file_magic_glob=
6811 want_nocaseglob=no
6812 if test "$build" = "$host"; then
6813 case $host_os in
6814 mingw* | windows* | pw32*)
6815 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6816 want_nocaseglob=yes
6817 else
6818 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6819 fi
6820 ;;
6821 esac
6822 fi
6823
6824 file_magic_cmd=$lt_cv_file_magic_cmd
6825 deplibs_check_method=$lt_cv_deplibs_check_method
6826 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849 if test -n "$ac_tool_prefix"; then
6850 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 printf %s "checking for $ac_word... " >&6; }
6854 if test ${ac_cv_prog_DLLTOOL+y}
6855 then :
6856 printf %s "(cached) " >&6
6857 else case e in #(
6858 e) if test -n "$DLLTOOL"; then
6859 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 case $as_dir in #(((
6866 '') as_dir=./ ;;
6867 */) ;;
6868 *) as_dir=$as_dir/ ;;
6869 esac
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880 fi ;;
6881 esac
6882 fi
6883 DLLTOOL=$ac_cv_prog_DLLTOOL
6884 if test -n "$DLLTOOL"; then
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6886 printf "%s\n" "$DLLTOOL" >&6; }
6887 else
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 printf "%s\n" "no" >&6; }
6890 fi
6891
6892
6893 fi
6894 if test -z "$ac_cv_prog_DLLTOOL"; then
6895 ac_ct_DLLTOOL=$DLLTOOL
6896 # Extract the first word of "dlltool", so it can be a program name with args.
6897 set dummy dlltool; ac_word=$2
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 printf %s "checking for $ac_word... " >&6; }
6900 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6901 then :
6902 printf %s "(cached) " >&6
6903 else case e in #(
6904 e) if test -n "$ac_ct_DLLTOOL"; then
6905 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 case $as_dir in #(((
6912 '') as_dir=./ ;;
6913 */) ;;
6914 *) as_dir=$as_dir/ ;;
6915 esac
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi ;;
6927 esac
6928 fi
6929 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6930 if test -n "$ac_ct_DLLTOOL"; then
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6932 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6933 else
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 printf "%s\n" "no" >&6; }
6936 fi
6937
6938 if test "x$ac_ct_DLLTOOL" = x; then
6939 DLLTOOL="false"
6940 else
6941 case $cross_compiling:$ac_tool_warned in
6942 yes:)
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6945 ac_tool_warned=yes ;;
6946 esac
6947 DLLTOOL=$ac_ct_DLLTOOL
6948 fi
6949 else
6950 DLLTOOL="$ac_cv_prog_DLLTOOL"
6951 fi
6952
6953 test -z "$DLLTOOL" && DLLTOOL=dlltool
6954
6955
6956
6957
6958
6959
6960
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6962 printf %s "checking how to associate runtime and link libraries... " >&6; }
6963 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6964 then :
6965 printf %s "(cached) " >&6
6966 else case e in #(
6967 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6968
6969 case $host_os in
6970 cygwin* | mingw* | windows* | pw32* | cegcc*)
6971 # two different shell functions defined in ltmain.sh;
6972 # decide which one to use based on capabilities of $DLLTOOL
6973 case `$DLLTOOL --help 2>&1` in
6974 *--identify-strict*)
6975 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6976 ;;
6977 *)
6978 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6979 ;;
6980 esac
6981 ;;
6982 *)
6983 # fallback: assume linklib IS sharedlib
6984 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6985 ;;
6986 esac
6987 ;;
6988 esac
6989 fi
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6991 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6992 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6993 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6994
6995
6996
6997
6998
6999
7000
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 printf %s "checking for $ac_word... " >&6; }
7006 if test ${ac_cv_prog_RANLIB+y}
7007 then :
7008 printf %s "(cached) " >&6
7009 else case e in #(
7010 e) if test -n "$RANLIB"; then
7011 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016 IFS=$as_save_IFS
7017 case $as_dir in #(((
7018 '') as_dir=./ ;;
7019 */) ;;
7020 *) as_dir=$as_dir/ ;;
7021 esac
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi ;;
7033 esac
7034 fi
7035 RANLIB=$ac_cv_prog_RANLIB
7036 if test -n "$RANLIB"; then
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7038 printf "%s\n" "$RANLIB" >&6; }
7039 else
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 printf "%s\n" "no" >&6; }
7042 fi
7043
7044
7045 fi
7046 if test -z "$ac_cv_prog_RANLIB"; then
7047 ac_ct_RANLIB=$RANLIB
7048 # Extract the first word of "ranlib", so it can be a program name with args.
7049 set dummy ranlib; ac_word=$2
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 printf %s "checking for $ac_word... " >&6; }
7052 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7053 then :
7054 printf %s "(cached) " >&6
7055 else case e in #(
7056 e) if test -n "$ac_ct_RANLIB"; then
7057 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062 IFS=$as_save_IFS
7063 case $as_dir in #(((
7064 '') as_dir=./ ;;
7065 */) ;;
7066 *) as_dir=$as_dir/ ;;
7067 esac
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_ac_ct_RANLIB="ranlib"
7071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074 done
7075 done
7076 IFS=$as_save_IFS
7077
7078 fi ;;
7079 esac
7080 fi
7081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7082 if test -n "$ac_ct_RANLIB"; then
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7084 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7085 else
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 printf "%s\n" "no" >&6; }
7088 fi
7089
7090 if test "x$ac_ct_RANLIB" = x; then
7091 RANLIB=":"
7092 else
7093 case $cross_compiling:$ac_tool_warned in
7094 yes:)
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7097 ac_tool_warned=yes ;;
7098 esac
7099 RANLIB=$ac_ct_RANLIB
7100 fi
7101 else
7102 RANLIB="$ac_cv_prog_RANLIB"
7103 fi
7104
7105 if test -n "$ac_tool_prefix"; then
7106 for ac_prog in ar
7107 do
7108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 printf %s "checking for $ac_word... " >&6; }
7112 if test ${ac_cv_prog_AR+y}
7113 then :
7114 printf %s "(cached) " >&6
7115 else case e in #(
7116 e) if test -n "$AR"; then
7117 ac_cv_prog_AR="$AR" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122 IFS=$as_save_IFS
7123 case $as_dir in #(((
7124 '') as_dir=./ ;;
7125 */) ;;
7126 *) as_dir=$as_dir/ ;;
7127 esac
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7130 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134 done
7135 done
7136 IFS=$as_save_IFS
7137
7138 fi ;;
7139 esac
7140 fi
7141 AR=$ac_cv_prog_AR
7142 if test -n "$AR"; then
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7144 printf "%s\n" "$AR" >&6; }
7145 else
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 printf "%s\n" "no" >&6; }
7148 fi
7149
7150
7151 test -n "$AR" && break
7152 done
7153 fi
7154 if test -z "$AR"; then
7155 ac_ct_AR=$AR
7156 for ac_prog in ar
7157 do
7158 # Extract the first word of "$ac_prog", so it can be a program name with args.
7159 set dummy $ac_prog; ac_word=$2
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 printf %s "checking for $ac_word... " >&6; }
7162 if test ${ac_cv_prog_ac_ct_AR+y}
7163 then :
7164 printf %s "(cached) " >&6
7165 else case e in #(
7166 e) if test -n "$ac_ct_AR"; then
7167 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 case $as_dir in #(((
7174 '') as_dir=./ ;;
7175 */) ;;
7176 *) as_dir=$as_dir/ ;;
7177 esac
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_ac_ct_AR="$ac_prog"
7181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188 fi ;;
7189 esac
7190 fi
7191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192 if test -n "$ac_ct_AR"; then
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7194 printf "%s\n" "$ac_ct_AR" >&6; }
7195 else
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 printf "%s\n" "no" >&6; }
7198 fi
7199
7200
7201 test -n "$ac_ct_AR" && break
7202 done
7203
7204 if test "x$ac_ct_AR" = x; then
7205 AR="false"
7206 else
7207 case $cross_compiling:$ac_tool_warned in
7208 yes:)
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213 AR=$ac_ct_AR
7214 fi
7215 fi
7216
7217 : ${AR=ar}
7218
7219
7220
7221
7222
7223
7224 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7225 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7226 # higher priority because that's what people were doing historically (setting
7227 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7228 # variable obsoleted/removed.
7229
7230 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7231 lt_ar_flags=$AR_FLAGS
7232
7233
7234
7235
7236
7237
7238 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7239 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7240
7241
7242
7243
7244
7245
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7247 printf %s "checking for archiver @FILE support... " >&6; }
7248 if test ${lt_cv_ar_at_file+y}
7249 then :
7250 printf %s "(cached) " >&6
7251 else case e in #(
7252 e) lt_cv_ar_at_file=no
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255
7256 int
7257 main (void)
7258 {
7259
7260 ;
7261 return 0;
7262 }
7263 _ACEOF
7264 if ac_fn_c_try_compile "$LINENO"
7265 then :
7266 echo conftest.$ac_objext > conftest.lst
7267 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7269 (eval $lt_ar_try) 2>&5
7270 ac_status=$?
7271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }
7273 if test 0 -eq "$ac_status"; then
7274 # Ensure the archiver fails upon bogus file names.
7275 rm -f conftest.$ac_objext libconftest.a
7276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7277 (eval $lt_ar_try) 2>&5
7278 ac_status=$?
7279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }
7281 if test 0 -ne "$ac_status"; then
7282 lt_cv_ar_at_file=@
7283 fi
7284 fi
7285 rm -f conftest.* libconftest.a
7286
7287 fi
7288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7289 ;;
7290 esac
7291 fi
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7293 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7294
7295 if test no = "$lt_cv_ar_at_file"; then
7296 archiver_list_spec=
7297 else
7298 archiver_list_spec=$lt_cv_ar_at_file
7299 fi
7300
7301
7302
7303
7304
7305
7306
7307 if test -n "$ac_tool_prefix"; then
7308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7309 set dummy ${ac_tool_prefix}strip; ac_word=$2
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 printf %s "checking for $ac_word... " >&6; }
7312 if test ${ac_cv_prog_STRIP+y}
7313 then :
7314 printf %s "(cached) " >&6
7315 else case e in #(
7316 e) if test -n "$STRIP"; then
7317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322 IFS=$as_save_IFS
7323 case $as_dir in #(((
7324 '') as_dir=./ ;;
7325 */) ;;
7326 *) as_dir=$as_dir/ ;;
7327 esac
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7337
7338 fi ;;
7339 esac
7340 fi
7341 STRIP=$ac_cv_prog_STRIP
7342 if test -n "$STRIP"; then
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7344 printf "%s\n" "$STRIP" >&6; }
7345 else
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 printf "%s\n" "no" >&6; }
7348 fi
7349
7350
7351 fi
7352 if test -z "$ac_cv_prog_STRIP"; then
7353 ac_ct_STRIP=$STRIP
7354 # Extract the first word of "strip", so it can be a program name with args.
7355 set dummy strip; ac_word=$2
7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 printf %s "checking for $ac_word... " >&6; }
7358 if test ${ac_cv_prog_ac_ct_STRIP+y}
7359 then :
7360 printf %s "(cached) " >&6
7361 else case e in #(
7362 e) if test -n "$ac_ct_STRIP"; then
7363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 case $as_dir in #(((
7370 '') as_dir=./ ;;
7371 */) ;;
7372 *) as_dir=$as_dir/ ;;
7373 esac
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_ac_ct_STRIP="strip"
7377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380 done
7381 done
7382 IFS=$as_save_IFS
7383
7384 fi ;;
7385 esac
7386 fi
7387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7388 if test -n "$ac_ct_STRIP"; then
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7390 printf "%s\n" "$ac_ct_STRIP" >&6; }
7391 else
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 printf "%s\n" "no" >&6; }
7394 fi
7395
7396 if test "x$ac_ct_STRIP" = x; then
7397 STRIP=":"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405 STRIP=$ac_ct_STRIP
7406 fi
7407 else
7408 STRIP="$ac_cv_prog_STRIP"
7409 fi
7410
7411 test -z "$STRIP" && STRIP=:
7412
7413
7414
7415
7416
7417
7418
7419 test -z "$RANLIB" && RANLIB=:
7420
7421
7422
7423
7424
7425
7426 # Determine commands to create old-style static archives.
7427 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7428 old_postinstall_cmds='chmod 644 $oldlib'
7429 old_postuninstall_cmds=
7430
7431 if test -n "$RANLIB"; then
7432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7433 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7434 fi
7435
7436 case $host_os in
7437 darwin*)
7438 lock_old_archive_extraction=yes ;;
7439 *)
7440 lock_old_archive_extraction=no ;;
7441 esac
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481 # If no C compiler was specified, use CC.
7482 LTCC=${LTCC-"$CC"}
7483
7484 # If no C compiler flags were specified, use CFLAGS.
7485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7486
7487 # Allow CC to be a program name with arguments.
7488 compiler=$CC
7489
7490
7491 # Check for command to grab the raw symbol name followed by C symbol from nm.
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7493 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7494 if test ${lt_cv_sys_global_symbol_pipe+y}
7495 then :
7496 printf %s "(cached) " >&6
7497 else case e in #(
7498 e)
7499 # These are sane defaults that work on at least a few old systems.
7500 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7501
7502 # Character class describing NM global symbol codes.
7503 symcode='[BCDEGRST]'
7504
7505 # Regexp to match symbols that can be accessed directly from C.
7506 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7507
7508 # Define system-specific variables.
7509 case $host_os in
7510 aix*)
7511 symcode='[BCDT]'
7512 ;;
7513 cygwin* | mingw* | windows* | pw32* | cegcc*)
7514 symcode='[ABCDGISTW]'
7515 ;;
7516 hpux*)
7517 if test ia64 = "$host_cpu"; then
7518 symcode='[ABCDEGRST]'
7519 fi
7520 ;;
7521 irix* | nonstopux*)
7522 symcode='[BCDEGRST]'
7523 ;;
7524 osf*)
7525 symcode='[BCDEGQRST]'
7526 ;;
7527 solaris*)
7528 symcode='[BCDRT]'
7529 ;;
7530 sco3.2v5*)
7531 symcode='[DT]'
7532 ;;
7533 sysv4.2uw2*)
7534 symcode='[DT]'
7535 ;;
7536 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7537 symcode='[ABDT]'
7538 ;;
7539 sysv4)
7540 symcode='[DFNSTU]'
7541 ;;
7542 esac
7543
7544 # If we're using GNU nm, then use its standard symbol codes.
7545 case `$NM -V 2>&1` in
7546 *GNU* | *'with BFD'*)
7547 symcode='[ABCDGIRSTW]' ;;
7548 esac
7549
7550 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7551 # Gets list of data symbols to import.
7552 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7553 # Adjust the below global symbol transforms to fixup imported variables.
7554 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7555 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7556 lt_c_name_lib_hook="\
7557 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7558 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7559 else
7560 # Disable hooks by default.
7561 lt_cv_sys_global_symbol_to_import=
7562 lt_cdecl_hook=
7563 lt_c_name_hook=
7564 lt_c_name_lib_hook=
7565 fi
7566
7567 # Transform an extracted symbol line into a proper C declaration.
7568 # Some systems (esp. on ia64) link data and code symbols differently,
7569 # so use this general approach.
7570 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7571 $lt_cdecl_hook\
7572 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7573 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7574
7575 # Transform an extracted symbol line into symbol name and symbol address
7576 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7577 $lt_c_name_hook\
7578 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7579 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7580
7581 # Transform an extracted symbol line into symbol name with lib prefix and
7582 # symbol address.
7583 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7584 $lt_c_name_lib_hook\
7585 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7586 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7587 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7588
7589 # Handle CRLF in mingw tool chain
7590 opt_cr=
7591 case $build_os in
7592 mingw* | windows*)
7593 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7594 ;;
7595 esac
7596
7597 # Try without a prefix underscore, then with it.
7598 for ac_symprfx in "" "_"; do
7599
7600 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7601 symxfrm="\\1 $ac_symprfx\\2 \\2"
7602
7603 # Write the raw and C identifiers.
7604 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7605 # Fake it for dumpbin and say T for any non-static function,
7606 # D for any global variable and I for any imported variable.
7607 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7608 # which start with @ or ?.
7609 lt_cv_sys_global_symbol_pipe="$AWK '"\
7610 " {last_section=section; section=\$ 3};"\
7611 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7612 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7613 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7614 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7615 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7616 " \$ 0!~/External *\|/{next};"\
7617 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7618 " {if(hide[section]) next};"\
7619 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7620 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7621 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7622 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7623 " ' prfx=^$ac_symprfx"
7624 else
7625 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7626 fi
7627 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7628
7629 # Check to see that the pipe works correctly.
7630 pipe_works=no
7631
7632 rm -f conftest*
7633 cat > conftest.$ac_ext <<_LT_EOF
7634 #ifdef __cplusplus
7635 extern "C" {
7636 #endif
7637 char nm_test_var;
7638 void nm_test_func(void);
7639 void nm_test_func(void){}
7640 #ifdef __cplusplus
7641 }
7642 #endif
7643 int main(void){nm_test_var='a';nm_test_func();return(0);}
7644 _LT_EOF
7645
7646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7647 (eval $ac_compile) 2>&5
7648 ac_status=$?
7649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650 test $ac_status = 0; }; then
7651 # Now try to grab the symbols.
7652 nlist=conftest.nm
7653 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7654 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7655 # Try sorting and uniquifying the output.
7656 if sort "$nlist" | uniq > "$nlist"T; then
7657 mv -f "$nlist"T "$nlist"
7658 else
7659 rm -f "$nlist"T
7660 fi
7661
7662 # Make sure that we snagged all the symbols we need.
7663 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7664 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7665 cat <<_LT_EOF > conftest.$ac_ext
7666 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7667 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7668 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7669 relocations are performed -- see ld's documentation on pseudo-relocs. */
7670 # define LT_DLSYM_CONST
7671 #elif defined __osf__
7672 /* This system does not cope well with relocations in const data. */
7673 # define LT_DLSYM_CONST
7674 #else
7675 # define LT_DLSYM_CONST const
7676 #endif
7677
7678 #ifdef __cplusplus
7679 extern "C" {
7680 #endif
7681
7682 _LT_EOF
7683 # Now generate the symbol file.
7684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7685
7686 cat <<_LT_EOF >> conftest.$ac_ext
7687
7688 /* The mapping between symbol names and symbols. */
7689 LT_DLSYM_CONST struct {
7690 const char *name;
7691 void *address;
7692 }
7693 lt__PROGRAM__LTX_preloaded_symbols[] =
7694 {
7695 { "@PROGRAM@", (void *) 0 },
7696 _LT_EOF
7697 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7698 cat <<\_LT_EOF >> conftest.$ac_ext
7699 {0, (void *) 0}
7700 };
7701
7702 /* This works around a problem in FreeBSD linker */
7703 #ifdef FREEBSD_WORKAROUND
7704 static const void *lt_preloaded_setup() {
7705 return lt__PROGRAM__LTX_preloaded_symbols;
7706 }
7707 #endif
7708
7709 #ifdef __cplusplus
7710 }
7711 #endif
7712 _LT_EOF
7713 # Now try linking the two files.
7714 mv conftest.$ac_objext conftstm.$ac_objext
7715 lt_globsym_save_LIBS=$LIBS
7716 lt_globsym_save_CFLAGS=$CFLAGS
7717 LIBS=conftstm.$ac_objext
7718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7720 (eval $ac_link) 2>&5
7721 ac_status=$?
7722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7724 pipe_works=yes
7725 fi
7726 LIBS=$lt_globsym_save_LIBS
7727 CFLAGS=$lt_globsym_save_CFLAGS
7728 else
7729 echo "cannot find nm_test_func in $nlist" >&5
7730 fi
7731 else
7732 echo "cannot find nm_test_var in $nlist" >&5
7733 fi
7734 else
7735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7736 fi
7737 else
7738 echo "$progname: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7740 fi
7741 rm -rf conftest* conftst*
7742
7743 # Do not use the global_symbol_pipe unless it works.
7744 if test yes = "$pipe_works"; then
7745 break
7746 else
7747 lt_cv_sys_global_symbol_pipe=
7748 fi
7749 done
7750 ;;
7751 esac
7752 fi
7753
7754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7755 lt_cv_sys_global_symbol_to_cdecl=
7756 fi
7757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7759 printf "%s\n" "failed" >&6; }
7760 else
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7762 printf "%s\n" "ok" >&6; }
7763 fi
7764
7765 # Response file support.
7766 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7767 nm_file_list_spec='@'
7768 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7769 nm_file_list_spec='@'
7770 fi
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7809 printf %s "checking for sysroot... " >&6; }
7810
7811 # Check whether --with-sysroot was given.
7812 if test ${with_sysroot+y}
7813 then :
7814 withval=$with_sysroot;
7815 else case e in #(
7816 e) with_sysroot=no ;;
7817 esac
7818 fi
7819
7820
7821 lt_sysroot=
7822 case $with_sysroot in #(
7823 yes)
7824 if test yes = "$GCC"; then
7825 # Trim trailing / since we'll always append absolute paths and we want
7826 # to avoid //, if only for less confusing output for the user.
7827 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7828 fi
7829 ;; #(
7830 /*)
7831 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7832 ;; #(
7833 no|'')
7834 ;; #(
7835 *)
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7837 printf "%s\n" "$with_sysroot" >&6; }
7838 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7839 ;;
7840 esac
7841
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7843 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7844
7845
7846
7847
7848
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7850 printf %s "checking for a working dd... " >&6; }
7851 if test ${ac_cv_path_lt_DD+y}
7852 then :
7853 printf %s "(cached) " >&6
7854 else case e in #(
7855 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7856 cat conftest.i conftest.i >conftest2.i
7857 : ${lt_DD:=$DD}
7858 if test -z "$lt_DD"; then
7859 ac_path_lt_DD_found=false
7860 # Loop through the user's path and test for each of PROGNAME-LIST
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864 IFS=$as_save_IFS
7865 case $as_dir in #(((
7866 '') as_dir=./ ;;
7867 */) ;;
7868 *) as_dir=$as_dir/ ;;
7869 esac
7870 for ac_prog in dd
7871 do
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7874 as_fn_executable_p "$ac_path_lt_DD" || continue
7875 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7876 cmp -s conftest.i conftest.out \
7877 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7878 fi
7879 $ac_path_lt_DD_found && break 3
7880 done
7881 done
7882 done
7883 IFS=$as_save_IFS
7884 if test -z "$ac_cv_path_lt_DD"; then
7885 :
7886 fi
7887 else
7888 ac_cv_path_lt_DD=$lt_DD
7889 fi
7890
7891 rm -f conftest.i conftest2.i conftest.out ;;
7892 esac
7893 fi
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7895 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7896
7897
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7899 printf %s "checking how to truncate binary pipes... " >&6; }
7900 if test ${lt_cv_truncate_bin+y}
7901 then :
7902 printf %s "(cached) " >&6
7903 else case e in #(
7904 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7905 cat conftest.i conftest.i >conftest2.i
7906 lt_cv_truncate_bin=
7907 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7908 cmp -s conftest.i conftest.out \
7909 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7910 fi
7911 rm -f conftest.i conftest2.i conftest.out
7912 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7913 esac
7914 fi
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7916 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7917
7918
7919
7920
7921
7922
7923
7924 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7925 func_cc_basename ()
7926 {
7927 for cc_temp in $*""; do
7928 case $cc_temp in
7929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7931 \-*) ;;
7932 *) break;;
7933 esac
7934 done
7935 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7936 }
7937
7938 # Check whether --enable-libtool-lock was given.
7939 if test ${enable_libtool_lock+y}
7940 then :
7941 enableval=$enable_libtool_lock;
7942 fi
7943
7944 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7945
7946 # Some flags need to be propagated to the compiler or linker for good
7947 # libtool support.
7948 case $host in
7949 ia64-*-hpux*)
7950 # Find out what ABI is being produced by ac_compile, and set mode
7951 # options accordingly.
7952 echo 'int i;' > conftest.$ac_ext
7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7954 (eval $ac_compile) 2>&5
7955 ac_status=$?
7956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; }; then
7958 case `$FILECMD conftest.$ac_objext` in
7959 *ELF-32*)
7960 HPUX_IA64_MODE=32
7961 ;;
7962 *ELF-64*)
7963 HPUX_IA64_MODE=64
7964 ;;
7965 esac
7966 fi
7967 rm -rf conftest*
7968 ;;
7969 *-*-irix6*)
7970 # Find out what ABI is being produced by ac_compile, and set linker
7971 # options accordingly.
7972 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7974 (eval $ac_compile) 2>&5
7975 ac_status=$?
7976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; }; then
7978 if test yes = "$lt_cv_prog_gnu_ld"; then
7979 case `$FILECMD conftest.$ac_objext` in
7980 *32-bit*)
7981 LD="${LD-ld} -melf32bsmip"
7982 ;;
7983 *N32*)
7984 LD="${LD-ld} -melf32bmipn32"
7985 ;;
7986 *64-bit*)
7987 LD="${LD-ld} -melf64bmip"
7988 ;;
7989 esac
7990 else
7991 case `$FILECMD conftest.$ac_objext` in
7992 *32-bit*)
7993 LD="${LD-ld} -32"
7994 ;;
7995 *N32*)
7996 LD="${LD-ld} -n32"
7997 ;;
7998 *64-bit*)
7999 LD="${LD-ld} -64"
8000 ;;
8001 esac
8002 fi
8003 fi
8004 rm -rf conftest*
8005 ;;
8006
8007 mips64*-*linux*)
8008 # Find out what ABI is being produced by ac_compile, and set linker
8009 # options accordingly.
8010 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8012 (eval $ac_compile) 2>&5
8013 ac_status=$?
8014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8015 test $ac_status = 0; }; then
8016 emul=elf
8017 case `$FILECMD conftest.$ac_objext` in
8018 *32-bit*)
8019 emul="${emul}32"
8020 ;;
8021 *64-bit*)
8022 emul="${emul}64"
8023 ;;
8024 esac
8025 case `$FILECMD conftest.$ac_objext` in
8026 *MSB*)
8027 emul="${emul}btsmip"
8028 ;;
8029 *LSB*)
8030 emul="${emul}ltsmip"
8031 ;;
8032 esac
8033 case `$FILECMD conftest.$ac_objext` in
8034 *N32*)
8035 emul="${emul}n32"
8036 ;;
8037 esac
8038 LD="${LD-ld} -m $emul"
8039 fi
8040 rm -rf conftest*
8041 ;;
8042
8043 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8044 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8045 # Find out what ABI is being produced by ac_compile, and set linker
8046 # options accordingly. Note that the listed cases only cover the
8047 # situations where additional linker options are needed (such as when
8048 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8049 # vice versa); the common cases where no linker options are needed do
8050 # not appear in the list.
8051 echo 'int i;' > conftest.$ac_ext
8052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8053 (eval $ac_compile) 2>&5
8054 ac_status=$?
8055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8056 test $ac_status = 0; }; then
8057 case `$FILECMD conftest.o` in
8058 *32-bit*)
8059 case $host in
8060 x86_64-*kfreebsd*-gnu)
8061 LD="${LD-ld} -m elf_i386_fbsd"
8062 ;;
8063 x86_64-*linux*|x86_64-gnu*)
8064 case `$FILECMD conftest.o` in
8065 *x86-64*)
8066 LD="${LD-ld} -m elf32_x86_64"
8067 ;;
8068 *)
8069 LD="${LD-ld} -m elf_i386"
8070 ;;
8071 esac
8072 ;;
8073 powerpc64le-*linux*)
8074 LD="${LD-ld} -m elf32lppclinux"
8075 ;;
8076 powerpc64-*linux*)
8077 LD="${LD-ld} -m elf32ppclinux"
8078 ;;
8079 s390x-*linux*)
8080 LD="${LD-ld} -m elf_s390"
8081 ;;
8082 sparc64-*linux*)
8083 LD="${LD-ld} -m elf32_sparc"
8084 ;;
8085 esac
8086 ;;
8087 *64-bit*)
8088 case $host in
8089 x86_64-*kfreebsd*-gnu)
8090 LD="${LD-ld} -m elf_x86_64_fbsd"
8091 ;;
8092 x86_64-*linux*|x86_64-gnu*)
8093 LD="${LD-ld} -m elf_x86_64"
8094 ;;
8095 powerpcle-*linux*)
8096 LD="${LD-ld} -m elf64lppc"
8097 ;;
8098 powerpc-*linux*)
8099 LD="${LD-ld} -m elf64ppc"
8100 ;;
8101 s390*-*linux*|s390*-*tpf*)
8102 LD="${LD-ld} -m elf64_s390"
8103 ;;
8104 sparc*-*linux*)
8105 LD="${LD-ld} -m elf64_sparc"
8106 ;;
8107 esac
8108 ;;
8109 esac
8110 fi
8111 rm -rf conftest*
8112 ;;
8113
8114 *-*-sco3.2v5*)
8115 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8116 SAVE_CFLAGS=$CFLAGS
8117 CFLAGS="$CFLAGS -belf"
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8119 printf %s "checking whether the C compiler needs -belf... " >&6; }
8120 if test ${lt_cv_cc_needs_belf+y}
8121 then :
8122 printf %s "(cached) " >&6
8123 else case e in #(
8124 e) ac_ext=c
8125 ac_cpp='$CPP $CPPFLAGS'
8126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132
8133 int
8134 main (void)
8135 {
8136
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_link "$LINENO"
8142 then :
8143 lt_cv_cc_needs_belf=yes
8144 else case e in #(
8145 e) lt_cv_cc_needs_belf=no ;;
8146 esac
8147 fi
8148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8149 conftest$ac_exeext conftest.$ac_ext
8150 ac_ext=c
8151 ac_cpp='$CPP $CPPFLAGS'
8152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8155 ;;
8156 esac
8157 fi
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8159 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8160 if test yes != "$lt_cv_cc_needs_belf"; then
8161 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8162 CFLAGS=$SAVE_CFLAGS
8163 fi
8164 ;;
8165 *-*solaris*)
8166 # Find out what ABI is being produced by ac_compile, and set linker
8167 # options accordingly.
8168 echo 'int i;' > conftest.$ac_ext
8169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8170 (eval $ac_compile) 2>&5
8171 ac_status=$?
8172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8173 test $ac_status = 0; }; then
8174 case `$FILECMD conftest.o` in
8175 *64-bit*)
8176 case $lt_cv_prog_gnu_ld in
8177 yes*)
8178 case $host in
8179 i?86-*-solaris*|x86_64-*-solaris*)
8180 LD="${LD-ld} -m elf_x86_64"
8181 ;;
8182 sparc*-*-solaris*)
8183 LD="${LD-ld} -m elf64_sparc"
8184 ;;
8185 esac
8186 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8187 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8188 LD=${LD-ld}_sol2
8189 fi
8190 ;;
8191 *)
8192 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8193 LD="${LD-ld} -64"
8194 fi
8195 ;;
8196 esac
8197 ;;
8198 esac
8199 fi
8200 rm -rf conftest*
8201 ;;
8202 esac
8203
8204 need_locks=$enable_libtool_lock
8205
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}mt; ac_word=$2
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 printf %s "checking for $ac_word... " >&6; }
8211 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8212 then :
8213 printf %s "(cached) " >&6
8214 else case e in #(
8215 e) if test -n "$MANIFEST_TOOL"; then
8216 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8220 do
8221 IFS=$as_save_IFS
8222 case $as_dir in #(((
8223 '') as_dir=./ ;;
8224 */) ;;
8225 *) as_dir=$as_dir/ ;;
8226 esac
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8229 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233 done
8234 done
8235 IFS=$as_save_IFS
8236
8237 fi ;;
8238 esac
8239 fi
8240 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8241 if test -n "$MANIFEST_TOOL"; then
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8243 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8244 else
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 printf "%s\n" "no" >&6; }
8247 fi
8248
8249
8250 fi
8251 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8252 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8253 # Extract the first word of "mt", so it can be a program name with args.
8254 set dummy mt; ac_word=$2
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 printf %s "checking for $ac_word... " >&6; }
8257 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8258 then :
8259 printf %s "(cached) " >&6
8260 else case e in #(
8261 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8262 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267 IFS=$as_save_IFS
8268 case $as_dir in #(((
8269 '') as_dir=./ ;;
8270 */) ;;
8271 *) as_dir=$as_dir/ ;;
8272 esac
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8275 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8277 break 2
8278 fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283 fi ;;
8284 esac
8285 fi
8286 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8287 if test -n "$ac_ct_MANIFEST_TOOL"; then
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8289 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8290 else
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 printf "%s\n" "no" >&6; }
8293 fi
8294
8295 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8296 MANIFEST_TOOL=":"
8297 else
8298 case $cross_compiling:$ac_tool_warned in
8299 yes:)
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8301 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8302 ac_tool_warned=yes ;;
8303 esac
8304 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8305 fi
8306 else
8307 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8308 fi
8309
8310 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8312 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8313 if test ${lt_cv_path_manifest_tool+y}
8314 then :
8315 printf %s "(cached) " >&6
8316 else case e in #(
8317 e) lt_cv_path_manifest_tool=no
8318 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8319 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8320 cat conftest.err >&5
8321 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8322 lt_cv_path_manifest_tool=yes
8323 fi
8324 rm -f conftest* ;;
8325 esac
8326 fi
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8328 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8329 if test yes != "$lt_cv_path_manifest_tool"; then
8330 MANIFEST_TOOL=:
8331 fi
8332
8333
8334
8335
8336
8337
8338 case $host_os in
8339 rhapsody* | darwin*)
8340 if test -n "$ac_tool_prefix"; then
8341 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8342 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 printf %s "checking for $ac_word... " >&6; }
8345 if test ${ac_cv_prog_DSYMUTIL+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else case e in #(
8349 e) if test -n "$DSYMUTIL"; then
8350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355 IFS=$as_save_IFS
8356 case $as_dir in #(((
8357 '') as_dir=./ ;;
8358 */) ;;
8359 *) as_dir=$as_dir/ ;;
8360 esac
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8363 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367 done
8368 done
8369 IFS=$as_save_IFS
8370
8371 fi ;;
8372 esac
8373 fi
8374 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8375 if test -n "$DSYMUTIL"; then
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8377 printf "%s\n" "$DSYMUTIL" >&6; }
8378 else
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 printf "%s\n" "no" >&6; }
8381 fi
8382
8383
8384 fi
8385 if test -z "$ac_cv_prog_DSYMUTIL"; then
8386 ac_ct_DSYMUTIL=$DSYMUTIL
8387 # Extract the first word of "dsymutil", so it can be a program name with args.
8388 set dummy dsymutil; ac_word=$2
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 printf %s "checking for $ac_word... " >&6; }
8391 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8392 then :
8393 printf %s "(cached) " >&6
8394 else case e in #(
8395 e) if test -n "$ac_ct_DSYMUTIL"; then
8396 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8400 do
8401 IFS=$as_save_IFS
8402 case $as_dir in #(((
8403 '') as_dir=./ ;;
8404 */) ;;
8405 *) as_dir=$as_dir/ ;;
8406 esac
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8411 break 2
8412 fi
8413 done
8414 done
8415 IFS=$as_save_IFS
8416
8417 fi ;;
8418 esac
8419 fi
8420 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8421 if test -n "$ac_ct_DSYMUTIL"; then
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8423 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8424 else
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 printf "%s\n" "no" >&6; }
8427 fi
8428
8429 if test "x$ac_ct_DSYMUTIL" = x; then
8430 DSYMUTIL=":"
8431 else
8432 case $cross_compiling:$ac_tool_warned in
8433 yes:)
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8435 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8436 ac_tool_warned=yes ;;
8437 esac
8438 DSYMUTIL=$ac_ct_DSYMUTIL
8439 fi
8440 else
8441 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8442 fi
8443
8444 if test -n "$ac_tool_prefix"; then
8445 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8446 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 printf %s "checking for $ac_word... " >&6; }
8449 if test ${ac_cv_prog_NMEDIT+y}
8450 then :
8451 printf %s "(cached) " >&6
8452 else case e in #(
8453 e) if test -n "$NMEDIT"; then
8454 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459 IFS=$as_save_IFS
8460 case $as_dir in #(((
8461 '') as_dir=./ ;;
8462 */) ;;
8463 *) as_dir=$as_dir/ ;;
8464 esac
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8467 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8469 break 2
8470 fi
8471 done
8472 done
8473 IFS=$as_save_IFS
8474
8475 fi ;;
8476 esac
8477 fi
8478 NMEDIT=$ac_cv_prog_NMEDIT
8479 if test -n "$NMEDIT"; then
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8481 printf "%s\n" "$NMEDIT" >&6; }
8482 else
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 printf "%s\n" "no" >&6; }
8485 fi
8486
8487
8488 fi
8489 if test -z "$ac_cv_prog_NMEDIT"; then
8490 ac_ct_NMEDIT=$NMEDIT
8491 # Extract the first word of "nmedit", so it can be a program name with args.
8492 set dummy nmedit; ac_word=$2
8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 printf %s "checking for $ac_word... " >&6; }
8495 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8496 then :
8497 printf %s "(cached) " >&6
8498 else case e in #(
8499 e) if test -n "$ac_ct_NMEDIT"; then
8500 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505 IFS=$as_save_IFS
8506 case $as_dir in #(((
8507 '') as_dir=./ ;;
8508 */) ;;
8509 *) as_dir=$as_dir/ ;;
8510 esac
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8513 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8515 break 2
8516 fi
8517 done
8518 done
8519 IFS=$as_save_IFS
8520
8521 fi ;;
8522 esac
8523 fi
8524 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8525 if test -n "$ac_ct_NMEDIT"; then
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8527 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8528 else
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 printf "%s\n" "no" >&6; }
8531 fi
8532
8533 if test "x$ac_ct_NMEDIT" = x; then
8534 NMEDIT=":"
8535 else
8536 case $cross_compiling:$ac_tool_warned in
8537 yes:)
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8539 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8540 ac_tool_warned=yes ;;
8541 esac
8542 NMEDIT=$ac_ct_NMEDIT
8543 fi
8544 else
8545 NMEDIT="$ac_cv_prog_NMEDIT"
8546 fi
8547
8548 if test -n "$ac_tool_prefix"; then
8549 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8550 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 printf %s "checking for $ac_word... " >&6; }
8553 if test ${ac_cv_prog_LIPO+y}
8554 then :
8555 printf %s "(cached) " >&6
8556 else case e in #(
8557 e) if test -n "$LIPO"; then
8558 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8559 else
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563 IFS=$as_save_IFS
8564 case $as_dir in #(((
8565 '') as_dir=./ ;;
8566 */) ;;
8567 *) as_dir=$as_dir/ ;;
8568 esac
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8571 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8573 break 2
8574 fi
8575 done
8576 done
8577 IFS=$as_save_IFS
8578
8579 fi ;;
8580 esac
8581 fi
8582 LIPO=$ac_cv_prog_LIPO
8583 if test -n "$LIPO"; then
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8585 printf "%s\n" "$LIPO" >&6; }
8586 else
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 printf "%s\n" "no" >&6; }
8589 fi
8590
8591
8592 fi
8593 if test -z "$ac_cv_prog_LIPO"; then
8594 ac_ct_LIPO=$LIPO
8595 # Extract the first word of "lipo", so it can be a program name with args.
8596 set dummy lipo; ac_word=$2
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 printf %s "checking for $ac_word... " >&6; }
8599 if test ${ac_cv_prog_ac_ct_LIPO+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else case e in #(
8603 e) if test -n "$ac_ct_LIPO"; then
8604 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609 IFS=$as_save_IFS
8610 case $as_dir in #(((
8611 '') as_dir=./ ;;
8612 */) ;;
8613 *) as_dir=$as_dir/ ;;
8614 esac
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8617 ac_cv_prog_ac_ct_LIPO="lipo"
8618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8619 break 2
8620 fi
8621 done
8622 done
8623 IFS=$as_save_IFS
8624
8625 fi ;;
8626 esac
8627 fi
8628 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8629 if test -n "$ac_ct_LIPO"; then
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8631 printf "%s\n" "$ac_ct_LIPO" >&6; }
8632 else
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 printf "%s\n" "no" >&6; }
8635 fi
8636
8637 if test "x$ac_ct_LIPO" = x; then
8638 LIPO=":"
8639 else
8640 case $cross_compiling:$ac_tool_warned in
8641 yes:)
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644 ac_tool_warned=yes ;;
8645 esac
8646 LIPO=$ac_ct_LIPO
8647 fi
8648 else
8649 LIPO="$ac_cv_prog_LIPO"
8650 fi
8651
8652 if test -n "$ac_tool_prefix"; then
8653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8654 set dummy ${ac_tool_prefix}otool; ac_word=$2
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 printf %s "checking for $ac_word... " >&6; }
8657 if test ${ac_cv_prog_OTOOL+y}
8658 then :
8659 printf %s "(cached) " >&6
8660 else case e in #(
8661 e) if test -n "$OTOOL"; then
8662 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667 IFS=$as_save_IFS
8668 case $as_dir in #(((
8669 '') as_dir=./ ;;
8670 */) ;;
8671 *) as_dir=$as_dir/ ;;
8672 esac
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8675 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8677 break 2
8678 fi
8679 done
8680 done
8681 IFS=$as_save_IFS
8682
8683 fi ;;
8684 esac
8685 fi
8686 OTOOL=$ac_cv_prog_OTOOL
8687 if test -n "$OTOOL"; then
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8689 printf "%s\n" "$OTOOL" >&6; }
8690 else
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 printf "%s\n" "no" >&6; }
8693 fi
8694
8695
8696 fi
8697 if test -z "$ac_cv_prog_OTOOL"; then
8698 ac_ct_OTOOL=$OTOOL
8699 # Extract the first word of "otool", so it can be a program name with args.
8700 set dummy otool; ac_word=$2
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8702 printf %s "checking for $ac_word... " >&6; }
8703 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8704 then :
8705 printf %s "(cached) " >&6
8706 else case e in #(
8707 e) if test -n "$ac_ct_OTOOL"; then
8708 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8709 else
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8712 do
8713 IFS=$as_save_IFS
8714 case $as_dir in #(((
8715 '') as_dir=./ ;;
8716 */) ;;
8717 *) as_dir=$as_dir/ ;;
8718 esac
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8721 ac_cv_prog_ac_ct_OTOOL="otool"
8722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8723 break 2
8724 fi
8725 done
8726 done
8727 IFS=$as_save_IFS
8728
8729 fi ;;
8730 esac
8731 fi
8732 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8733 if test -n "$ac_ct_OTOOL"; then
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8735 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8736 else
8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 printf "%s\n" "no" >&6; }
8739 fi
8740
8741 if test "x$ac_ct_OTOOL" = x; then
8742 OTOOL=":"
8743 else
8744 case $cross_compiling:$ac_tool_warned in
8745 yes:)
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8747 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8748 ac_tool_warned=yes ;;
8749 esac
8750 OTOOL=$ac_ct_OTOOL
8751 fi
8752 else
8753 OTOOL="$ac_cv_prog_OTOOL"
8754 fi
8755
8756 if test -n "$ac_tool_prefix"; then
8757 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8758 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 printf %s "checking for $ac_word... " >&6; }
8761 if test ${ac_cv_prog_OTOOL64+y}
8762 then :
8763 printf %s "(cached) " >&6
8764 else case e in #(
8765 e) if test -n "$OTOOL64"; then
8766 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8767 else
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771 IFS=$as_save_IFS
8772 case $as_dir in #(((
8773 '') as_dir=./ ;;
8774 */) ;;
8775 *) as_dir=$as_dir/ ;;
8776 esac
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8779 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8781 break 2
8782 fi
8783 done
8784 done
8785 IFS=$as_save_IFS
8786
8787 fi ;;
8788 esac
8789 fi
8790 OTOOL64=$ac_cv_prog_OTOOL64
8791 if test -n "$OTOOL64"; then
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8793 printf "%s\n" "$OTOOL64" >&6; }
8794 else
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 printf "%s\n" "no" >&6; }
8797 fi
8798
8799
8800 fi
8801 if test -z "$ac_cv_prog_OTOOL64"; then
8802 ac_ct_OTOOL64=$OTOOL64
8803 # Extract the first word of "otool64", so it can be a program name with args.
8804 set dummy otool64; ac_word=$2
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806 printf %s "checking for $ac_word... " >&6; }
8807 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8808 then :
8809 printf %s "(cached) " >&6
8810 else case e in #(
8811 e) if test -n "$ac_ct_OTOOL64"; then
8812 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8813 else
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8816 do
8817 IFS=$as_save_IFS
8818 case $as_dir in #(((
8819 '') as_dir=./ ;;
8820 */) ;;
8821 *) as_dir=$as_dir/ ;;
8822 esac
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8825 ac_cv_prog_ac_ct_OTOOL64="otool64"
8826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8827 break 2
8828 fi
8829 done
8830 done
8831 IFS=$as_save_IFS
8832
8833 fi ;;
8834 esac
8835 fi
8836 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8837 if test -n "$ac_ct_OTOOL64"; then
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8839 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8840 else
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 printf "%s\n" "no" >&6; }
8843 fi
8844
8845 if test "x$ac_ct_OTOOL64" = x; then
8846 OTOOL64=":"
8847 else
8848 case $cross_compiling:$ac_tool_warned in
8849 yes:)
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8852 ac_tool_warned=yes ;;
8853 esac
8854 OTOOL64=$ac_ct_OTOOL64
8855 fi
8856 else
8857 OTOOL64="$ac_cv_prog_OTOOL64"
8858 fi
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8887 printf %s "checking for -single_module linker flag... " >&6; }
8888 if test ${lt_cv_apple_cc_single_mod+y}
8889 then :
8890 printf %s "(cached) " >&6
8891 else case e in #(
8892 e) lt_cv_apple_cc_single_mod=no
8893 if test -z "$LT_MULTI_MODULE"; then
8894 # By default we will add the -single_module flag. You can override
8895 # by either setting the environment variable LT_MULTI_MODULE
8896 # non-empty at configure time, or by adding -multi_module to the
8897 # link flags.
8898 rm -rf libconftest.dylib*
8899 echo "int foo(void){return 1;}" > conftest.c
8900 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8901 -dynamiclib -Wl,-single_module conftest.c" >&5
8902 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8903 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8904 _lt_result=$?
8905 # If there is a non-empty error log, and "single_module"
8906 # appears in it, assume the flag caused a linker warning
8907 if test -s conftest.err && $GREP single_module conftest.err; then
8908 cat conftest.err >&5
8909 # Otherwise, if the output was created with a 0 exit code from
8910 # the compiler, it worked.
8911 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8912 lt_cv_apple_cc_single_mod=yes
8913 else
8914 cat conftest.err >&5
8915 fi
8916 rm -rf libconftest.dylib*
8917 rm -f conftest.*
8918 fi ;;
8919 esac
8920 fi
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8922 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8923
8924 # Feature test to disable chained fixups since it is not
8925 # compatible with '-undefined dynamic_lookup'
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8927 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8928 if test ${lt_cv_support_no_fixup_chains+y}
8929 then :
8930 printf %s "(cached) " >&6
8931 else case e in #(
8932 e) save_LDFLAGS=$LDFLAGS
8933 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936
8937 int
8938 main (void)
8939 {
8940
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 if ac_fn_c_try_link "$LINENO"
8946 then :
8947 lt_cv_support_no_fixup_chains=yes
8948 else case e in #(
8949 e) lt_cv_support_no_fixup_chains=no
8950 ;;
8951 esac
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8954 conftest$ac_exeext conftest.$ac_ext
8955 LDFLAGS=$save_LDFLAGS
8956
8957 ;;
8958 esac
8959 fi
8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8961 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8962
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8964 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8965 if test ${lt_cv_ld_exported_symbols_list+y}
8966 then :
8967 printf %s "(cached) " >&6
8968 else case e in #(
8969 e) lt_cv_ld_exported_symbols_list=no
8970 save_LDFLAGS=$LDFLAGS
8971 echo "_main" > conftest.sym
8972 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975
8976 int
8977 main (void)
8978 {
8979
8980 ;
8981 return 0;
8982 }
8983 _ACEOF
8984 if ac_fn_c_try_link "$LINENO"
8985 then :
8986 lt_cv_ld_exported_symbols_list=yes
8987 else case e in #(
8988 e) lt_cv_ld_exported_symbols_list=no ;;
8989 esac
8990 fi
8991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8992 conftest$ac_exeext conftest.$ac_ext
8993 LDFLAGS=$save_LDFLAGS
8994 ;;
8995 esac
8996 fi
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8998 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8999
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9001 printf %s "checking for -force_load linker flag... " >&6; }
9002 if test ${lt_cv_ld_force_load+y}
9003 then :
9004 printf %s "(cached) " >&6
9005 else case e in #(
9006 e) lt_cv_ld_force_load=no
9007 cat > conftest.c << _LT_EOF
9008 int forced_loaded() { return 2;}
9009 _LT_EOF
9010 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9011 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9012 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9013 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9014 echo "$RANLIB libconftest.a" >&5
9015 $RANLIB libconftest.a 2>&5
9016 cat > conftest.c << _LT_EOF
9017 int main(void) { return 0;}
9018 _LT_EOF
9019 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9020 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9021 _lt_result=$?
9022 if test -s conftest.err && $GREP force_load conftest.err; then
9023 cat conftest.err >&5
9024 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9025 lt_cv_ld_force_load=yes
9026 else
9027 cat conftest.err >&5
9028 fi
9029 rm -f conftest.err libconftest.a conftest conftest.c
9030 rm -rf conftest.dSYM
9031 ;;
9032 esac
9033 fi
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9035 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9036 case $host_os in
9037 rhapsody* | darwin1.[012])
9038 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9039 darwin1.*)
9040 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9041 darwin*)
9042 case $MACOSX_DEPLOYMENT_TARGET,$host in
9043 10.[012],*|,*powerpc*-darwin[5-8]*)
9044 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9045 *)
9046 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9047 if test yes = "$lt_cv_support_no_fixup_chains"; then
9048 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9049 fi
9050 ;;
9051 esac
9052 ;;
9053 esac
9054 if test yes = "$lt_cv_apple_cc_single_mod"; then
9055 _lt_dar_single_mod='$single_module'
9056 fi
9057 _lt_dar_needs_single_mod=no
9058 case $host_os in
9059 rhapsody* | darwin1.*)
9060 _lt_dar_needs_single_mod=yes ;;
9061 darwin*)
9062 # When targeting Mac OS X 10.4 (darwin 8) or later,
9063 # -single_module is the default and -multi_module is unsupported.
9064 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9065 # target any OS version that needs -single_module.
9066 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9067 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9068 _lt_dar_needs_single_mod=yes ;;
9069 esac
9070 ;;
9071 esac
9072 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9073 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9074 else
9075 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9076 fi
9077 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9078 _lt_dsymutil='~$DSYMUTIL $lib || :'
9079 else
9080 _lt_dsymutil=
9081 fi
9082 ;;
9083 esac
9084
9085 # func_munge_path_list VARIABLE PATH
9086 # -----------------------------------
9087 # VARIABLE is name of variable containing _space_ separated list of
9088 # directories to be munged by the contents of PATH, which is string
9089 # having a format:
9090 # "DIR[:DIR]:"
9091 # string "DIR[ DIR]" will be prepended to VARIABLE
9092 # ":DIR[:DIR]"
9093 # string "DIR[ DIR]" will be appended to VARIABLE
9094 # "DIRP[:DIRP]::[DIRA:]DIRA"
9095 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9096 # "DIRA[ DIRA]" will be appended to VARIABLE
9097 # "DIR[:DIR]"
9098 # VARIABLE will be replaced by "DIR[ DIR]"
9099 func_munge_path_list ()
9100 {
9101 case x$2 in
9102 x)
9103 ;;
9104 *:)
9105 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9106 ;;
9107 x:*)
9108 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9109 ;;
9110 *::*)
9111 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9112 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9113 ;;
9114 *)
9115 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9116 ;;
9117 esac
9118 }
9119
9120 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9121 "
9122 if test "x$ac_cv_header_dlfcn_h" = xyes
9123 then :
9124 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9125
9126 fi
9127
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9129 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9130 if test ${ac_cv_c_undeclared_builtin_options+y}
9131 then :
9132 printf %s "(cached) " >&6
9133 else case e in #(
9134 e) ac_save_CFLAGS=$CFLAGS
9135 ac_cv_c_undeclared_builtin_options='cannot detect'
9136 for ac_arg in '' -fno-builtin; do
9137 CFLAGS="$ac_save_CFLAGS $ac_arg"
9138 # This test program should *not* compile successfully.
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141
9142 int
9143 main (void)
9144 {
9145 (void) strchr;
9146 ;
9147 return 0;
9148 }
9149 _ACEOF
9150 if ac_fn_c_try_compile "$LINENO"
9151 then :
9152
9153 else case e in #(
9154 e) # This test program should compile successfully.
9155 # No library function is consistently available on
9156 # freestanding implementations, so test against a dummy
9157 # declaration. Include always-available headers on the
9158 # off chance that they somehow elicit warnings.
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 #include <float.h>
9162 #include <limits.h>
9163 #include <stdarg.h>
9164 #include <stddef.h>
9165 extern void ac_decl (int, char *);
9166
9167 int
9168 main (void)
9169 {
9170 (void) ac_decl (0, (char *) 0);
9171 (void) ac_decl;
9172
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 if ac_fn_c_try_compile "$LINENO"
9178 then :
9179 if test x"$ac_arg" = x
9180 then :
9181 ac_cv_c_undeclared_builtin_options='none needed'
9182 else case e in #(
9183 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9184 esac
9185 fi
9186 break
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9189 esac
9190 fi
9191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9192 done
9193 CFLAGS=$ac_save_CFLAGS
9194 ;;
9195 esac
9196 fi
9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9198 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9199 case $ac_cv_c_undeclared_builtin_options in #(
9200 'cannot detect') :
9201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9202 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9203 as_fn_error $? "cannot make $CC report undeclared builtins
9204 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9205 'none needed') :
9206 ac_c_undeclared_builtin_options='' ;; #(
9207 *) :
9208 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9209 esac
9210
9211 echo 'tldbg:KPSE_COMMON called (pkg=dtl, amopt=)' >&5
9212 echo 'tldbg:KPSE_BASIC called (pkg=dtl, amopt=)' >&5
9213
9214 #
9215 # am_init_automake
9216 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9217 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9218 # is not polluted with repeated "-I."
9219 am__isrc=' -I$(srcdir)'
9220 # test to see if srcdir already configured
9221 if test -f $srcdir/config.status; then
9222 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9223 fi
9224 fi
9225
9226 # test whether we have cygpath
9227 if test -z "$CYGPATH_W"; then
9228 if (cygpath --version) >/dev/null 2>/dev/null; then
9229 CYGPATH_W='cygpath -w'
9230 else
9231 CYGPATH_W=echo
9232 fi
9233 fi
9234
9235
9236 # Define the identity of the package.
9237 PACKAGE='dtl--tex-live-'
9238 VERSION='0.6.0'
9239
9240
9241 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9242
9243
9244 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9245
9246 # Some tools Automake needs.
9247
9248 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9249
9250
9251 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9252
9253
9254 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9255
9256
9257 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9258
9259
9260 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9261
9262 # For better backward compatibility. To be removed once Automake 1.9.x
9263 # dies out for good. For more background, see:
9264 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9265 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9266 mkdir_p='$(MKDIR_P)'
9267
9268 # We need awk for the "check" target (and possibly the TAP driver). The
9269 # system "awk" is bad on some platforms.
9270 # Always define AMTAR for backward compatibility. Yes, it's still used
9271 # in the wild :-( We should find a proper way to deprecate it ...
9272 AMTAR='$${TAR-tar}'
9273
9274
9275 # We'll loop over all known methods to create a tar archive until one works.
9276 _am_tools='gnutar plaintar pax cpio none'
9277
9278 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9279 # There is notably a 21 bits limit for the UID and the GID. In fact,
9280 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9281 # and bug#13588).
9282 am_max_uid=2097151 # 2^21 - 1
9283 am_max_gid=$am_max_uid
9284 # The $UID and $GID variables are not portable, so we need to resort
9285 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9286 # below are definitely unexpected, so allow the users to see them
9287 # (that is, avoid stderr redirection).
9288 am_uid=`id -u || echo unknown`
9289 am_gid=`id -g || echo unknown`
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9291 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9292 if test x$am_uid = xunknown; then
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9294 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9295 elif test $am_uid -le $am_max_uid; then
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9297 printf "%s\n" "yes" >&6; }
9298 else
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 printf "%s\n" "no" >&6; }
9301 _am_tools=none
9302 fi
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9304 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9305 if test x$gm_gid = xunknown; then
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9307 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9308 elif test $am_gid -le $am_max_gid; then
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9310 printf "%s\n" "yes" >&6; }
9311 else
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 printf "%s\n" "no" >&6; }
9314 _am_tools=none
9315 fi
9316
9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9318 printf %s "checking how to create a ustar tar archive... " >&6; }
9319
9320 # Go ahead even if we have the value already cached. We do so because we
9321 # need to set the values for the 'am__tar' and 'am__untar' variables.
9322 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9323
9324 for _am_tool in $_am_tools; do
9325 case $_am_tool in
9326 gnutar)
9327 for _am_tar in tar gnutar gtar; do
9328 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9329 ($_am_tar --version) >&5 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } && break
9333 done
9334 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9335 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9336 am__untar="$_am_tar -xf -"
9337 ;;
9338 plaintar)
9339 # Must skip GNU tar: if it does not support --format= it doesn't create
9340 # ustar tarball either.
9341 (tar --version) >/dev/null 2>&1 && continue
9342 am__tar='tar chf - "$$tardir"'
9343 am__tar_='tar chf - "$tardir"'
9344 am__untar='tar xf -'
9345 ;;
9346 pax)
9347 am__tar='pax -L -x ustar -w "$$tardir"'
9348 am__tar_='pax -L -x ustar -w "$tardir"'
9349 am__untar='pax -r'
9350 ;;
9351 cpio)
9352 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9353 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9354 am__untar='cpio -i -H ustar -d'
9355 ;;
9356 none)
9357 am__tar=false
9358 am__tar_=false
9359 am__untar=false
9360 ;;
9361 esac
9362
9363 # If the value was cached, stop now. We just wanted to have am__tar
9364 # and am__untar set.
9365 test -n "${am_cv_prog_tar_ustar}" && break
9366
9367 # tar/untar a dummy directory, and stop if the command works.
9368 rm -rf conftest.dir
9369 mkdir conftest.dir
9370 echo GrepMe > conftest.dir/file
9371 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9372 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }
9376 rm -rf conftest.dir
9377 if test -s conftest.tar; then
9378 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9379 ($am__untar <conftest.tar) >&5 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }
9383 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9384 (cat conftest.dir/file) >&5 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }
9388 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9389 fi
9390 done
9391 rm -rf conftest.dir
9392
9393 if test ${am_cv_prog_tar_ustar+y}
9394 then :
9395 printf %s "(cached) " >&6
9396 else case e in #(
9397 e) am_cv_prog_tar_ustar=$_am_tool ;;
9398 esac
9399 fi
9400
9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9402 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9403
9404
9405
9406
9407
9408 # Variables for tags utilities; see am/tags.am
9409 if test -z "$CTAGS"; then
9410 CTAGS=ctags
9411 fi
9412
9413 if test -z "$ETAGS"; then
9414 ETAGS=etags
9415 fi
9416
9417 if test -z "$CSCOPE"; then
9418 CSCOPE=cscope
9419 fi
9420
9421
9422
9423
9424
9425
9426
9427
9428 # am_maintainer_mode
9429
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9431 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9432 # Check whether --enable-maintainer-mode was given.
9433 if test ${enable_maintainer_mode+y}
9434 then :
9435 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9436 else case e in #(
9437 e) USE_MAINTAINER_MODE=no ;;
9438 esac
9439 fi
9440
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9442 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9443 if test $USE_MAINTAINER_MODE = yes; then
9444 MAINTAINER_MODE_TRUE=
9445 MAINTAINER_MODE_FALSE='#'
9446 else
9447 MAINTAINER_MODE_TRUE='#'
9448 MAINTAINER_MODE_FALSE=
9449 fi
9450
9451 MAINT=$MAINTAINER_MODE_TRUE
9452
9453
9454
9455 # See comments in kpse-setup.m4 about system extensions.
9456
9457
9458 # Check whether prototypes work.
9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9460 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9461 if test ${kb_cv_c_prototypes+y}
9462 then :
9463 printf %s "(cached) " >&6
9464 else case e in #(
9465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9467 #include <stdarg.h>
9468 int
9469 main (void)
9470 {
9471 extern void foo(int i,...);
9472 ;
9473 return 0;
9474 }
9475 _ACEOF
9476 if ac_fn_c_try_link "$LINENO"
9477 then :
9478 kb_cv_c_prototypes=yes
9479 else case e in #(
9480 e) kb_cv_c_prototypes=no ;;
9481 esac
9482 fi
9483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9484 conftest$ac_exeext conftest.$ac_ext ;;
9485 esac
9486 fi
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9488 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9489 if test "x$kb_cv_c_prototypes" = xno; then
9490 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9491 fi
9492
9493 # kpse_compiler_warnings options.
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9495 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9496 if test ${kpse_cv_warning_cflags+y}
9497 then :
9498 printf %s "(cached) " >&6
9499 else case e in #(
9500 e) if test "x$GCC" = xyes; then
9501 kpse_cv_warning_cflags=
9502 if test "x$enable_compiler_warnings" != xno; then
9503 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9504 case `$CC -dumpversion` in #(
9505 3.4.* | 4.* | 5.*) :
9506 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9507 *) :
9508 ;;
9509 esac
9510 case `$CC -dumpversion` in #(
9511 3.[234].* | 4.* | 5.*) :
9512 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9513 *) :
9514 ;;
9515 esac
9516 if test "x$enable_compiler_warnings" != xmin; then
9517 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9518 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9519 if test "x$enable_compiler_warnings" != xyes; then
9520 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9521 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9522 case `$CC -dumpversion` in #(
9523 3.4.* | 4.* | 5.*) :
9524 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9525 *) :
9526 ;;
9527 esac
9528 if test "x$enable_compiler_warnings" != xmax; then
9529 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9530 fi
9531 fi
9532 fi
9533 fi
9534 elif test "x$enable_compiler_warnings" = xno; then
9535 kpse_cv_warning_cflags=
9536 else
9537 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9538 fi ;;
9539 esac
9540 fi
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9542 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9543 WARNING_CFLAGS=$kpse_cv_warning_cflags
9544
9545
9546
9547
9548
9549
9550
9551 # end of kpse_basic macro.
9552 echo 'tldbg:KPSE_BASIC done (pkg=dtl, amopt=)' >&5
9553
9554 # am_prog_ar must be called before lt_init.
9555
9556 if test -n "$ac_tool_prefix"; then
9557 for ac_prog in ar lib "link -lib"
9558 do
9559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562 printf %s "checking for $ac_word... " >&6; }
9563 if test ${ac_cv_prog_AR+y}
9564 then :
9565 printf %s "(cached) " >&6
9566 else case e in #(
9567 e) if test -n "$AR"; then
9568 ac_cv_prog_AR="$AR" # Let the user override the test.
9569 else
9570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571 for as_dir in $PATH
9572 do
9573 IFS=$as_save_IFS
9574 case $as_dir in #(((
9575 '') as_dir=./ ;;
9576 */) ;;
9577 *) as_dir=$as_dir/ ;;
9578 esac
9579 for ac_exec_ext in '' $ac_executable_extensions; do
9580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9581 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9583 break 2
9584 fi
9585 done
9586 done
9587 IFS=$as_save_IFS
9588
9589 fi ;;
9590 esac
9591 fi
9592 AR=$ac_cv_prog_AR
9593 if test -n "$AR"; then
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9595 printf "%s\n" "$AR" >&6; }
9596 else
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 printf "%s\n" "no" >&6; }
9599 fi
9600
9601
9602 test -n "$AR" && break
9603 done
9604 fi
9605 if test -z "$AR"; then
9606 ac_ct_AR=$AR
9607 for ac_prog in ar lib "link -lib"
9608 do
9609 # Extract the first word of "$ac_prog", so it can be a program name with args.
9610 set dummy $ac_prog; ac_word=$2
9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612 printf %s "checking for $ac_word... " >&6; }
9613 if test ${ac_cv_prog_ac_ct_AR+y}
9614 then :
9615 printf %s "(cached) " >&6
9616 else case e in #(
9617 e) if test -n "$ac_ct_AR"; then
9618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9619 else
9620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 for as_dir in $PATH
9622 do
9623 IFS=$as_save_IFS
9624 case $as_dir in #(((
9625 '') as_dir=./ ;;
9626 */) ;;
9627 *) as_dir=$as_dir/ ;;
9628 esac
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9631 ac_cv_prog_ac_ct_AR="$ac_prog"
9632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9633 break 2
9634 fi
9635 done
9636 done
9637 IFS=$as_save_IFS
9638
9639 fi ;;
9640 esac
9641 fi
9642 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9643 if test -n "$ac_ct_AR"; then
9644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9645 printf "%s\n" "$ac_ct_AR" >&6; }
9646 else
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648 printf "%s\n" "no" >&6; }
9649 fi
9650
9651
9652 test -n "$ac_ct_AR" && break
9653 done
9654
9655 if test "x$ac_ct_AR" = x; then
9656 AR="false"
9657 else
9658 case $cross_compiling:$ac_tool_warned in
9659 yes:)
9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9661 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9662 ac_tool_warned=yes ;;
9663 esac
9664 AR=$ac_ct_AR
9665 fi
9666 fi
9667
9668 : ${AR=ar}
9669 : ${ARFLAGS=cr}
9670
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9672 printf %s "checking the archiver ($AR) interface... " >&6; }
9673 if test ${am_cv_ar_interface+y}
9674 then :
9675 printf %s "(cached) " >&6
9676 else case e in #(
9677 e) ac_ext=c
9678 ac_cpp='$CPP $CPPFLAGS'
9679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9682
9683 am_cv_ar_interface=ar
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 int some_variable = 0;
9687 _ACEOF
9688 if ac_fn_c_try_compile "$LINENO"
9689 then :
9690 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9692 (eval $am_ar_try) 2>&5
9693 ac_status=$?
9694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9695 test $ac_status = 0; }
9696 if test "$ac_status" -eq 0; then
9697 am_cv_ar_interface=ar
9698 else
9699 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9701 (eval $am_ar_try) 2>&5
9702 ac_status=$?
9703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9704 test $ac_status = 0; }
9705 if test "$ac_status" -eq 0; then
9706 am_cv_ar_interface=lib
9707 else
9708 am_cv_ar_interface=unknown
9709 fi
9710 fi
9711 rm -f conftest.lib libconftest.a
9712
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9715 ac_ext=c
9716 ac_cpp='$CPP $CPPFLAGS'
9717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9720 ;;
9721 esac
9722 fi
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9724 printf "%s\n" "$am_cv_ar_interface" >&6; }
9725
9726 case $am_cv_ar_interface in
9727 ar)
9728 ;;
9729 lib)
9730 # Microsoft lib, so override with the ar-lib wrapper script.
9731 # FIXME: It is wrong to rewrite AR.
9732 # But if we don't then we get into trouble of one sort or another.
9733 # A longer-term fix would be to have automake use am__AR in this case,
9734 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9735 # similar.
9736 AR="$am_aux_dir/ar-lib $AR"
9737 ;;
9738 unknown)
9739 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9740 ;;
9741 esac
9742
9743 # (end am_prog_ar)
9744 # starting lt_prereq + lt_init.
9745
9746
9747
9748
9749
9750 # Set options
9751 enable_win32_dll=yes
9752
9753 case $host in
9754 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9755 if test -n "$ac_tool_prefix"; then
9756 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9757 set dummy ${ac_tool_prefix}as; ac_word=$2
9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 printf %s "checking for $ac_word... " >&6; }
9760 if test ${ac_cv_prog_AS+y}
9761 then :
9762 printf %s "(cached) " >&6
9763 else case e in #(
9764 e) if test -n "$AS"; then
9765 ac_cv_prog_AS="$AS" # Let the user override the test.
9766 else
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in $PATH
9769 do
9770 IFS=$as_save_IFS
9771 case $as_dir in #(((
9772 '') as_dir=./ ;;
9773 */) ;;
9774 *) as_dir=$as_dir/ ;;
9775 esac
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9778 ac_cv_prog_AS="${ac_tool_prefix}as"
9779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782 done
9783 done
9784 IFS=$as_save_IFS
9785
9786 fi ;;
9787 esac
9788 fi
9789 AS=$ac_cv_prog_AS
9790 if test -n "$AS"; then
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9792 printf "%s\n" "$AS" >&6; }
9793 else
9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 printf "%s\n" "no" >&6; }
9796 fi
9797
9798
9799 fi
9800 if test -z "$ac_cv_prog_AS"; then
9801 ac_ct_AS=$AS
9802 # Extract the first word of "as", so it can be a program name with args.
9803 set dummy as; ac_word=$2
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 printf %s "checking for $ac_word... " >&6; }
9806 if test ${ac_cv_prog_ac_ct_AS+y}
9807 then :
9808 printf %s "(cached) " >&6
9809 else case e in #(
9810 e) if test -n "$ac_ct_AS"; then
9811 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9812 else
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816 IFS=$as_save_IFS
9817 case $as_dir in #(((
9818 '') as_dir=./ ;;
9819 */) ;;
9820 *) as_dir=$as_dir/ ;;
9821 esac
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9824 ac_cv_prog_ac_ct_AS="as"
9825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9826 break 2
9827 fi
9828 done
9829 done
9830 IFS=$as_save_IFS
9831
9832 fi ;;
9833 esac
9834 fi
9835 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9836 if test -n "$ac_ct_AS"; then
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9838 printf "%s\n" "$ac_ct_AS" >&6; }
9839 else
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 printf "%s\n" "no" >&6; }
9842 fi
9843
9844 if test "x$ac_ct_AS" = x; then
9845 AS="false"
9846 else
9847 case $cross_compiling:$ac_tool_warned in
9848 yes:)
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9851 ac_tool_warned=yes ;;
9852 esac
9853 AS=$ac_ct_AS
9854 fi
9855 else
9856 AS="$ac_cv_prog_AS"
9857 fi
9858
9859 if test -n "$ac_tool_prefix"; then
9860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 printf %s "checking for $ac_word... " >&6; }
9864 if test ${ac_cv_prog_DLLTOOL+y}
9865 then :
9866 printf %s "(cached) " >&6
9867 else case e in #(
9868 e) if test -n "$DLLTOOL"; then
9869 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9870 else
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874 IFS=$as_save_IFS
9875 case $as_dir in #(((
9876 '') as_dir=./ ;;
9877 */) ;;
9878 *) as_dir=$as_dir/ ;;
9879 esac
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9882 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886 done
9887 done
9888 IFS=$as_save_IFS
9889
9890 fi ;;
9891 esac
9892 fi
9893 DLLTOOL=$ac_cv_prog_DLLTOOL
9894 if test -n "$DLLTOOL"; then
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9896 printf "%s\n" "$DLLTOOL" >&6; }
9897 else
9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 printf "%s\n" "no" >&6; }
9900 fi
9901
9902
9903 fi
9904 if test -z "$ac_cv_prog_DLLTOOL"; then
9905 ac_ct_DLLTOOL=$DLLTOOL
9906 # Extract the first word of "dlltool", so it can be a program name with args.
9907 set dummy dlltool; ac_word=$2
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909 printf %s "checking for $ac_word... " >&6; }
9910 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9911 then :
9912 printf %s "(cached) " >&6
9913 else case e in #(
9914 e) if test -n "$ac_ct_DLLTOOL"; then
9915 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9916 else
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 for as_dir in $PATH
9919 do
9920 IFS=$as_save_IFS
9921 case $as_dir in #(((
9922 '') as_dir=./ ;;
9923 */) ;;
9924 *) as_dir=$as_dir/ ;;
9925 esac
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9928 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9930 break 2
9931 fi
9932 done
9933 done
9934 IFS=$as_save_IFS
9935
9936 fi ;;
9937 esac
9938 fi
9939 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9940 if test -n "$ac_ct_DLLTOOL"; then
9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9942 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9943 else
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 printf "%s\n" "no" >&6; }
9946 fi
9947
9948 if test "x$ac_ct_DLLTOOL" = x; then
9949 DLLTOOL="false"
9950 else
9951 case $cross_compiling:$ac_tool_warned in
9952 yes:)
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9954 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9955 ac_tool_warned=yes ;;
9956 esac
9957 DLLTOOL=$ac_ct_DLLTOOL
9958 fi
9959 else
9960 DLLTOOL="$ac_cv_prog_DLLTOOL"
9961 fi
9962
9963 if test -n "$ac_tool_prefix"; then
9964 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9965 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 printf %s "checking for $ac_word... " >&6; }
9968 if test ${ac_cv_prog_OBJDUMP+y}
9969 then :
9970 printf %s "(cached) " >&6
9971 else case e in #(
9972 e) if test -n "$OBJDUMP"; then
9973 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9974 else
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 for as_dir in $PATH
9977 do
9978 IFS=$as_save_IFS
9979 case $as_dir in #(((
9980 '') as_dir=./ ;;
9981 */) ;;
9982 *) as_dir=$as_dir/ ;;
9983 esac
9984 for ac_exec_ext in '' $ac_executable_extensions; do
9985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9986 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9988 break 2
9989 fi
9990 done
9991 done
9992 IFS=$as_save_IFS
9993
9994 fi ;;
9995 esac
9996 fi
9997 OBJDUMP=$ac_cv_prog_OBJDUMP
9998 if test -n "$OBJDUMP"; then
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10000 printf "%s\n" "$OBJDUMP" >&6; }
10001 else
10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 printf "%s\n" "no" >&6; }
10004 fi
10005
10006
10007 fi
10008 if test -z "$ac_cv_prog_OBJDUMP"; then
10009 ac_ct_OBJDUMP=$OBJDUMP
10010 # Extract the first word of "objdump", so it can be a program name with args.
10011 set dummy objdump; ac_word=$2
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 printf %s "checking for $ac_word... " >&6; }
10014 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10015 then :
10016 printf %s "(cached) " >&6
10017 else case e in #(
10018 e) if test -n "$ac_ct_OBJDUMP"; then
10019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10020 else
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in $PATH
10023 do
10024 IFS=$as_save_IFS
10025 case $as_dir in #(((
10026 '') as_dir=./ ;;
10027 */) ;;
10028 *) as_dir=$as_dir/ ;;
10029 esac
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10032 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10034 break 2
10035 fi
10036 done
10037 done
10038 IFS=$as_save_IFS
10039
10040 fi ;;
10041 esac
10042 fi
10043 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10044 if test -n "$ac_ct_OBJDUMP"; then
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10046 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10047 else
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 printf "%s\n" "no" >&6; }
10050 fi
10051
10052 if test "x$ac_ct_OBJDUMP" = x; then
10053 OBJDUMP="false"
10054 else
10055 case $cross_compiling:$ac_tool_warned in
10056 yes:)
10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10058 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10059 ac_tool_warned=yes ;;
10060 esac
10061 OBJDUMP=$ac_ct_OBJDUMP
10062 fi
10063 else
10064 OBJDUMP="$ac_cv_prog_OBJDUMP"
10065 fi
10066
10067 ;;
10068 esac
10069
10070 test -z "$AS" && AS=as
10071
10072
10073
10074
10075
10076 test -z "$DLLTOOL" && DLLTOOL=dlltool
10077
10078
10079
10080
10081
10082 test -z "$OBJDUMP" && OBJDUMP=objdump
10083
10084
10085
10086
10087
10088
10089
10090 enable_dlopen=no
10091
10092
10093
10094 # Check whether --enable-shared was given.
10095 if test ${enable_shared+y}
10096 then :
10097 enableval=$enable_shared; p=${PACKAGE-default}
10098 case $enableval in
10099 yes) enable_shared=yes ;;
10100 no) enable_shared=no ;;
10101 *)
10102 enable_shared=no
10103 # Look at the argument we got. We use all the common list separators.
10104 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10105 for pkg in $enableval; do
10106 IFS=$lt_save_ifs
10107 if test "X$pkg" = "X$p"; then
10108 enable_shared=yes
10109 fi
10110 done
10111 IFS=$lt_save_ifs
10112 ;;
10113 esac
10114 else case e in #(
10115 e) enable_shared=yes ;;
10116 esac
10117 fi
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127 # Check whether --enable-static was given.
10128 if test ${enable_static+y}
10129 then :
10130 enableval=$enable_static; p=${PACKAGE-default}
10131 case $enableval in
10132 yes) enable_static=yes ;;
10133 no) enable_static=no ;;
10134 *)
10135 enable_static=no
10136 # Look at the argument we got. We use all the common list separators.
10137 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10138 for pkg in $enableval; do
10139 IFS=$lt_save_ifs
10140 if test "X$pkg" = "X$p"; then
10141 enable_static=yes
10142 fi
10143 done
10144 IFS=$lt_save_ifs
10145 ;;
10146 esac
10147 else case e in #(
10148 e) enable_static=yes ;;
10149 esac
10150 fi
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160 # Check whether --enable-pic was given.
10161 if test ${enable_pic+y}
10162 then :
10163 enableval=$enable_pic; lt_p=${PACKAGE-default}
10164 case $enableval in
10165 yes|no) pic_mode=$enableval ;;
10166 *)
10167 pic_mode=default
10168 # Look at the argument we got. We use all the common list separators.
10169 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10170 for lt_pkg in $enableval; do
10171 IFS=$lt_save_ifs
10172 if test "X$lt_pkg" = "X$lt_p"; then
10173 pic_mode=yes
10174 fi
10175 done
10176 IFS=$lt_save_ifs
10177 ;;
10178 esac
10179 else case e in #(
10180 e) # Check whether --with-pic was given.
10181 if test ${with_pic+y}
10182 then :
10183 withval=$with_pic; lt_p=${PACKAGE-default}
10184 case $withval in
10185 yes|no) pic_mode=$withval ;;
10186 *)
10187 pic_mode=default
10188 # Look at the argument we got. We use all the common list separators.
10189 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10190 for lt_pkg in $withval; do
10191 IFS=$lt_save_ifs
10192 if test "X$lt_pkg" = "X$lt_p"; then
10193 pic_mode=yes
10194 fi
10195 done
10196 IFS=$lt_save_ifs
10197 ;;
10198 esac
10199 else case e in #(
10200 e) pic_mode=default ;;
10201 esac
10202 fi
10203
10204 ;;
10205 esac
10206 fi
10207
10208
10209
10210
10211
10212
10213
10214
10215 # Check whether --enable-fast-install was given.
10216 if test ${enable_fast_install+y}
10217 then :
10218 enableval=$enable_fast_install; p=${PACKAGE-default}
10219 case $enableval in
10220 yes) enable_fast_install=yes ;;
10221 no) enable_fast_install=no ;;
10222 *)
10223 enable_fast_install=no
10224 # Look at the argument we got. We use all the common list separators.
10225 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10226 for pkg in $enableval; do
10227 IFS=$lt_save_ifs
10228 if test "X$pkg" = "X$p"; then
10229 enable_fast_install=yes
10230 fi
10231 done
10232 IFS=$lt_save_ifs
10233 ;;
10234 esac
10235 else case e in #(
10236 e) enable_fast_install=yes ;;
10237 esac
10238 fi
10239
10240
10241
10242
10243
10244
10245
10246
10247 shared_archive_member_spec=
10248 case $host,$enable_shared in
10249 power*-*-aix[5-9]*,yes)
10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10251 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10252 # Check whether --enable-aix-soname was given.
10253 if test ${enable_aix_soname+y}
10254 then :
10255 enableval=$enable_aix_soname; case $enableval in
10256 aix|svr4|both)
10257 ;;
10258 *)
10259 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10260 ;;
10261 esac
10262 lt_cv_with_aix_soname=$enable_aix_soname
10263 else case e in #(
10264 e) # Check whether --with-aix-soname was given.
10265 if test ${with_aix_soname+y}
10266 then :
10267 withval=$with_aix_soname; case $withval in
10268 aix|svr4|both)
10269 ;;
10270 *)
10271 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10272 ;;
10273 esac
10274 lt_cv_with_aix_soname=$with_aix_soname
10275 else case e in #(
10276 e) if test ${lt_cv_with_aix_soname+y}
10277 then :
10278 printf %s "(cached) " >&6
10279 else case e in #(
10280 e) lt_cv_with_aix_soname=aix ;;
10281 esac
10282 fi
10283 ;;
10284 esac
10285 fi
10286
10287 enable_aix_soname=$lt_cv_with_aix_soname ;;
10288 esac
10289 fi
10290
10291 with_aix_soname=$enable_aix_soname
10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10293 printf "%s\n" "$with_aix_soname" >&6; }
10294 if test aix != "$with_aix_soname"; then
10295 # For the AIX way of multilib, we name the shared archive member
10296 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10297 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10298 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10299 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10300 if test 64 = "${OBJECT_MODE-32}"; then
10301 shared_archive_member_spec=shr_64
10302 else
10303 shared_archive_member_spec=shr
10304 fi
10305 fi
10306 ;;
10307 *)
10308 with_aix_soname=aix
10309 ;;
10310 esac
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321 # This can be used to rebuild libtool when needed
10322 LIBTOOL_DEPS=$ltmain
10323
10324 # Always use our own libtool.
10325 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356 test -z "$LN_S" && LN_S="ln -s"
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371 if test -n "${ZSH_VERSION+set}"; then
10372 setopt NO_GLOB_SUBST
10373 fi
10374
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10376 printf %s "checking for objdir... " >&6; }
10377 if test ${lt_cv_objdir+y}
10378 then :
10379 printf %s "(cached) " >&6
10380 else case e in #(
10381 e) rm -f .libs 2>/dev/null
10382 mkdir .libs 2>/dev/null
10383 if test -d .libs; then
10384 lt_cv_objdir=.libs
10385 else
10386 # MS-DOS does not allow filenames that begin with a dot.
10387 lt_cv_objdir=_libs
10388 fi
10389 rmdir .libs 2>/dev/null ;;
10390 esac
10391 fi
10392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10393 printf "%s\n" "$lt_cv_objdir" >&6; }
10394 objdir=$lt_cv_objdir
10395
10396
10397
10398
10399
10400 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10401
10402
10403
10404
10405 case $host_os in
10406 aix3*)
10407 # AIX sometimes has problems with the GCC collect2 program. For some
10408 # reason, if we set the COLLECT_NAMES environment variable, the problems
10409 # vanish in a puff of smoke.
10410 if test set != "${COLLECT_NAMES+set}"; then
10411 COLLECT_NAMES=
10412 export COLLECT_NAMES
10413 fi
10414 ;;
10415 esac
10416
10417 # Global variables:
10418 ofile=libtool
10419 can_build_shared=yes
10420
10421 # All known linkers require a '.a' archive for static linking (except MSVC and
10422 # ICC, which need '.lib').
10423 libext=a
10424
10425 with_gnu_ld=$lt_cv_prog_gnu_ld
10426
10427 old_CC=$CC
10428 old_CFLAGS=$CFLAGS
10429
10430 # Set sane defaults for various variables
10431 test -z "$CC" && CC=cc
10432 test -z "$LTCC" && LTCC=$CC
10433 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10434 test -z "$LD" && LD=ld
10435 test -z "$ac_objext" && ac_objext=o
10436
10437 func_cc_basename $compiler
10438 cc_basename=$func_cc_basename_result
10439
10440
10441 # Only perform the check for file, if the check method requires it
10442 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10443 case $deplibs_check_method in
10444 file_magic*)
10445 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10447 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10448 if test ${lt_cv_path_MAGIC_CMD+y}
10449 then :
10450 printf %s "(cached) " >&6
10451 else case e in #(
10452 e) case $MAGIC_CMD in
10453 [\\/*] | ?:[\\/]*)
10454 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10455 ;;
10456 *)
10457 lt_save_MAGIC_CMD=$MAGIC_CMD
10458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10460 for ac_dir in $ac_dummy; do
10461 IFS=$lt_save_ifs
10462 test -z "$ac_dir" && ac_dir=.
10463 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10464 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10465 if test -n "$file_magic_test_file"; then
10466 case $deplibs_check_method in
10467 "file_magic "*)
10468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10469 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10471 $EGREP "$file_magic_regex" > /dev/null; then
10472 :
10473 else
10474 cat <<_LT_EOF 1>&2
10475
10476 *** Warning: the command libtool uses to detect shared libraries,
10477 *** $file_magic_cmd, produces output that libtool cannot recognize.
10478 *** The result is that libtool may fail to recognize shared libraries
10479 *** as such. This will affect the creation of libtool libraries that
10480 *** depend on shared libraries, but programs linked with such libtool
10481 *** libraries will work regardless of this problem. Nevertheless, you
10482 *** may want to report the problem to your system manager and/or to
10483 *** [email protected]
10484
10485 _LT_EOF
10486 fi ;;
10487 esac
10488 fi
10489 break
10490 fi
10491 done
10492 IFS=$lt_save_ifs
10493 MAGIC_CMD=$lt_save_MAGIC_CMD
10494 ;;
10495 esac ;;
10496 esac
10497 fi
10498
10499 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10500 if test -n "$MAGIC_CMD"; then
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10502 printf "%s\n" "$MAGIC_CMD" >&6; }
10503 else
10504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 printf "%s\n" "no" >&6; }
10506 fi
10507
10508
10509
10510
10511
10512 if test -z "$lt_cv_path_MAGIC_CMD"; then
10513 if test -n "$ac_tool_prefix"; then
10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10515 printf %s "checking for file... " >&6; }
10516 if test ${lt_cv_path_MAGIC_CMD+y}
10517 then :
10518 printf %s "(cached) " >&6
10519 else case e in #(
10520 e) case $MAGIC_CMD in
10521 [\\/*] | ?:[\\/]*)
10522 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10523 ;;
10524 *)
10525 lt_save_MAGIC_CMD=$MAGIC_CMD
10526 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10527 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10528 for ac_dir in $ac_dummy; do
10529 IFS=$lt_save_ifs
10530 test -z "$ac_dir" && ac_dir=.
10531 if test -f "$ac_dir/file"; then
10532 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10533 if test -n "$file_magic_test_file"; then
10534 case $deplibs_check_method in
10535 "file_magic "*)
10536 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10537 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10538 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10539 $EGREP "$file_magic_regex" > /dev/null; then
10540 :
10541 else
10542 cat <<_LT_EOF 1>&2
10543
10544 *** Warning: the command libtool uses to detect shared libraries,
10545 *** $file_magic_cmd, produces output that libtool cannot recognize.
10546 *** The result is that libtool may fail to recognize shared libraries
10547 *** as such. This will affect the creation of libtool libraries that
10548 *** depend on shared libraries, but programs linked with such libtool
10549 *** libraries will work regardless of this problem. Nevertheless, you
10550 *** may want to report the problem to your system manager and/or to
10551 *** [email protected]
10552
10553 _LT_EOF
10554 fi ;;
10555 esac
10556 fi
10557 break
10558 fi
10559 done
10560 IFS=$lt_save_ifs
10561 MAGIC_CMD=$lt_save_MAGIC_CMD
10562 ;;
10563 esac ;;
10564 esac
10565 fi
10566
10567 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10568 if test -n "$MAGIC_CMD"; then
10569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10570 printf "%s\n" "$MAGIC_CMD" >&6; }
10571 else
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 printf "%s\n" "no" >&6; }
10574 fi
10575
10576
10577 else
10578 MAGIC_CMD=:
10579 fi
10580 fi
10581
10582 fi
10583 ;;
10584 esac
10585
10586 # Use C for the default configuration in the libtool script
10587
10588 lt_save_CC=$CC
10589 ac_ext=c
10590 ac_cpp='$CPP $CPPFLAGS'
10591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10594
10595
10596 # Source file extension for C test sources.
10597 ac_ext=c
10598
10599 # Object file extension for compiled C test sources.
10600 objext=o
10601 objext=$objext
10602
10603 # Code to be used in simple compile tests
10604 lt_simple_compile_test_code="int some_variable = 0;"
10605
10606 # Code to be used in simple link tests
10607 lt_simple_link_test_code='int main(void){return(0);}'
10608
10609
10610
10611
10612
10613
10614
10615 # If no C compiler was specified, use CC.
10616 LTCC=${LTCC-"$CC"}
10617
10618 # If no C compiler flags were specified, use CFLAGS.
10619 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10620
10621 # Allow CC to be a program name with arguments.
10622 compiler=$CC
10623
10624 # Save the default compiler, since it gets overwritten when the other
10625 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10626 compiler_DEFAULT=$CC
10627
10628 # save warnings/boilerplate of simple test code
10629 ac_outfile=conftest.$ac_objext
10630 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10631 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10632 _lt_compiler_boilerplate=`cat conftest.err`
10633 $RM conftest*
10634
10635 ac_outfile=conftest.$ac_objext
10636 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10637 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10638 _lt_linker_boilerplate=`cat conftest.err`
10639 $RM -r conftest*
10640
10641
10642 ## CAVEAT EMPTOR:
10643 ## There is no encapsulation within the following macros, do not change
10644 ## the running order or otherwise move them around unless you know exactly
10645 ## what you are doing...
10646 if test -n "$compiler"; then
10647
10648 lt_prog_compiler_no_builtin_flag=
10649
10650 if test yes = "$GCC"; then
10651 case $cc_basename in
10652 nvcc*)
10653 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10654 *)
10655 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10656 esac
10657
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10659 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10660 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10661 then :
10662 printf %s "(cached) " >&6
10663 else case e in #(
10664 e) lt_cv_prog_compiler_rtti_exceptions=no
10665 ac_outfile=conftest.$ac_objext
10666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10667 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10668 # Insert the option either (1) after the last *FLAGS variable, or
10669 # (2) before a word containing "conftest.", or (3) at the end.
10670 # Note that $ac_compile itself does not contain backslashes and begins
10671 # with a dollar sign (not a hyphen), so the echo should work correctly.
10672 # The option is referenced via a variable to avoid confusing sed.
10673 lt_compile=`echo "$ac_compile" | $SED \
10674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10676 -e 's:$: $lt_compiler_flag:'`
10677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10678 (eval "$lt_compile" 2>conftest.err)
10679 ac_status=$?
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 if (exit $ac_status) && test -s "$ac_outfile"; then
10683 # The compiler can only warn and ignore the option if not recognized
10684 # So say no if there are warnings other than the usual output.
10685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10688 lt_cv_prog_compiler_rtti_exceptions=yes
10689 fi
10690 fi
10691 $RM conftest*
10692 ;;
10693 esac
10694 fi
10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10696 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10697
10698 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10699 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10700 else
10701 :
10702 fi
10703
10704 fi
10705
10706
10707
10708
10709
10710
10711 lt_prog_compiler_wl=
10712 lt_prog_compiler_pic=
10713 lt_prog_compiler_static=
10714
10715
10716 if test yes = "$GCC"; then
10717 lt_prog_compiler_wl='-Wl,'
10718 lt_prog_compiler_static='-static'
10719
10720 case $host_os in
10721 aix*)
10722 # All AIX code is PIC.
10723 if test ia64 = "$host_cpu"; then
10724 # AIX 5 now supports IA64 processor
10725 lt_prog_compiler_static='-Bstatic'
10726 fi
10727 lt_prog_compiler_pic='-fPIC'
10728 ;;
10729
10730 amigaos*)
10731 case $host_cpu in
10732 powerpc)
10733 # see comment about AmigaOS4 .so support
10734 lt_prog_compiler_pic='-fPIC'
10735 ;;
10736 m68k)
10737 # FIXME: we need at least 68020 code to build shared libraries, but
10738 # adding the '-m68020' flag to GCC prevents building anything better,
10739 # like '-m68040'.
10740 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10741 ;;
10742 esac
10743 ;;
10744
10745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10746 # PIC is the default for these OSes.
10747 ;;
10748
10749 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10750 # This hack is so that the source file can tell whether it is being
10751 # built for inclusion in a dll (and should export symbols for example).
10752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10753 # (--disable-auto-import) libraries
10754 lt_prog_compiler_pic='-DDLL_EXPORT'
10755 case $host_os in
10756 os2*)
10757 lt_prog_compiler_static='$wl-static'
10758 ;;
10759 esac
10760 ;;
10761
10762 darwin* | rhapsody*)
10763 # PIC is the default on this platform
10764 # Common symbols not allowed in MH_DYLIB files
10765 lt_prog_compiler_pic='-fno-common'
10766 ;;
10767
10768 haiku*)
10769 # PIC is the default for Haiku.
10770 # The "-static" flag exists, but is broken.
10771 lt_prog_compiler_static=
10772 ;;
10773
10774 hpux*)
10775 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10776 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10777 # sets the default TLS model and affects inlining.
10778 case $host_cpu in
10779 hppa*64*)
10780 # +Z the default
10781 ;;
10782 *)
10783 lt_prog_compiler_pic='-fPIC'
10784 ;;
10785 esac
10786 ;;
10787
10788 interix[3-9]*)
10789 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10790 # Instead, we relocate shared libraries at runtime.
10791 ;;
10792
10793 msdosdjgpp*)
10794 # Just because we use GCC doesn't mean we suddenly get shared libraries
10795 # on systems that don't support them.
10796 lt_prog_compiler_can_build_shared=no
10797 enable_shared=no
10798 ;;
10799
10800 *nto* | *qnx*)
10801 # QNX uses GNU C++, but need to define -shared option too, otherwise
10802 # it will coredump.
10803 lt_prog_compiler_pic='-fPIC -shared'
10804 ;;
10805
10806 sysv4*MP*)
10807 if test -d /usr/nec; then
10808 lt_prog_compiler_pic=-Kconform_pic
10809 fi
10810 ;;
10811
10812 *)
10813 lt_prog_compiler_pic='-fPIC'
10814 ;;
10815 esac
10816
10817 case $cc_basename in
10818 nvcc*) # Cuda Compiler Driver 2.2
10819 lt_prog_compiler_wl='-Xlinker '
10820 if test -n "$lt_prog_compiler_pic"; then
10821 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10822 fi
10823 ;;
10824 esac
10825 else
10826 # PORTME Check for flag to pass linker flags through the system compiler.
10827 case $host_os in
10828 aix*)
10829 lt_prog_compiler_wl='-Wl,'
10830 if test ia64 = "$host_cpu"; then
10831 # AIX 5 now supports IA64 processor
10832 lt_prog_compiler_static='-Bstatic'
10833 else
10834 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10835 fi
10836 ;;
10837
10838 darwin* | rhapsody*)
10839 # PIC is the default on this platform
10840 # Common symbols not allowed in MH_DYLIB files
10841 lt_prog_compiler_pic='-fno-common'
10842 case $cc_basename in
10843 nagfor*)
10844 # NAG Fortran compiler
10845 lt_prog_compiler_wl='-Wl,-Wl,,'
10846 lt_prog_compiler_pic='-PIC'
10847 lt_prog_compiler_static='-Bstatic'
10848 ;;
10849 esac
10850 ;;
10851
10852 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10853 # This hack is so that the source file can tell whether it is being
10854 # built for inclusion in a dll (and should export symbols for example).
10855 lt_prog_compiler_pic='-DDLL_EXPORT'
10856 case $host_os in
10857 os2*)
10858 lt_prog_compiler_static='$wl-static'
10859 ;;
10860 esac
10861 ;;
10862
10863 hpux9* | hpux10* | hpux11*)
10864 lt_prog_compiler_wl='-Wl,'
10865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10866 # not for PA HP-UX.
10867 case $host_cpu in
10868 hppa*64*|ia64*)
10869 # +Z the default
10870 ;;
10871 *)
10872 lt_prog_compiler_pic='+Z'
10873 ;;
10874 esac
10875 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10876 lt_prog_compiler_static='$wl-a ${wl}archive'
10877 ;;
10878
10879 irix5* | irix6* | nonstopux*)
10880 lt_prog_compiler_wl='-Wl,'
10881 # PIC (with -KPIC) is the default.
10882 lt_prog_compiler_static='-non_shared'
10883 ;;
10884
10885 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10886 case $cc_basename in
10887 # old Intel for x86_64, which still supported -KPIC.
10888 ecc*)
10889 lt_prog_compiler_wl='-Wl,'
10890 lt_prog_compiler_pic='-KPIC'
10891 lt_prog_compiler_static='-static'
10892 ;;
10893 *flang* | ftn | f18* | f95*)
10894 # Flang compiler.
10895 lt_prog_compiler_wl='-Wl,'
10896 lt_prog_compiler_pic='-fPIC'
10897 lt_prog_compiler_static='-static'
10898 ;;
10899 # icc used to be incompatible with GCC.
10900 # ICC 10 doesn't accept -KPIC any more.
10901 icc* | ifort*)
10902 lt_prog_compiler_wl='-Wl,'
10903 lt_prog_compiler_pic='-fPIC'
10904 lt_prog_compiler_static='-static'
10905 ;;
10906 # Lahey Fortran 8.1.
10907 lf95*)
10908 lt_prog_compiler_wl='-Wl,'
10909 lt_prog_compiler_pic='--shared'
10910 lt_prog_compiler_static='--static'
10911 ;;
10912 nagfor*)
10913 # NAG Fortran compiler
10914 lt_prog_compiler_wl='-Wl,-Wl,,'
10915 lt_prog_compiler_pic='-PIC'
10916 lt_prog_compiler_static='-Bstatic'
10917 ;;
10918 tcc*)
10919 # Fabrice Bellard et al's Tiny C Compiler
10920 lt_prog_compiler_wl='-Wl,'
10921 lt_prog_compiler_pic='-fPIC'
10922 lt_prog_compiler_static='-static'
10923 ;;
10924 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10925 # Portland Group compilers (*not* the Pentium gcc compiler,
10926 # which looks to be a dead project)
10927 lt_prog_compiler_wl='-Wl,'
10928 lt_prog_compiler_pic='-fpic'
10929 lt_prog_compiler_static='-Bstatic'
10930 ;;
10931 ccc*)
10932 lt_prog_compiler_wl='-Wl,'
10933 # All Alpha code is PIC.
10934 lt_prog_compiler_static='-non_shared'
10935 ;;
10936 xl* | bgxl* | bgf* | mpixl*)
10937 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10938 lt_prog_compiler_wl='-Wl,'
10939 lt_prog_compiler_pic='-qpic'
10940 lt_prog_compiler_static='-qstaticlink'
10941 ;;
10942 *)
10943 case `$CC -V 2>&1 | $SED 5q` in
10944 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10945 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10946 lt_prog_compiler_pic='-KPIC'
10947 lt_prog_compiler_static='-Bstatic'
10948 lt_prog_compiler_wl=''
10949 ;;
10950 *Sun\ F* | *Sun*Fortran*)
10951 lt_prog_compiler_pic='-KPIC'
10952 lt_prog_compiler_static='-Bstatic'
10953 lt_prog_compiler_wl='-Qoption ld '
10954 ;;
10955 *Sun\ C*)
10956 # Sun C 5.9
10957 lt_prog_compiler_pic='-KPIC'
10958 lt_prog_compiler_static='-Bstatic'
10959 lt_prog_compiler_wl='-Wl,'
10960 ;;
10961 *Intel*\ [CF]*Compiler*)
10962 lt_prog_compiler_wl='-Wl,'
10963 lt_prog_compiler_pic='-fPIC'
10964 lt_prog_compiler_static='-static'
10965 ;;
10966 *Portland\ Group*)
10967 lt_prog_compiler_wl='-Wl,'
10968 lt_prog_compiler_pic='-fpic'
10969 lt_prog_compiler_static='-Bstatic'
10970 ;;
10971 esac
10972 ;;
10973 esac
10974 ;;
10975
10976 newsos6)
10977 lt_prog_compiler_pic='-KPIC'
10978 lt_prog_compiler_static='-Bstatic'
10979 ;;
10980
10981 *-mlibc)
10982 lt_prog_compiler_wl='-Wl,'
10983 lt_prog_compiler_pic='-fPIC'
10984 lt_prog_compiler_static='-static'
10985 ;;
10986
10987 *nto* | *qnx*)
10988 # QNX uses GNU C++, but need to define -shared option too, otherwise
10989 # it will coredump.
10990 lt_prog_compiler_pic='-fPIC -shared'
10991 ;;
10992
10993 osf3* | osf4* | osf5*)
10994 lt_prog_compiler_wl='-Wl,'
10995 # All OSF/1 code is PIC.
10996 lt_prog_compiler_static='-non_shared'
10997 ;;
10998
10999 rdos*)
11000 lt_prog_compiler_static='-non_shared'
11001 ;;
11002
11003 serenity*)
11004 ;;
11005
11006 solaris*)
11007 lt_prog_compiler_pic='-KPIC'
11008 lt_prog_compiler_static='-Bstatic'
11009 case $cc_basename in
11010 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11011 lt_prog_compiler_wl='-Qoption ld ';;
11012 *)
11013 lt_prog_compiler_wl='-Wl,';;
11014 esac
11015 ;;
11016
11017 sunos4*)
11018 lt_prog_compiler_wl='-Qoption ld '
11019 lt_prog_compiler_pic='-PIC'
11020 lt_prog_compiler_static='-Bstatic'
11021 ;;
11022
11023 sysv4 | sysv4.2uw2* | sysv4.3*)
11024 lt_prog_compiler_wl='-Wl,'
11025 lt_prog_compiler_pic='-KPIC'
11026 lt_prog_compiler_static='-Bstatic'
11027 ;;
11028
11029 sysv4*MP*)
11030 if test -d /usr/nec; then
11031 lt_prog_compiler_pic='-Kconform_pic'
11032 lt_prog_compiler_static='-Bstatic'
11033 fi
11034 ;;
11035
11036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11037 lt_prog_compiler_wl='-Wl,'
11038 lt_prog_compiler_pic='-KPIC'
11039 lt_prog_compiler_static='-Bstatic'
11040 ;;
11041
11042 unicos*)
11043 lt_prog_compiler_wl='-Wl,'
11044 lt_prog_compiler_can_build_shared=no
11045 ;;
11046
11047 uts4*)
11048 lt_prog_compiler_pic='-pic'
11049 lt_prog_compiler_static='-Bstatic'
11050 ;;
11051
11052 *)
11053 lt_prog_compiler_can_build_shared=no
11054 ;;
11055 esac
11056 fi
11057
11058 case $host_os in
11059 # For platforms that do not support PIC, -DPIC is meaningless:
11060 *djgpp*)
11061 lt_prog_compiler_pic=
11062 ;;
11063 *)
11064 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11065 ;;
11066 esac
11067
11068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11069 printf %s "checking for $compiler option to produce PIC... " >&6; }
11070 if test ${lt_cv_prog_compiler_pic+y}
11071 then :
11072 printf %s "(cached) " >&6
11073 else case e in #(
11074 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11075 esac
11076 fi
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11078 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11079 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11080
11081 #
11082 # Check to make sure the PIC flag actually works.
11083 #
11084 if test -n "$lt_prog_compiler_pic"; then
11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11086 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11087 if test ${lt_cv_prog_compiler_pic_works+y}
11088 then :
11089 printf %s "(cached) " >&6
11090 else case e in #(
11091 e) lt_cv_prog_compiler_pic_works=no
11092 ac_outfile=conftest.$ac_objext
11093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11094 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11095 # Insert the option either (1) after the last *FLAGS variable, or
11096 # (2) before a word containing "conftest.", or (3) at the end.
11097 # Note that $ac_compile itself does not contain backslashes and begins
11098 # with a dollar sign (not a hyphen), so the echo should work correctly.
11099 # The option is referenced via a variable to avoid confusing sed.
11100 lt_compile=`echo "$ac_compile" | $SED \
11101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11103 -e 's:$: $lt_compiler_flag:'`
11104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11105 (eval "$lt_compile" 2>conftest.err)
11106 ac_status=$?
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 if (exit $ac_status) && test -s "$ac_outfile"; then
11110 # The compiler can only warn and ignore the option if not recognized
11111 # So say no if there are warnings other than the usual output.
11112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11115 lt_cv_prog_compiler_pic_works=yes
11116 fi
11117 fi
11118 $RM conftest*
11119 ;;
11120 esac
11121 fi
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11123 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11124
11125 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11126 case $lt_prog_compiler_pic in
11127 "" | " "*) ;;
11128 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11129 esac
11130 else
11131 lt_prog_compiler_pic=
11132 lt_prog_compiler_can_build_shared=no
11133 fi
11134
11135 fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147 #
11148 # Check to make sure the static flag actually works.
11149 #
11150 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11152 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11153 if test ${lt_cv_prog_compiler_static_works+y}
11154 then :
11155 printf %s "(cached) " >&6
11156 else case e in #(
11157 e) lt_cv_prog_compiler_static_works=no
11158 save_LDFLAGS=$LDFLAGS
11159 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11160 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11161 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11162 # The linker can only warn and ignore the option if not recognized
11163 # So say no if there are warnings
11164 if test -s conftest.err; then
11165 # Append any errors to the config.log.
11166 cat conftest.err 1>&5
11167 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11169 if diff conftest.exp conftest.er2 >/dev/null; then
11170 lt_cv_prog_compiler_static_works=yes
11171 fi
11172 else
11173 lt_cv_prog_compiler_static_works=yes
11174 fi
11175 fi
11176 $RM -r conftest*
11177 LDFLAGS=$save_LDFLAGS
11178 ;;
11179 esac
11180 fi
11181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11182 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11183
11184 if test yes = "$lt_cv_prog_compiler_static_works"; then
11185 :
11186 else
11187 lt_prog_compiler_static=
11188 fi
11189
11190
11191
11192
11193
11194
11195
11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11197 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11198 if test ${lt_cv_prog_compiler_c_o+y}
11199 then :
11200 printf %s "(cached) " >&6
11201 else case e in #(
11202 e) lt_cv_prog_compiler_c_o=no
11203 $RM -r conftest 2>/dev/null
11204 mkdir conftest
11205 cd conftest
11206 mkdir out
11207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11208
11209 lt_compiler_flag="-o out/conftest2.$ac_objext"
11210 # Insert the option either (1) after the last *FLAGS variable, or
11211 # (2) before a word containing "conftest.", or (3) at the end.
11212 # Note that $ac_compile itself does not contain backslashes and begins
11213 # with a dollar sign (not a hyphen), so the echo should work correctly.
11214 lt_compile=`echo "$ac_compile" | $SED \
11215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11217 -e 's:$: $lt_compiler_flag:'`
11218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11219 (eval "$lt_compile" 2>out/conftest.err)
11220 ac_status=$?
11221 cat out/conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11224 then
11225 # The compiler can only warn and ignore the option if not recognized
11226 # So say no if there are warnings
11227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11230 lt_cv_prog_compiler_c_o=yes
11231 fi
11232 fi
11233 chmod u+w . 2>&5
11234 $RM conftest*
11235 # SGI C++ compiler will create directory out/ii_files/ for
11236 # template instantiation
11237 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11238 $RM out/* && rmdir out
11239 cd ..
11240 $RM -r conftest
11241 $RM conftest*
11242 ;;
11243 esac
11244 fi
11245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11246 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11247
11248
11249
11250
11251
11252
11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11254 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11255 if test ${lt_cv_prog_compiler_c_o+y}
11256 then :
11257 printf %s "(cached) " >&6
11258 else case e in #(
11259 e) lt_cv_prog_compiler_c_o=no
11260 $RM -r conftest 2>/dev/null
11261 mkdir conftest
11262 cd conftest
11263 mkdir out
11264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11265
11266 lt_compiler_flag="-o out/conftest2.$ac_objext"
11267 # Insert the option either (1) after the last *FLAGS variable, or
11268 # (2) before a word containing "conftest.", or (3) at the end.
11269 # Note that $ac_compile itself does not contain backslashes and begins
11270 # with a dollar sign (not a hyphen), so the echo should work correctly.
11271 lt_compile=`echo "$ac_compile" | $SED \
11272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11274 -e 's:$: $lt_compiler_flag:'`
11275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11276 (eval "$lt_compile" 2>out/conftest.err)
11277 ac_status=$?
11278 cat out/conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11281 then
11282 # The compiler can only warn and ignore the option if not recognized
11283 # So say no if there are warnings
11284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11287 lt_cv_prog_compiler_c_o=yes
11288 fi
11289 fi
11290 chmod u+w . 2>&5
11291 $RM conftest*
11292 # SGI C++ compiler will create directory out/ii_files/ for
11293 # template instantiation
11294 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11295 $RM out/* && rmdir out
11296 cd ..
11297 $RM -r conftest
11298 $RM conftest*
11299 ;;
11300 esac
11301 fi
11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11303 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11304
11305
11306
11307
11308 hard_links=nottested
11309 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11310 # do not overwrite the value of need_locks provided by the user
11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11312 printf %s "checking if we can lock with hard links... " >&6; }
11313 hard_links=yes
11314 $RM conftest*
11315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11316 touch conftest.a
11317 ln conftest.a conftest.b 2>&5 || hard_links=no
11318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11320 printf "%s\n" "$hard_links" >&6; }
11321 if test no = "$hard_links"; then
11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11323 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11324 need_locks=warn
11325 fi
11326 else
11327 need_locks=no
11328 fi
11329
11330
11331
11332
11333
11334
11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11336 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11337
11338 runpath_var=
11339 allow_undefined_flag=
11340 always_export_symbols=no
11341 archive_cmds=
11342 archive_expsym_cmds=
11343 compiler_needs_object=no
11344 enable_shared_with_static_runtimes=no
11345 export_dynamic_flag_spec=
11346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11347 hardcode_automatic=no
11348 hardcode_direct=no
11349 hardcode_direct_absolute=no
11350 hardcode_libdir_flag_spec=
11351 hardcode_libdir_separator=
11352 hardcode_minus_L=no
11353 hardcode_shlibpath_var=unsupported
11354 inherit_rpath=no
11355 link_all_deplibs=unknown
11356 module_cmds=
11357 module_expsym_cmds=
11358 old_archive_from_new_cmds=
11359 old_archive_from_expsyms_cmds=
11360 thread_safe_flag_spec=
11361 whole_archive_flag_spec=
11362 # include_expsyms should be a list of space-separated symbols to be *always*
11363 # included in the symbol list
11364 include_expsyms=
11365 # exclude_expsyms can be an extended regexp of symbols to exclude
11366 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11367 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11368 # as well as any symbol that contains 'd'.
11369 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11370 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11371 # platforms (ab)use it in PIC code, but their linkers get confused if
11372 # the symbol is explicitly referenced. Since portable code cannot
11373 # rely on this symbol name, it's probably fine to never include it in
11374 # preloaded symbol tables.
11375 # Exclude shared library initialization/finalization symbols.
11376 extract_expsyms_cmds=
11377
11378 case $host_os in
11379 cygwin* | mingw* | windows* | pw32* | cegcc*)
11380 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11381 # When not using gcc, we currently assume that we are using
11382 # Microsoft Visual C++ or Intel C++ Compiler.
11383 if test yes != "$GCC"; then
11384 with_gnu_ld=no
11385 fi
11386 ;;
11387 interix*)
11388 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11389 with_gnu_ld=yes
11390 ;;
11391 esac
11392
11393 ld_shlibs=yes
11394
11395 # On some targets, GNU ld is compatible enough with the native linker
11396 # that we're better off using the native interface for both.
11397 lt_use_gnu_ld_interface=no
11398 if test yes = "$with_gnu_ld"; then
11399 case $host_os in
11400 aix*)
11401 # The AIX port of GNU ld has always aspired to compatibility
11402 # with the native linker. However, as the warning in the GNU ld
11403 # block says, versions before 2.19.5* couldn't really create working
11404 # shared libraries, regardless of the interface used.
11405 case `$LD -v 2>&1` in
11406 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11407 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11408 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11409 *)
11410 lt_use_gnu_ld_interface=yes
11411 ;;
11412 esac
11413 ;;
11414 *)
11415 lt_use_gnu_ld_interface=yes
11416 ;;
11417 esac
11418 fi
11419
11420 if test yes = "$lt_use_gnu_ld_interface"; then
11421 # If archive_cmds runs LD, not CC, wlarc should be empty
11422 wlarc='$wl'
11423
11424 # Set some defaults for GNU ld with shared library support. These
11425 # are reset later if shared libraries are not supported. Putting them
11426 # here allows them to be overridden if necessary.
11427 runpath_var=LD_RUN_PATH
11428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11429 export_dynamic_flag_spec='$wl--export-dynamic'
11430 # ancient GNU ld didn't support --whole-archive et. al.
11431 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11432 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11433 else
11434 whole_archive_flag_spec=
11435 fi
11436 supports_anon_versioning=no
11437 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11438 *GNU\ gold*) supports_anon_versioning=yes ;;
11439 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11440 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11441 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11442 *\ 2.11.*) ;; # other 2.11 versions
11443 *) supports_anon_versioning=yes ;;
11444 esac
11445
11446 # See if GNU ld supports shared libraries.
11447 case $host_os in
11448 aix[3-9]*)
11449 # On AIX/PPC, the GNU linker is very broken
11450 if test ia64 != "$host_cpu"; then
11451 ld_shlibs=no
11452 cat <<_LT_EOF 1>&2
11453
11454 *** Warning: the GNU linker, at least up to release 2.19, is reported
11455 *** to be unable to reliably create shared libraries on AIX.
11456 *** Therefore, libtool is disabling shared libraries support. If you
11457 *** really care for shared libraries, you may want to install binutils
11458 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11459 *** You will then need to restart the configuration process.
11460
11461 _LT_EOF
11462 fi
11463 ;;
11464
11465 amigaos*)
11466 case $host_cpu in
11467 powerpc)
11468 # see comment about AmigaOS4 .so support
11469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11470 archive_expsym_cmds=''
11471 ;;
11472 m68k)
11473 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)'
11474 hardcode_libdir_flag_spec='-L$libdir'
11475 hardcode_minus_L=yes
11476 ;;
11477 esac
11478 ;;
11479
11480 beos*)
11481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11482 allow_undefined_flag=unsupported
11483 # Joseph Beckenbach <[email protected]> says some releases of gcc
11484 # support --undefined. This deserves some investigation. FIXME
11485 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11486 else
11487 ld_shlibs=no
11488 fi
11489 ;;
11490
11491 cygwin* | mingw* | windows* | pw32* | cegcc*)
11492 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11493 # as there is no search path for DLLs.
11494 hardcode_libdir_flag_spec='-L$libdir'
11495 export_dynamic_flag_spec='$wl--export-all-symbols'
11496 allow_undefined_flag=unsupported
11497 always_export_symbols=no
11498 enable_shared_with_static_runtimes=yes
11499 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'
11500 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11501 file_list_spec='@'
11502
11503 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11505 # If the export-symbols file already is a .def file, use it as
11506 # is; otherwise, prepend EXPORTS...
11507 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11508 cp $export_symbols $output_objdir/$soname.def;
11509 else
11510 echo EXPORTS > $output_objdir/$soname.def;
11511 cat $export_symbols >> $output_objdir/$soname.def;
11512 fi~
11513 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11514 else
11515 ld_shlibs=no
11516 fi
11517 ;;
11518
11519 haiku*)
11520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11521 link_all_deplibs=no
11522 ;;
11523
11524 os2*)
11525 hardcode_libdir_flag_spec='-L$libdir'
11526 hardcode_minus_L=yes
11527 allow_undefined_flag=unsupported
11528 shrext_cmds=.dll
11529 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11530 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11531 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11532 $ECHO EXPORTS >> $output_objdir/$libname.def~
11533 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11534 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11535 emximp -o $lib $output_objdir/$libname.def'
11536 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11537 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11538 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11539 $ECHO EXPORTS >> $output_objdir/$libname.def~
11540 prefix_cmds="$SED"~
11541 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11542 prefix_cmds="$prefix_cmds -e 1d";
11543 fi~
11544 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11545 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11546 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11547 emximp -o $lib $output_objdir/$libname.def'
11548 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11549 enable_shared_with_static_runtimes=yes
11550 file_list_spec='@'
11551 ;;
11552
11553 interix[3-9]*)
11554 hardcode_direct=no
11555 hardcode_shlibpath_var=no
11556 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11557 export_dynamic_flag_spec='$wl-E'
11558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11559 # Instead, shared libraries are loaded at an image base (0x10000000 by
11560 # default) and relocated if they conflict, which is a slow very memory
11561 # consuming and fragmenting process. To avoid this, we pick a random,
11562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11565 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'
11566 ;;
11567
11568 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11569 tmp_diet=no
11570 if test linux-dietlibc = "$host_os"; then
11571 case $cc_basename in
11572 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11573 esac
11574 fi
11575 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11576 && test no = "$tmp_diet"
11577 then
11578 tmp_addflag=' $pic_flag'
11579 tmp_sharedflag='-shared'
11580 case $cc_basename,$host_cpu in
11581 pgcc*) # Portland Group C compiler
11582 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'
11583 tmp_addflag=' $pic_flag'
11584 ;;
11585 pgf77* | pgf90* | pgf95* | pgfortran*)
11586 # Portland Group f77 and f90 compilers
11587 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'
11588 tmp_addflag=' $pic_flag -Mnomain' ;;
11589 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11590 tmp_addflag=' -i_dynamic' ;;
11591 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11592 tmp_addflag=' -i_dynamic -nofor_main' ;;
11593 ifc* | ifort*) # Intel Fortran compiler
11594 tmp_addflag=' -nofor_main' ;;
11595 lf95*) # Lahey Fortran 8.1
11596 whole_archive_flag_spec=
11597 tmp_sharedflag='--shared' ;;
11598 nagfor*) # NAGFOR 5.3
11599 tmp_sharedflag='-Wl,-shared' ;;
11600 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11601 tmp_sharedflag='-qmkshrobj'
11602 tmp_addflag= ;;
11603 nvcc*) # Cuda Compiler Driver 2.2
11604 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'
11605 compiler_needs_object=yes
11606 ;;
11607 esac
11608 case `$CC -V 2>&1 | $SED 5q` in
11609 *Sun\ C*) # Sun C 5.9
11610 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'
11611 compiler_needs_object=yes
11612 tmp_sharedflag='-G' ;;
11613 *Sun\ F*) # Sun Fortran 8.3
11614 tmp_sharedflag='-G' ;;
11615 esac
11616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11617
11618 if test yes = "$supports_anon_versioning"; then
11619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11620 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11621 echo "local: *; };" >> $output_objdir/$libname.ver~
11622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11623 fi
11624
11625 case $cc_basename in
11626 tcc*)
11627 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11628 export_dynamic_flag_spec='-rdynamic'
11629 ;;
11630 xlf* | bgf* | bgxlf* | mpixlf*)
11631 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11632 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11633 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11634 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11635 if test yes = "$supports_anon_versioning"; then
11636 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11637 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11638 echo "local: *; };" >> $output_objdir/$libname.ver~
11639 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11640 fi
11641 ;;
11642 esac
11643 else
11644 ld_shlibs=no
11645 fi
11646 ;;
11647
11648 *-mlibc)
11649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11650 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11651 ;;
11652
11653 netbsd* | netbsdelf*-gnu)
11654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11655 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11656 wlarc=
11657 else
11658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11659 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11660 fi
11661 ;;
11662
11663 solaris*)
11664 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11665 ld_shlibs=no
11666 cat <<_LT_EOF 1>&2
11667
11668 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11669 *** create shared libraries on Solaris systems. Therefore, libtool
11670 *** is disabling shared libraries support. We urge you to upgrade GNU
11671 *** binutils to release 2.9.1 or newer. Another option is to modify
11672 *** your PATH or compiler configuration so that the native linker is
11673 *** used, and then restart.
11674
11675 _LT_EOF
11676 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11678 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11679 else
11680 ld_shlibs=no
11681 fi
11682 ;;
11683
11684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11685 case `$LD -v 2>&1` in
11686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11687 ld_shlibs=no
11688 cat <<_LT_EOF 1>&2
11689
11690 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11691 *** reliably create shared libraries on SCO systems. Therefore, libtool
11692 *** is disabling shared libraries support. We urge you to upgrade GNU
11693 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11694 *** your PATH or compiler configuration so that the native linker is
11695 *** used, and then restart.
11696
11697 _LT_EOF
11698 ;;
11699 *)
11700 # For security reasons, it is highly recommended that you always
11701 # use absolute paths for naming shared libraries, and exclude the
11702 # DT_RUNPATH tag from executables and libraries. But doing so
11703 # requires that you compile everything twice, which is a pain.
11704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11705 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11708 else
11709 ld_shlibs=no
11710 fi
11711 ;;
11712 esac
11713 ;;
11714
11715 sunos4*)
11716 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11717 wlarc=
11718 hardcode_direct=yes
11719 hardcode_shlibpath_var=no
11720 ;;
11721
11722 *)
11723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11726 else
11727 ld_shlibs=no
11728 fi
11729 ;;
11730 esac
11731
11732 if test no = "$ld_shlibs"; then
11733 runpath_var=
11734 hardcode_libdir_flag_spec=
11735 export_dynamic_flag_spec=
11736 whole_archive_flag_spec=
11737 fi
11738 else
11739 # PORTME fill in a description of your system's linker (not GNU ld)
11740 case $host_os in
11741 aix3*)
11742 allow_undefined_flag=unsupported
11743 always_export_symbols=yes
11744 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'
11745 # Note: this linker hardcodes the directories in LIBPATH if there
11746 # are no directories specified by -L.
11747 hardcode_minus_L=yes
11748 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11749 # Neither direct hardcoding nor static linking is supported with a
11750 # broken collect2.
11751 hardcode_direct=unsupported
11752 fi
11753 ;;
11754
11755 aix[4-9]*)
11756 if test ia64 = "$host_cpu"; then
11757 # On IA64, the linker does run time linking by default, so we don't
11758 # have to do anything special.
11759 aix_use_runtimelinking=no
11760 exp_sym_flag='-Bexport'
11761 no_entry_flag=
11762 else
11763 # If we're using GNU nm, then we don't want the "-C" option.
11764 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11765 # Without the "-l" option, or with the "-B" option, AIX nm treats
11766 # weak defined symbols like other global defined symbols, whereas
11767 # GNU nm marks them as "W".
11768 # While the 'weak' keyword is ignored in the Export File, we need
11769 # it in the Import File for the 'aix-soname' feature, so we have
11770 # to replace the "-B" option with "-P" for AIX nm.
11771 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11772 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'
11773 else
11774 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'
11775 fi
11776 aix_use_runtimelinking=no
11777
11778 # Test if we are trying to use run time linking or normal
11779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11780 # have runtime linking enabled, and use it for executables.
11781 # For shared libraries, we enable/disable runtime linking
11782 # depending on the kind of the shared library created -
11783 # when "with_aix_soname,aix_use_runtimelinking" is:
11784 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11785 # "aix,yes" lib.so shared, rtl:yes, for executables
11786 # lib.a static archive
11787 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11788 # lib.a(lib.so.V) shared, rtl:no, for executables
11789 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11790 # lib.a(lib.so.V) shared, rtl:no
11791 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11792 # lib.a static archive
11793 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11794 for ld_flag in $LDFLAGS; do
11795 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11796 aix_use_runtimelinking=yes
11797 break
11798 fi
11799 done
11800 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11801 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11802 # so we don't have lib.a shared libs to link our executables.
11803 # We have to force runtime linking in this case.
11804 aix_use_runtimelinking=yes
11805 LDFLAGS="$LDFLAGS -Wl,-brtl"
11806 fi
11807 ;;
11808 esac
11809
11810 exp_sym_flag='-bexport'
11811 no_entry_flag='-bnoentry'
11812 fi
11813
11814 # When large executables or shared objects are built, AIX ld can
11815 # have problems creating the table of contents. If linking a library
11816 # or program results in "error TOC overflow" add -mminimal-toc to
11817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11819
11820 archive_cmds=''
11821 hardcode_direct=yes
11822 hardcode_direct_absolute=yes
11823 hardcode_libdir_separator=':'
11824 link_all_deplibs=yes
11825 file_list_spec='$wl-f,'
11826 case $with_aix_soname,$aix_use_runtimelinking in
11827 aix,*) ;; # traditional, no import file
11828 svr4,* | *,yes) # use import file
11829 # The Import File defines what to hardcode.
11830 hardcode_direct=no
11831 hardcode_direct_absolute=no
11832 ;;
11833 esac
11834
11835 if test yes = "$GCC"; then
11836 case $host_os in aix4.[012]|aix4.[012].*)
11837 # We only want to do this on AIX 4.2 and lower, the check
11838 # below for broken collect2 doesn't work under 4.3+
11839 collect2name=`$CC -print-prog-name=collect2`
11840 if test -f "$collect2name" &&
11841 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11842 then
11843 # We have reworked collect2
11844 :
11845 else
11846 # We have old collect2
11847 hardcode_direct=unsupported
11848 # It fails to find uninstalled libraries when the uninstalled
11849 # path is not listed in the libpath. Setting hardcode_minus_L
11850 # to unsupported forces relinking
11851 hardcode_minus_L=yes
11852 hardcode_libdir_flag_spec='-L$libdir'
11853 hardcode_libdir_separator=
11854 fi
11855 ;;
11856 esac
11857 shared_flag='-shared'
11858 if test yes = "$aix_use_runtimelinking"; then
11859 shared_flag="$shared_flag "'$wl-G'
11860 fi
11861 # Need to ensure runtime linking is disabled for the traditional
11862 # shared library, or the linker may eventually find shared libraries
11863 # /with/ Import File - we do not want to mix them.
11864 shared_flag_aix='-shared'
11865 shared_flag_svr4='-shared $wl-G'
11866 else
11867 # not using gcc
11868 if test ia64 = "$host_cpu"; then
11869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11870 # chokes on -Wl,-G. The following line is correct:
11871 shared_flag='-G'
11872 else
11873 if test yes = "$aix_use_runtimelinking"; then
11874 shared_flag='$wl-G'
11875 else
11876 shared_flag='$wl-bM:SRE'
11877 fi
11878 shared_flag_aix='$wl-bM:SRE'
11879 shared_flag_svr4='$wl-G'
11880 fi
11881 fi
11882
11883 export_dynamic_flag_spec='$wl-bexpall'
11884 # It seems that -bexpall does not export symbols beginning with
11885 # underscore (_), so it is better to generate a list of symbols to export.
11886 always_export_symbols=yes
11887 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11888 # Warning - without using the other runtime loading flags (-brtl),
11889 # -berok will link without error, but may produce a broken library.
11890 allow_undefined_flag='-berok'
11891 # Determine the default libpath from the value encoded in an
11892 # empty executable.
11893 if test set = "${lt_cv_aix_libpath+set}"; then
11894 aix_libpath=$lt_cv_aix_libpath
11895 else
11896 if test ${lt_cv_aix_libpath_+y}
11897 then :
11898 printf %s "(cached) " >&6
11899 else case e in #(
11900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902
11903 int
11904 main (void)
11905 {
11906
11907 ;
11908 return 0;
11909 }
11910 _ACEOF
11911 if ac_fn_c_try_link "$LINENO"
11912 then :
11913
11914 lt_aix_libpath_sed='
11915 /Import File Strings/,/^$/ {
11916 /^0/ {
11917 s/^0 *\([^ ]*\) *$/\1/
11918 p
11919 }
11920 }'
11921 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11922 # Check for a 64-bit object if we didn't find anything.
11923 if test -z "$lt_cv_aix_libpath_"; then
11924 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11925 fi
11926 fi
11927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11928 conftest$ac_exeext conftest.$ac_ext
11929 if test -z "$lt_cv_aix_libpath_"; then
11930 lt_cv_aix_libpath_=/usr/lib:/lib
11931 fi
11932 ;;
11933 esac
11934 fi
11935
11936 aix_libpath=$lt_cv_aix_libpath_
11937 fi
11938
11939 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11940 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
11941 else
11942 if test ia64 = "$host_cpu"; then
11943 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11944 allow_undefined_flag="-z nodefs"
11945 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"
11946 else
11947 # Determine the default libpath from the value encoded in an
11948 # empty executable.
11949 if test set = "${lt_cv_aix_libpath+set}"; then
11950 aix_libpath=$lt_cv_aix_libpath
11951 else
11952 if test ${lt_cv_aix_libpath_+y}
11953 then :
11954 printf %s "(cached) " >&6
11955 else case e in #(
11956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958
11959 int
11960 main (void)
11961 {
11962
11963 ;
11964 return 0;
11965 }
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"
11968 then :
11969
11970 lt_aix_libpath_sed='
11971 /Import File Strings/,/^$/ {
11972 /^0/ {
11973 s/^0 *\([^ ]*\) *$/\1/
11974 p
11975 }
11976 }'
11977 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11978 # Check for a 64-bit object if we didn't find anything.
11979 if test -z "$lt_cv_aix_libpath_"; then
11980 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11981 fi
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11984 conftest$ac_exeext conftest.$ac_ext
11985 if test -z "$lt_cv_aix_libpath_"; then
11986 lt_cv_aix_libpath_=/usr/lib:/lib
11987 fi
11988 ;;
11989 esac
11990 fi
11991
11992 aix_libpath=$lt_cv_aix_libpath_
11993 fi
11994
11995 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11996 # Warning - without using the other run time loading flags,
11997 # -berok will link without error, but may produce a broken library.
11998 no_undefined_flag=' $wl-bernotok'
11999 allow_undefined_flag=' $wl-berok'
12000 if test yes = "$with_gnu_ld"; then
12001 # We only use this code for GNU lds that support --whole-archive.
12002 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12003 else
12004 # Exported symbols can be pulled into shared objects from archives
12005 whole_archive_flag_spec='$convenience'
12006 fi
12007 archive_cmds_need_lc=yes
12008 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12009 # -brtl affects multiple linker settings, -berok does not and is overridden later
12010 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12011 if test svr4 != "$with_aix_soname"; then
12012 # This is similar to how AIX traditionally builds its shared libraries.
12013 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'
12014 fi
12015 if test aix != "$with_aix_soname"; then
12016 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'
12017 else
12018 # used by -dlpreopen to get the symbols
12019 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12020 fi
12021 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12022 fi
12023 fi
12024 ;;
12025
12026 amigaos*)
12027 case $host_cpu in
12028 powerpc)
12029 # see comment about AmigaOS4 .so support
12030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12031 archive_expsym_cmds=''
12032 ;;
12033 m68k)
12034 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)'
12035 hardcode_libdir_flag_spec='-L$libdir'
12036 hardcode_minus_L=yes
12037 ;;
12038 esac
12039 ;;
12040
12041 bsdi[45]*)
12042 export_dynamic_flag_spec=-rdynamic
12043 ;;
12044
12045 cygwin* | mingw* | windows* | pw32* | cegcc*)
12046 # When not using gcc, we currently assume that we are using
12047 # Microsoft Visual C++ or Intel C++ Compiler.
12048 # hardcode_libdir_flag_spec is actually meaningless, as there is
12049 # no search path for DLLs.
12050 case $cc_basename in
12051 cl* | icl*)
12052 # Native MSVC or ICC
12053 hardcode_libdir_flag_spec=' '
12054 allow_undefined_flag=unsupported
12055 always_export_symbols=yes
12056 file_list_spec='@'
12057 # Tell ltmain to make .lib files, not .a files.
12058 libext=lib
12059 # Tell ltmain to make .dll files, not .so files.
12060 shrext_cmds=.dll
12061 # FIXME: Setting linknames here is a bad hack.
12062 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12063 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12064 cp "$export_symbols" "$output_objdir/$soname.def";
12065 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12066 else
12067 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12068 fi~
12069 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12070 linknames='
12071 # The linker will not automatically build a static lib if we build a DLL.
12072 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12073 enable_shared_with_static_runtimes=yes
12074 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12076 # Don't use ranlib
12077 old_postinstall_cmds='chmod 644 $oldlib'
12078 postlink_cmds='lt_outputfile="@OUTPUT@"~
12079 lt_tool_outputfile="@TOOL_OUTPUT@"~
12080 case $lt_outputfile in
12081 *.exe|*.EXE) ;;
12082 *)
12083 lt_outputfile=$lt_outputfile.exe
12084 lt_tool_outputfile=$lt_tool_outputfile.exe
12085 ;;
12086 esac~
12087 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12088 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12089 $RM "$lt_outputfile.manifest";
12090 fi'
12091 ;;
12092 *)
12093 # Assume MSVC and ICC wrapper
12094 hardcode_libdir_flag_spec=' '
12095 allow_undefined_flag=unsupported
12096 # Tell ltmain to make .lib files, not .a files.
12097 libext=lib
12098 # Tell ltmain to make .dll files, not .so files.
12099 shrext_cmds=.dll
12100 # FIXME: Setting linknames here is a bad hack.
12101 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12102 # The linker will automatically build a .lib file if we build a DLL.
12103 old_archive_from_new_cmds='true'
12104 # FIXME: Should let the user specify the lib program.
12105 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12106 enable_shared_with_static_runtimes=yes
12107 ;;
12108 esac
12109 ;;
12110
12111 darwin* | rhapsody*)
12112
12113
12114 archive_cmds_need_lc=no
12115 hardcode_direct=no
12116 hardcode_automatic=yes
12117 hardcode_shlibpath_var=unsupported
12118 if test yes = "$lt_cv_ld_force_load"; then
12119 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\"`'
12120
12121 else
12122 whole_archive_flag_spec=''
12123 fi
12124 link_all_deplibs=yes
12125 allow_undefined_flag=$_lt_dar_allow_undefined
12126 case $cc_basename in
12127 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12128 *) _lt_dar_can_shared=$GCC ;;
12129 esac
12130 if test yes = "$_lt_dar_can_shared"; then
12131 output_verbose_link_cmd=func_echo_all
12132 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12133 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12134 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"
12135 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"
12136
12137 else
12138 ld_shlibs=no
12139 fi
12140
12141 ;;
12142
12143 dgux*)
12144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12145 hardcode_libdir_flag_spec='-L$libdir'
12146 hardcode_shlibpath_var=no
12147 ;;
12148
12149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12150 # support. Future versions do this automatically, but an explicit c++rt0.o
12151 # does not break anything, and helps significantly (at the cost of a little
12152 # extra space).
12153 freebsd2.2*)
12154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12155 hardcode_libdir_flag_spec='-R$libdir'
12156 hardcode_direct=yes
12157 hardcode_shlibpath_var=no
12158 ;;
12159
12160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12161 freebsd2.*)
12162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12163 hardcode_direct=yes
12164 hardcode_minus_L=yes
12165 hardcode_shlibpath_var=no
12166 ;;
12167
12168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12169 freebsd* | dragonfly* | midnightbsd*)
12170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12171 hardcode_libdir_flag_spec='-R$libdir'
12172 hardcode_direct=yes
12173 hardcode_shlibpath_var=no
12174 ;;
12175
12176 hpux9*)
12177 if test yes = "$GCC"; then
12178 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'
12179 else
12180 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'
12181 fi
12182 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12183 hardcode_libdir_separator=:
12184 hardcode_direct=yes
12185
12186 # hardcode_minus_L: Not really in the search PATH,
12187 # but as the default location of the library.
12188 hardcode_minus_L=yes
12189 export_dynamic_flag_spec='$wl-E'
12190 ;;
12191
12192 hpux10*)
12193 if test yes,no = "$GCC,$with_gnu_ld"; then
12194 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12195 else
12196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12197 fi
12198 if test no = "$with_gnu_ld"; then
12199 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12200 hardcode_libdir_separator=:
12201 hardcode_direct=yes
12202 hardcode_direct_absolute=yes
12203 export_dynamic_flag_spec='$wl-E'
12204 # hardcode_minus_L: Not really in the search PATH,
12205 # but as the default location of the library.
12206 hardcode_minus_L=yes
12207 fi
12208 ;;
12209
12210 hpux11*)
12211 if test yes,no = "$GCC,$with_gnu_ld"; then
12212 case $host_cpu in
12213 hppa*64*)
12214 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12215 ;;
12216 ia64*)
12217 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12218 ;;
12219 *)
12220 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12221 ;;
12222 esac
12223 else
12224 case $host_cpu in
12225 hppa*64*)
12226 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12227 ;;
12228 ia64*)
12229 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12230 ;;
12231 *)
12232
12233 # Older versions of the 11.00 compiler do not understand -b yet
12234 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12236 printf %s "checking if $CC understands -b... " >&6; }
12237 if test ${lt_cv_prog_compiler__b+y}
12238 then :
12239 printf %s "(cached) " >&6
12240 else case e in #(
12241 e) lt_cv_prog_compiler__b=no
12242 save_LDFLAGS=$LDFLAGS
12243 LDFLAGS="$LDFLAGS -b"
12244 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12246 # The linker can only warn and ignore the option if not recognized
12247 # So say no if there are warnings
12248 if test -s conftest.err; then
12249 # Append any errors to the config.log.
12250 cat conftest.err 1>&5
12251 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12253 if diff conftest.exp conftest.er2 >/dev/null; then
12254 lt_cv_prog_compiler__b=yes
12255 fi
12256 else
12257 lt_cv_prog_compiler__b=yes
12258 fi
12259 fi
12260 $RM -r conftest*
12261 LDFLAGS=$save_LDFLAGS
12262 ;;
12263 esac
12264 fi
12265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12266 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12267
12268 if test yes = "$lt_cv_prog_compiler__b"; then
12269 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12270 else
12271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12272 fi
12273
12274 ;;
12275 esac
12276 fi
12277 if test no = "$with_gnu_ld"; then
12278 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12279 hardcode_libdir_separator=:
12280
12281 case $host_cpu in
12282 hppa*64*|ia64*)
12283 hardcode_direct=no
12284 hardcode_shlibpath_var=no
12285 ;;
12286 *)
12287 hardcode_direct=yes
12288 hardcode_direct_absolute=yes
12289 export_dynamic_flag_spec='$wl-E'
12290
12291 # hardcode_minus_L: Not really in the search PATH,
12292 # but as the default location of the library.
12293 hardcode_minus_L=yes
12294 ;;
12295 esac
12296 fi
12297 ;;
12298
12299 irix5* | irix6* | nonstopux*)
12300 if test yes = "$GCC"; then
12301 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'
12302 # Try to use the -exported_symbol ld option, if it does not
12303 # work, assume that -exports_file does not work either and
12304 # implicitly export all symbols.
12305 # This should be the same for all languages, so no per-tag cache variable.
12306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12307 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12308 if test ${lt_cv_irix_exported_symbol+y}
12309 then :
12310 printf %s "(cached) " >&6
12311 else case e in #(
12312 e) save_LDFLAGS=$LDFLAGS
12313 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316 int foo (void) { return 0; }
12317 _ACEOF
12318 if ac_fn_c_try_link "$LINENO"
12319 then :
12320 lt_cv_irix_exported_symbol=yes
12321 else case e in #(
12322 e) lt_cv_irix_exported_symbol=no ;;
12323 esac
12324 fi
12325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LDFLAGS=$save_LDFLAGS ;;
12328 esac
12329 fi
12330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12331 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12332 if test yes = "$lt_cv_irix_exported_symbol"; then
12333 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'
12334 fi
12335 else
12336 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'
12337 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'
12338 fi
12339 archive_cmds_need_lc='no'
12340 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12341 hardcode_libdir_separator=:
12342 inherit_rpath=yes
12343 link_all_deplibs=yes
12344 ;;
12345
12346 linux*)
12347 case $cc_basename in
12348 tcc*)
12349 # Fabrice Bellard et al's Tiny C Compiler
12350 ld_shlibs=yes
12351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12353 ;;
12354 esac
12355 ;;
12356
12357 *-mlibc)
12358 ;;
12359
12360 netbsd* | netbsdelf*-gnu)
12361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12363 else
12364 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12365 fi
12366 hardcode_libdir_flag_spec='-R$libdir'
12367 hardcode_direct=yes
12368 hardcode_shlibpath_var=no
12369 ;;
12370
12371 newsos6)
12372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12373 hardcode_direct=yes
12374 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12375 hardcode_libdir_separator=:
12376 hardcode_shlibpath_var=no
12377 ;;
12378
12379 *nto* | *qnx*)
12380 ;;
12381
12382 openbsd*)
12383 if test -f /usr/libexec/ld.so; then
12384 hardcode_direct=yes
12385 hardcode_shlibpath_var=no
12386 hardcode_direct_absolute=yes
12387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12389 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12390 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12391 export_dynamic_flag_spec='$wl-E'
12392 else
12393 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12394 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12395 fi
12396 else
12397 ld_shlibs=no
12398 fi
12399 ;;
12400
12401 os2*)
12402 hardcode_libdir_flag_spec='-L$libdir'
12403 hardcode_minus_L=yes
12404 allow_undefined_flag=unsupported
12405 shrext_cmds=.dll
12406 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12407 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12408 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12409 $ECHO EXPORTS >> $output_objdir/$libname.def~
12410 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12411 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12412 emximp -o $lib $output_objdir/$libname.def'
12413 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12414 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12415 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12416 $ECHO EXPORTS >> $output_objdir/$libname.def~
12417 prefix_cmds="$SED"~
12418 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12419 prefix_cmds="$prefix_cmds -e 1d";
12420 fi~
12421 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12422 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12423 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12424 emximp -o $lib $output_objdir/$libname.def'
12425 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12426 enable_shared_with_static_runtimes=yes
12427 file_list_spec='@'
12428 ;;
12429
12430 osf3*)
12431 if test yes = "$GCC"; then
12432 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12433 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'
12434 else
12435 allow_undefined_flag=' -expect_unresolved \*'
12436 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'
12437 fi
12438 archive_cmds_need_lc='no'
12439 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12440 hardcode_libdir_separator=:
12441 ;;
12442
12443 osf4* | osf5*) # as osf3* with the addition of -msym flag
12444 if test yes = "$GCC"; then
12445 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12446 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'
12447 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12448 else
12449 allow_undefined_flag=' -expect_unresolved \*'
12450 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'
12451 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~
12452 $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'
12453
12454 # Both c and cxx compiler support -rpath directly
12455 hardcode_libdir_flag_spec='-rpath $libdir'
12456 fi
12457 archive_cmds_need_lc='no'
12458 hardcode_libdir_separator=:
12459 ;;
12460
12461 serenity*)
12462 ;;
12463
12464 solaris*)
12465 no_undefined_flag=' -z defs'
12466 if test yes = "$GCC"; then
12467 wlarc='$wl'
12468 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12470 $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'
12471 else
12472 case `$CC -V 2>&1` in
12473 *"Compilers 5.0"*)
12474 wlarc=''
12475 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12477 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12478 ;;
12479 *)
12480 wlarc='$wl'
12481 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12483 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12484 ;;
12485 esac
12486 fi
12487 hardcode_libdir_flag_spec='-R$libdir'
12488 hardcode_shlibpath_var=no
12489 case $host_os in
12490 solaris2.[0-5] | solaris2.[0-5].*) ;;
12491 *)
12492 # The compiler driver will combine and reorder linker options,
12493 # but understands '-z linker_flag'. GCC discards it without '$wl',
12494 # but is careful enough not to reorder.
12495 # Supported since Solaris 2.6 (maybe 2.5.1?)
12496 if test yes = "$GCC"; then
12497 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12498 else
12499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12500 fi
12501 ;;
12502 esac
12503 link_all_deplibs=yes
12504 ;;
12505
12506 sunos4*)
12507 if test sequent = "$host_vendor"; then
12508 # Use $CC to link under sequent, because it throws in some extra .o
12509 # files that make .init and .fini sections work.
12510 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12511 else
12512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12513 fi
12514 hardcode_libdir_flag_spec='-L$libdir'
12515 hardcode_direct=yes
12516 hardcode_minus_L=yes
12517 hardcode_shlibpath_var=no
12518 ;;
12519
12520 sysv4)
12521 case $host_vendor in
12522 sni)
12523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12524 hardcode_direct=yes # is this really true???
12525 ;;
12526 siemens)
12527 ## LD is ld it makes a PLAMLIB
12528 ## CC just makes a GrossModule.
12529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12530 reload_cmds='$CC -r -o $output$reload_objs'
12531 hardcode_direct=no
12532 ;;
12533 motorola)
12534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12536 ;;
12537 esac
12538 runpath_var='LD_RUN_PATH'
12539 hardcode_shlibpath_var=no
12540 ;;
12541
12542 sysv4.3*)
12543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12544 hardcode_shlibpath_var=no
12545 export_dynamic_flag_spec='-Bexport'
12546 ;;
12547
12548 sysv4*MP*)
12549 if test -d /usr/nec; then
12550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12551 hardcode_shlibpath_var=no
12552 runpath_var=LD_RUN_PATH
12553 hardcode_runpath_var=yes
12554 ld_shlibs=yes
12555 fi
12556 ;;
12557
12558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12559 no_undefined_flag='$wl-z,text'
12560 archive_cmds_need_lc=no
12561 hardcode_shlibpath_var=no
12562 runpath_var='LD_RUN_PATH'
12563
12564 if test yes = "$GCC"; then
12565 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12566 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12567 else
12568 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12570 fi
12571 ;;
12572
12573 sysv5* | sco3.2v5* | sco5v6*)
12574 # Note: We CANNOT use -z defs as we might desire, because we do not
12575 # link with -lc, and that would cause any symbols used from libc to
12576 # always be unresolved, which means just about no library would
12577 # ever link correctly. If we're not using GNU ld we use -z text
12578 # though, which does catch some bad symbols but isn't as heavy-handed
12579 # as -z defs.
12580 no_undefined_flag='$wl-z,text'
12581 allow_undefined_flag='$wl-z,nodefs'
12582 archive_cmds_need_lc=no
12583 hardcode_shlibpath_var=no
12584 hardcode_libdir_flag_spec='$wl-R,$libdir'
12585 hardcode_libdir_separator=':'
12586 link_all_deplibs=yes
12587 export_dynamic_flag_spec='$wl-Bexport'
12588 runpath_var='LD_RUN_PATH'
12589
12590 if test yes = "$GCC"; then
12591 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12592 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12593 else
12594 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12595 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12596 fi
12597 ;;
12598
12599 uts4*)
12600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12601 hardcode_libdir_flag_spec='-L$libdir'
12602 hardcode_shlibpath_var=no
12603 ;;
12604
12605 *)
12606 ld_shlibs=no
12607 ;;
12608 esac
12609
12610 if test sni = "$host_vendor"; then
12611 case $host in
12612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12613 export_dynamic_flag_spec='$wl-Blargedynsym'
12614 ;;
12615 esac
12616 fi
12617 fi
12618
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12620 printf "%s\n" "$ld_shlibs" >&6; }
12621 test no = "$ld_shlibs" && can_build_shared=no
12622
12623 with_gnu_ld=$with_gnu_ld
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639 #
12640 # Do we need to explicitly link libc?
12641 #
12642 case "x$archive_cmds_need_lc" in
12643 x|xyes)
12644 # Assume -lc should be added
12645 archive_cmds_need_lc=yes
12646
12647 if test yes,yes = "$GCC,$enable_shared"; then
12648 case $archive_cmds in
12649 *'~'*)
12650 # FIXME: we may have to deal with multi-command sequences.
12651 ;;
12652 '$CC '*)
12653 # Test whether the compiler implicitly links with -lc since on some
12654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12655 # to ld, don't add -lc before -lgcc.
12656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12657 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12658 if test ${lt_cv_archive_cmds_need_lc+y}
12659 then :
12660 printf %s "(cached) " >&6
12661 else case e in #(
12662 e) $RM conftest*
12663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12664
12665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12666 (eval $ac_compile) 2>&5
12667 ac_status=$?
12668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12669 test $ac_status = 0; } 2>conftest.err; then
12670 soname=conftest
12671 lib=conftest
12672 libobjs=conftest.$ac_objext
12673 deplibs=
12674 wl=$lt_prog_compiler_wl
12675 pic_flag=$lt_prog_compiler_pic
12676 compiler_flags=-v
12677 linker_flags=-v
12678 verstring=
12679 output_objdir=.
12680 libname=conftest
12681 lt_save_allow_undefined_flag=$allow_undefined_flag
12682 allow_undefined_flag=
12683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12684 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12685 ac_status=$?
12686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12687 test $ac_status = 0; }
12688 then
12689 lt_cv_archive_cmds_need_lc=no
12690 else
12691 lt_cv_archive_cmds_need_lc=yes
12692 fi
12693 allow_undefined_flag=$lt_save_allow_undefined_flag
12694 else
12695 cat conftest.err 1>&5
12696 fi
12697 $RM conftest*
12698 ;;
12699 esac
12700 fi
12701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12702 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12703 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12704 ;;
12705 esac
12706 fi
12707 ;;
12708 esac
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12862 printf %s "checking dynamic linker characteristics... " >&6; }
12863
12864 if test yes = "$GCC"; then
12865 case $host_os in
12866 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12867 *) lt_awk_arg='/^libraries:/' ;;
12868 esac
12869 case $host_os in
12870 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12871 *) lt_sed_strip_eq='s|=/|/|g' ;;
12872 esac
12873 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12874 case $lt_search_path_spec in
12875 *\;*)
12876 # if the path contains ";" then we assume it to be the separator
12877 # otherwise default to the standard path separator (i.e. ":") - it is
12878 # assumed that no part of a normal pathname contains ";" but that should
12879 # okay in the real world where ";" in dirpaths is itself problematic.
12880 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12881 ;;
12882 *)
12883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12884 ;;
12885 esac
12886 # Ok, now we have the path, separated by spaces, we can step through it
12887 # and add multilib dir if necessary...
12888 lt_tmp_lt_search_path_spec=
12889 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12890 # ...but if some path component already ends with the multilib dir we assume
12891 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12892 case "$lt_multi_os_dir; $lt_search_path_spec " in
12893 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12894 lt_multi_os_dir=
12895 ;;
12896 esac
12897 for lt_sys_path in $lt_search_path_spec; do
12898 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12900 elif test -n "$lt_multi_os_dir"; then
12901 test -d "$lt_sys_path" && \
12902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12903 fi
12904 done
12905 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12906 BEGIN {RS = " "; FS = "/|\n";} {
12907 lt_foo = "";
12908 lt_count = 0;
12909 for (lt_i = NF; lt_i > 0; lt_i--) {
12910 if ($lt_i != "" && $lt_i != ".") {
12911 if ($lt_i == "..") {
12912 lt_count++;
12913 } else {
12914 if (lt_count == 0) {
12915 lt_foo = "/" $lt_i lt_foo;
12916 } else {
12917 lt_count--;
12918 }
12919 }
12920 }
12921 }
12922 if (lt_foo != "") { lt_freq[lt_foo]++; }
12923 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12924 }'`
12925 # AWK program above erroneously prepends '/' to C:/dos/paths
12926 # for these hosts.
12927 case $host_os in
12928 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12929 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12930 esac
12931 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12932 else
12933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12934 fi
12935 library_names_spec=
12936 libname_spec='lib$name'
12937 soname_spec=
12938 shrext_cmds=.so
12939 postinstall_cmds=
12940 postuninstall_cmds=
12941 finish_cmds=
12942 finish_eval=
12943 shlibpath_var=
12944 shlibpath_overrides_runpath=unknown
12945 version_type=none
12946 dynamic_linker="$host_os ld.so"
12947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12948 need_lib_prefix=unknown
12949 hardcode_into_libs=no
12950
12951 # when you set need_version to no, make sure it does not cause -set_version
12952 # flags to be left without arguments
12953 need_version=unknown
12954
12955
12956
12957 case $host_os in
12958 aix3*)
12959 version_type=linux # correct to gnu/linux during the next big refactor
12960 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12961 shlibpath_var=LIBPATH
12962
12963 # AIX 3 has no versioning support, so we append a major version to the name.
12964 soname_spec='$libname$release$shared_ext$major'
12965 ;;
12966
12967 aix[4-9]*)
12968 version_type=linux # correct to gnu/linux during the next big refactor
12969 need_lib_prefix=no
12970 need_version=no
12971 hardcode_into_libs=yes
12972 if test ia64 = "$host_cpu"; then
12973 # AIX 5 supports IA64
12974 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12975 shlibpath_var=LD_LIBRARY_PATH
12976 else
12977 # With GCC up to 2.95.x, collect2 would create an import file
12978 # for dependence libraries. The import file would start with
12979 # the line '#! .'. This would cause the generated library to
12980 # depend on '.', always an invalid library. This was fixed in
12981 # development snapshots of GCC prior to 3.0.
12982 case $host_os in
12983 aix4 | aix4.[01] | aix4.[01].*)
12984 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12985 echo ' yes '
12986 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12987 :
12988 else
12989 can_build_shared=no
12990 fi
12991 ;;
12992 esac
12993 # Using Import Files as archive members, it is possible to support
12994 # filename-based versioning of shared library archives on AIX. While
12995 # this would work for both with and without runtime linking, it will
12996 # prevent static linking of such archives. So we do filename-based
12997 # shared library versioning with .so extension only, which is used
12998 # when both runtime linking and shared linking is enabled.
12999 # Unfortunately, runtime linking may impact performance, so we do
13000 # not want this to be the default eventually. Also, we use the
13001 # versioned .so libs for executables only if there is the -brtl
13002 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13003 # To allow for filename-based versioning support, we need to create
13004 # libNAME.so.V as an archive file, containing:
13005 # *) an Import File, referring to the versioned filename of the
13006 # archive as well as the shared archive member, telling the
13007 # bitwidth (32 or 64) of that shared object, and providing the
13008 # list of exported symbols of that shared object, eventually
13009 # decorated with the 'weak' keyword
13010 # *) the shared object with the F_LOADONLY flag set, to really avoid
13011 # it being seen by the linker.
13012 # At run time we better use the real file rather than another symlink,
13013 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13014
13015 case $with_aix_soname,$aix_use_runtimelinking in
13016 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13017 # soname into executable. Probably we can add versioning support to
13018 # collect2, so additional links can be useful in future.
13019 aix,yes) # traditional libtool
13020 dynamic_linker='AIX unversionable lib.so'
13021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13022 # instead of lib<name>.a to let people know that these are not
13023 # typical AIX shared libraries.
13024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13025 ;;
13026 aix,no) # traditional AIX only
13027 dynamic_linker='AIX lib.a(lib.so.V)'
13028 # We preserve .a as extension for shared libraries through AIX4.2
13029 # and later when we are not doing run time linking.
13030 library_names_spec='$libname$release.a $libname.a'
13031 soname_spec='$libname$release$shared_ext$major'
13032 ;;
13033 svr4,*) # full svr4 only
13034 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13035 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13036 # We do not specify a path in Import Files, so LIBPATH fires.
13037 shlibpath_overrides_runpath=yes
13038 ;;
13039 *,yes) # both, prefer svr4
13040 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13041 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13042 # unpreferred sharedlib libNAME.a needs extra handling
13043 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"'
13044 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"'
13045 # We do not specify a path in Import Files, so LIBPATH fires.
13046 shlibpath_overrides_runpath=yes
13047 ;;
13048 *,no) # both, prefer aix
13049 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13050 library_names_spec='$libname$release.a $libname.a'
13051 soname_spec='$libname$release$shared_ext$major'
13052 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13053 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)'
13054 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"'
13055 ;;
13056 esac
13057 shlibpath_var=LIBPATH
13058 fi
13059 ;;
13060
13061 amigaos*)
13062 case $host_cpu in
13063 powerpc)
13064 # Since July 2007 AmigaOS4 officially supports .so libraries.
13065 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13067 ;;
13068 m68k)
13069 library_names_spec='$libname.ixlibrary $libname.a'
13070 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13071 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'
13072 ;;
13073 esac
13074 ;;
13075
13076 beos*)
13077 library_names_spec='$libname$shared_ext'
13078 dynamic_linker="$host_os ld.so"
13079 shlibpath_var=LIBRARY_PATH
13080 ;;
13081
13082 bsdi[45]*)
13083 version_type=linux # correct to gnu/linux during the next big refactor
13084 need_version=no
13085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13086 soname_spec='$libname$release$shared_ext$major'
13087 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13088 shlibpath_var=LD_LIBRARY_PATH
13089 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13090 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13091 # the default ld.so.conf also contains /usr/contrib/lib and
13092 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13093 # libtool to hard-code these into programs
13094 ;;
13095
13096 cygwin* | mingw* | windows* | pw32* | cegcc*)
13097 version_type=windows
13098 shrext_cmds=.dll
13099 need_version=no
13100 need_lib_prefix=no
13101
13102 case $GCC,$cc_basename in
13103 yes,*)
13104 # gcc
13105 library_names_spec='$libname.dll.a'
13106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13107 # If user builds GCC with multilib enabled,
13108 # it should just install on $(libdir)
13109 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13110 if test xyes = x"$multilib"; then
13111 postinstall_cmds='base_file=`basename \$file`~
13112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13113 dldir=$destdir/`dirname \$dlpath`~
13114 $install_prog $dir/$dlname $destdir/$dlname~
13115 chmod a+x $destdir/$dlname~
13116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13117 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13118 fi'
13119 else
13120 postinstall_cmds='base_file=`basename \$file`~
13121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13122 dldir=$destdir/`dirname \$dlpath`~
13123 test -d \$dldir || mkdir -p \$dldir~
13124 $install_prog $dir/$dlname \$dldir/$dlname~
13125 chmod a+x \$dldir/$dlname~
13126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13128 fi'
13129 fi
13130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13131 dlpath=$dir/\$dldll~
13132 $RM \$dlpath'
13133 shlibpath_overrides_runpath=yes
13134
13135 case $host_os in
13136 cygwin*)
13137 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13138 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13139
13140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13141 ;;
13142 mingw* | windows* | cegcc*)
13143 # MinGW DLLs use traditional 'lib' prefix
13144 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13145 ;;
13146 pw32*)
13147 # pw32 DLLs use 'pw' prefix rather than 'lib'
13148 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13149 ;;
13150 esac
13151 dynamic_linker='Win32 ld.exe'
13152 ;;
13153
13154 *,cl* | *,icl*)
13155 # Native MSVC or ICC
13156 libname_spec='$name'
13157 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13158 library_names_spec='$libname.dll.lib'
13159
13160 case $build_os in
13161 mingw* | windows*)
13162 sys_lib_search_path_spec=
13163 lt_save_ifs=$IFS
13164 IFS=';'
13165 for lt_path in $LIB
13166 do
13167 IFS=$lt_save_ifs
13168 # Let DOS variable expansion print the short 8.3 style file name.
13169 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13170 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13171 done
13172 IFS=$lt_save_ifs
13173 # Convert to MSYS style.
13174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13175 ;;
13176 cygwin*)
13177 # Convert to unix form, then to dos form, then back to unix form
13178 # but this time dos style (no spaces!) so that the unix form looks
13179 # like /cygdrive/c/PROGRA~1:/cygdr...
13180 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13181 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13182 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13183 ;;
13184 *)
13185 sys_lib_search_path_spec=$LIB
13186 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13187 # It is most probably a Windows format PATH.
13188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13189 else
13190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13191 fi
13192 # FIXME: find the short name or the path components, as spaces are
13193 # common. (e.g. "Program Files" -> "PROGRA~1")
13194 ;;
13195 esac
13196
13197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13198 postinstall_cmds='base_file=`basename \$file`~
13199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13200 dldir=$destdir/`dirname \$dlpath`~
13201 test -d \$dldir || mkdir -p \$dldir~
13202 $install_prog $dir/$dlname \$dldir/$dlname'
13203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13204 dlpath=$dir/\$dldll~
13205 $RM \$dlpath'
13206 shlibpath_overrides_runpath=yes
13207 dynamic_linker='Win32 link.exe'
13208 ;;
13209
13210 *)
13211 # Assume MSVC and ICC wrapper
13212 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13213 dynamic_linker='Win32 ld.exe'
13214 ;;
13215 esac
13216 # FIXME: first we should search . and the directory the executable is in
13217 shlibpath_var=PATH
13218 ;;
13219
13220 darwin* | rhapsody*)
13221 dynamic_linker="$host_os dyld"
13222 version_type=darwin
13223 need_lib_prefix=no
13224 need_version=no
13225 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13226 soname_spec='$libname$release$major$shared_ext'
13227 shlibpath_overrides_runpath=yes
13228 shlibpath_var=DYLD_LIBRARY_PATH
13229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13230
13231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13233 ;;
13234
13235 dgux*)
13236 version_type=linux # correct to gnu/linux during the next big refactor
13237 need_lib_prefix=no
13238 need_version=no
13239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13240 soname_spec='$libname$release$shared_ext$major'
13241 shlibpath_var=LD_LIBRARY_PATH
13242 ;;
13243
13244 freebsd* | dragonfly* | midnightbsd*)
13245 # DragonFly does not have aout. When/if they implement a new
13246 # versioning mechanism, adjust this.
13247 if test -x /usr/bin/objformat; then
13248 objformat=`/usr/bin/objformat`
13249 else
13250 case $host_os in
13251 freebsd[23].*) objformat=aout ;;
13252 *) objformat=elf ;;
13253 esac
13254 fi
13255 version_type=freebsd-$objformat
13256 case $version_type in
13257 freebsd-elf*)
13258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13259 soname_spec='$libname$release$shared_ext$major'
13260 need_version=no
13261 need_lib_prefix=no
13262 ;;
13263 freebsd-*)
13264 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13265 need_version=yes
13266 ;;
13267 esac
13268 case $host_cpu in
13269 powerpc64)
13270 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13271 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 int test_pointer_size[sizeof (void *) - 5];
13275
13276 _ACEOF
13277 if ac_fn_c_try_compile "$LINENO"
13278 then :
13279 shlibpath_var=LD_LIBRARY_PATH
13280 else case e in #(
13281 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13282 esac
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13285 ;;
13286 *)
13287 shlibpath_var=LD_LIBRARY_PATH
13288 ;;
13289 esac
13290 case $host_os in
13291 freebsd2.*)
13292 shlibpath_overrides_runpath=yes
13293 ;;
13294 freebsd3.[01]* | freebsdelf3.[01]*)
13295 shlibpath_overrides_runpath=yes
13296 hardcode_into_libs=yes
13297 ;;
13298 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13299 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13300 shlibpath_overrides_runpath=no
13301 hardcode_into_libs=yes
13302 ;;
13303 *) # from 4.6 on, and DragonFly
13304 shlibpath_overrides_runpath=yes
13305 hardcode_into_libs=yes
13306 ;;
13307 esac
13308 ;;
13309
13310 haiku*)
13311 version_type=linux # correct to gnu/linux during the next big refactor
13312 need_lib_prefix=no
13313 need_version=no
13314 dynamic_linker="$host_os runtime_loader"
13315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13316 soname_spec='$libname$release$shared_ext$major'
13317 shlibpath_var=LIBRARY_PATH
13318 shlibpath_overrides_runpath=no
13319 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13320 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13321 hardcode_into_libs=no
13322 ;;
13323
13324 hpux9* | hpux10* | hpux11*)
13325 # Give a soname corresponding to the major version so that dld.sl refuses to
13326 # link against other versions.
13327 version_type=sunos
13328 need_lib_prefix=no
13329 need_version=no
13330 case $host_cpu in
13331 ia64*)
13332 shrext_cmds='.so'
13333 hardcode_into_libs=yes
13334 dynamic_linker="$host_os dld.so"
13335 shlibpath_var=LD_LIBRARY_PATH
13336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13338 soname_spec='$libname$release$shared_ext$major'
13339 if test 32 = "$HPUX_IA64_MODE"; then
13340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13341 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13342 else
13343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13344 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13345 fi
13346 ;;
13347 hppa*64*)
13348 shrext_cmds='.sl'
13349 hardcode_into_libs=yes
13350 dynamic_linker="$host_os dld.sl"
13351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13354 soname_spec='$libname$release$shared_ext$major'
13355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13357 ;;
13358 *)
13359 shrext_cmds='.sl'
13360 dynamic_linker="$host_os dld.sl"
13361 shlibpath_var=SHLIB_PATH
13362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13364 soname_spec='$libname$release$shared_ext$major'
13365 ;;
13366 esac
13367 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13368 postinstall_cmds='chmod 555 $lib'
13369 # or fails outright, so override atomically:
13370 install_override_mode=555
13371 ;;
13372
13373 interix[3-9]*)
13374 version_type=linux # correct to gnu/linux during the next big refactor
13375 need_lib_prefix=no
13376 need_version=no
13377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13378 soname_spec='$libname$release$shared_ext$major'
13379 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=no
13382 hardcode_into_libs=yes
13383 ;;
13384
13385 irix5* | irix6* | nonstopux*)
13386 case $host_os in
13387 nonstopux*) version_type=nonstopux ;;
13388 *)
13389 if test yes = "$lt_cv_prog_gnu_ld"; then
13390 version_type=linux # correct to gnu/linux during the next big refactor
13391 else
13392 version_type=irix
13393 fi ;;
13394 esac
13395 need_lib_prefix=no
13396 need_version=no
13397 soname_spec='$libname$release$shared_ext$major'
13398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13399 case $host_os in
13400 irix5* | nonstopux*)
13401 libsuff= shlibsuff=
13402 ;;
13403 *)
13404 case $LD in # libtool.m4 will add one of these switches to LD
13405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13406 libsuff= shlibsuff= libmagic=32-bit;;
13407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13408 libsuff=32 shlibsuff=N32 libmagic=N32;;
13409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13411 *) libsuff= shlibsuff= libmagic=never-match;;
13412 esac
13413 ;;
13414 esac
13415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13416 shlibpath_overrides_runpath=no
13417 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13418 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13419 hardcode_into_libs=yes
13420 ;;
13421
13422 # No shared lib support for Linux oldld, aout, or coff.
13423 linux*oldld* | linux*aout* | linux*coff*)
13424 dynamic_linker=no
13425 ;;
13426
13427 linux*android*)
13428 version_type=none # Android doesn't support versioned libraries.
13429 need_lib_prefix=no
13430 need_version=no
13431 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13432 soname_spec='$libname$release$shared_ext'
13433 finish_cmds=
13434 shlibpath_var=LD_LIBRARY_PATH
13435 shlibpath_overrides_runpath=yes
13436
13437 # This implies no fast_install, which is unacceptable.
13438 # Some rework will be needed to allow for fast_install
13439 # before this can be enabled.
13440 hardcode_into_libs=yes
13441
13442 dynamic_linker='Android linker'
13443 # -rpath works at least for libraries that are not overridden by
13444 # libraries installed in system locations.
13445 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13446 ;;
13447
13448 # This must be glibc/ELF.
13449 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13450 version_type=linux # correct to gnu/linux during the next big refactor
13451 need_lib_prefix=no
13452 need_version=no
13453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13454 soname_spec='$libname$release$shared_ext$major'
13455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13456 shlibpath_var=LD_LIBRARY_PATH
13457 shlibpath_overrides_runpath=no
13458
13459 # Some binutils ld are patched to set DT_RUNPATH
13460 if test ${lt_cv_shlibpath_overrides_runpath+y}
13461 then :
13462 printf %s "(cached) " >&6
13463 else case e in #(
13464 e) lt_cv_shlibpath_overrides_runpath=no
13465 save_LDFLAGS=$LDFLAGS
13466 save_libdir=$libdir
13467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471
13472 int
13473 main (void)
13474 {
13475
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_link "$LINENO"
13481 then :
13482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13483 then :
13484 lt_cv_shlibpath_overrides_runpath=yes
13485 fi
13486 fi
13487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13488 conftest$ac_exeext conftest.$ac_ext
13489 LDFLAGS=$save_LDFLAGS
13490 libdir=$save_libdir
13491 ;;
13492 esac
13493 fi
13494
13495 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13496
13497 # This implies no fast_install, which is unacceptable.
13498 # Some rework will be needed to allow for fast_install
13499 # before this can be enabled.
13500 hardcode_into_libs=yes
13501
13502 # Ideally, we could use ldconfig to report *all* directories which are
13503 # searched for libraries, however this is still not possible. Aside from not
13504 # being certain /sbin/ldconfig is available, command
13505 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13506 # even though it is searched at run-time. Try to do the best guess by
13507 # appending ld.so.conf contents (and includes) to the search path.
13508 if test -f /etc/ld.so.conf; then
13509 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' ' '`
13510 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13511 fi
13512
13513 # We used to test for /lib/ld.so.1 and disable shared libraries on
13514 # powerpc, because MkLinux only supported shared libraries with the
13515 # GNU dynamic linker. Since this was broken with cross compilers,
13516 # most powerpc-linux boxes support dynamic linking these days and
13517 # people can always --disable-shared, the test was removed, and we
13518 # assume the GNU/Linux dynamic linker is in use.
13519 dynamic_linker='GNU/Linux ld.so'
13520 ;;
13521
13522 netbsdelf*-gnu)
13523 version_type=linux
13524 need_lib_prefix=no
13525 need_version=no
13526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13527 soname_spec='$libname$release$shared_ext$major'
13528 shlibpath_var=LD_LIBRARY_PATH
13529 shlibpath_overrides_runpath=no
13530 hardcode_into_libs=yes
13531 dynamic_linker='NetBSD ld.elf_so'
13532 ;;
13533
13534 netbsd*)
13535 version_type=sunos
13536 need_lib_prefix=no
13537 need_version=no
13538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13539 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13541 dynamic_linker='NetBSD (a.out) ld.so'
13542 else
13543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13544 soname_spec='$libname$release$shared_ext$major'
13545 dynamic_linker='NetBSD ld.elf_so'
13546 fi
13547 shlibpath_var=LD_LIBRARY_PATH
13548 shlibpath_overrides_runpath=yes
13549 hardcode_into_libs=yes
13550 ;;
13551
13552 *-mlibc)
13553 version_type=linux # correct to gnu/linux during the next big refactor
13554 need_lib_prefix=no
13555 need_version=no
13556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13557 soname_spec='$libname$release$shared_ext$major'
13558 dynamic_linker='mlibc ld.so'
13559 shlibpath_var=LD_LIBRARY_PATH
13560 shlibpath_overrides_runpath=no
13561 hardcode_into_libs=yes
13562 ;;
13563
13564 newsos6)
13565 version_type=linux # correct to gnu/linux during the next big refactor
13566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13567 shlibpath_var=LD_LIBRARY_PATH
13568 shlibpath_overrides_runpath=yes
13569 ;;
13570
13571 *nto* | *qnx*)
13572 version_type=qnx
13573 need_lib_prefix=no
13574 need_version=no
13575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13576 soname_spec='$libname$release$shared_ext$major'
13577 shlibpath_var=LD_LIBRARY_PATH
13578 shlibpath_overrides_runpath=no
13579 hardcode_into_libs=yes
13580 dynamic_linker='ldqnx.so'
13581 ;;
13582
13583 openbsd*)
13584 version_type=sunos
13585 sys_lib_dlsearch_path_spec=/usr/lib
13586 need_lib_prefix=no
13587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13588 need_version=no
13589 else
13590 need_version=yes
13591 fi
13592 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13594 shlibpath_var=LD_LIBRARY_PATH
13595 shlibpath_overrides_runpath=yes
13596 ;;
13597
13598 os2*)
13599 libname_spec='$name'
13600 version_type=windows
13601 shrext_cmds=.dll
13602 need_version=no
13603 need_lib_prefix=no
13604 # OS/2 can only load a DLL with a base name of 8 characters or less.
13605 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13606 v=$($ECHO $release$versuffix | tr -d .-);
13607 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13608 $ECHO $n$v`$shared_ext'
13609 library_names_spec='${libname}_dll.$libext'
13610 dynamic_linker='OS/2 ld.exe'
13611 shlibpath_var=BEGINLIBPATH
13612 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13614 postinstall_cmds='base_file=`basename \$file`~
13615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13616 dldir=$destdir/`dirname \$dlpath`~
13617 test -d \$dldir || mkdir -p \$dldir~
13618 $install_prog $dir/$dlname \$dldir/$dlname~
13619 chmod a+x \$dldir/$dlname~
13620 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13621 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13622 fi'
13623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13624 dlpath=$dir/\$dldll~
13625 $RM \$dlpath'
13626 ;;
13627
13628 osf3* | osf4* | osf5*)
13629 version_type=osf
13630 need_lib_prefix=no
13631 need_version=no
13632 soname_spec='$libname$release$shared_ext$major'
13633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13634 shlibpath_var=LD_LIBRARY_PATH
13635 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13637 ;;
13638
13639 rdos*)
13640 dynamic_linker=no
13641 ;;
13642
13643 serenity*)
13644 version_type=linux # correct to gnu/linux during the next big refactor
13645 need_lib_prefix=no
13646 need_version=no
13647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13648 soname_spec='$libname$release$shared_ext$major'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=no
13651 dynamic_linker='SerenityOS LibELF'
13652 ;;
13653
13654 solaris*)
13655 version_type=linux # correct to gnu/linux during the next big refactor
13656 need_lib_prefix=no
13657 need_version=no
13658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13659 soname_spec='$libname$release$shared_ext$major'
13660 shlibpath_var=LD_LIBRARY_PATH
13661 shlibpath_overrides_runpath=yes
13662 hardcode_into_libs=yes
13663 # ldd complains unless libraries are executable
13664 postinstall_cmds='chmod +x $lib'
13665 ;;
13666
13667 sunos4*)
13668 version_type=sunos
13669 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13671 shlibpath_var=LD_LIBRARY_PATH
13672 shlibpath_overrides_runpath=yes
13673 if test yes = "$with_gnu_ld"; then
13674 need_lib_prefix=no
13675 fi
13676 need_version=yes
13677 ;;
13678
13679 sysv4 | sysv4.3*)
13680 version_type=linux # correct to gnu/linux during the next big refactor
13681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13682 soname_spec='$libname$release$shared_ext$major'
13683 shlibpath_var=LD_LIBRARY_PATH
13684 case $host_vendor in
13685 sni)
13686 shlibpath_overrides_runpath=no
13687 need_lib_prefix=no
13688 runpath_var=LD_RUN_PATH
13689 ;;
13690 siemens)
13691 need_lib_prefix=no
13692 ;;
13693 motorola)
13694 need_lib_prefix=no
13695 need_version=no
13696 shlibpath_overrides_runpath=no
13697 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13698 ;;
13699 esac
13700 ;;
13701
13702 sysv4*MP*)
13703 if test -d /usr/nec; then
13704 version_type=linux # correct to gnu/linux during the next big refactor
13705 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13706 soname_spec='$libname$shared_ext.$major'
13707 shlibpath_var=LD_LIBRARY_PATH
13708 fi
13709 ;;
13710
13711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13712 version_type=sco
13713 need_lib_prefix=no
13714 need_version=no
13715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13716 soname_spec='$libname$release$shared_ext$major'
13717 shlibpath_var=LD_LIBRARY_PATH
13718 shlibpath_overrides_runpath=yes
13719 hardcode_into_libs=yes
13720 if test yes = "$with_gnu_ld"; then
13721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13722 else
13723 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13724 case $host_os in
13725 sco3.2v5*)
13726 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13727 ;;
13728 esac
13729 fi
13730 sys_lib_dlsearch_path_spec='/usr/lib'
13731 ;;
13732
13733 tpf*)
13734 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13735 version_type=linux # correct to gnu/linux during the next big refactor
13736 need_lib_prefix=no
13737 need_version=no
13738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 shlibpath_overrides_runpath=no
13741 hardcode_into_libs=yes
13742 ;;
13743
13744 uts4*)
13745 version_type=linux # correct to gnu/linux during the next big refactor
13746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13747 soname_spec='$libname$release$shared_ext$major'
13748 shlibpath_var=LD_LIBRARY_PATH
13749 ;;
13750
13751 emscripten*)
13752 version_type=none
13753 need_lib_prefix=no
13754 need_version=no
13755 library_names_spec='$libname$release$shared_ext'
13756 soname_spec='$libname$release$shared_ext'
13757 finish_cmds=
13758 dynamic_linker="Emscripten linker"
13759 lt_prog_compiler_wl=
13760 lt_prog_compiler_pic=
13761 lt_prog_compiler_static=
13762
13763
13764 if test yes = "$GCC"; then
13765 lt_prog_compiler_wl='-Wl,'
13766 lt_prog_compiler_static='-static'
13767
13768 case $host_os in
13769 aix*)
13770 # All AIX code is PIC.
13771 if test ia64 = "$host_cpu"; then
13772 # AIX 5 now supports IA64 processor
13773 lt_prog_compiler_static='-Bstatic'
13774 fi
13775 lt_prog_compiler_pic='-fPIC'
13776 ;;
13777
13778 amigaos*)
13779 case $host_cpu in
13780 powerpc)
13781 # see comment about AmigaOS4 .so support
13782 lt_prog_compiler_pic='-fPIC'
13783 ;;
13784 m68k)
13785 # FIXME: we need at least 68020 code to build shared libraries, but
13786 # adding the '-m68020' flag to GCC prevents building anything better,
13787 # like '-m68040'.
13788 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13789 ;;
13790 esac
13791 ;;
13792
13793 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13794 # PIC is the default for these OSes.
13795 ;;
13796
13797 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13798 # This hack is so that the source file can tell whether it is being
13799 # built for inclusion in a dll (and should export symbols for example).
13800 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13801 # (--disable-auto-import) libraries
13802 lt_prog_compiler_pic='-DDLL_EXPORT'
13803 case $host_os in
13804 os2*)
13805 lt_prog_compiler_static='$wl-static'
13806 ;;
13807 esac
13808 ;;
13809
13810 darwin* | rhapsody*)
13811 # PIC is the default on this platform
13812 # Common symbols not allowed in MH_DYLIB files
13813 lt_prog_compiler_pic='-fno-common'
13814 ;;
13815
13816 haiku*)
13817 # PIC is the default for Haiku.
13818 # The "-static" flag exists, but is broken.
13819 lt_prog_compiler_static=
13820 ;;
13821
13822 hpux*)
13823 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13824 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13825 # sets the default TLS model and affects inlining.
13826 case $host_cpu in
13827 hppa*64*)
13828 # +Z the default
13829 ;;
13830 *)
13831 lt_prog_compiler_pic='-fPIC'
13832 ;;
13833 esac
13834 ;;
13835
13836 interix[3-9]*)
13837 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13838 # Instead, we relocate shared libraries at runtime.
13839 ;;
13840
13841 msdosdjgpp*)
13842 # Just because we use GCC doesn't mean we suddenly get shared libraries
13843 # on systems that don't support them.
13844 lt_prog_compiler_can_build_shared=no
13845 enable_shared=no
13846 ;;
13847
13848 *nto* | *qnx*)
13849 # QNX uses GNU C++, but need to define -shared option too, otherwise
13850 # it will coredump.
13851 lt_prog_compiler_pic='-fPIC -shared'
13852 ;;
13853
13854 sysv4*MP*)
13855 if test -d /usr/nec; then
13856 lt_prog_compiler_pic=-Kconform_pic
13857 fi
13858 ;;
13859
13860 *)
13861 lt_prog_compiler_pic='-fPIC'
13862 ;;
13863 esac
13864
13865 case $cc_basename in
13866 nvcc*) # Cuda Compiler Driver 2.2
13867 lt_prog_compiler_wl='-Xlinker '
13868 if test -n "$lt_prog_compiler_pic"; then
13869 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13870 fi
13871 ;;
13872 esac
13873 else
13874 # PORTME Check for flag to pass linker flags through the system compiler.
13875 case $host_os in
13876 aix*)
13877 lt_prog_compiler_wl='-Wl,'
13878 if test ia64 = "$host_cpu"; then
13879 # AIX 5 now supports IA64 processor
13880 lt_prog_compiler_static='-Bstatic'
13881 else
13882 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13883 fi
13884 ;;
13885
13886 darwin* | rhapsody*)
13887 # PIC is the default on this platform
13888 # Common symbols not allowed in MH_DYLIB files
13889 lt_prog_compiler_pic='-fno-common'
13890 case $cc_basename in
13891 nagfor*)
13892 # NAG Fortran compiler
13893 lt_prog_compiler_wl='-Wl,-Wl,,'
13894 lt_prog_compiler_pic='-PIC'
13895 lt_prog_compiler_static='-Bstatic'
13896 ;;
13897 esac
13898 ;;
13899
13900 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13901 # This hack is so that the source file can tell whether it is being
13902 # built for inclusion in a dll (and should export symbols for example).
13903 lt_prog_compiler_pic='-DDLL_EXPORT'
13904 case $host_os in
13905 os2*)
13906 lt_prog_compiler_static='$wl-static'
13907 ;;
13908 esac
13909 ;;
13910
13911 hpux9* | hpux10* | hpux11*)
13912 lt_prog_compiler_wl='-Wl,'
13913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13914 # not for PA HP-UX.
13915 case $host_cpu in
13916 hppa*64*|ia64*)
13917 # +Z the default
13918 ;;
13919 *)
13920 lt_prog_compiler_pic='+Z'
13921 ;;
13922 esac
13923 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13924 lt_prog_compiler_static='$wl-a ${wl}archive'
13925 ;;
13926
13927 irix5* | irix6* | nonstopux*)
13928 lt_prog_compiler_wl='-Wl,'
13929 # PIC (with -KPIC) is the default.
13930 lt_prog_compiler_static='-non_shared'
13931 ;;
13932
13933 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13934 case $cc_basename in
13935 # old Intel for x86_64, which still supported -KPIC.
13936 ecc*)
13937 lt_prog_compiler_wl='-Wl,'
13938 lt_prog_compiler_pic='-KPIC'
13939 lt_prog_compiler_static='-static'
13940 ;;
13941 *flang* | ftn | f18* | f95*)
13942 # Flang compiler.
13943 lt_prog_compiler_wl='-Wl,'
13944 lt_prog_compiler_pic='-fPIC'
13945 lt_prog_compiler_static='-static'
13946 ;;
13947 # icc used to be incompatible with GCC.
13948 # ICC 10 doesn't accept -KPIC any more.
13949 icc* | ifort*)
13950 lt_prog_compiler_wl='-Wl,'
13951 lt_prog_compiler_pic='-fPIC'
13952 lt_prog_compiler_static='-static'
13953 ;;
13954 # Lahey Fortran 8.1.
13955 lf95*)
13956 lt_prog_compiler_wl='-Wl,'
13957 lt_prog_compiler_pic='--shared'
13958 lt_prog_compiler_static='--static'
13959 ;;
13960 nagfor*)
13961 # NAG Fortran compiler
13962 lt_prog_compiler_wl='-Wl,-Wl,,'
13963 lt_prog_compiler_pic='-PIC'
13964 lt_prog_compiler_static='-Bstatic'
13965 ;;
13966 tcc*)
13967 # Fabrice Bellard et al's Tiny C Compiler
13968 lt_prog_compiler_wl='-Wl,'
13969 lt_prog_compiler_pic='-fPIC'
13970 lt_prog_compiler_static='-static'
13971 ;;
13972 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13973 # Portland Group compilers (*not* the Pentium gcc compiler,
13974 # which looks to be a dead project)
13975 lt_prog_compiler_wl='-Wl,'
13976 lt_prog_compiler_pic='-fpic'
13977 lt_prog_compiler_static='-Bstatic'
13978 ;;
13979 ccc*)
13980 lt_prog_compiler_wl='-Wl,'
13981 # All Alpha code is PIC.
13982 lt_prog_compiler_static='-non_shared'
13983 ;;
13984 xl* | bgxl* | bgf* | mpixl*)
13985 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13986 lt_prog_compiler_wl='-Wl,'
13987 lt_prog_compiler_pic='-qpic'
13988 lt_prog_compiler_static='-qstaticlink'
13989 ;;
13990 *)
13991 case `$CC -V 2>&1 | $SED 5q` in
13992 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13993 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13994 lt_prog_compiler_pic='-KPIC'
13995 lt_prog_compiler_static='-Bstatic'
13996 lt_prog_compiler_wl=''
13997 ;;
13998 *Sun\ F* | *Sun*Fortran*)
13999 lt_prog_compiler_pic='-KPIC'
14000 lt_prog_compiler_static='-Bstatic'
14001 lt_prog_compiler_wl='-Qoption ld '
14002 ;;
14003 *Sun\ C*)
14004 # Sun C 5.9
14005 lt_prog_compiler_pic='-KPIC'
14006 lt_prog_compiler_static='-Bstatic'
14007 lt_prog_compiler_wl='-Wl,'
14008 ;;
14009 *Intel*\ [CF]*Compiler*)
14010 lt_prog_compiler_wl='-Wl,'
14011 lt_prog_compiler_pic='-fPIC'
14012 lt_prog_compiler_static='-static'
14013 ;;
14014 *Portland\ Group*)
14015 lt_prog_compiler_wl='-Wl,'
14016 lt_prog_compiler_pic='-fpic'
14017 lt_prog_compiler_static='-Bstatic'
14018 ;;
14019 esac
14020 ;;
14021 esac
14022 ;;
14023
14024 newsos6)
14025 lt_prog_compiler_pic='-KPIC'
14026 lt_prog_compiler_static='-Bstatic'
14027 ;;
14028
14029 *-mlibc)
14030 lt_prog_compiler_wl='-Wl,'
14031 lt_prog_compiler_pic='-fPIC'
14032 lt_prog_compiler_static='-static'
14033 ;;
14034
14035 *nto* | *qnx*)
14036 # QNX uses GNU C++, but need to define -shared option too, otherwise
14037 # it will coredump.
14038 lt_prog_compiler_pic='-fPIC -shared'
14039 ;;
14040
14041 osf3* | osf4* | osf5*)
14042 lt_prog_compiler_wl='-Wl,'
14043 # All OSF/1 code is PIC.
14044 lt_prog_compiler_static='-non_shared'
14045 ;;
14046
14047 rdos*)
14048 lt_prog_compiler_static='-non_shared'
14049 ;;
14050
14051 serenity*)
14052 ;;
14053
14054 solaris*)
14055 lt_prog_compiler_pic='-KPIC'
14056 lt_prog_compiler_static='-Bstatic'
14057 case $cc_basename in
14058 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14059 lt_prog_compiler_wl='-Qoption ld ';;
14060 *)
14061 lt_prog_compiler_wl='-Wl,';;
14062 esac
14063 ;;
14064
14065 sunos4*)
14066 lt_prog_compiler_wl='-Qoption ld '
14067 lt_prog_compiler_pic='-PIC'
14068 lt_prog_compiler_static='-Bstatic'
14069 ;;
14070
14071 sysv4 | sysv4.2uw2* | sysv4.3*)
14072 lt_prog_compiler_wl='-Wl,'
14073 lt_prog_compiler_pic='-KPIC'
14074 lt_prog_compiler_static='-Bstatic'
14075 ;;
14076
14077 sysv4*MP*)
14078 if test -d /usr/nec; then
14079 lt_prog_compiler_pic='-Kconform_pic'
14080 lt_prog_compiler_static='-Bstatic'
14081 fi
14082 ;;
14083
14084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14085 lt_prog_compiler_wl='-Wl,'
14086 lt_prog_compiler_pic='-KPIC'
14087 lt_prog_compiler_static='-Bstatic'
14088 ;;
14089
14090 unicos*)
14091 lt_prog_compiler_wl='-Wl,'
14092 lt_prog_compiler_can_build_shared=no
14093 ;;
14094
14095 uts4*)
14096 lt_prog_compiler_pic='-pic'
14097 lt_prog_compiler_static='-Bstatic'
14098 ;;
14099
14100 *)
14101 lt_prog_compiler_can_build_shared=no
14102 ;;
14103 esac
14104 fi
14105
14106 case $host_os in
14107 # For platforms that do not support PIC, -DPIC is meaningless:
14108 *djgpp*)
14109 lt_prog_compiler_pic=
14110 ;;
14111 *)
14112 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14113 ;;
14114 esac
14115
14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14117 printf %s "checking for $compiler option to produce PIC... " >&6; }
14118 if test ${lt_cv_prog_compiler_pic+y}
14119 then :
14120 printf %s "(cached) " >&6
14121 else case e in #(
14122 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14123 esac
14124 fi
14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14126 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14127 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14128
14129 #
14130 # Check to make sure the PIC flag actually works.
14131 #
14132 if test -n "$lt_prog_compiler_pic"; then
14133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14134 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14135 if test ${lt_cv_prog_compiler_pic_works+y}
14136 then :
14137 printf %s "(cached) " >&6
14138 else case e in #(
14139 e) lt_cv_prog_compiler_pic_works=no
14140 ac_outfile=conftest.$ac_objext
14141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14142 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14143 # Insert the option either (1) after the last *FLAGS variable, or
14144 # (2) before a word containing "conftest.", or (3) at the end.
14145 # Note that $ac_compile itself does not contain backslashes and begins
14146 # with a dollar sign (not a hyphen), so the echo should work correctly.
14147 # The option is referenced via a variable to avoid confusing sed.
14148 lt_compile=`echo "$ac_compile" | $SED \
14149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14151 -e 's:$: $lt_compiler_flag:'`
14152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14153 (eval "$lt_compile" 2>conftest.err)
14154 ac_status=$?
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 if (exit $ac_status) && test -s "$ac_outfile"; then
14158 # The compiler can only warn and ignore the option if not recognized
14159 # So say no if there are warnings other than the usual output.
14160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14163 lt_cv_prog_compiler_pic_works=yes
14164 fi
14165 fi
14166 $RM conftest*
14167 ;;
14168 esac
14169 fi
14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14171 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14172
14173 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14174 case $lt_prog_compiler_pic in
14175 "" | " "*) ;;
14176 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14177 esac
14178 else
14179 lt_prog_compiler_pic=
14180 lt_prog_compiler_can_build_shared=no
14181 fi
14182
14183 fi
14184
14185
14186
14187
14188
14189 #
14190 # Check to make sure the static flag actually works.
14191 #
14192 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14194 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14195 if test ${lt_cv_prog_compiler_static_works+y}
14196 then :
14197 printf %s "(cached) " >&6
14198 else case e in #(
14199 e) lt_cv_prog_compiler_static_works=no
14200 save_LDFLAGS=$LDFLAGS
14201 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14202 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14203 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14204 # The linker can only warn and ignore the option if not recognized
14205 # So say no if there are warnings
14206 if test -s conftest.err; then
14207 # Append any errors to the config.log.
14208 cat conftest.err 1>&5
14209 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14211 if diff conftest.exp conftest.er2 >/dev/null; then
14212 lt_cv_prog_compiler_static_works=yes
14213 fi
14214 else
14215 lt_cv_prog_compiler_static_works=yes
14216 fi
14217 fi
14218 $RM -r conftest*
14219 LDFLAGS=$save_LDFLAGS
14220 ;;
14221 esac
14222 fi
14223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14224 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14225
14226 if test yes = "$lt_cv_prog_compiler_static_works"; then
14227 :
14228 else
14229 lt_prog_compiler_static=
14230 fi
14231
14232
14233
14234 ='-fPIC'
14235 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14236 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'
14237 archive_cmds_need_lc=no
14238 no_undefined_flag=
14239 ;;
14240
14241 *)
14242 dynamic_linker=no
14243 ;;
14244 esac
14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14246 printf "%s\n" "$dynamic_linker" >&6; }
14247 test no = "$dynamic_linker" && can_build_shared=no
14248
14249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14250 if test yes = "$GCC"; then
14251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14252 fi
14253
14254 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14255 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14256 fi
14257
14258 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14259 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14260 fi
14261
14262 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14263 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14264
14265 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14266 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14267
14268 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14269 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14368 printf %s "checking how to hardcode library paths into programs... " >&6; }
14369 hardcode_action=
14370 if test -n "$hardcode_libdir_flag_spec" ||
14371 test -n "$runpath_var" ||
14372 test yes = "$hardcode_automatic"; then
14373
14374 # We can hardcode non-existent directories.
14375 if test no != "$hardcode_direct" &&
14376 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14377 # have to relink, otherwise we might link with an installed library
14378 # when we should be linking with a yet-to-be-installed one
14379 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14380 test no != "$hardcode_minus_L"; then
14381 # Linking always hardcodes the temporary library directory.
14382 hardcode_action=relink
14383 else
14384 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14385 hardcode_action=immediate
14386 fi
14387 else
14388 # We cannot hardcode anything, or else we can only hardcode existing
14389 # directories.
14390 hardcode_action=unsupported
14391 fi
14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14393 printf "%s\n" "$hardcode_action" >&6; }
14394
14395 if test relink = "$hardcode_action" ||
14396 test yes = "$inherit_rpath"; then
14397 # Fast installation is not supported
14398 enable_fast_install=no
14399 elif test yes = "$shlibpath_overrides_runpath" ||
14400 test no = "$enable_shared"; then
14401 # Fast installation is not necessary
14402 enable_fast_install=needless
14403 fi
14404
14405
14406
14407
14408
14409
14410 if test yes != "$enable_dlopen"; then
14411 enable_dlopen=unknown
14412 enable_dlopen_self=unknown
14413 enable_dlopen_self_static=unknown
14414 else
14415 lt_cv_dlopen=no
14416 lt_cv_dlopen_libs=
14417
14418 case $host_os in
14419 beos*)
14420 lt_cv_dlopen=load_add_on
14421 lt_cv_dlopen_libs=
14422 lt_cv_dlopen_self=yes
14423 ;;
14424
14425 mingw* | windows* | pw32* | cegcc*)
14426 lt_cv_dlopen=LoadLibrary
14427 lt_cv_dlopen_libs=
14428 ;;
14429
14430 cygwin*)
14431 lt_cv_dlopen=dlopen
14432 lt_cv_dlopen_libs=
14433 ;;
14434
14435 darwin*)
14436 # if libdl is installed we need to link against it
14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14438 printf %s "checking for dlopen in -ldl... " >&6; }
14439 if test ${ac_cv_lib_dl_dlopen+y}
14440 then :
14441 printf %s "(cached) " >&6
14442 else case e in #(
14443 e) ac_check_lib_save_LIBS=$LIBS
14444 LIBS="-ldl $LIBS"
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447
14448 /* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
14450 builtin and then its argument prototype would still apply.
14451 The 'extern "C"' is for builds by C++ compilers;
14452 although this is not generally supported in C code supporting it here
14453 has little cost and some practical benefit (sr 110532). */
14454 #ifdef __cplusplus
14455 extern "C"
14456 #endif
14457 char dlopen (void);
14458 int
14459 main (void)
14460 {
14461 return dlopen ();
14462 ;
14463 return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_c_try_link "$LINENO"
14467 then :
14468 ac_cv_lib_dl_dlopen=yes
14469 else case e in #(
14470 e) ac_cv_lib_dl_dlopen=no ;;
14471 esac
14472 fi
14473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14474 conftest$ac_exeext conftest.$ac_ext
14475 LIBS=$ac_check_lib_save_LIBS ;;
14476 esac
14477 fi
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14479 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14480 if test "x$ac_cv_lib_dl_dlopen" = xyes
14481 then :
14482 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14483 else case e in #(
14484 e)
14485 lt_cv_dlopen=dyld
14486 lt_cv_dlopen_libs=
14487 lt_cv_dlopen_self=yes
14488 ;;
14489 esac
14490 fi
14491
14492 ;;
14493
14494 tpf*)
14495 # Don't try to run any link tests for TPF. We know it's impossible
14496 # because TPF is a cross-compiler, and we know how we open DSOs.
14497 lt_cv_dlopen=dlopen
14498 lt_cv_dlopen_libs=
14499 lt_cv_dlopen_self=no
14500 ;;
14501
14502 *)
14503 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14504 if test "x$ac_cv_func_shl_load" = xyes
14505 then :
14506 lt_cv_dlopen=shl_load
14507 else case e in #(
14508 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14509 printf %s "checking for shl_load in -ldld... " >&6; }
14510 if test ${ac_cv_lib_dld_shl_load+y}
14511 then :
14512 printf %s "(cached) " >&6
14513 else case e in #(
14514 e) ac_check_lib_save_LIBS=$LIBS
14515 LIBS="-ldld $LIBS"
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518
14519 /* Override any GCC internal prototype to avoid an error.
14520 Use char because int might match the return type of a GCC
14521 builtin and then its argument prototype would still apply.
14522 The 'extern "C"' is for builds by C++ compilers;
14523 although this is not generally supported in C code supporting it here
14524 has little cost and some practical benefit (sr 110532). */
14525 #ifdef __cplusplus
14526 extern "C"
14527 #endif
14528 char shl_load (void);
14529 int
14530 main (void)
14531 {
14532 return shl_load ();
14533 ;
14534 return 0;
14535 }
14536 _ACEOF
14537 if ac_fn_c_try_link "$LINENO"
14538 then :
14539 ac_cv_lib_dld_shl_load=yes
14540 else case e in #(
14541 e) ac_cv_lib_dld_shl_load=no ;;
14542 esac
14543 fi
14544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14545 conftest$ac_exeext conftest.$ac_ext
14546 LIBS=$ac_check_lib_save_LIBS ;;
14547 esac
14548 fi
14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14550 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14551 if test "x$ac_cv_lib_dld_shl_load" = xyes
14552 then :
14553 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14554 else case e in #(
14555 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14556 if test "x$ac_cv_func_dlopen" = xyes
14557 then :
14558 lt_cv_dlopen=dlopen
14559 else case e in #(
14560 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14561 printf %s "checking for dlopen in -ldl... " >&6; }
14562 if test ${ac_cv_lib_dl_dlopen+y}
14563 then :
14564 printf %s "(cached) " >&6
14565 else case e in #(
14566 e) ac_check_lib_save_LIBS=$LIBS
14567 LIBS="-ldl $LIBS"
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570
14571 /* Override any GCC internal prototype to avoid an error.
14572 Use char because int might match the return type of a GCC
14573 builtin and then its argument prototype would still apply.
14574 The 'extern "C"' is for builds by C++ compilers;
14575 although this is not generally supported in C code supporting it here
14576 has little cost and some practical benefit (sr 110532). */
14577 #ifdef __cplusplus
14578 extern "C"
14579 #endif
14580 char dlopen (void);
14581 int
14582 main (void)
14583 {
14584 return dlopen ();
14585 ;
14586 return 0;
14587 }
14588 _ACEOF
14589 if ac_fn_c_try_link "$LINENO"
14590 then :
14591 ac_cv_lib_dl_dlopen=yes
14592 else case e in #(
14593 e) ac_cv_lib_dl_dlopen=no ;;
14594 esac
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14597 conftest$ac_exeext conftest.$ac_ext
14598 LIBS=$ac_check_lib_save_LIBS ;;
14599 esac
14600 fi
14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14602 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14603 if test "x$ac_cv_lib_dl_dlopen" = xyes
14604 then :
14605 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14606 else case e in #(
14607 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14608 printf %s "checking for dlopen in -lsvld... " >&6; }
14609 if test ${ac_cv_lib_svld_dlopen+y}
14610 then :
14611 printf %s "(cached) " >&6
14612 else case e in #(
14613 e) ac_check_lib_save_LIBS=$LIBS
14614 LIBS="-lsvld $LIBS"
14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14617
14618 /* Override any GCC internal prototype to avoid an error.
14619 Use char because int might match the return type of a GCC
14620 builtin and then its argument prototype would still apply.
14621 The 'extern "C"' is for builds by C++ compilers;
14622 although this is not generally supported in C code supporting it here
14623 has little cost and some practical benefit (sr 110532). */
14624 #ifdef __cplusplus
14625 extern "C"
14626 #endif
14627 char dlopen (void);
14628 int
14629 main (void)
14630 {
14631 return dlopen ();
14632 ;
14633 return 0;
14634 }
14635 _ACEOF
14636 if ac_fn_c_try_link "$LINENO"
14637 then :
14638 ac_cv_lib_svld_dlopen=yes
14639 else case e in #(
14640 e) ac_cv_lib_svld_dlopen=no ;;
14641 esac
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14644 conftest$ac_exeext conftest.$ac_ext
14645 LIBS=$ac_check_lib_save_LIBS ;;
14646 esac
14647 fi
14648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14649 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14650 if test "x$ac_cv_lib_svld_dlopen" = xyes
14651 then :
14652 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14653 else case e in #(
14654 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14655 printf %s "checking for dld_link in -ldld... " >&6; }
14656 if test ${ac_cv_lib_dld_dld_link+y}
14657 then :
14658 printf %s "(cached) " >&6
14659 else case e in #(
14660 e) ac_check_lib_save_LIBS=$LIBS
14661 LIBS="-ldld $LIBS"
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664
14665 /* Override any GCC internal prototype to avoid an error.
14666 Use char because int might match the return type of a GCC
14667 builtin and then its argument prototype would still apply.
14668 The 'extern "C"' is for builds by C++ compilers;
14669 although this is not generally supported in C code supporting it here
14670 has little cost and some practical benefit (sr 110532). */
14671 #ifdef __cplusplus
14672 extern "C"
14673 #endif
14674 char dld_link (void);
14675 int
14676 main (void)
14677 {
14678 return dld_link ();
14679 ;
14680 return 0;
14681 }
14682 _ACEOF
14683 if ac_fn_c_try_link "$LINENO"
14684 then :
14685 ac_cv_lib_dld_dld_link=yes
14686 else case e in #(
14687 e) ac_cv_lib_dld_dld_link=no ;;
14688 esac
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14691 conftest$ac_exeext conftest.$ac_ext
14692 LIBS=$ac_check_lib_save_LIBS ;;
14693 esac
14694 fi
14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14696 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14697 if test "x$ac_cv_lib_dld_dld_link" = xyes
14698 then :
14699 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14700 fi
14701
14702 ;;
14703 esac
14704 fi
14705
14706 ;;
14707 esac
14708 fi
14709
14710 ;;
14711 esac
14712 fi
14713
14714 ;;
14715 esac
14716 fi
14717
14718 ;;
14719 esac
14720 fi
14721
14722 ;;
14723 esac
14724
14725 if test no = "$lt_cv_dlopen"; then
14726 enable_dlopen=no
14727 else
14728 enable_dlopen=yes
14729 fi
14730
14731 case $lt_cv_dlopen in
14732 dlopen)
14733 save_CPPFLAGS=$CPPFLAGS
14734 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14735
14736 save_LDFLAGS=$LDFLAGS
14737 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14738
14739 save_LIBS=$LIBS
14740 LIBS="$lt_cv_dlopen_libs $LIBS"
14741
14742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14743 printf %s "checking whether a program can dlopen itself... " >&6; }
14744 if test ${lt_cv_dlopen_self+y}
14745 then :
14746 printf %s "(cached) " >&6
14747 else case e in #(
14748 e) if test yes = "$cross_compiling"; then :
14749 lt_cv_dlopen_self=cross
14750 else
14751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14752 lt_status=$lt_dlunknown
14753 cat > conftest.$ac_ext <<_LT_EOF
14754 #line $LINENO "configure"
14755 #include "confdefs.h"
14756
14757 #if HAVE_DLFCN_H
14758 #include <dlfcn.h>
14759 #endif
14760
14761 #include <stdio.h>
14762
14763 #ifdef RTLD_GLOBAL
14764 # define LT_DLGLOBAL RTLD_GLOBAL
14765 #else
14766 # ifdef DL_GLOBAL
14767 # define LT_DLGLOBAL DL_GLOBAL
14768 # else
14769 # define LT_DLGLOBAL 0
14770 # endif
14771 #endif
14772
14773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14774 find out it does not work in some platform. */
14775 #ifndef LT_DLLAZY_OR_NOW
14776 # ifdef RTLD_LAZY
14777 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14778 # else
14779 # ifdef DL_LAZY
14780 # define LT_DLLAZY_OR_NOW DL_LAZY
14781 # else
14782 # ifdef RTLD_NOW
14783 # define LT_DLLAZY_OR_NOW RTLD_NOW
14784 # else
14785 # ifdef DL_NOW
14786 # define LT_DLLAZY_OR_NOW DL_NOW
14787 # else
14788 # define LT_DLLAZY_OR_NOW 0
14789 # endif
14790 # endif
14791 # endif
14792 # endif
14793 #endif
14794
14795 /* When -fvisibility=hidden is used, assume the code has been annotated
14796 correspondingly for the symbols needed. */
14797 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14798 int fnord (void) __attribute__((visibility("default")));
14799 #endif
14800
14801 int fnord (void) { return 42; }
14802 int main (void)
14803 {
14804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14805 int status = $lt_dlunknown;
14806
14807 if (self)
14808 {
14809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14810 else
14811 {
14812 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14813 else puts (dlerror ());
14814 }
14815 /* dlclose (self); */
14816 }
14817 else
14818 puts (dlerror ());
14819
14820 return status;
14821 }
14822 _LT_EOF
14823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14824 (eval $ac_link) 2>&5
14825 ac_status=$?
14826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14827 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14828 (./conftest; exit; ) >&5 2>/dev/null
14829 lt_status=$?
14830 case x$lt_status in
14831 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14832 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14833 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14834 esac
14835 else :
14836 # compilation failed
14837 lt_cv_dlopen_self=no
14838 fi
14839 fi
14840 rm -fr conftest*
14841
14842 ;;
14843 esac
14844 fi
14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14846 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14847
14848 if test yes = "$lt_cv_dlopen_self"; then
14849 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14851 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14852 if test ${lt_cv_dlopen_self_static+y}
14853 then :
14854 printf %s "(cached) " >&6
14855 else case e in #(
14856 e) if test yes = "$cross_compiling"; then :
14857 lt_cv_dlopen_self_static=cross
14858 else
14859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14860 lt_status=$lt_dlunknown
14861 cat > conftest.$ac_ext <<_LT_EOF
14862 #line $LINENO "configure"
14863 #include "confdefs.h"
14864
14865 #if HAVE_DLFCN_H
14866 #include <dlfcn.h>
14867 #endif
14868
14869 #include <stdio.h>
14870
14871 #ifdef RTLD_GLOBAL
14872 # define LT_DLGLOBAL RTLD_GLOBAL
14873 #else
14874 # ifdef DL_GLOBAL
14875 # define LT_DLGLOBAL DL_GLOBAL
14876 # else
14877 # define LT_DLGLOBAL 0
14878 # endif
14879 #endif
14880
14881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14882 find out it does not work in some platform. */
14883 #ifndef LT_DLLAZY_OR_NOW
14884 # ifdef RTLD_LAZY
14885 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14886 # else
14887 # ifdef DL_LAZY
14888 # define LT_DLLAZY_OR_NOW DL_LAZY
14889 # else
14890 # ifdef RTLD_NOW
14891 # define LT_DLLAZY_OR_NOW RTLD_NOW
14892 # else
14893 # ifdef DL_NOW
14894 # define LT_DLLAZY_OR_NOW DL_NOW
14895 # else
14896 # define LT_DLLAZY_OR_NOW 0
14897 # endif
14898 # endif
14899 # endif
14900 # endif
14901 #endif
14902
14903 /* When -fvisibility=hidden is used, assume the code has been annotated
14904 correspondingly for the symbols needed. */
14905 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14906 int fnord (void) __attribute__((visibility("default")));
14907 #endif
14908
14909 int fnord (void) { return 42; }
14910 int main (void)
14911 {
14912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14913 int status = $lt_dlunknown;
14914
14915 if (self)
14916 {
14917 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14918 else
14919 {
14920 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14921 else puts (dlerror ());
14922 }
14923 /* dlclose (self); */
14924 }
14925 else
14926 puts (dlerror ());
14927
14928 return status;
14929 }
14930 _LT_EOF
14931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14932 (eval $ac_link) 2>&5
14933 ac_status=$?
14934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14935 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14936 (./conftest; exit; ) >&5 2>/dev/null
14937 lt_status=$?
14938 case x$lt_status in
14939 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14940 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14941 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14942 esac
14943 else :
14944 # compilation failed
14945 lt_cv_dlopen_self_static=no
14946 fi
14947 fi
14948 rm -fr conftest*
14949
14950 ;;
14951 esac
14952 fi
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14954 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14955 fi
14956
14957 CPPFLAGS=$save_CPPFLAGS
14958 LDFLAGS=$save_LDFLAGS
14959 LIBS=$save_LIBS
14960 ;;
14961 esac
14962
14963 case $lt_cv_dlopen_self in
14964 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14965 *) enable_dlopen_self=unknown ;;
14966 esac
14967
14968 case $lt_cv_dlopen_self_static in
14969 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14970 *) enable_dlopen_self_static=unknown ;;
14971 esac
14972 fi
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990 striplib=
14991 old_striplib=
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14993 printf %s "checking whether stripping libraries is possible... " >&6; }
14994 if test -z "$STRIP"; then
14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996 printf "%s\n" "no" >&6; }
14997 else
14998 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14999 old_striplib="$STRIP --strip-debug"
15000 striplib="$STRIP --strip-unneeded"
15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15002 printf "%s\n" "yes" >&6; }
15003 else
15004 case $host_os in
15005 darwin*)
15006 # FIXME - insert some real tests, host_os isn't really good enough
15007 striplib="$STRIP -x"
15008 old_striplib="$STRIP -S"
15009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15010 printf "%s\n" "yes" >&6; }
15011 ;;
15012 freebsd*)
15013 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15014 old_striplib="$STRIP --strip-debug"
15015 striplib="$STRIP --strip-unneeded"
15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15017 printf "%s\n" "yes" >&6; }
15018 else
15019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15020 printf "%s\n" "no" >&6; }
15021 fi
15022 ;;
15023 *)
15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025 printf "%s\n" "no" >&6; }
15026 ;;
15027 esac
15028 fi
15029 fi
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042 # Report what library types will actually be built
15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15044 printf %s "checking if libtool supports shared libraries... " >&6; }
15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15046 printf "%s\n" "$can_build_shared" >&6; }
15047
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15049 printf %s "checking whether to build shared libraries... " >&6; }
15050 test no = "$can_build_shared" && enable_shared=no
15051
15052 # On AIX, shared libraries and static libraries use the same namespace, and
15053 # are all built from PIC.
15054 case $host_os in
15055 aix3*)
15056 test yes = "$enable_shared" && enable_static=no
15057 if test -n "$RANLIB"; then
15058 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15059 postinstall_cmds='$RANLIB $lib'
15060 fi
15061 ;;
15062
15063 aix[4-9]*)
15064 if test ia64 != "$host_cpu"; then
15065 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15066 yes,aix,yes) ;; # shared object as lib.so file only
15067 yes,svr4,*) ;; # shared object as lib.so archive member only
15068 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15069 esac
15070 fi
15071 ;;
15072 esac
15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15074 printf "%s\n" "$enable_shared" >&6; }
15075
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15077 printf %s "checking whether to build static libraries... " >&6; }
15078 # Make sure either enable_shared or enable_static is yes.
15079 test yes = "$enable_shared" || enable_static=yes
15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15081 printf "%s\n" "$enable_static" >&6; }
15082
15083
15084
15085
15086 fi
15087 ac_ext=c
15088 ac_cpp='$CPP $CPPFLAGS'
15089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15092
15093 CC=$lt_save_CC
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109 ac_config_commands="$ac_config_commands libtool"
15110
15111
15112
15113
15114 # Only expand once:
15115
15116
15117 # (end lt_init)
15118 # Check whether --enable-largefile was given.
15119 if test ${enable_largefile+y}
15120 then :
15121 enableval=$enable_largefile;
15122 fi
15123 if test "$enable_largefile,$enable_year2038" != no,no
15124 then :
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15126 printf %s "checking for $CC option to enable large file support... " >&6; }
15127 if test ${ac_cv_sys_largefile_opts+y}
15128 then :
15129 printf %s "(cached) " >&6
15130 else case e in #(
15131 e) ac_save_CC="$CC"
15132 ac_opt_found=no
15133 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15134 if test x"$ac_opt" != x"none needed"
15135 then :
15136 CC="$ac_save_CC $ac_opt"
15137 fi
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 #include <sys/types.h>
15141 #ifndef FTYPE
15142 # define FTYPE off_t
15143 #endif
15144 /* Check that FTYPE can represent 2**63 - 1 correctly.
15145 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15146 since some C++ compilers masquerading as C compilers
15147 incorrectly reject 9223372036854775807. */
15148 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15149 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15150 && LARGE_FTYPE % 2147483647 == 1)
15151 ? 1 : -1];
15152 int
15153 main (void)
15154 {
15155
15156 ;
15157 return 0;
15158 }
15159 _ACEOF
15160 if ac_fn_c_try_compile "$LINENO"
15161 then :
15162 if test x"$ac_opt" = x"none needed"
15163 then :
15164 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15165 CC="$CC -DFTYPE=ino_t"
15166 if ac_fn_c_try_compile "$LINENO"
15167 then :
15168
15169 else case e in #(
15170 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15171 if ac_fn_c_try_compile "$LINENO"
15172 then :
15173 ac_opt='-D_FILE_OFFSET_BITS=64'
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15176 esac
15177 fi
15178 rm -f core conftest.err conftest.$ac_objext conftest.beam
15179 fi
15180 ac_cv_sys_largefile_opts=$ac_opt
15181 ac_opt_found=yes
15182 fi
15183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15184 test $ac_opt_found = no || break
15185 done
15186 CC="$ac_save_CC"
15187
15188 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15189 esac
15190 fi
15191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15192 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15193
15194 ac_have_largefile=yes
15195 case $ac_cv_sys_largefile_opts in #(
15196 "none needed") :
15197 ;; #(
15198 "supported through gnulib") :
15199 ;; #(
15200 "support not detected") :
15201 ac_have_largefile=no ;; #(
15202 "-D_FILE_OFFSET_BITS=64") :
15203
15204 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15205 ;; #(
15206 "-D_LARGE_FILES=1") :
15207
15208 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15209 ;; #(
15210 "-n32") :
15211 CC="$CC -n32" ;; #(
15212 *) :
15213 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15214 esac
15215
15216 if test "$enable_year2038" != no
15217 then :
15218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15219 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15220 if test ${ac_cv_sys_year2038_opts+y}
15221 then :
15222 printf %s "(cached) " >&6
15223 else case e in #(
15224 e) ac_save_CPPFLAGS="$CPPFLAGS"
15225 ac_opt_found=no
15226 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
15227 if test x"$ac_opt" != x"none needed"
15228 then :
15229 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15230 fi
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15233
15234 #include <time.h>
15235 /* Check that time_t can represent 2**32 - 1 correctly. */
15236 #define LARGE_TIME_T \\
15237 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15238 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15239 && LARGE_TIME_T % 65537 == 0)
15240 ? 1 : -1];
15241
15242 int
15243 main (void)
15244 {
15245
15246 ;
15247 return 0;
15248 }
15249 _ACEOF
15250 if ac_fn_c_try_compile "$LINENO"
15251 then :
15252 ac_cv_sys_year2038_opts="$ac_opt"
15253 ac_opt_found=yes
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15256 test $ac_opt_found = no || break
15257 done
15258 CPPFLAGS="$ac_save_CPPFLAGS"
15259 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15260 esac
15261 fi
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15263 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15264
15265 ac_have_year2038=yes
15266 case $ac_cv_sys_year2038_opts in #(
15267 "none needed") :
15268 ;; #(
15269 "support not detected") :
15270 ac_have_year2038=no ;; #(
15271 "-D_TIME_BITS=64") :
15272
15273 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15274 ;; #(
15275 "-D__MINGW_USE_VC2005_COMPAT") :
15276
15277 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15278 ;; #(
15279 "-U_USE_32_BIT_TIME_T"*) :
15280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15281 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15282 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15283 will stop working after mid-January 2038. Remove
15284 _USE_32BIT_TIME_T from the compiler flags.
15285 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15286 *) :
15287 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15288 esac
15289
15290 fi
15291
15292 fi
15293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15294 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15295 if test ${ac_cv_func_fseeko_ftello+y}
15296 then :
15297 printf %s "(cached) " >&6
15298 else case e in #(
15299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15301
15302 #if defined __hpux && !defined _LARGEFILE_SOURCE
15303 # include <limits.h>
15304 # if LONG_MAX >> 31 == 0
15305 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15306 # endif
15307 #endif
15308 #include <sys/types.h> /* for off_t */
15309 #include <stdio.h>
15310
15311 int
15312 main (void)
15313 {
15314
15315 int (*fp1) (FILE *, off_t, int) = fseeko;
15316 off_t (*fp2) (FILE *) = ftello;
15317 return fseeko (stdin, 0, 0)
15318 && fp1 (stdin, 0, 0)
15319 && ftello (stdin) >= 0
15320 && fp2 (stdin) >= 0;
15321
15322 ;
15323 return 0;
15324 }
15325 _ACEOF
15326 if ac_fn_c_try_compile "$LINENO"
15327 then :
15328 ac_cv_func_fseeko_ftello=yes
15329 else case e in #(
15330 e) ac_save_CPPFLAGS="$CPPFLAGS"
15331 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334
15335 #if defined __hpux && !defined _LARGEFILE_SOURCE
15336 # include <limits.h>
15337 # if LONG_MAX >> 31 == 0
15338 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15339 # endif
15340 #endif
15341 #include <sys/types.h> /* for off_t */
15342 #include <stdio.h>
15343
15344 int
15345 main (void)
15346 {
15347
15348 int (*fp1) (FILE *, off_t, int) = fseeko;
15349 off_t (*fp2) (FILE *) = ftello;
15350 return fseeko (stdin, 0, 0)
15351 && fp1 (stdin, 0, 0)
15352 && ftello (stdin) >= 0
15353 && fp2 (stdin) >= 0;
15354
15355 ;
15356 return 0;
15357 }
15358 _ACEOF
15359 if ac_fn_c_try_compile "$LINENO"
15360 then :
15361 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15362 else case e in #(
15363 e) ac_cv_func_fseeko_ftello=no ;;
15364 esac
15365 fi
15366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15367 esac
15368 fi
15369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15370 esac
15371 fi
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15373 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15374 if test "$ac_cv_func_fseeko_ftello" != no
15375 then :
15376
15377 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15378
15379 fi
15380 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15381 then :
15382
15383 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15384
15385 fi
15386
15387 ac_header_dirent=no
15388 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15389 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15391 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15392 if eval test \${$as_ac_Header+y}
15393 then :
15394 printf %s "(cached) " >&6
15395 else case e in #(
15396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 #include <sys/types.h>
15399 #include <$ac_hdr>
15400
15401 int
15402 main (void)
15403 {
15404 if ((DIR *) 0)
15405 return 0;
15406 ;
15407 return 0;
15408 }
15409 _ACEOF
15410 if ac_fn_c_try_compile "$LINENO"
15411 then :
15412 eval "$as_ac_Header=yes"
15413 else case e in #(
15414 e) eval "$as_ac_Header=no" ;;
15415 esac
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15418 esac
15419 fi
15420 eval ac_res=\$$as_ac_Header
15421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15422 printf "%s\n" "$ac_res" >&6; }
15423 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15424 then :
15425 cat >>confdefs.h <<_ACEOF
15426 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15427 _ACEOF
15428
15429 ac_header_dirent=$ac_hdr; break
15430 fi
15431
15432 done
15433 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15434 if test $ac_header_dirent = dirent.h; then
15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15436 printf %s "checking for library containing opendir... " >&6; }
15437 if test ${ac_cv_search_opendir+y}
15438 then :
15439 printf %s "(cached) " >&6
15440 else case e in #(
15441 e) ac_func_search_save_LIBS=$LIBS
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444
15445 /* Override any GCC internal prototype to avoid an error.
15446 Use char because int might match the return type of a GCC
15447 builtin and then its argument prototype would still apply.
15448 The 'extern "C"' is for builds by C++ compilers;
15449 although this is not generally supported in C code supporting it here
15450 has little cost and some practical benefit (sr 110532). */
15451 #ifdef __cplusplus
15452 extern "C"
15453 #endif
15454 char opendir (void);
15455 int
15456 main (void)
15457 {
15458 return opendir ();
15459 ;
15460 return 0;
15461 }
15462 _ACEOF
15463 for ac_lib in '' dir
15464 do
15465 if test -z "$ac_lib"; then
15466 ac_res="none required"
15467 else
15468 ac_res=-l$ac_lib
15469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15470 fi
15471 if ac_fn_c_try_link "$LINENO"
15472 then :
15473 ac_cv_search_opendir=$ac_res
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15476 conftest$ac_exeext
15477 if test ${ac_cv_search_opendir+y}
15478 then :
15479 break
15480 fi
15481 done
15482 if test ${ac_cv_search_opendir+y}
15483 then :
15484
15485 else case e in #(
15486 e) ac_cv_search_opendir=no ;;
15487 esac
15488 fi
15489 rm conftest.$ac_ext
15490 LIBS=$ac_func_search_save_LIBS ;;
15491 esac
15492 fi
15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15494 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15495 ac_res=$ac_cv_search_opendir
15496 if test "$ac_res" != no
15497 then :
15498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15499
15500 fi
15501
15502 else
15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15504 printf %s "checking for library containing opendir... " >&6; }
15505 if test ${ac_cv_search_opendir+y}
15506 then :
15507 printf %s "(cached) " >&6
15508 else case e in #(
15509 e) ac_func_search_save_LIBS=$LIBS
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h. */
15512
15513 /* Override any GCC internal prototype to avoid an error.
15514 Use char because int might match the return type of a GCC
15515 builtin and then its argument prototype would still apply.
15516 The 'extern "C"' is for builds by C++ compilers;
15517 although this is not generally supported in C code supporting it here
15518 has little cost and some practical benefit (sr 110532). */
15519 #ifdef __cplusplus
15520 extern "C"
15521 #endif
15522 char opendir (void);
15523 int
15524 main (void)
15525 {
15526 return opendir ();
15527 ;
15528 return 0;
15529 }
15530 _ACEOF
15531 for ac_lib in '' x
15532 do
15533 if test -z "$ac_lib"; then
15534 ac_res="none required"
15535 else
15536 ac_res=-l$ac_lib
15537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15538 fi
15539 if ac_fn_c_try_link "$LINENO"
15540 then :
15541 ac_cv_search_opendir=$ac_res
15542 fi
15543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15544 conftest$ac_exeext
15545 if test ${ac_cv_search_opendir+y}
15546 then :
15547 break
15548 fi
15549 done
15550 if test ${ac_cv_search_opendir+y}
15551 then :
15552
15553 else case e in #(
15554 e) ac_cv_search_opendir=no ;;
15555 esac
15556 fi
15557 rm conftest.$ac_ext
15558 LIBS=$ac_func_search_save_LIBS ;;
15559 esac
15560 fi
15561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15562 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15563 ac_res=$ac_cv_search_opendir
15564 if test "$ac_res" != no
15565 then :
15566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15567
15568 fi
15569
15570 fi
15571
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15573 printf %s "checking whether closedir returns void... " >&6; }
15574 if test ${ac_cv_func_closedir_void+y}
15575 then :
15576 printf %s "(cached) " >&6
15577 else case e in #(
15578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15580
15581 #include <$ac_header_dirent>
15582
15583 int
15584 main (void)
15585 {
15586
15587 return closedir(0);
15588
15589 ;
15590 return 0;
15591 }
15592 _ACEOF
15593 if ac_fn_c_try_compile "$LINENO"
15594 then :
15595 ac_cv_func_closedir_void=no
15596 else case e in #(
15597 e) ac_cv_func_closedir_void=yes ;;
15598 esac
15599 fi
15600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15601 esac
15602 fi
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15604 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15605 if test $ac_cv_func_closedir_void = yes; then
15606
15607 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15608
15609 fi
15610
15611 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15612 if test "x$ac_cv_header_assert_h" = xyes
15613 then :
15614 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15615
15616 fi
15617 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15618 if test "x$ac_cv_header_float_h" = xyes
15619 then :
15620 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15621
15622 fi
15623 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15624 if test "x$ac_cv_header_limits_h" = xyes
15625 then :
15626 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15627
15628 fi
15629 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15630 if test "x$ac_cv_header_pwd_h" = xyes
15631 then :
15632 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15633
15634 fi
15635 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15636 if test "x$ac_cv_header_stdlib_h" = xyes
15637 then :
15638 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15639
15640 fi
15641 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15642 if test "x$ac_cv_header_sys_param_h" = xyes
15643 then :
15644 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15645
15646 fi
15647
15648 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15649 if test "x$ac_cv_func_putenv" = xyes
15650 then :
15651 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15652
15653 fi
15654
15655 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15656 if test "x$ac_cv_func_getcwd" = xyes
15657 then :
15658 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15659
15660 fi
15661 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15662 if test "x$ac_cv_func_memcmp" = xyes
15663 then :
15664 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15665
15666 fi
15667 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15668 if test "x$ac_cv_func_memcpy" = xyes
15669 then :
15670 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15671
15672 fi
15673 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15674 if test "x$ac_cv_func_mkstemp" = xyes
15675 then :
15676 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15677
15678 fi
15679 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15680 if test "x$ac_cv_func_mktemp" = xyes
15681 then :
15682 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15683
15684 fi
15685 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15686 if test "x$ac_cv_func_strchr" = xyes
15687 then :
15688 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15689
15690 fi
15691 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15692 if test "x$ac_cv_func_strrchr" = xyes
15693 then :
15694 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15695
15696 fi
15697
15698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15699 printf %s "checking for an ANSI C-conforming const... " >&6; }
15700 if test ${ac_cv_c_const+y}
15701 then :
15702 printf %s "(cached) " >&6
15703 else case e in #(
15704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706
15707 int
15708 main (void)
15709 {
15710
15711 #ifndef __cplusplus
15712 /* Ultrix mips cc rejects this sort of thing. */
15713 typedef int charset[2];
15714 const charset cs = { 0, 0 };
15715 /* SunOS 4.1.1 cc rejects this. */
15716 char const *const *pcpcc;
15717 char **ppc;
15718 /* NEC SVR4.0.2 mips cc rejects this. */
15719 struct point {int x, y;};
15720 static struct point const zero = {0,0};
15721 /* IBM XL C 1.02.0.0 rejects this.
15722 It does not let you subtract one const X* pointer from another in
15723 an arm of an if-expression whose if-part is not a constant
15724 expression */
15725 const char *g = "string";
15726 pcpcc = &g + (g ? g-g : 0);
15727 /* HPUX 7.0 cc rejects these. */
15728 ++pcpcc;
15729 ppc = (char**) pcpcc;
15730 pcpcc = (char const *const *) ppc;
15731 { /* SCO 3.2v4 cc rejects this sort of thing. */
15732 char tx;
15733 char *t = &tx;
15734 char const *s = 0 ? (char *) 0 : (char const *) 0;
15735
15736 *t++ = 0;
15737 if (s) return 0;
15738 }
15739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15740 int x[] = {25, 17};
15741 const int *foo = &x[0];
15742 ++foo;
15743 }
15744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15745 typedef const int *iptr;
15746 iptr p = 0;
15747 ++p;
15748 }
15749 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15751 struct s { int j; const int *ap[3]; } bx;
15752 struct s *b = &bx; b->j = 5;
15753 }
15754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15755 const int foo = 10;
15756 if (!foo) return 0;
15757 }
15758 return !cs[0] && !zero.x;
15759 #endif
15760
15761 ;
15762 return 0;
15763 }
15764 _ACEOF
15765 if ac_fn_c_try_compile "$LINENO"
15766 then :
15767 ac_cv_c_const=yes
15768 else case e in #(
15769 e) ac_cv_c_const=no ;;
15770 esac
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15773 esac
15774 fi
15775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15776 printf "%s\n" "$ac_cv_c_const" >&6; }
15777 if test $ac_cv_c_const = no; then
15778
15779 printf "%s\n" "#define const /**/" >>confdefs.h
15780
15781 fi
15782
15783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15784 printf %s "checking for inline... " >&6; }
15785 if test ${ac_cv_c_inline+y}
15786 then :
15787 printf %s "(cached) " >&6
15788 else case e in #(
15789 e) ac_cv_c_inline=no
15790 for ac_kw in inline __inline__ __inline; do
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793 #ifndef __cplusplus
15794 typedef int foo_t;
15795 static $ac_kw foo_t static_foo (void) {return 0; }
15796 $ac_kw foo_t foo (void) {return 0; }
15797 #endif
15798
15799 _ACEOF
15800 if ac_fn_c_try_compile "$LINENO"
15801 then :
15802 ac_cv_c_inline=$ac_kw
15803 fi
15804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15805 test "$ac_cv_c_inline" != no && break
15806 done
15807 ;;
15808 esac
15809 fi
15810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15811 printf "%s\n" "$ac_cv_c_inline" >&6; }
15812
15813 case $ac_cv_c_inline in
15814 inline | yes) ;;
15815 *)
15816 case $ac_cv_c_inline in
15817 no) ac_val=;;
15818 *) ac_val=$ac_cv_c_inline;;
15819 esac
15820 cat >>confdefs.h <<_ACEOF
15821 #ifndef __cplusplus
15822 #define inline $ac_val
15823 #endif
15824 _ACEOF
15825 ;;
15826 esac
15827
15828 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15829 if test "x$ac_cv_type_size_t" = xyes
15830 then :
15831
15832 else case e in #(
15833 e)
15834 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15835 ;;
15836 esac
15837 fi
15838
15839 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15840 case $ac_cv_c_int64_t in #(
15841 no|yes) ;; #(
15842 *)
15843
15844 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15845 ;;
15846 esac
15847
15848 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15849 case $ac_cv_c_uint64_t in #(
15850 no|yes) ;; #(
15851 *)
15852
15853 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15854
15855
15856 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15857 ;;
15858 esac
15859
15860 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15861 *':no:'*) :
15862 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15863 *) :
15864 ;;
15865 esac
15866 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15867 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15868 if test "x$ac_cv_have_decl_isascii" = xyes
15869 then :
15870 ac_have_decl=1
15871 else case e in #(
15872 e) ac_have_decl=0 ;;
15873 esac
15874 fi
15875 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15876
15877 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15878 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15879 then :
15880
15881 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15882
15883
15884 fi
15885
15886
15887
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
15889 printf %s "checking whether char is unsigned... " >&6; }
15890 if test ${ac_cv_c_char_unsigned+y}
15891 then :
15892 printf %s "(cached) " >&6
15893 else case e in #(
15894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15896 $ac_includes_default
15897 int
15898 main (void)
15899 {
15900 static int test_array [1 - 2 * !(((char) -1) < 0)];
15901 test_array [0] = 0;
15902 return test_array [0];
15903
15904 ;
15905 return 0;
15906 }
15907 _ACEOF
15908 if ac_fn_c_try_compile "$LINENO"
15909 then :
15910 ac_cv_c_char_unsigned=no
15911 else case e in #(
15912 e) ac_cv_c_char_unsigned=yes ;;
15913 esac
15914 fi
15915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15916 esac
15917 fi
15918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
15919 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
15920 if test $ac_cv_c_char_unsigned = yes; then
15921 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
15922
15923 fi
15924
15925 # The cast to long int works around a bug in the HP C Compiler
15926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15927 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
15928 # This bug is HP SR number 8606223364.
15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15930 printf %s "checking size of long... " >&6; }
15931 if test ${ac_cv_sizeof_long+y}
15932 then :
15933 printf %s "(cached) " >&6
15934 else case e in #(
15935 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
15936 then :
15937
15938 else case e in #(
15939 e) if test "$ac_cv_type_long" = yes; then
15940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15941 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15942 as_fn_error 77 "cannot compute sizeof (long)
15943 See 'config.log' for more details" "$LINENO" 5; }
15944 else
15945 ac_cv_sizeof_long=0
15946 fi ;;
15947 esac
15948 fi
15949 ;;
15950 esac
15951 fi
15952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15953 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
15954
15955
15956
15957 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
15958
15959
15960
15961 ac_config_headers="$ac_config_headers config.h"
15962
15963
15964
15965
15966 printf "%s\n" "#define TL_VERSION \"TeX Live 2026\"" >>confdefs.h
15967
15968
15969 kpse_save_CPPFLAGS=$CPPFLAGS
15970 kpse_save_LIBS=$LIBS
15971
15972 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15973 kpse_BLD=`(cd "./../../." && pwd)`
15974 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15975
15976 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15977 : ${CONFIG_LT=./config.lt}
15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15979 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15980 as_write_fail=0
15981 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15982 #! $SHELL
15983 # Generated by $as_me.
15984 # Run this file to recreate a libtool stub with the current configuration.
15985 SHELL=\${CONFIG_SHELL-$SHELL}
15986 export SHELL
15987 _ASEOF
15988 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15989 ## -------------------- ##
15990 ## M4sh Initialization. ##
15991 ## -------------------- ##
15992
15993 # Be more Bourne compatible
15994 DUALCASE=1; export DUALCASE # for MKS sh
15995 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15996 then :
15997 emulate sh
15998 NULLCMD=:
15999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16000 # is contrary to our usage. Disable this feature.
16001 alias -g '${1+"$@"}'='"$@"'
16002 setopt NO_GLOB_SUBST
16003 else case e in #(
16004 e) case `(set -o) 2>/dev/null` in #(
16005 *posix*) :
16006 set -o posix ;; #(
16007 *) :
16008 ;;
16009 esac ;;
16010 esac
16011 fi
16012
16013
16014
16015 # Reset variables that may have inherited troublesome values from
16016 # the environment.
16017
16018 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16019 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16020 # side effect of setting IFS to empty, thus disabling word splitting.)
16021 # Quoting is to prevent editors from complaining about space-tab.
16022 as_nl='
16023 '
16024 export as_nl
16025 IFS=" "" $as_nl"
16026
16027 PS1='$ '
16028 PS2='> '
16029 PS4='+ '
16030
16031 # Ensure predictable behavior from utilities with locale-dependent output.
16032 LC_ALL=C
16033 export LC_ALL
16034 LANGUAGE=C
16035 export LANGUAGE
16036
16037 # We cannot yet rely on "unset" to work, but we need these variables
16038 # to be unset--not just set to an empty or harmless value--now, to
16039 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16040 # also avoids known problems related to "unset" and subshell syntax
16041 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16042 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16043 do eval test \${$as_var+y} \
16044 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16045 done
16046
16047 # Ensure that fds 0, 1, and 2 are open.
16048 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16049 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16050 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16051
16052 # The user is always right.
16053 if ${PATH_SEPARATOR+false} :; then
16054 PATH_SEPARATOR=:
16055 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16056 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16057 PATH_SEPARATOR=';'
16058 }
16059 fi
16060
16061
16062 # Find who we are. Look in the path if we contain no directory separator.
16063 as_myself=
16064 case $0 in #((
16065 *[\\/]* ) as_myself=$0 ;;
16066 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16067 for as_dir in $PATH
16068 do
16069 IFS=$as_save_IFS
16070 case $as_dir in #(((
16071 '') as_dir=./ ;;
16072 */) ;;
16073 *) as_dir=$as_dir/ ;;
16074 esac
16075 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16076 done
16077 IFS=$as_save_IFS
16078
16079 ;;
16080 esac
16081 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16082 # in which case we are not to be found in the path.
16083 if test "x$as_myself" = x; then
16084 as_myself=$0
16085 fi
16086 if test ! -f "$as_myself"; then
16087 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16088 exit 1
16089 fi
16090
16091
16092
16093 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16094 # ----------------------------------------
16095 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16096 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16097 # script with STATUS, using 1 if that was 0.
16098 as_fn_error ()
16099 {
16100 as_status=$1; test $as_status -eq 0 && as_status=1
16101 if test "$4"; then
16102 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16104 fi
16105 printf "%s\n" "$as_me: error: $2" >&2
16106 as_fn_exit $as_status
16107 } # as_fn_error
16108
16109
16110 # as_fn_set_status STATUS
16111 # -----------------------
16112 # Set $? to STATUS, without forking.
16113 as_fn_set_status ()
16114 {
16115 return $1
16116 } # as_fn_set_status
16117
16118 # as_fn_exit STATUS
16119 # -----------------
16120 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16121 as_fn_exit ()
16122 {
16123 set +e
16124 as_fn_set_status $1
16125 exit $1
16126 } # as_fn_exit
16127
16128 # as_fn_unset VAR
16129 # ---------------
16130 # Portably unset VAR.
16131 as_fn_unset ()
16132 {
16133 { eval $1=; unset $1;}
16134 }
16135 as_unset=as_fn_unset
16136
16137 # as_fn_append VAR VALUE
16138 # ----------------------
16139 # Append the text in VALUE to the end of the definition contained in VAR. Take
16140 # advantage of any shell optimizations that allow amortized linear growth over
16141 # repeated appends, instead of the typical quadratic growth present in naive
16142 # implementations.
16143 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16144 then :
16145 eval 'as_fn_append ()
16146 {
16147 eval $1+=\$2
16148 }'
16149 else case e in #(
16150 e) as_fn_append ()
16151 {
16152 eval $1=\$$1\$2
16153 } ;;
16154 esac
16155 fi # as_fn_append
16156
16157 # as_fn_arith ARG...
16158 # ------------------
16159 # Perform arithmetic evaluation on the ARGs, and store the result in the
16160 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16161 # must be portable across $(()) and expr.
16162 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16163 then :
16164 eval 'as_fn_arith ()
16165 {
16166 as_val=$(( $* ))
16167 }'
16168 else case e in #(
16169 e) as_fn_arith ()
16170 {
16171 as_val=`expr "$@" || test $? -eq 1`
16172 } ;;
16173 esac
16174 fi # as_fn_arith
16175
16176
16177 if expr a : '\(a\)' >/dev/null 2>&1 &&
16178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16179 as_expr=expr
16180 else
16181 as_expr=false
16182 fi
16183
16184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16185 as_basename=basename
16186 else
16187 as_basename=false
16188 fi
16189
16190 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16191 as_dirname=dirname
16192 else
16193 as_dirname=false
16194 fi
16195
16196 as_me=`$as_basename -- "$0" ||
16197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16198 X"$0" : 'X\(//\)$' \| \
16199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16200 printf "%s\n" X/"$0" |
16201 sed '/^.*\/\([^/][^/]*\)\/*$/{
16202 s//\1/
16203 q
16204 }
16205 /^X\/\(\/\/\)$/{
16206 s//\1/
16207 q
16208 }
16209 /^X\/\(\/\).*/{
16210 s//\1/
16211 q
16212 }
16213 s/.*/./; q'`
16214
16215 # Avoid depending upon Character Ranges.
16216 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16217 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16218 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16219 as_cr_digits='0123456789'
16220 as_cr_alnum=$as_cr_Letters$as_cr_digits
16221
16222
16223 # Determine whether it's possible to make 'echo' print without a newline.
16224 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16225 # for compatibility with existing Makefiles.
16226 ECHO_C= ECHO_N= ECHO_T=
16227 case `echo -n x` in #(((((
16228 -n*)
16229 case `echo 'xy\c'` in
16230 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16231 xy) ECHO_C='\c';;
16232 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16233 ECHO_T=' ';;
16234 esac;;
16235 *)
16236 ECHO_N='-n';;
16237 esac
16238
16239 # For backward compatibility with old third-party macros, we provide
16240 # the shell variables $as_echo and $as_echo_n. New code should use
16241 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16242 as_echo='printf %s\n'
16243 as_echo_n='printf %s'
16244
16245 rm -f conf$$ conf$$.exe conf$$.file
16246 if test -d conf$$.dir; then
16247 rm -f conf$$.dir/conf$$.file
16248 else
16249 rm -f conf$$.dir
16250 mkdir conf$$.dir 2>/dev/null
16251 fi
16252 if (echo >conf$$.file) 2>/dev/null; then
16253 if ln -s conf$$.file conf$$ 2>/dev/null; then
16254 as_ln_s='ln -s'
16255 # ... but there are two gotchas:
16256 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16257 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16258 # In both cases, we have to default to 'cp -pR'.
16259 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16260 as_ln_s='cp -pR'
16261 elif ln conf$$.file conf$$ 2>/dev/null; then
16262 as_ln_s=ln
16263 else
16264 as_ln_s='cp -pR'
16265 fi
16266 else
16267 as_ln_s='cp -pR'
16268 fi
16269 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16270 rmdir conf$$.dir 2>/dev/null
16271
16272
16273 # as_fn_mkdir_p
16274 # -------------
16275 # Create "$as_dir" as a directory, including parents if necessary.
16276 as_fn_mkdir_p ()
16277 {
16278
16279 case $as_dir in #(
16280 -*) as_dir=./$as_dir;;
16281 esac
16282 test -d "$as_dir" || eval $as_mkdir_p || {
16283 as_dirs=
16284 while :; do
16285 case $as_dir in #(
16286 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16287 *) as_qdir=$as_dir;;
16288 esac
16289 as_dirs="'$as_qdir' $as_dirs"
16290 as_dir=`$as_dirname -- "$as_dir" ||
16291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16292 X"$as_dir" : 'X\(//\)[^/]' \| \
16293 X"$as_dir" : 'X\(//\)$' \| \
16294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16295 printf "%s\n" X"$as_dir" |
16296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16297 s//\1/
16298 q
16299 }
16300 /^X\(\/\/\)[^/].*/{
16301 s//\1/
16302 q
16303 }
16304 /^X\(\/\/\)$/{
16305 s//\1/
16306 q
16307 }
16308 /^X\(\/\).*/{
16309 s//\1/
16310 q
16311 }
16312 s/.*/./; q'`
16313 test -d "$as_dir" && break
16314 done
16315 test -z "$as_dirs" || eval "mkdir $as_dirs"
16316 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16317
16318
16319 } # as_fn_mkdir_p
16320 if mkdir -p . 2>/dev/null; then
16321 as_mkdir_p='mkdir -p "$as_dir"'
16322 else
16323 test -d ./-p && rmdir ./-p
16324 as_mkdir_p=false
16325 fi
16326
16327
16328 # as_fn_executable_p FILE
16329 # -----------------------
16330 # Test if FILE is an executable regular file.
16331 as_fn_executable_p ()
16332 {
16333 test -f "$1" && test -x "$1"
16334 } # as_fn_executable_p
16335 as_test_x='test -x'
16336 as_executable_p=as_fn_executable_p
16337
16338 # Sed expression to map a string onto a valid CPP name.
16339 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16340 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16341
16342 # Sed expression to map a string onto a valid variable name.
16343 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16344 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16345
16346
16347 exec 6>&1
16348 ## --------------------------------- ##
16349 ## Main body of "$CONFIG_LT" script. ##
16350 ## --------------------------------- ##
16351 _ASEOF
16352 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16353
16354 cat >>"$CONFIG_LT" <<\_LTEOF
16355 lt_cl_silent=false
16356 exec 5>>config.log
16357 {
16358 echo
16359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16360 ## Running $as_me. ##
16361 _ASBOX
16362 } >&5
16363
16364 lt_cl_help="\
16365 '$as_me' creates a local libtool stub from the current configuration,
16366 for use in further configure time tests before the real libtool is
16367 generated.
16368
16369 Usage: $0 [OPTIONS]
16370
16371 -h, --help print this help, then exit
16372 -V, --version print version number, then exit
16373 -q, --quiet do not print progress messages
16374 -d, --debug don't remove temporary files
16375
16376 Report bugs to <[email protected]>."
16377
16378 lt_cl_version="\
16379 dtl (TeX Live) config.lt 0.6.0
16380 configured by $0, generated by GNU Autoconf 2.72.
16381
16382 Copyright (C) 2024 Free Software Foundation, Inc.
16383 This config.lt script is free software; the Free Software Foundation
16384 gives unlimited permission to copy, distribute and modify it."
16385
16386 while test 0 != $#
16387 do
16388 case $1 in
16389 --version | --v* | -V )
16390 echo "$lt_cl_version"; exit 0 ;;
16391 --help | --h* | -h )
16392 echo "$lt_cl_help"; exit 0 ;;
16393 --debug | --d* | -d )
16394 debug=: ;;
16395 --quiet | --q* | --silent | --s* | -q )
16396 lt_cl_silent=: ;;
16397
16398 -*) as_fn_error $? "unrecognized option: $1
16399 Try '$0 --help' for more information." "$LINENO" 5 ;;
16400
16401 *) as_fn_error $? "unrecognized argument: $1
16402 Try '$0 --help' for more information." "$LINENO" 5 ;;
16403 esac
16404 shift
16405 done
16406
16407 if $lt_cl_silent; then
16408 exec 6>/dev/null
16409 fi
16410 _LTEOF
16411
16412 cat >>"$CONFIG_LT" <<_LTEOF
16413
16414
16415 # The HP-UX ksh and POSIX shell print the target directory to stdout
16416 # if CDPATH is set.
16417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16418
16419 sed_quote_subst='$sed_quote_subst'
16420 double_quote_subst='$double_quote_subst'
16421 delay_variable_subst='$delay_variable_subst'
16422 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16423 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16424 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16425 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16426 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16427 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16428 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16429 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16430 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16431 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16432 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16433 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16434 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16435 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16436 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16437 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16438 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16439 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16440 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16441 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16442 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16443 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16444 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16445 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16446 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16447 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16448 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16449 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16450 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16451 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16452 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16453 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16454 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16455 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16456 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16457 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16458 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16459 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16460 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16461 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16462 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16463 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16464 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16465 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16466 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16467 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16468 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16469 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16470 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16471 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16472 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16473 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16474 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16475 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16476 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16477 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16478 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16479 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16480 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16481 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16482 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16483 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"`'
16484 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16485 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16486 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16487 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16488 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16489 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16490 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16491 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16492 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16493 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16494 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16495 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16496 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16497 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16498 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16499 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16500 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16501 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16502 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16503 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16504 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16505 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16506 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16507 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16508 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16509 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16510 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16511 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16512 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16513 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16514 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16515 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16516 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16517 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16518 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16519 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16520 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16521 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16522 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16523 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16524 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16525 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16526 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16527 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16528 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16529 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16530 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16531 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16532 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16533 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16534 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16535 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16536 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16537 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16538 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16539 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16540 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16541 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16542 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16543 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16544 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16545 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16546 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16547 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16548 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16549 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16550 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16551 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16552 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16553 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16554 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16555 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16556 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16557 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16558 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16559 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16560
16561 LTCC='$LTCC'
16562 LTCFLAGS='$LTCFLAGS'
16563 compiler='$compiler_DEFAULT'
16564
16565 # A function that is used when there is no print builtin or printf.
16566 func_fallback_echo ()
16567 {
16568 eval 'cat <<_LTECHO_EOF
16569 \$1
16570 _LTECHO_EOF'
16571 }
16572
16573 # Quote evaled strings.
16574 for var in AS \
16575 DLLTOOL \
16576 OBJDUMP \
16577 SHELL \
16578 ECHO \
16579 PATH_SEPARATOR \
16580 SED \
16581 GREP \
16582 EGREP \
16583 FGREP \
16584 LD \
16585 NM \
16586 LN_S \
16587 lt_SP2NL \
16588 lt_NL2SP \
16589 reload_flag \
16590 FILECMD \
16591 deplibs_check_method \
16592 file_magic_cmd \
16593 file_magic_glob \
16594 want_nocaseglob \
16595 sharedlib_from_linklib_cmd \
16596 AR \
16597 archiver_list_spec \
16598 STRIP \
16599 RANLIB \
16600 CC \
16601 CFLAGS \
16602 compiler \
16603 lt_cv_sys_global_symbol_pipe \
16604 lt_cv_sys_global_symbol_to_cdecl \
16605 lt_cv_sys_global_symbol_to_import \
16606 lt_cv_sys_global_symbol_to_c_name_address \
16607 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16608 lt_cv_nm_interface \
16609 nm_file_list_spec \
16610 lt_cv_truncate_bin \
16611 lt_prog_compiler_no_builtin_flag \
16612 lt_prog_compiler_pic \
16613 lt_prog_compiler_wl \
16614 lt_prog_compiler_static \
16615 lt_cv_prog_compiler_c_o \
16616 need_locks \
16617 MANIFEST_TOOL \
16618 DSYMUTIL \
16619 NMEDIT \
16620 LIPO \
16621 OTOOL \
16622 OTOOL64 \
16623 shrext_cmds \
16624 export_dynamic_flag_spec \
16625 whole_archive_flag_spec \
16626 compiler_needs_object \
16627 with_gnu_ld \
16628 allow_undefined_flag \
16629 no_undefined_flag \
16630 hardcode_libdir_flag_spec \
16631 hardcode_libdir_separator \
16632 exclude_expsyms \
16633 include_expsyms \
16634 file_list_spec \
16635 variables_saved_for_relink \
16636 libname_spec \
16637 library_names_spec \
16638 soname_spec \
16639 install_override_mode \
16640 finish_eval \
16641 old_striplib \
16642 striplib; do
16643 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16644 *[\\\\\\\`\\"\\\$]*)
16645 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16646 ;;
16647 *)
16648 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16649 ;;
16650 esac
16651 done
16652
16653 # Double-quote double-evaled strings.
16654 for var in reload_cmds \
16655 old_postinstall_cmds \
16656 old_postuninstall_cmds \
16657 old_archive_cmds \
16658 extract_expsyms_cmds \
16659 old_archive_from_new_cmds \
16660 old_archive_from_expsyms_cmds \
16661 archive_cmds \
16662 archive_expsym_cmds \
16663 module_cmds \
16664 module_expsym_cmds \
16665 export_symbols_cmds \
16666 prelink_cmds \
16667 postlink_cmds \
16668 postinstall_cmds \
16669 postuninstall_cmds \
16670 finish_cmds \
16671 sys_lib_search_path_spec \
16672 configure_time_dlsearch_path \
16673 configure_time_lt_sys_library_path; do
16674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16675 *[\\\\\\\`\\"\\\$]*)
16676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16677 ;;
16678 *)
16679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16680 ;;
16681 esac
16682 done
16683
16684 ac_aux_dir='$ac_aux_dir'
16685
16686 # See if we are running on zsh, and set the options that allow our
16687 # commands through without removal of \ escapes INIT.
16688 if test -n "\${ZSH_VERSION+set}"; then
16689 setopt NO_GLOB_SUBST
16690 fi
16691
16692
16693 PACKAGE='$PACKAGE'
16694 VERSION='$VERSION'
16695 RM='$RM'
16696 ofile='$ofile'
16697
16698
16699
16700 _LTEOF
16701
16702 cat >>"$CONFIG_LT" <<\_LTEOF
16703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16704 printf "%s\n" "$as_me: creating $ofile" >&6;}
16705
16706
16707 # See if we are running on zsh, and set the options that allow our
16708 # commands through without removal of \ escapes.
16709 if test -n "${ZSH_VERSION+set}"; then
16710 setopt NO_GLOB_SUBST
16711 fi
16712
16713 cfgfile=${ofile}T
16714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16715 $RM "$cfgfile"
16716
16717 cat <<_LT_EOF >> "$cfgfile"
16718 #! $SHELL
16719 # Generated automatically by $as_me ($PACKAGE) $VERSION
16720 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16721
16722 # Provide generalized library-building support services.
16723 # Written by Gordon Matzigkeit, 1996
16724
16725 # Copyright (C) 2024 Free Software Foundation, Inc.
16726 # This is free software; see the source for copying conditions. There is NO
16727 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16728
16729 # GNU Libtool is free software; you can redistribute it and/or modify
16730 # it under the terms of the GNU General Public License as published by
16731 # the Free Software Foundation; either version 2 of the License, or
16732 # (at your option) any later version.
16733 #
16734 # As a special exception to the GNU General Public License, if you
16735 # distribute this file as part of a program or library that is built
16736 # using GNU Libtool, you may include this file under the same
16737 # distribution terms that you use for the rest of that program.
16738 #
16739 # GNU Libtool is distributed in the hope that it will be useful, but
16740 # WITHOUT ANY WARRANTY; without even the implied warranty of
16741 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16742 # GNU General Public License for more details.
16743 #
16744 # You should have received a copy of the GNU General Public License
16745 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16746
16747
16748 # The names of the tagged configurations supported by this script.
16749 available_tags=''
16750
16751 # Configured defaults for sys_lib_dlsearch_path munging.
16752 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16753
16754 # ### BEGIN LIBTOOL CONFIG
16755
16756 # Which release of libtool.m4 was used?
16757 macro_version=$macro_version
16758 macro_revision=$macro_revision
16759
16760 # Assembler program.
16761 AS=$lt_AS
16762
16763 # DLL creation program.
16764 DLLTOOL=$lt_DLLTOOL
16765
16766 # Object dumper program.
16767 OBJDUMP=$lt_OBJDUMP
16768
16769 # Whether or not to build shared libraries.
16770 build_libtool_libs=$enable_shared
16771
16772 # Whether or not to build static libraries.
16773 build_old_libs=$enable_static
16774
16775 # What type of objects to build.
16776 pic_mode=$pic_mode
16777
16778 # Whether or not to optimize for fast installation.
16779 fast_install=$enable_fast_install
16780
16781 # Shared archive member basename,for filename based shared library versioning on AIX.
16782 shared_archive_member_spec=$shared_archive_member_spec
16783
16784 # Shell to use when invoking shell scripts.
16785 SHELL=$lt_SHELL
16786
16787 # An echo program that protects backslashes.
16788 ECHO=$lt_ECHO
16789
16790 # The PATH separator for the build system.
16791 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16792
16793 # The host system.
16794 host_alias=$host_alias
16795 host=$host
16796 host_os=$host_os
16797
16798 # The build system.
16799 build_alias=$build_alias
16800 build=$build
16801 build_os=$build_os
16802
16803 # A sed program that does not truncate output.
16804 SED=$lt_SED
16805
16806 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16807 Xsed="\$SED -e 1s/^X//"
16808
16809 # A grep program that handles long lines.
16810 GREP=$lt_GREP
16811
16812 # An ERE matcher.
16813 EGREP=$lt_EGREP
16814
16815 # A literal string matcher.
16816 FGREP=$lt_FGREP
16817
16818 # A BSD- or MS-compatible name lister.
16819 NM=$lt_NM
16820
16821 # Whether we need soft or hard links.
16822 LN_S=$lt_LN_S
16823
16824 # What is the maximum length of a command?
16825 max_cmd_len=$max_cmd_len
16826
16827 # Object file suffix (normally "o").
16828 objext=$ac_objext
16829
16830 # Executable file suffix (normally "").
16831 exeext=$exeext
16832
16833 # whether the shell understands "unset".
16834 lt_unset=$lt_unset
16835
16836 # turn spaces into newlines.
16837 SP2NL=$lt_lt_SP2NL
16838
16839 # turn newlines into spaces.
16840 NL2SP=$lt_lt_NL2SP
16841
16842 # convert \$build file names to \$host format.
16843 to_host_file_cmd=$lt_cv_to_host_file_cmd
16844
16845 # convert \$build files to toolchain format.
16846 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16847
16848 # A file(cmd) program that detects file types.
16849 FILECMD=$lt_FILECMD
16850
16851 # Method to check whether dependent libraries are shared objects.
16852 deplibs_check_method=$lt_deplibs_check_method
16853
16854 # Command to use when deplibs_check_method = "file_magic".
16855 file_magic_cmd=$lt_file_magic_cmd
16856
16857 # How to find potential files when deplibs_check_method = "file_magic".
16858 file_magic_glob=$lt_file_magic_glob
16859
16860 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16861 want_nocaseglob=$lt_want_nocaseglob
16862
16863 # Command to associate shared and link libraries.
16864 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16865
16866 # The archiver.
16867 AR=$lt_AR
16868
16869 # Flags to create an archive (by configure).
16870 lt_ar_flags=$lt_ar_flags
16871
16872 # Flags to create an archive.
16873 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16874
16875 # How to feed a file listing to the archiver.
16876 archiver_list_spec=$lt_archiver_list_spec
16877
16878 # A symbol stripping program.
16879 STRIP=$lt_STRIP
16880
16881 # Commands used to install an old-style archive.
16882 RANLIB=$lt_RANLIB
16883 old_postinstall_cmds=$lt_old_postinstall_cmds
16884 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16885
16886 # Whether to use a lock for old archive extraction.
16887 lock_old_archive_extraction=$lock_old_archive_extraction
16888
16889 # A C compiler.
16890 LTCC=$lt_CC
16891
16892 # LTCC compiler flags.
16893 LTCFLAGS=$lt_CFLAGS
16894
16895 # Take the output of nm and produce a listing of raw symbols and C names.
16896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16897
16898 # Transform the output of nm in a proper C declaration.
16899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16900
16901 # Transform the output of nm into a list of symbols to manually relocate.
16902 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16903
16904 # Transform the output of nm in a C name address pair.
16905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16906
16907 # Transform the output of nm in a C name address pair when lib prefix is needed.
16908 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16909
16910 # The name lister interface.
16911 nm_interface=$lt_lt_cv_nm_interface
16912
16913 # Specify filename containing input files for \$NM.
16914 nm_file_list_spec=$lt_nm_file_list_spec
16915
16916 # The root where to search for dependent libraries,and where our libraries should be installed.
16917 lt_sysroot=$lt_sysroot
16918
16919 # Command to truncate a binary pipe.
16920 lt_truncate_bin=$lt_lt_cv_truncate_bin
16921
16922 # The name of the directory that contains temporary libtool files.
16923 objdir=$objdir
16924
16925 # Used to examine libraries when file_magic_cmd begins with "file".
16926 MAGIC_CMD=$MAGIC_CMD
16927
16928 # Must we lock files when doing compilation?
16929 need_locks=$lt_need_locks
16930
16931 # Manifest tool.
16932 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16933
16934 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16935 DSYMUTIL=$lt_DSYMUTIL
16936
16937 # Tool to change global to local symbols on Mac OS X.
16938 NMEDIT=$lt_NMEDIT
16939
16940 # Tool to manipulate fat objects and archives on Mac OS X.
16941 LIPO=$lt_LIPO
16942
16943 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16944 OTOOL=$lt_OTOOL
16945
16946 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16947 OTOOL64=$lt_OTOOL64
16948
16949 # Old archive suffix (normally "a").
16950 libext=$libext
16951
16952 # Shared library suffix (normally ".so").
16953 shrext_cmds=$lt_shrext_cmds
16954
16955 # The commands to extract the exported symbol list from a shared archive.
16956 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16957
16958 # Variables whose values should be saved in libtool wrapper scripts and
16959 # restored at link time.
16960 variables_saved_for_relink=$lt_variables_saved_for_relink
16961
16962 # Do we need the "lib" prefix for modules?
16963 need_lib_prefix=$need_lib_prefix
16964
16965 # Do we need a version for libraries?
16966 need_version=$need_version
16967
16968 # Library versioning type.
16969 version_type=$version_type
16970
16971 # Shared library runtime path variable.
16972 runpath_var=$runpath_var
16973
16974 # Shared library path variable.
16975 shlibpath_var=$shlibpath_var
16976
16977 # Is shlibpath searched before the hard-coded library search path?
16978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16979
16980 # Format of library name prefix.
16981 libname_spec=$lt_libname_spec
16982
16983 # List of archive names. First name is the real one, the rest are links.
16984 # The last name is the one that the linker finds with -lNAME
16985 library_names_spec=$lt_library_names_spec
16986
16987 # The coded name of the library, if different from the real name.
16988 soname_spec=$lt_soname_spec
16989
16990 # Permission mode override for installation of shared libraries.
16991 install_override_mode=$lt_install_override_mode
16992
16993 # Command to use after installation of a shared archive.
16994 postinstall_cmds=$lt_postinstall_cmds
16995
16996 # Command to use after uninstallation of a shared archive.
16997 postuninstall_cmds=$lt_postuninstall_cmds
16998
16999 # Commands used to finish a libtool library installation in a directory.
17000 finish_cmds=$lt_finish_cmds
17001
17002 # As "finish_cmds", except a single script fragment to be evaled but
17003 # not shown.
17004 finish_eval=$lt_finish_eval
17005
17006 # Whether we should hardcode library paths into libraries.
17007 hardcode_into_libs=$hardcode_into_libs
17008
17009 # Compile-time system search path for libraries.
17010 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17011
17012 # Detected run-time system search path for libraries.
17013 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17014
17015 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17016 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17017
17018 # Whether dlopen is supported.
17019 dlopen_support=$enable_dlopen
17020
17021 # Whether dlopen of programs is supported.
17022 dlopen_self=$enable_dlopen_self
17023
17024 # Whether dlopen of statically linked programs is supported.
17025 dlopen_self_static=$enable_dlopen_self_static
17026
17027 # Commands to strip libraries.
17028 old_striplib=$lt_old_striplib
17029 striplib=$lt_striplib
17030
17031
17032 # The linker used to build libraries.
17033 LD=$lt_LD
17034
17035 # How to create reloadable object files.
17036 reload_flag=$lt_reload_flag
17037 reload_cmds=$lt_reload_cmds
17038
17039 # Commands used to build an old-style archive.
17040 old_archive_cmds=$lt_old_archive_cmds
17041
17042 # A language specific compiler.
17043 CC=$lt_compiler
17044
17045 # Is the compiler the GNU compiler?
17046 with_gcc=$GCC
17047
17048 # Compiler flag to turn off builtin functions.
17049 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17050
17051 # Additional compiler flags for building library objects.
17052 pic_flag=$lt_lt_prog_compiler_pic
17053
17054 # How to pass a linker flag through the compiler.
17055 wl=$lt_lt_prog_compiler_wl
17056
17057 # Compiler flag to prevent dynamic linking.
17058 link_static_flag=$lt_lt_prog_compiler_static
17059
17060 # Does compiler simultaneously support -c and -o options?
17061 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17062
17063 # Whether or not to add -lc for building shared libraries.
17064 build_libtool_need_lc=$archive_cmds_need_lc
17065
17066 # Whether or not to disallow shared libs when runtime libs are static.
17067 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17068
17069 # Compiler flag to allow reflexive dlopens.
17070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17071
17072 # Compiler flag to generate shared objects directly from archives.
17073 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17074
17075 # Whether the compiler copes with passing no objects directly.
17076 compiler_needs_object=$lt_compiler_needs_object
17077
17078 # Create an old-style archive from a shared archive.
17079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17080
17081 # Create a temporary old-style archive to link instead of a shared archive.
17082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17083
17084 # Commands used to build a shared archive.
17085 archive_cmds=$lt_archive_cmds
17086 archive_expsym_cmds=$lt_archive_expsym_cmds
17087
17088 # Commands used to build a loadable module if different from building
17089 # a shared archive.
17090 module_cmds=$lt_module_cmds
17091 module_expsym_cmds=$lt_module_expsym_cmds
17092
17093 # Whether we are building with GNU ld or not.
17094 with_gnu_ld=$lt_with_gnu_ld
17095
17096 # Flag that allows shared libraries with undefined symbols to be built.
17097 allow_undefined_flag=$lt_allow_undefined_flag
17098
17099 # Flag that enforces no undefined symbols.
17100 no_undefined_flag=$lt_no_undefined_flag
17101
17102 # Flag to hardcode \$libdir into a binary during linking.
17103 # This must work even if \$libdir does not exist
17104 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17105
17106 # Whether we need a single "-rpath" flag with a separated argument.
17107 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17108
17109 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17110 # DIR into the resulting binary.
17111 hardcode_direct=$hardcode_direct
17112
17113 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17114 # DIR into the resulting binary and the resulting library dependency is
17115 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17116 # library is relocated.
17117 hardcode_direct_absolute=$hardcode_direct_absolute
17118
17119 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17120 # into the resulting binary.
17121 hardcode_minus_L=$hardcode_minus_L
17122
17123 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17124 # into the resulting binary.
17125 hardcode_shlibpath_var=$hardcode_shlibpath_var
17126
17127 # Set to "yes" if building a shared library automatically hardcodes DIR
17128 # into the library and all subsequent libraries and executables linked
17129 # against it.
17130 hardcode_automatic=$hardcode_automatic
17131
17132 # Set to yes if linker adds runtime paths of dependent libraries
17133 # to runtime path list.
17134 inherit_rpath=$inherit_rpath
17135
17136 # Whether libtool must link a program against all its dependency libraries.
17137 link_all_deplibs=$link_all_deplibs
17138
17139 # Set to "yes" if exported symbols are required.
17140 always_export_symbols=$always_export_symbols
17141
17142 # The commands to list exported symbols.
17143 export_symbols_cmds=$lt_export_symbols_cmds
17144
17145 # Symbols that should not be listed in the preloaded symbols.
17146 exclude_expsyms=$lt_exclude_expsyms
17147
17148 # Symbols that must always be exported.
17149 include_expsyms=$lt_include_expsyms
17150
17151 # Commands necessary for linking programs (against libraries) with templates.
17152 prelink_cmds=$lt_prelink_cmds
17153
17154 # Commands necessary for finishing linking programs.
17155 postlink_cmds=$lt_postlink_cmds
17156
17157 # Specify filename containing input files.
17158 file_list_spec=$lt_file_list_spec
17159
17160 # How to hardcode a shared library path into an executable.
17161 hardcode_action=$hardcode_action
17162
17163 # ### END LIBTOOL CONFIG
17164
17165 _LT_EOF
17166
17167 cat <<'_LT_EOF' >> "$cfgfile"
17168
17169 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17170
17171 # func_munge_path_list VARIABLE PATH
17172 # -----------------------------------
17173 # VARIABLE is name of variable containing _space_ separated list of
17174 # directories to be munged by the contents of PATH, which is string
17175 # having a format:
17176 # "DIR[:DIR]:"
17177 # string "DIR[ DIR]" will be prepended to VARIABLE
17178 # ":DIR[:DIR]"
17179 # string "DIR[ DIR]" will be appended to VARIABLE
17180 # "DIRP[:DIRP]::[DIRA:]DIRA"
17181 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17182 # "DIRA[ DIRA]" will be appended to VARIABLE
17183 # "DIR[:DIR]"
17184 # VARIABLE will be replaced by "DIR[ DIR]"
17185 func_munge_path_list ()
17186 {
17187 case x$2 in
17188 x)
17189 ;;
17190 *:)
17191 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17192 ;;
17193 x:*)
17194 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17195 ;;
17196 *::*)
17197 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17198 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17199 ;;
17200 *)
17201 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17202 ;;
17203 esac
17204 }
17205
17206
17207 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17208 func_cc_basename ()
17209 {
17210 for cc_temp in $*""; do
17211 case $cc_temp in
17212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17214 \-*) ;;
17215 *) break;;
17216 esac
17217 done
17218 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17219 }
17220
17221
17222 # ### END FUNCTIONS SHARED WITH CONFIGURE
17223
17224 _LT_EOF
17225
17226 case $host_os in
17227 aix3*)
17228 cat <<\_LT_EOF >> "$cfgfile"
17229 # AIX sometimes has problems with the GCC collect2 program. For some
17230 # reason, if we set the COLLECT_NAMES environment variable, the problems
17231 # vanish in a puff of smoke.
17232 if test set != "${COLLECT_NAMES+set}"; then
17233 COLLECT_NAMES=
17234 export COLLECT_NAMES
17235 fi
17236 _LT_EOF
17237 ;;
17238 esac
17239
17240
17241
17242 ltmain=$ac_aux_dir/ltmain.sh
17243
17244
17245 # We use sed instead of cat because bash on DJGPP gets confused if
17246 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17247 # text mode, it properly converts lines to CR/LF. This bash problem
17248 # is reportedly fixed, but why not run on old versions too?
17249 $SED '$q' "$ltmain" >> "$cfgfile" \
17250 || (rm -f "$cfgfile"; exit 1)
17251
17252 mv -f "$cfgfile" "$ofile" ||
17253 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17254 chmod +x "$ofile"
17255
17256
17257 as_fn_exit 0
17258 _LTEOF
17259 chmod +x "$CONFIG_LT"
17260
17261 # configure is writing to config.log, but config.lt does its own redirection,
17262 # appending to config.log, which fails on DOS, as config.log is still kept
17263 # open by configure. Here we exec the FD to /dev/null, effectively closing
17264 # config.log, so it can be properly (re)opened and appended to by config.lt.
17265 lt_cl_success=:
17266 test yes = "$silent" &&
17267 lt_config_lt_args="$lt_config_lt_args --quiet"
17268 exec 5>/dev/null
17269 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17270 exec 5>>config.log
17271 $lt_cl_success || as_fn_exit 1
17272
17273 #
17274 #
17275 ac_ext=c
17276 ac_cpp='$CPP $CPPFLAGS'
17277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17280 ac_link="./libtool --mode=link --tag=CC $ac_link"
17281
17282 if test -n "$ac_tool_prefix"; then
17283 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17284 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17286 printf %s "checking for $ac_word... " >&6; }
17287 if test ${ac_cv_prog_PKG_CONFIG+y}
17288 then :
17289 printf %s "(cached) " >&6
17290 else case e in #(
17291 e) if test -n "$PKG_CONFIG"; then
17292 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17293 else
17294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17295 for as_dir in $PATH
17296 do
17297 IFS=$as_save_IFS
17298 case $as_dir in #(((
17299 '') as_dir=./ ;;
17300 */) ;;
17301 *) as_dir=$as_dir/ ;;
17302 esac
17303 for ac_exec_ext in '' $ac_executable_extensions; do
17304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17305 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17307 break 2
17308 fi
17309 done
17310 done
17311 IFS=$as_save_IFS
17312
17313 fi ;;
17314 esac
17315 fi
17316 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17317 if test -n "$PKG_CONFIG"; then
17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17319 printf "%s\n" "$PKG_CONFIG" >&6; }
17320 else
17321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322 printf "%s\n" "no" >&6; }
17323 fi
17324
17325
17326 fi
17327 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17328 ac_ct_PKG_CONFIG=$PKG_CONFIG
17329 # Extract the first word of "pkg-config", so it can be a program name with args.
17330 set dummy pkg-config; ac_word=$2
17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17332 printf %s "checking for $ac_word... " >&6; }
17333 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17334 then :
17335 printf %s "(cached) " >&6
17336 else case e in #(
17337 e) if test -n "$ac_ct_PKG_CONFIG"; then
17338 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17339 else
17340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17341 for as_dir in $PATH
17342 do
17343 IFS=$as_save_IFS
17344 case $as_dir in #(((
17345 '') as_dir=./ ;;
17346 */) ;;
17347 *) as_dir=$as_dir/ ;;
17348 esac
17349 for ac_exec_ext in '' $ac_executable_extensions; do
17350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17351 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17353 break 2
17354 fi
17355 done
17356 done
17357 IFS=$as_save_IFS
17358
17359 fi ;;
17360 esac
17361 fi
17362 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17363 if test -n "$ac_ct_PKG_CONFIG"; then
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17365 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17366 else
17367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368 printf "%s\n" "no" >&6; }
17369 fi
17370
17371 if test "x$ac_ct_PKG_CONFIG" = x; then
17372 PKG_CONFIG="false"
17373 else
17374 case $cross_compiling:$ac_tool_warned in
17375 yes:)
17376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17377 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17378 ac_tool_warned=yes ;;
17379 esac
17380 PKG_CONFIG=$ac_ct_PKG_CONFIG
17381 fi
17382 else
17383 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17384 fi
17385
17386 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17387 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=kpathsea, libname=kpathsea, options=lt, tlincl=-IBLD/texk -ISRC/texk, tllib=BLD/texk/kpathsea/libkpathsea.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../kpathsea/*.[ch], rebuildblddeps=${top_builddir}/../kpathsea/paths.h.' >&5
17388 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17389
17390 # Check whether --with-system-kpathsea was given.
17391 if test ${with_system_kpathsea+y}
17392 then :
17393 withval=$with_system_kpathsea;
17394 fi
17395 if test "x$with_system_kpathsea" = xyes; then
17396 if $PKG_CONFIG kpathsea; then
17397 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17398 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17399 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17400 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17401 fi
17402 else
17403 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17404 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17405 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17406 KPATHSEA_RULE='# Rebuild libkpathsea
17407 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17408 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17409 ${top_builddir}/../kpathsea/paths.h:
17410 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17411 fi
17412
17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17414 printf %s "checking if libkpathsea supports debugging... " >&6; }
17415 if test ${kpse_cv_kpse_debug+y}
17416 then :
17417 printf %s "(cached) " >&6
17418 else case e in #(
17419 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17420 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17421
17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17424 #include <kpathsea/kpathsea.h>
17425 int
17426 main (void)
17427 {
17428 FILE *f = fopen("f", "r")
17429 ;
17430 return 0;
17431 }
17432 _ACEOF
17433 if ac_fn_c_try_link "$LINENO"
17434 then :
17435 kpse_cv_kpse_debug=yes
17436 else case e in #(
17437 e) kpse_cv_kpse_debug=no ;;
17438 esac
17439 fi
17440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17441 conftest$ac_exeext conftest.$ac_ext
17442 CPPFLAGS=$kpse_save_CPPFLAGS
17443 LIBS=$kpse_save_LIBS
17444 ;;
17445 esac
17446 fi
17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17448 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17449 if test "x$kpse_cv_kpse_debug" != xyes
17450 then :
17451 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17452 fi
17453
17454
17455 ac_config_files="$ac_config_files Makefile"
17456
17457
17458 cat >confcache <<\_ACEOF
17459 # This file is a shell script that caches the results of configure
17460 # tests run on this system so they can be shared between configure
17461 # scripts and configure runs, see configure's option --config-cache.
17462 # It is not useful on other systems. If it contains results you don't
17463 # want to keep, you may remove or edit it.
17464 #
17465 # config.status only pays attention to the cache file if you give it
17466 # the --recheck option to rerun configure.
17467 #
17468 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17469 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17470 # following values.
17471
17472 _ACEOF
17473
17474 # The following way of writing the cache mishandles newlines in values,
17475 # but we know of no workaround that is simple, portable, and efficient.
17476 # So, we kill variables containing newlines.
17477 # Ultrix sh set writes to stderr and can't be redirected directly,
17478 # and sets the high bit in the cache file unless we assign to the vars.
17479 (
17480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17481 eval ac_val=\$$ac_var
17482 case $ac_val in #(
17483 *${as_nl}*)
17484 case $ac_var in #(
17485 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17486 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17487 esac
17488 case $ac_var in #(
17489 _ | IFS | as_nl) ;; #(
17490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17491 *) { eval $ac_var=; unset $ac_var;} ;;
17492 esac ;;
17493 esac
17494 done
17495
17496 (set) 2>&1 |
17497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17498 *${as_nl}ac_space=\ *)
17499 # 'set' does not quote correctly, so add quotes: double-quote
17500 # substitution turns \\\\ into \\, and sed turns \\ into \.
17501 sed -n \
17502 "s/'/'\\\\''/g;
17503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17504 ;; #(
17505 *)
17506 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17508 ;;
17509 esac |
17510 sort
17511 ) |
17512 sed '
17513 /^ac_cv_env_/b end
17514 t clear
17515 :clear
17516 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17517 t end
17518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17519 :end' >>confcache
17520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17521 if test -w "$cache_file"; then
17522 if test "x$cache_file" != "x/dev/null"; then
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17524 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17525 if test ! -f "$cache_file" || test -h "$cache_file"; then
17526 cat confcache >"$cache_file"
17527 else
17528 case $cache_file in #(
17529 */* | ?:*)
17530 mv -f confcache "$cache_file"$$ &&
17531 mv -f "$cache_file"$$ "$cache_file" ;; #(
17532 *)
17533 mv -f confcache "$cache_file" ;;
17534 esac
17535 fi
17536 fi
17537 else
17538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17539 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17540 fi
17541 fi
17542 rm -f confcache
17543
17544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17545 # Let make expand exec_prefix.
17546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17547
17548 DEFS=-DHAVE_CONFIG_H
17549
17550 ac_libobjs=
17551 ac_ltlibobjs=
17552 U=
17553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17554 # 1. Remove the extension, and $U if already installed.
17555 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17556 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17558 # will be set to the directory where LIBOBJS objects are built.
17559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17561 done
17562 LIBOBJS=$ac_libobjs
17563
17564 LTLIBOBJS=$ac_ltlibobjs
17565
17566
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17568 printf %s "checking that generated files are newer than configure... " >&6; }
17569 if test -n "$am_sleep_pid"; then
17570 # Hide warnings about reused PIDs.
17571 wait $am_sleep_pid 2>/dev/null
17572 fi
17573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17574 printf "%s\n" "done" >&6; }
17575 case $enable_silent_rules in # (((
17576 yes) AM_DEFAULT_VERBOSITY=0;;
17577 no) AM_DEFAULT_VERBOSITY=1;;
17578 esac
17579 if test $am_cv_make_support_nested_variables = yes; then
17580 AM_V='$(V)'
17581 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17582 else
17583 AM_V=$AM_DEFAULT_VERBOSITY
17584 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17585 fi
17586
17587 if test -n "$EXEEXT"; then
17588 am__EXEEXT_TRUE=
17589 am__EXEEXT_FALSE='#'
17590 else
17591 am__EXEEXT_TRUE='#'
17592 am__EXEEXT_FALSE=
17593 fi
17594
17595 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17596 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17598 fi
17599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17600 as_fn_error $? "conditional \"AMDEP\" was never defined.
17601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17602 fi
17603 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17604 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17606 fi
17607 # Check whether --enable-year2038 was given.
17608 if test ${enable_year2038+y}
17609 then :
17610 enableval=$enable_year2038;
17611 fi
17612
17613
17614 : "${CONFIG_STATUS=./config.status}"
17615 ac_write_fail=0
17616 ac_clean_files_save=$ac_clean_files
17617 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17619 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17620 as_write_fail=0
17621 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17622 #! $SHELL
17623 # Generated by $as_me.
17624 # Run this file to recreate the current configuration.
17625 # Compiler output produced by configure, useful for debugging
17626 # configure, is in config.log if it exists.
17627
17628 debug=false
17629 ac_cs_recheck=false
17630 ac_cs_silent=false
17631
17632 SHELL=\${CONFIG_SHELL-$SHELL}
17633 export SHELL
17634 _ASEOF
17635 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17636 ## -------------------- ##
17637 ## M4sh Initialization. ##
17638 ## -------------------- ##
17639
17640 # Be more Bourne compatible
17641 DUALCASE=1; export DUALCASE # for MKS sh
17642 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17643 then :
17644 emulate sh
17645 NULLCMD=:
17646 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17647 # is contrary to our usage. Disable this feature.
17648 alias -g '${1+"$@"}'='"$@"'
17649 setopt NO_GLOB_SUBST
17650 else case e in #(
17651 e) case `(set -o) 2>/dev/null` in #(
17652 *posix*) :
17653 set -o posix ;; #(
17654 *) :
17655 ;;
17656 esac ;;
17657 esac
17658 fi
17659
17660
17661
17662 # Reset variables that may have inherited troublesome values from
17663 # the environment.
17664
17665 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17666 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17667 # side effect of setting IFS to empty, thus disabling word splitting.)
17668 # Quoting is to prevent editors from complaining about space-tab.
17669 as_nl='
17670 '
17671 export as_nl
17672 IFS=" "" $as_nl"
17673
17674 PS1='$ '
17675 PS2='> '
17676 PS4='+ '
17677
17678 # Ensure predictable behavior from utilities with locale-dependent output.
17679 LC_ALL=C
17680 export LC_ALL
17681 LANGUAGE=C
17682 export LANGUAGE
17683
17684 # We cannot yet rely on "unset" to work, but we need these variables
17685 # to be unset--not just set to an empty or harmless value--now, to
17686 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17687 # also avoids known problems related to "unset" and subshell syntax
17688 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17689 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17690 do eval test \${$as_var+y} \
17691 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17692 done
17693
17694 # Ensure that fds 0, 1, and 2 are open.
17695 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17696 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17697 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17698
17699 # The user is always right.
17700 if ${PATH_SEPARATOR+false} :; then
17701 PATH_SEPARATOR=:
17702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17704 PATH_SEPARATOR=';'
17705 }
17706 fi
17707
17708
17709 # Find who we are. Look in the path if we contain no directory separator.
17710 as_myself=
17711 case $0 in #((
17712 *[\\/]* ) as_myself=$0 ;;
17713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17714 for as_dir in $PATH
17715 do
17716 IFS=$as_save_IFS
17717 case $as_dir in #(((
17718 '') as_dir=./ ;;
17719 */) ;;
17720 *) as_dir=$as_dir/ ;;
17721 esac
17722 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17723 done
17724 IFS=$as_save_IFS
17725
17726 ;;
17727 esac
17728 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17729 # in which case we are not to be found in the path.
17730 if test "x$as_myself" = x; then
17731 as_myself=$0
17732 fi
17733 if test ! -f "$as_myself"; then
17734 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17735 exit 1
17736 fi
17737
17738
17739
17740 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17741 # ----------------------------------------
17742 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17743 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17744 # script with STATUS, using 1 if that was 0.
17745 as_fn_error ()
17746 {
17747 as_status=$1; test $as_status -eq 0 && as_status=1
17748 if test "$4"; then
17749 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17751 fi
17752 printf "%s\n" "$as_me: error: $2" >&2
17753 as_fn_exit $as_status
17754 } # as_fn_error
17755
17756
17757 # as_fn_set_status STATUS
17758 # -----------------------
17759 # Set $? to STATUS, without forking.
17760 as_fn_set_status ()
17761 {
17762 return $1
17763 } # as_fn_set_status
17764
17765 # as_fn_exit STATUS
17766 # -----------------
17767 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17768 as_fn_exit ()
17769 {
17770 set +e
17771 as_fn_set_status $1
17772 exit $1
17773 } # as_fn_exit
17774
17775 # as_fn_unset VAR
17776 # ---------------
17777 # Portably unset VAR.
17778 as_fn_unset ()
17779 {
17780 { eval $1=; unset $1;}
17781 }
17782 as_unset=as_fn_unset
17783
17784 # as_fn_append VAR VALUE
17785 # ----------------------
17786 # Append the text in VALUE to the end of the definition contained in VAR. Take
17787 # advantage of any shell optimizations that allow amortized linear growth over
17788 # repeated appends, instead of the typical quadratic growth present in naive
17789 # implementations.
17790 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17791 then :
17792 eval 'as_fn_append ()
17793 {
17794 eval $1+=\$2
17795 }'
17796 else case e in #(
17797 e) as_fn_append ()
17798 {
17799 eval $1=\$$1\$2
17800 } ;;
17801 esac
17802 fi # as_fn_append
17803
17804 # as_fn_arith ARG...
17805 # ------------------
17806 # Perform arithmetic evaluation on the ARGs, and store the result in the
17807 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17808 # must be portable across $(()) and expr.
17809 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17810 then :
17811 eval 'as_fn_arith ()
17812 {
17813 as_val=$(( $* ))
17814 }'
17815 else case e in #(
17816 e) as_fn_arith ()
17817 {
17818 as_val=`expr "$@" || test $? -eq 1`
17819 } ;;
17820 esac
17821 fi # as_fn_arith
17822
17823
17824 if expr a : '\(a\)' >/dev/null 2>&1 &&
17825 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17826 as_expr=expr
17827 else
17828 as_expr=false
17829 fi
17830
17831 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17832 as_basename=basename
17833 else
17834 as_basename=false
17835 fi
17836
17837 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17838 as_dirname=dirname
17839 else
17840 as_dirname=false
17841 fi
17842
17843 as_me=`$as_basename -- "$0" ||
17844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17845 X"$0" : 'X\(//\)$' \| \
17846 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17847 printf "%s\n" X/"$0" |
17848 sed '/^.*\/\([^/][^/]*\)\/*$/{
17849 s//\1/
17850 q
17851 }
17852 /^X\/\(\/\/\)$/{
17853 s//\1/
17854 q
17855 }
17856 /^X\/\(\/\).*/{
17857 s//\1/
17858 q
17859 }
17860 s/.*/./; q'`
17861
17862 # Avoid depending upon Character Ranges.
17863 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17864 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17865 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17866 as_cr_digits='0123456789'
17867 as_cr_alnum=$as_cr_Letters$as_cr_digits
17868
17869
17870 # Determine whether it's possible to make 'echo' print without a newline.
17871 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17872 # for compatibility with existing Makefiles.
17873 ECHO_C= ECHO_N= ECHO_T=
17874 case `echo -n x` in #(((((
17875 -n*)
17876 case `echo 'xy\c'` in
17877 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17878 xy) ECHO_C='\c';;
17879 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17880 ECHO_T=' ';;
17881 esac;;
17882 *)
17883 ECHO_N='-n';;
17884 esac
17885
17886 # For backward compatibility with old third-party macros, we provide
17887 # the shell variables $as_echo and $as_echo_n. New code should use
17888 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17889 as_echo='printf %s\n'
17890 as_echo_n='printf %s'
17891
17892 rm -f conf$$ conf$$.exe conf$$.file
17893 if test -d conf$$.dir; then
17894 rm -f conf$$.dir/conf$$.file
17895 else
17896 rm -f conf$$.dir
17897 mkdir conf$$.dir 2>/dev/null
17898 fi
17899 if (echo >conf$$.file) 2>/dev/null; then
17900 if ln -s conf$$.file conf$$ 2>/dev/null; then
17901 as_ln_s='ln -s'
17902 # ... but there are two gotchas:
17903 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17904 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17905 # In both cases, we have to default to 'cp -pR'.
17906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17907 as_ln_s='cp -pR'
17908 elif ln conf$$.file conf$$ 2>/dev/null; then
17909 as_ln_s=ln
17910 else
17911 as_ln_s='cp -pR'
17912 fi
17913 else
17914 as_ln_s='cp -pR'
17915 fi
17916 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17917 rmdir conf$$.dir 2>/dev/null
17918
17919
17920 # as_fn_mkdir_p
17921 # -------------
17922 # Create "$as_dir" as a directory, including parents if necessary.
17923 as_fn_mkdir_p ()
17924 {
17925
17926 case $as_dir in #(
17927 -*) as_dir=./$as_dir;;
17928 esac
17929 test -d "$as_dir" || eval $as_mkdir_p || {
17930 as_dirs=
17931 while :; do
17932 case $as_dir in #(
17933 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17934 *) as_qdir=$as_dir;;
17935 esac
17936 as_dirs="'$as_qdir' $as_dirs"
17937 as_dir=`$as_dirname -- "$as_dir" ||
17938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17939 X"$as_dir" : 'X\(//\)[^/]' \| \
17940 X"$as_dir" : 'X\(//\)$' \| \
17941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17942 printf "%s\n" X"$as_dir" |
17943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17944 s//\1/
17945 q
17946 }
17947 /^X\(\/\/\)[^/].*/{
17948 s//\1/
17949 q
17950 }
17951 /^X\(\/\/\)$/{
17952 s//\1/
17953 q
17954 }
17955 /^X\(\/\).*/{
17956 s//\1/
17957 q
17958 }
17959 s/.*/./; q'`
17960 test -d "$as_dir" && break
17961 done
17962 test -z "$as_dirs" || eval "mkdir $as_dirs"
17963 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17964
17965
17966 } # as_fn_mkdir_p
17967 if mkdir -p . 2>/dev/null; then
17968 as_mkdir_p='mkdir -p "$as_dir"'
17969 else
17970 test -d ./-p && rmdir ./-p
17971 as_mkdir_p=false
17972 fi
17973
17974
17975 # as_fn_executable_p FILE
17976 # -----------------------
17977 # Test if FILE is an executable regular file.
17978 as_fn_executable_p ()
17979 {
17980 test -f "$1" && test -x "$1"
17981 } # as_fn_executable_p
17982 as_test_x='test -x'
17983 as_executable_p=as_fn_executable_p
17984
17985 # Sed expression to map a string onto a valid CPP name.
17986 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17987 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17988
17989 # Sed expression to map a string onto a valid variable name.
17990 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17991 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17992
17993
17994 exec 6>&1
17995 ## ----------------------------------- ##
17996 ## Main body of $CONFIG_STATUS script. ##
17997 ## ----------------------------------- ##
17998 _ASEOF
17999 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18000
18001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18002 # Save the log message, to keep $0 and so on meaningful, and to
18003 # report actual input values of CONFIG_FILES etc. instead of their
18004 # values after options handling.
18005 ac_log="
18006 This file was extended by dtl (TeX Live) $as_me 0.6.0, which was
18007 generated by GNU Autoconf 2.72. Invocation command line was
18008
18009 CONFIG_FILES = $CONFIG_FILES
18010 CONFIG_HEADERS = $CONFIG_HEADERS
18011 CONFIG_LINKS = $CONFIG_LINKS
18012 CONFIG_COMMANDS = $CONFIG_COMMANDS
18013 $ $0 $@
18014
18015 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18016 "
18017
18018 _ACEOF
18019
18020 case $ac_config_files in *"
18021 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18022 esac
18023
18024 case $ac_config_headers in *"
18025 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18026 esac
18027
18028
18029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18030 # Files that config.status was made for.
18031 config_files="$ac_config_files"
18032 config_headers="$ac_config_headers"
18033 config_commands="$ac_config_commands"
18034
18035 _ACEOF
18036
18037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18038 ac_cs_usage="\
18039 '$as_me' instantiates files and other configuration actions
18040 from templates according to the current configuration. Unless the files
18041 and actions are specified as TAGs, all are instantiated by default.
18042
18043 Usage: $0 [OPTION]... [TAG]...
18044
18045 -h, --help print this help, then exit
18046 -V, --version print version number and configuration settings, then exit
18047 --config print configuration, then exit
18048 -q, --quiet, --silent
18049 do not print progress messages
18050 -d, --debug don't remove temporary files
18051 --recheck update $as_me by reconfiguring in the same conditions
18052 --file=FILE[:TEMPLATE]
18053 instantiate the configuration file FILE
18054 --header=FILE[:TEMPLATE]
18055 instantiate the configuration header FILE
18056
18057 Configuration files:
18058 $config_files
18059
18060 Configuration headers:
18061 $config_headers
18062
18063 Configuration commands:
18064 $config_commands
18065
18066 Report bugs to <[email protected]>."
18067
18068 _ACEOF
18069 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18070 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18072 ac_cs_config='$ac_cs_config_escaped'
18073 ac_cs_version="\\
18074 dtl (TeX Live) config.status 0.6.0
18075 configured by $0, generated by GNU Autoconf 2.72,
18076 with options \\"\$ac_cs_config\\"
18077
18078 Copyright (C) 2023 Free Software Foundation, Inc.
18079 This config.status script is free software; the Free Software Foundation
18080 gives unlimited permission to copy, distribute and modify it."
18081
18082 ac_pwd='$ac_pwd'
18083 srcdir='$srcdir'
18084 INSTALL='$INSTALL'
18085 MKDIR_P='$MKDIR_P'
18086 AWK='$AWK'
18087 test -n "\$AWK" || AWK=awk
18088 _ACEOF
18089
18090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18091 # The default lists apply if the user does not specify any file.
18092 ac_need_defaults=:
18093 while test $# != 0
18094 do
18095 case $1 in
18096 --*=?*)
18097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18099 ac_shift=:
18100 ;;
18101 --*=)
18102 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18103 ac_optarg=
18104 ac_shift=:
18105 ;;
18106 *)
18107 ac_option=$1
18108 ac_optarg=$2
18109 ac_shift=shift
18110 ;;
18111 esac
18112
18113 case $ac_option in
18114 # Handling of the options.
18115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18116 ac_cs_recheck=: ;;
18117 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18118 printf "%s\n" "$ac_cs_version"; exit ;;
18119 --config | --confi | --conf | --con | --co | --c )
18120 printf "%s\n" "$ac_cs_config"; exit ;;
18121 --debug | --debu | --deb | --de | --d | -d )
18122 debug=: ;;
18123 --file | --fil | --fi | --f )
18124 $ac_shift
18125 case $ac_optarg in
18126 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18127 '') as_fn_error $? "missing file argument" ;;
18128 esac
18129 as_fn_append CONFIG_FILES " '$ac_optarg'"
18130 ac_need_defaults=false;;
18131 --header | --heade | --head | --hea )
18132 $ac_shift
18133 case $ac_optarg in
18134 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18135 esac
18136 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18137 ac_need_defaults=false;;
18138 --he | --h)
18139 # Conflict between --help and --header
18140 as_fn_error $? "ambiguous option: '$1'
18141 Try '$0 --help' for more information.";;
18142 --help | --hel | -h )
18143 printf "%s\n" "$ac_cs_usage"; exit ;;
18144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18146 ac_cs_silent=: ;;
18147
18148 # This is an error.
18149 -*) as_fn_error $? "unrecognized option: '$1'
18150 Try '$0 --help' for more information." ;;
18151
18152 *) as_fn_append ac_config_targets " $1"
18153 ac_need_defaults=false ;;
18154
18155 esac
18156 shift
18157 done
18158
18159 ac_configure_extra_args=
18160
18161 if $ac_cs_silent; then
18162 exec 6>/dev/null
18163 ac_configure_extra_args="$ac_configure_extra_args --silent"
18164 fi
18165
18166 _ACEOF
18167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18168 if \$ac_cs_recheck; then
18169 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18170 shift
18171 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18172 CONFIG_SHELL='$SHELL'
18173 export CONFIG_SHELL
18174 exec "\$@"
18175 fi
18176
18177 _ACEOF
18178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18179 exec 5>>config.log
18180 {
18181 echo
18182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18183 ## Running $as_me. ##
18184 _ASBOX
18185 printf "%s\n" "$ac_log"
18186 } >&5
18187
18188 _ACEOF
18189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18190 #
18191 # INIT-COMMANDS
18192 #
18193 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18194
18195
18196 # The HP-UX ksh and POSIX shell print the target directory to stdout
18197 # if CDPATH is set.
18198 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18199
18200 sed_quote_subst='$sed_quote_subst'
18201 double_quote_subst='$double_quote_subst'
18202 delay_variable_subst='$delay_variable_subst'
18203 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18204 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18205 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18206 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18207 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18208 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18209 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18210 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18211 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18212 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18213 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18214 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18215 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18216 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18217 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18218 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18219 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18220 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18221 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18222 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18223 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18224 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18225 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18226 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18227 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18228 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18229 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18230 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18231 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18232 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18233 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18234 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18235 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18236 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18237 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18238 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18239 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18240 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18241 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18242 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18243 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18244 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18245 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18246 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18247 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18248 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18249 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18250 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18251 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18252 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18253 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18254 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18255 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18256 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18257 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18258 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18259 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18260 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18261 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18262 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18263 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18264 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"`'
18265 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18266 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18267 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18268 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18269 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18270 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18271 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18272 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18273 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18274 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18275 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18276 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18277 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18278 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18279 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18280 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18281 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18282 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18283 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18284 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18285 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18286 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18287 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18288 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18289 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18290 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18291 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18292 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18293 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18294 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18295 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18296 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18297 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18298 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18299 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18300 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18301 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18302 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18303 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18304 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18305 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18306 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18307 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18308 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18309 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18310 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18311 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18312 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18313 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18314 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18315 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18316 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18317 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18318 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18319 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18320 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18321 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18322 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18323 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18324 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18325 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18326 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18327 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18328 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18329 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18330 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18331 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18332 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18333 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18334 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18335 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18336 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18337 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18338 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18339 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18340 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18341
18342 LTCC='$LTCC'
18343 LTCFLAGS='$LTCFLAGS'
18344 compiler='$compiler_DEFAULT'
18345
18346 # A function that is used when there is no print builtin or printf.
18347 func_fallback_echo ()
18348 {
18349 eval 'cat <<_LTECHO_EOF
18350 \$1
18351 _LTECHO_EOF'
18352 }
18353
18354 # Quote evaled strings.
18355 for var in AS \
18356 DLLTOOL \
18357 OBJDUMP \
18358 SHELL \
18359 ECHO \
18360 PATH_SEPARATOR \
18361 SED \
18362 GREP \
18363 EGREP \
18364 FGREP \
18365 LD \
18366 NM \
18367 LN_S \
18368 lt_SP2NL \
18369 lt_NL2SP \
18370 reload_flag \
18371 FILECMD \
18372 deplibs_check_method \
18373 file_magic_cmd \
18374 file_magic_glob \
18375 want_nocaseglob \
18376 sharedlib_from_linklib_cmd \
18377 AR \
18378 archiver_list_spec \
18379 STRIP \
18380 RANLIB \
18381 CC \
18382 CFLAGS \
18383 compiler \
18384 lt_cv_sys_global_symbol_pipe \
18385 lt_cv_sys_global_symbol_to_cdecl \
18386 lt_cv_sys_global_symbol_to_import \
18387 lt_cv_sys_global_symbol_to_c_name_address \
18388 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18389 lt_cv_nm_interface \
18390 nm_file_list_spec \
18391 lt_cv_truncate_bin \
18392 lt_prog_compiler_no_builtin_flag \
18393 lt_prog_compiler_pic \
18394 lt_prog_compiler_wl \
18395 lt_prog_compiler_static \
18396 lt_cv_prog_compiler_c_o \
18397 need_locks \
18398 MANIFEST_TOOL \
18399 DSYMUTIL \
18400 NMEDIT \
18401 LIPO \
18402 OTOOL \
18403 OTOOL64 \
18404 shrext_cmds \
18405 export_dynamic_flag_spec \
18406 whole_archive_flag_spec \
18407 compiler_needs_object \
18408 with_gnu_ld \
18409 allow_undefined_flag \
18410 no_undefined_flag \
18411 hardcode_libdir_flag_spec \
18412 hardcode_libdir_separator \
18413 exclude_expsyms \
18414 include_expsyms \
18415 file_list_spec \
18416 variables_saved_for_relink \
18417 libname_spec \
18418 library_names_spec \
18419 soname_spec \
18420 install_override_mode \
18421 finish_eval \
18422 old_striplib \
18423 striplib; do
18424 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18425 *[\\\\\\\`\\"\\\$]*)
18426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18427 ;;
18428 *)
18429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18430 ;;
18431 esac
18432 done
18433
18434 # Double-quote double-evaled strings.
18435 for var in reload_cmds \
18436 old_postinstall_cmds \
18437 old_postuninstall_cmds \
18438 old_archive_cmds \
18439 extract_expsyms_cmds \
18440 old_archive_from_new_cmds \
18441 old_archive_from_expsyms_cmds \
18442 archive_cmds \
18443 archive_expsym_cmds \
18444 module_cmds \
18445 module_expsym_cmds \
18446 export_symbols_cmds \
18447 prelink_cmds \
18448 postlink_cmds \
18449 postinstall_cmds \
18450 postuninstall_cmds \
18451 finish_cmds \
18452 sys_lib_search_path_spec \
18453 configure_time_dlsearch_path \
18454 configure_time_lt_sys_library_path; do
18455 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18456 *[\\\\\\\`\\"\\\$]*)
18457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18458 ;;
18459 *)
18460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18461 ;;
18462 esac
18463 done
18464
18465 ac_aux_dir='$ac_aux_dir'
18466
18467 # See if we are running on zsh, and set the options that allow our
18468 # commands through without removal of \ escapes INIT.
18469 if test -n "\${ZSH_VERSION+set}"; then
18470 setopt NO_GLOB_SUBST
18471 fi
18472
18473
18474 PACKAGE='$PACKAGE'
18475 VERSION='$VERSION'
18476 RM='$RM'
18477 ofile='$ofile'
18478
18479 ac_aux_dir='$ac_aux_dir'
18480
18481
18482
18483 _ACEOF
18484
18485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18486
18487 # Handling of arguments.
18488 for ac_config_target in $ac_config_targets
18489 do
18490 case $ac_config_target in
18491 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18492 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18493 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18494 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18495
18496 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18497 esac
18498 done
18499
18500
18501 # If the user did not use the arguments to specify the items to instantiate,
18502 # then the envvar interface is used. Set only those that are not.
18503 # We use the long form for the default assignment because of an extremely
18504 # bizarre bug on SunOS 4.1.3.
18505 if $ac_need_defaults; then
18506 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18507 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18508 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18509 fi
18510
18511 # Have a temporary directory for convenience. Make it in the build tree
18512 # simply because there is no reason against having it here, and in addition,
18513 # creating and moving files from /tmp can sometimes cause problems.
18514 # Hook for its removal unless debugging.
18515 # Note that there is a small window in which the directory will not be cleaned:
18516 # after its creation but before its name has been assigned to '$tmp'.
18517 $debug ||
18518 {
18519 tmp= ac_tmp=
18520 trap 'exit_status=$?
18521 : "${ac_tmp:=$tmp}"
18522 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18523 ' 0
18524 trap 'as_fn_exit 1' 1 2 13 15
18525 }
18526 # Create a (secure) tmp directory for tmp files.
18527
18528 {
18529 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18530 test -d "$tmp"
18531 } ||
18532 {
18533 tmp=./conf$$-$RANDOM
18534 (umask 077 && mkdir "$tmp")
18535 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18536 ac_tmp=$tmp
18537
18538 # Set up the scripts for CONFIG_FILES section.
18539 # No need to generate them if there are no CONFIG_FILES.
18540 # This happens for instance with './config.status config.h'.
18541 if test -n "$CONFIG_FILES"; then
18542
18543
18544 ac_cr=`echo X | tr X '\015'`
18545 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18546 # But we know of no other shell where ac_cr would be empty at this
18547 # point, so we can use a bashism as a fallback.
18548 if test "x$ac_cr" = x; then
18549 eval ac_cr=\$\'\\r\'
18550 fi
18551 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18552 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18553 ac_cs_awk_cr='\\r'
18554 else
18555 ac_cs_awk_cr=$ac_cr
18556 fi
18557
18558 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18559 _ACEOF
18560
18561
18562 {
18563 echo "cat >conf$$subs.awk <<_ACEOF" &&
18564 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18565 echo "_ACEOF"
18566 } >conf$$subs.sh ||
18567 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18568 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18569 ac_delim='%!_!# '
18570 for ac_last_try in false false false false false :; do
18571 . ./conf$$subs.sh ||
18572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18573
18574 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18575 if test $ac_delim_n = $ac_delim_num; then
18576 break
18577 elif $ac_last_try; then
18578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18579 else
18580 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18581 fi
18582 done
18583 rm -f conf$$subs.sh
18584
18585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18586 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18587 _ACEOF
18588 sed -n '
18589 h
18590 s/^/S["/; s/!.*/"]=/
18591 p
18592 g
18593 s/^[^!]*!//
18594 :repl
18595 t repl
18596 s/'"$ac_delim"'$//
18597 t delim
18598 :nl
18599 h
18600 s/\(.\{148\}\)..*/\1/
18601 t more1
18602 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18603 p
18604 n
18605 b repl
18606 :more1
18607 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18608 p
18609 g
18610 s/.\{148\}//
18611 t nl
18612 :delim
18613 h
18614 s/\(.\{148\}\)..*/\1/
18615 t more2
18616 s/["\\]/\\&/g; s/^/"/; s/$/"/
18617 p
18618 b
18619 :more2
18620 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18621 p
18622 g
18623 s/.\{148\}//
18624 t delim
18625 ' <conf$$subs.awk | sed '
18626 /^[^""]/{
18627 N
18628 s/\n//
18629 }
18630 ' >>$CONFIG_STATUS || ac_write_fail=1
18631 rm -f conf$$subs.awk
18632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18633 _ACAWK
18634 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18635 for (key in S) S_is_set[key] = 1
18636 FS = ""
18637
18638 }
18639 {
18640 line = $ 0
18641 nfields = split(line, field, "@")
18642 substed = 0
18643 len = length(field[1])
18644 for (i = 2; i < nfields; i++) {
18645 key = field[i]
18646 keylen = length(key)
18647 if (S_is_set[key]) {
18648 value = S[key]
18649 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18650 len += length(value) + length(field[++i])
18651 substed = 1
18652 } else
18653 len += 1 + keylen
18654 }
18655
18656 print line
18657 }
18658
18659 _ACAWK
18660 _ACEOF
18661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18662 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18663 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18664 else
18665 cat
18666 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18667 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18668 _ACEOF
18669
18670 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18671 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18672 # trailing colons and then remove the whole line if VPATH becomes empty
18673 # (actually we leave an empty line to preserve line numbers).
18674 if test "x$srcdir" = x.; then
18675 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18676 h
18677 s///
18678 s/^/:/
18679 s/[ ]*$/:/
18680 s/:\$(srcdir):/:/g
18681 s/:\${srcdir}:/:/g
18682 s/:@srcdir@:/:/g
18683 s/^:*//
18684 s/:*$//
18685 x
18686 s/\(=[ ]*\).*/\1/
18687 G
18688 s/\n//
18689 s/^[^=]*=[ ]*$//
18690 }'
18691 fi
18692
18693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18694 fi # test -n "$CONFIG_FILES"
18695
18696 # Set up the scripts for CONFIG_HEADERS section.
18697 # No need to generate them if there are no CONFIG_HEADERS.
18698 # This happens for instance with './config.status Makefile'.
18699 if test -n "$CONFIG_HEADERS"; then
18700 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18701 BEGIN {
18702 _ACEOF
18703
18704 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18705 # here-document in config.status, that substitutes the proper values into
18706 # config.h.in to produce config.h.
18707
18708 # Create a delimiter string that does not exist in confdefs.h, to ease
18709 # handling of long lines.
18710 ac_delim='%!_!# '
18711 for ac_last_try in false false :; do
18712 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18713 if test -z "$ac_tt"; then
18714 break
18715 elif $ac_last_try; then
18716 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18717 else
18718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18719 fi
18720 done
18721
18722 # For the awk script, D is an array of macro values keyed by name,
18723 # likewise P contains macro parameters if any. Preserve backslash
18724 # newline sequences.
18725
18726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18727 sed -n '
18728 s/.\{148\}/&'"$ac_delim"'/g
18729 t rset
18730 :rset
18731 s/^[ ]*#[ ]*define[ ][ ]*/ /
18732 t def
18733 d
18734 :def
18735 s/\\$//
18736 t bsnl
18737 s/["\\]/\\&/g
18738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18739 D["\1"]=" \3"/p
18740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18741 d
18742 :bsnl
18743 s/["\\]/\\&/g
18744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18745 D["\1"]=" \3\\\\\\n"\\/p
18746 t cont
18747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18748 t cont
18749 d
18750 :cont
18751 n
18752 s/.\{148\}/&'"$ac_delim"'/g
18753 t clear
18754 :clear
18755 s/\\$//
18756 t bsnlc
18757 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18758 d
18759 :bsnlc
18760 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18761 b cont
18762 ' <confdefs.h | sed '
18763 s/'"$ac_delim"'/"\\\
18764 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18765
18766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18767 for (key in D) D_is_set[key] = 1
18768 FS = ""
18769 }
18770 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18771 line = \$ 0
18772 split(line, arg, " ")
18773 if (arg[1] == "#") {
18774 defundef = arg[2]
18775 mac1 = arg[3]
18776 } else {
18777 defundef = substr(arg[1], 2)
18778 mac1 = arg[2]
18779 }
18780 split(mac1, mac2, "(") #)
18781 macro = mac2[1]
18782 prefix = substr(line, 1, index(line, defundef) - 1)
18783 if (D_is_set[macro]) {
18784 # Preserve the white space surrounding the "#".
18785 print prefix "define", macro P[macro] D[macro]
18786 next
18787 } else {
18788 # Replace #undef with comments. This is necessary, for example,
18789 # in the case of _POSIX_SOURCE, which is predefined and required
18790 # on some systems where configure will not decide to define it.
18791 if (defundef == "undef") {
18792 print "/*", prefix defundef, macro, "*/"
18793 next
18794 }
18795 }
18796 }
18797 { print }
18798 _ACAWK
18799 _ACEOF
18800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18801 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18802 fi # test -n "$CONFIG_HEADERS"
18803
18804
18805 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18806 shift
18807 for ac_tag
18808 do
18809 case $ac_tag in
18810 :[FHLC]) ac_mode=$ac_tag; continue;;
18811 esac
18812 case $ac_mode$ac_tag in
18813 :[FHL]*:*);;
18814 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18815 :[FH]-) ac_tag=-:-;;
18816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18817 esac
18818 ac_save_IFS=$IFS
18819 IFS=:
18820 set x $ac_tag
18821 IFS=$ac_save_IFS
18822 shift
18823 ac_file=$1
18824 shift
18825
18826 case $ac_mode in
18827 :L) ac_source=$1;;
18828 :[FH])
18829 ac_file_inputs=
18830 for ac_f
18831 do
18832 case $ac_f in
18833 -) ac_f="$ac_tmp/stdin";;
18834 *) # Look for the file first in the build tree, then in the source tree
18835 # (if the path is not absolute). The absolute path cannot be DOS-style,
18836 # because $ac_f cannot contain ':'.
18837 test -f "$ac_f" ||
18838 case $ac_f in
18839 [\\/$]*) false;;
18840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18841 esac ||
18842 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18843 esac
18844 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18845 as_fn_append ac_file_inputs " '$ac_f'"
18846 done
18847
18848 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18849 # use $as_me), people would be surprised to read:
18850 # /* config.h. Generated by config.status. */
18851 configure_input='Generated from '`
18852 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18853 `' by configure.'
18854 if test x"$ac_file" != x-; then
18855 configure_input="$ac_file. $configure_input"
18856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18857 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18858 fi
18859 # Neutralize special characters interpreted by sed in replacement strings.
18860 case $configure_input in #(
18861 *\&* | *\|* | *\\* )
18862 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18863 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18864 *) ac_sed_conf_input=$configure_input;;
18865 esac
18866
18867 case $ac_tag in
18868 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18870 esac
18871 ;;
18872 esac
18873
18874 ac_dir=`$as_dirname -- "$ac_file" ||
18875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18876 X"$ac_file" : 'X\(//\)[^/]' \| \
18877 X"$ac_file" : 'X\(//\)$' \| \
18878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18879 printf "%s\n" X"$ac_file" |
18880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18881 s//\1/
18882 q
18883 }
18884 /^X\(\/\/\)[^/].*/{
18885 s//\1/
18886 q
18887 }
18888 /^X\(\/\/\)$/{
18889 s//\1/
18890 q
18891 }
18892 /^X\(\/\).*/{
18893 s//\1/
18894 q
18895 }
18896 s/.*/./; q'`
18897 as_dir="$ac_dir"; as_fn_mkdir_p
18898 ac_builddir=.
18899
18900 case "$ac_dir" in
18901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18902 *)
18903 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18904 # A ".." for each directory in $ac_dir_suffix.
18905 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18906 case $ac_top_builddir_sub in
18907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18909 esac ;;
18910 esac
18911 ac_abs_top_builddir=$ac_pwd
18912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18913 # for backward compatibility:
18914 ac_top_builddir=$ac_top_build_prefix
18915
18916 case $srcdir in
18917 .) # We are building in place.
18918 ac_srcdir=.
18919 ac_top_srcdir=$ac_top_builddir_sub
18920 ac_abs_top_srcdir=$ac_pwd ;;
18921 [\\/]* | ?:[\\/]* ) # Absolute name.
18922 ac_srcdir=$srcdir$ac_dir_suffix;
18923 ac_top_srcdir=$srcdir
18924 ac_abs_top_srcdir=$srcdir ;;
18925 *) # Relative name.
18926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18927 ac_top_srcdir=$ac_top_build_prefix$srcdir
18928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18929 esac
18930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18931
18932
18933 case $ac_mode in
18934 :F)
18935 #
18936 # CONFIG_FILE
18937 #
18938
18939 case $INSTALL in
18940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18941 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18942 esac
18943 ac_MKDIR_P=$MKDIR_P
18944 case $MKDIR_P in
18945 [\\/$]* | ?:[\\/]* ) ;;
18946 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18947 esac
18948 _ACEOF
18949
18950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18951 # If the template does not know about datarootdir, expand it.
18952 # FIXME: This hack should be removed a few years after 2.60.
18953 ac_datarootdir_hack=; ac_datarootdir_seen=
18954 ac_sed_dataroot='
18955 /datarootdir/ {
18956 p
18957 q
18958 }
18959 /@datadir@/p
18960 /@docdir@/p
18961 /@infodir@/p
18962 /@localedir@/p
18963 /@mandir@/p'
18964 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18965 *datarootdir*) ac_datarootdir_seen=yes;;
18966 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18968 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18969 _ACEOF
18970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18971 ac_datarootdir_hack='
18972 s&@datadir@&$datadir&g
18973 s&@docdir@&$docdir&g
18974 s&@infodir@&$infodir&g
18975 s&@localedir@&$localedir&g
18976 s&@mandir@&$mandir&g
18977 s&\\\${datarootdir}&$datarootdir&g' ;;
18978 esac
18979 _ACEOF
18980
18981 # Neutralize VPATH when '$srcdir' = '.'.
18982 # Shell code in configure.ac might set extrasub.
18983 # FIXME: do we really want to maintain this feature?
18984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18985 ac_sed_extra="$ac_vpsub
18986 $extrasub
18987 _ACEOF
18988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18989 :t
18990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18991 s|@configure_input@|$ac_sed_conf_input|;t t
18992 s&@top_builddir@&$ac_top_builddir_sub&;t t
18993 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18994 s&@srcdir@&$ac_srcdir&;t t
18995 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18996 s&@top_srcdir@&$ac_top_srcdir&;t t
18997 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18998 s&@builddir@&$ac_builddir&;t t
18999 s&@abs_builddir@&$ac_abs_builddir&;t t
19000 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19001 s&@INSTALL@&$ac_INSTALL&;t t
19002 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19003 $ac_datarootdir_hack
19004 "
19005 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19006 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19007
19008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19009 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19011 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19013 which seems to be undefined. Please make sure it is defined" >&5
19014 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19015 which seems to be undefined. Please make sure it is defined" >&2;}
19016
19017 rm -f "$ac_tmp/stdin"
19018 case $ac_file in
19019 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19020 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19021 esac \
19022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19023 ;;
19024 :H)
19025 #
19026 # CONFIG_HEADER
19027 #
19028 if test x"$ac_file" != x-; then
19029 {
19030 printf "%s\n" "/* $configure_input */" >&1 \
19031 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19032 } >"$ac_tmp/config.h" \
19033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19034 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19036 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19037 else
19038 rm -f "$ac_file"
19039 mv "$ac_tmp/config.h" "$ac_file" \
19040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19041 fi
19042 else
19043 printf "%s\n" "/* $configure_input */" >&1 \
19044 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19045 || as_fn_error $? "could not create -" "$LINENO" 5
19046 fi
19047 # Compute "$ac_file"'s index in $config_headers.
19048 _am_arg="$ac_file"
19049 _am_stamp_count=1
19050 for _am_header in $config_headers :; do
19051 case $_am_header in
19052 $_am_arg | $_am_arg:* )
19053 break ;;
19054 * )
19055 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19056 esac
19057 done
19058 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19059 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19060 X"$_am_arg" : 'X\(//\)[^/]' \| \
19061 X"$_am_arg" : 'X\(//\)$' \| \
19062 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19063 printf "%s\n" X"$_am_arg" |
19064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19065 s//\1/
19066 q
19067 }
19068 /^X\(\/\/\)[^/].*/{
19069 s//\1/
19070 q
19071 }
19072 /^X\(\/\/\)$/{
19073 s//\1/
19074 q
19075 }
19076 /^X\(\/\).*/{
19077 s//\1/
19078 q
19079 }
19080 s/.*/./; q'`/stamp-h$_am_stamp_count
19081 ;;
19082
19083 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19084 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19085 ;;
19086 esac
19087
19088
19089 case $ac_file$ac_mode in
19090 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19091 # Older Autoconf quotes --file arguments for eval, but not when files
19092 # are listed without --file. Let's play safe and only enable the eval
19093 # if we detect the quoting.
19094 # TODO: see whether this extra hack can be removed once we start
19095 # requiring Autoconf 2.70 or later.
19096 case $CONFIG_FILES in #(
19097 *\'*) :
19098 eval set x "$CONFIG_FILES" ;; #(
19099 *) :
19100 set x $CONFIG_FILES ;; #(
19101 *) :
19102 ;;
19103 esac
19104 shift
19105 # Used to flag and report bootstrapping failures.
19106 am_rc=0
19107 for am_mf
19108 do
19109 # Strip MF so we end up with the name of the file.
19110 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19111 # Check whether this is an Automake generated Makefile which includes
19112 # dependency-tracking related rules and includes.
19113 # Grep'ing the whole file directly is not great: AIX grep has a line
19114 # limit of 2048, but all sed's we know have understand at least 4000.
19115 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19116 || continue
19117 am_dirpart=`$as_dirname -- "$am_mf" ||
19118 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19119 X"$am_mf" : 'X\(//\)[^/]' \| \
19120 X"$am_mf" : 'X\(//\)$' \| \
19121 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19122 printf "%s\n" X"$am_mf" |
19123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19124 s//\1/
19125 q
19126 }
19127 /^X\(\/\/\)[^/].*/{
19128 s//\1/
19129 q
19130 }
19131 /^X\(\/\/\)$/{
19132 s//\1/
19133 q
19134 }
19135 /^X\(\/\).*/{
19136 s//\1/
19137 q
19138 }
19139 s/.*/./; q'`
19140 am_filepart=`$as_basename -- "$am_mf" ||
19141 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19142 X"$am_mf" : 'X\(//\)$' \| \
19143 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19144 printf "%s\n" X/"$am_mf" |
19145 sed '/^.*\/\([^/][^/]*\)\/*$/{
19146 s//\1/
19147 q
19148 }
19149 /^X\/\(\/\/\)$/{
19150 s//\1/
19151 q
19152 }
19153 /^X\/\(\/\).*/{
19154 s//\1/
19155 q
19156 }
19157 s/.*/./; q'`
19158 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19159 && sed -e '/# am--include-marker/d' "$am_filepart" \
19160 | $MAKE -f - am--depfiles" >&5
19161 (cd "$am_dirpart" \
19162 && sed -e '/# am--include-marker/d' "$am_filepart" \
19163 | $MAKE -f - am--depfiles) >&5 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } || am_rc=$?
19167 done
19168 if test $am_rc -ne 0; then
19169 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19170 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19171 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19172 for automatic dependency tracking. If GNU make was not used, consider
19173 re-running the configure script with MAKE=\"gmake\" (or whatever is
19174 necessary). You can also try re-running configure with the
19175 '--disable-dependency-tracking' option to at least be able to build
19176 the package (albeit without support for automatic dependency tracking).
19177 See 'config.log' for more details" "$LINENO" 5; }
19178 fi
19179 { am_dirpart=; unset am_dirpart;}
19180 { am_filepart=; unset am_filepart;}
19181 { am_mf=; unset am_mf;}
19182 { am_rc=; unset am_rc;}
19183 rm -f conftest-deps.mk
19184 }
19185 ;;
19186 "libtool":C)
19187
19188 # See if we are running on zsh, and set the options that allow our
19189 # commands through without removal of \ escapes.
19190 if test -n "${ZSH_VERSION+set}"; then
19191 setopt NO_GLOB_SUBST
19192 fi
19193
19194 cfgfile=${ofile}T
19195 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19196 $RM "$cfgfile"
19197
19198 cat <<_LT_EOF >> "$cfgfile"
19199 #! $SHELL
19200 # Generated automatically by $as_me ($PACKAGE) $VERSION
19201 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19202
19203 # Provide generalized library-building support services.
19204 # Written by Gordon Matzigkeit, 1996
19205
19206 # Copyright (C) 2024 Free Software Foundation, Inc.
19207 # This is free software; see the source for copying conditions. There is NO
19208 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19209
19210 # GNU Libtool is free software; you can redistribute it and/or modify
19211 # it under the terms of the GNU General Public License as published by
19212 # the Free Software Foundation; either version 2 of the License, or
19213 # (at your option) any later version.
19214 #
19215 # As a special exception to the GNU General Public License, if you
19216 # distribute this file as part of a program or library that is built
19217 # using GNU Libtool, you may include this file under the same
19218 # distribution terms that you use for the rest of that program.
19219 #
19220 # GNU Libtool is distributed in the hope that it will be useful, but
19221 # WITHOUT ANY WARRANTY; without even the implied warranty of
19222 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19223 # GNU General Public License for more details.
19224 #
19225 # You should have received a copy of the GNU General Public License
19226 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19227
19228
19229 # The names of the tagged configurations supported by this script.
19230 available_tags=''
19231
19232 # Configured defaults for sys_lib_dlsearch_path munging.
19233 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19234
19235 # ### BEGIN LIBTOOL CONFIG
19236
19237 # Which release of libtool.m4 was used?
19238 macro_version=$macro_version
19239 macro_revision=$macro_revision
19240
19241 # Assembler program.
19242 AS=$lt_AS
19243
19244 # DLL creation program.
19245 DLLTOOL=$lt_DLLTOOL
19246
19247 # Object dumper program.
19248 OBJDUMP=$lt_OBJDUMP
19249
19250 # Whether or not to build shared libraries.
19251 build_libtool_libs=$enable_shared
19252
19253 # Whether or not to build static libraries.
19254 build_old_libs=$enable_static
19255
19256 # What type of objects to build.
19257 pic_mode=$pic_mode
19258
19259 # Whether or not to optimize for fast installation.
19260 fast_install=$enable_fast_install
19261
19262 # Shared archive member basename,for filename based shared library versioning on AIX.
19263 shared_archive_member_spec=$shared_archive_member_spec
19264
19265 # Shell to use when invoking shell scripts.
19266 SHELL=$lt_SHELL
19267
19268 # An echo program that protects backslashes.
19269 ECHO=$lt_ECHO
19270
19271 # The PATH separator for the build system.
19272 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19273
19274 # The host system.
19275 host_alias=$host_alias
19276 host=$host
19277 host_os=$host_os
19278
19279 # The build system.
19280 build_alias=$build_alias
19281 build=$build
19282 build_os=$build_os
19283
19284 # A sed program that does not truncate output.
19285 SED=$lt_SED
19286
19287 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19288 Xsed="\$SED -e 1s/^X//"
19289
19290 # A grep program that handles long lines.
19291 GREP=$lt_GREP
19292
19293 # An ERE matcher.
19294 EGREP=$lt_EGREP
19295
19296 # A literal string matcher.
19297 FGREP=$lt_FGREP
19298
19299 # A BSD- or MS-compatible name lister.
19300 NM=$lt_NM
19301
19302 # Whether we need soft or hard links.
19303 LN_S=$lt_LN_S
19304
19305 # What is the maximum length of a command?
19306 max_cmd_len=$max_cmd_len
19307
19308 # Object file suffix (normally "o").
19309 objext=$ac_objext
19310
19311 # Executable file suffix (normally "").
19312 exeext=$exeext
19313
19314 # whether the shell understands "unset".
19315 lt_unset=$lt_unset
19316
19317 # turn spaces into newlines.
19318 SP2NL=$lt_lt_SP2NL
19319
19320 # turn newlines into spaces.
19321 NL2SP=$lt_lt_NL2SP
19322
19323 # convert \$build file names to \$host format.
19324 to_host_file_cmd=$lt_cv_to_host_file_cmd
19325
19326 # convert \$build files to toolchain format.
19327 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19328
19329 # A file(cmd) program that detects file types.
19330 FILECMD=$lt_FILECMD
19331
19332 # Method to check whether dependent libraries are shared objects.
19333 deplibs_check_method=$lt_deplibs_check_method
19334
19335 # Command to use when deplibs_check_method = "file_magic".
19336 file_magic_cmd=$lt_file_magic_cmd
19337
19338 # How to find potential files when deplibs_check_method = "file_magic".
19339 file_magic_glob=$lt_file_magic_glob
19340
19341 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19342 want_nocaseglob=$lt_want_nocaseglob
19343
19344 # Command to associate shared and link libraries.
19345 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19346
19347 # The archiver.
19348 AR=$lt_AR
19349
19350 # Flags to create an archive (by configure).
19351 lt_ar_flags=$lt_ar_flags
19352
19353 # Flags to create an archive.
19354 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19355
19356 # How to feed a file listing to the archiver.
19357 archiver_list_spec=$lt_archiver_list_spec
19358
19359 # A symbol stripping program.
19360 STRIP=$lt_STRIP
19361
19362 # Commands used to install an old-style archive.
19363 RANLIB=$lt_RANLIB
19364 old_postinstall_cmds=$lt_old_postinstall_cmds
19365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19366
19367 # Whether to use a lock for old archive extraction.
19368 lock_old_archive_extraction=$lock_old_archive_extraction
19369
19370 # A C compiler.
19371 LTCC=$lt_CC
19372
19373 # LTCC compiler flags.
19374 LTCFLAGS=$lt_CFLAGS
19375
19376 # Take the output of nm and produce a listing of raw symbols and C names.
19377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19378
19379 # Transform the output of nm in a proper C declaration.
19380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19381
19382 # Transform the output of nm into a list of symbols to manually relocate.
19383 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19384
19385 # Transform the output of nm in a C name address pair.
19386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19387
19388 # Transform the output of nm in a C name address pair when lib prefix is needed.
19389 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19390
19391 # The name lister interface.
19392 nm_interface=$lt_lt_cv_nm_interface
19393
19394 # Specify filename containing input files for \$NM.
19395 nm_file_list_spec=$lt_nm_file_list_spec
19396
19397 # The root where to search for dependent libraries,and where our libraries should be installed.
19398 lt_sysroot=$lt_sysroot
19399
19400 # Command to truncate a binary pipe.
19401 lt_truncate_bin=$lt_lt_cv_truncate_bin
19402
19403 # The name of the directory that contains temporary libtool files.
19404 objdir=$objdir
19405
19406 # Used to examine libraries when file_magic_cmd begins with "file".
19407 MAGIC_CMD=$MAGIC_CMD
19408
19409 # Must we lock files when doing compilation?
19410 need_locks=$lt_need_locks
19411
19412 # Manifest tool.
19413 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19414
19415 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19416 DSYMUTIL=$lt_DSYMUTIL
19417
19418 # Tool to change global to local symbols on Mac OS X.
19419 NMEDIT=$lt_NMEDIT
19420
19421 # Tool to manipulate fat objects and archives on Mac OS X.
19422 LIPO=$lt_LIPO
19423
19424 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19425 OTOOL=$lt_OTOOL
19426
19427 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19428 OTOOL64=$lt_OTOOL64
19429
19430 # Old archive suffix (normally "a").
19431 libext=$libext
19432
19433 # Shared library suffix (normally ".so").
19434 shrext_cmds=$lt_shrext_cmds
19435
19436 # The commands to extract the exported symbol list from a shared archive.
19437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19438
19439 # Variables whose values should be saved in libtool wrapper scripts and
19440 # restored at link time.
19441 variables_saved_for_relink=$lt_variables_saved_for_relink
19442
19443 # Do we need the "lib" prefix for modules?
19444 need_lib_prefix=$need_lib_prefix
19445
19446 # Do we need a version for libraries?
19447 need_version=$need_version
19448
19449 # Library versioning type.
19450 version_type=$version_type
19451
19452 # Shared library runtime path variable.
19453 runpath_var=$runpath_var
19454
19455 # Shared library path variable.
19456 shlibpath_var=$shlibpath_var
19457
19458 # Is shlibpath searched before the hard-coded library search path?
19459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19460
19461 # Format of library name prefix.
19462 libname_spec=$lt_libname_spec
19463
19464 # List of archive names. First name is the real one, the rest are links.
19465 # The last name is the one that the linker finds with -lNAME
19466 library_names_spec=$lt_library_names_spec
19467
19468 # The coded name of the library, if different from the real name.
19469 soname_spec=$lt_soname_spec
19470
19471 # Permission mode override for installation of shared libraries.
19472 install_override_mode=$lt_install_override_mode
19473
19474 # Command to use after installation of a shared archive.
19475 postinstall_cmds=$lt_postinstall_cmds
19476
19477 # Command to use after uninstallation of a shared archive.
19478 postuninstall_cmds=$lt_postuninstall_cmds
19479
19480 # Commands used to finish a libtool library installation in a directory.
19481 finish_cmds=$lt_finish_cmds
19482
19483 # As "finish_cmds", except a single script fragment to be evaled but
19484 # not shown.
19485 finish_eval=$lt_finish_eval
19486
19487 # Whether we should hardcode library paths into libraries.
19488 hardcode_into_libs=$hardcode_into_libs
19489
19490 # Compile-time system search path for libraries.
19491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19492
19493 # Detected run-time system search path for libraries.
19494 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19495
19496 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19497 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19498
19499 # Whether dlopen is supported.
19500 dlopen_support=$enable_dlopen
19501
19502 # Whether dlopen of programs is supported.
19503 dlopen_self=$enable_dlopen_self
19504
19505 # Whether dlopen of statically linked programs is supported.
19506 dlopen_self_static=$enable_dlopen_self_static
19507
19508 # Commands to strip libraries.
19509 old_striplib=$lt_old_striplib
19510 striplib=$lt_striplib
19511
19512
19513 # The linker used to build libraries.
19514 LD=$lt_LD
19515
19516 # How to create reloadable object files.
19517 reload_flag=$lt_reload_flag
19518 reload_cmds=$lt_reload_cmds
19519
19520 # Commands used to build an old-style archive.
19521 old_archive_cmds=$lt_old_archive_cmds
19522
19523 # A language specific compiler.
19524 CC=$lt_compiler
19525
19526 # Is the compiler the GNU compiler?
19527 with_gcc=$GCC
19528
19529 # Compiler flag to turn off builtin functions.
19530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19531
19532 # Additional compiler flags for building library objects.
19533 pic_flag=$lt_lt_prog_compiler_pic
19534
19535 # How to pass a linker flag through the compiler.
19536 wl=$lt_lt_prog_compiler_wl
19537
19538 # Compiler flag to prevent dynamic linking.
19539 link_static_flag=$lt_lt_prog_compiler_static
19540
19541 # Does compiler simultaneously support -c and -o options?
19542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19543
19544 # Whether or not to add -lc for building shared libraries.
19545 build_libtool_need_lc=$archive_cmds_need_lc
19546
19547 # Whether or not to disallow shared libs when runtime libs are static.
19548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19549
19550 # Compiler flag to allow reflexive dlopens.
19551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19552
19553 # Compiler flag to generate shared objects directly from archives.
19554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19555
19556 # Whether the compiler copes with passing no objects directly.
19557 compiler_needs_object=$lt_compiler_needs_object
19558
19559 # Create an old-style archive from a shared archive.
19560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19561
19562 # Create a temporary old-style archive to link instead of a shared archive.
19563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19564
19565 # Commands used to build a shared archive.
19566 archive_cmds=$lt_archive_cmds
19567 archive_expsym_cmds=$lt_archive_expsym_cmds
19568
19569 # Commands used to build a loadable module if different from building
19570 # a shared archive.
19571 module_cmds=$lt_module_cmds
19572 module_expsym_cmds=$lt_module_expsym_cmds
19573
19574 # Whether we are building with GNU ld or not.
19575 with_gnu_ld=$lt_with_gnu_ld
19576
19577 # Flag that allows shared libraries with undefined symbols to be built.
19578 allow_undefined_flag=$lt_allow_undefined_flag
19579
19580 # Flag that enforces no undefined symbols.
19581 no_undefined_flag=$lt_no_undefined_flag
19582
19583 # Flag to hardcode \$libdir into a binary during linking.
19584 # This must work even if \$libdir does not exist
19585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19586
19587 # Whether we need a single "-rpath" flag with a separated argument.
19588 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19589
19590 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19591 # DIR into the resulting binary.
19592 hardcode_direct=$hardcode_direct
19593
19594 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19595 # DIR into the resulting binary and the resulting library dependency is
19596 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19597 # library is relocated.
19598 hardcode_direct_absolute=$hardcode_direct_absolute
19599
19600 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19601 # into the resulting binary.
19602 hardcode_minus_L=$hardcode_minus_L
19603
19604 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19605 # into the resulting binary.
19606 hardcode_shlibpath_var=$hardcode_shlibpath_var
19607
19608 # Set to "yes" if building a shared library automatically hardcodes DIR
19609 # into the library and all subsequent libraries and executables linked
19610 # against it.
19611 hardcode_automatic=$hardcode_automatic
19612
19613 # Set to yes if linker adds runtime paths of dependent libraries
19614 # to runtime path list.
19615 inherit_rpath=$inherit_rpath
19616
19617 # Whether libtool must link a program against all its dependency libraries.
19618 link_all_deplibs=$link_all_deplibs
19619
19620 # Set to "yes" if exported symbols are required.
19621 always_export_symbols=$always_export_symbols
19622
19623 # The commands to list exported symbols.
19624 export_symbols_cmds=$lt_export_symbols_cmds
19625
19626 # Symbols that should not be listed in the preloaded symbols.
19627 exclude_expsyms=$lt_exclude_expsyms
19628
19629 # Symbols that must always be exported.
19630 include_expsyms=$lt_include_expsyms
19631
19632 # Commands necessary for linking programs (against libraries) with templates.
19633 prelink_cmds=$lt_prelink_cmds
19634
19635 # Commands necessary for finishing linking programs.
19636 postlink_cmds=$lt_postlink_cmds
19637
19638 # Specify filename containing input files.
19639 file_list_spec=$lt_file_list_spec
19640
19641 # How to hardcode a shared library path into an executable.
19642 hardcode_action=$hardcode_action
19643
19644 # ### END LIBTOOL CONFIG
19645
19646 _LT_EOF
19647
19648 cat <<'_LT_EOF' >> "$cfgfile"
19649
19650 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19651
19652 # func_munge_path_list VARIABLE PATH
19653 # -----------------------------------
19654 # VARIABLE is name of variable containing _space_ separated list of
19655 # directories to be munged by the contents of PATH, which is string
19656 # having a format:
19657 # "DIR[:DIR]:"
19658 # string "DIR[ DIR]" will be prepended to VARIABLE
19659 # ":DIR[:DIR]"
19660 # string "DIR[ DIR]" will be appended to VARIABLE
19661 # "DIRP[:DIRP]::[DIRA:]DIRA"
19662 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19663 # "DIRA[ DIRA]" will be appended to VARIABLE
19664 # "DIR[:DIR]"
19665 # VARIABLE will be replaced by "DIR[ DIR]"
19666 func_munge_path_list ()
19667 {
19668 case x$2 in
19669 x)
19670 ;;
19671 *:)
19672 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19673 ;;
19674 x:*)
19675 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19676 ;;
19677 *::*)
19678 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19679 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19680 ;;
19681 *)
19682 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19683 ;;
19684 esac
19685 }
19686
19687
19688 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19689 func_cc_basename ()
19690 {
19691 for cc_temp in $*""; do
19692 case $cc_temp in
19693 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19694 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19695 \-*) ;;
19696 *) break;;
19697 esac
19698 done
19699 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19700 }
19701
19702
19703 # ### END FUNCTIONS SHARED WITH CONFIGURE
19704
19705 _LT_EOF
19706
19707 case $host_os in
19708 aix3*)
19709 cat <<\_LT_EOF >> "$cfgfile"
19710 # AIX sometimes has problems with the GCC collect2 program. For some
19711 # reason, if we set the COLLECT_NAMES environment variable, the problems
19712 # vanish in a puff of smoke.
19713 if test set != "${COLLECT_NAMES+set}"; then
19714 COLLECT_NAMES=
19715 export COLLECT_NAMES
19716 fi
19717 _LT_EOF
19718 ;;
19719 esac
19720
19721
19722
19723 ltmain=$ac_aux_dir/ltmain.sh
19724
19725
19726 # We use sed instead of cat because bash on DJGPP gets confused if
19727 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19728 # text mode, it properly converts lines to CR/LF. This bash problem
19729 # is reportedly fixed, but why not run on old versions too?
19730 $SED '$q' "$ltmain" >> "$cfgfile" \
19731 || (rm -f "$cfgfile"; exit 1)
19732
19733 mv -f "$cfgfile" "$ofile" ||
19734 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19735 chmod +x "$ofile"
19736
19737 ;;
19738
19739 esac
19740 done # for ac_tag
19741
19742
19743 as_fn_exit 0
19744 _ACEOF
19745 ac_clean_files=$ac_clean_files_save
19746
19747 test $ac_write_fail = 0 ||
19748 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19749
19750
19751 # configure is writing to config.log, and then calls config.status.
19752 # config.status does its own redirection, appending to config.log.
19753 # Unfortunately, on DOS this fails, as config.log is still kept open
19754 # by configure, so config.status won't be able to write to it; its
19755 # output is simply discarded. So we exec the FD to /dev/null,
19756 # effectively closing config.log, so it can be properly (re)opened and
19757 # appended to by config.status. When coming back to configure, we
19758 # need to make the FD available again.
19759 if test "$no_create" != yes; then
19760 ac_cs_success=:
19761 ac_config_status_args=
19762 test "$silent" = yes &&
19763 ac_config_status_args="$ac_config_status_args --quiet"
19764 exec 5>/dev/null
19765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19766 exec 5>>config.log
19767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19768 # would make configure fail if this is the last instruction.
19769 $ac_cs_success || as_fn_exit 1
19770 fi
19771 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19773 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19774 fi
19775
19776