Debian Codegraph @

texk/detex/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 detex (TeX Live) 2.8.11.
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='detex (TeX Live)'
616 PACKAGE_TARNAME='detex--tex-live-'
617 PACKAGE_VERSION='2.8.11'
618 PACKAGE_STRING='detex (TeX Live) 2.8.11'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="detex-src/detex.l"
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 DETEX_TREE
661 KPATHSEA_RULE
662 KPATHSEA_DEPEND
663 KPATHSEA_LIBS
664 KPATHSEA_INCLUDES
665 PKG_CONFIG
666 LEXLIB
667 LEX_OUTPUT_ROOT
668 LEX
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 RANLIB
677 FILECMD
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 OBJDUMP
697 DLLTOOL
698 AS
699 ac_ct_AR
700 AR
701 WARNING_CFLAGS
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 MAINT
719 MAINTAINER_MODE_FALSE
720 MAINTAINER_MODE_TRUE
721 am__xargs_n
722 am__rm_f_notfound
723 AM_BACKSLASH
724 AM_DEFAULT_VERBOSITY
725 AM_DEFAULT_V
726 AM_V
727 CSCOPE
728 ETAGS
729 CTAGS
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 runstatedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL
792 am__quote'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_silent_rules
797 enable_maintainer_mode
798 enable_dependency_tracking
799 enable_compiler_warnings
800 enable_shared
801 enable_static
802 enable_pic
803 with_pic
804 enable_fast_install
805 enable_aix_soname
806 with_aix_soname
807 with_gnu_ld
808 with_sysroot
809 enable_libtool_lock
810 enable_largefile
811 with_system_kpathsea
812 enable_year2038
813 '
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 LT_SYS_LIBRARY_PATH'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 runstatedir='${localstatedir}/run'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
919
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: '$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
952
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: '$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
968
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
977
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
981
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
988
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
993
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
999
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1006
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1011
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1016
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1023
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1028
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1035
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1040
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1044
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1048
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1052
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1061
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1066
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1073
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1080
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1097
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1102
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1107
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1111
1112 -runstatedir | --runstatedir | --runstatedi | --runstated \
1113 | --runstate | --runstat | --runsta | --runst | --runs \
1114 | --run | --ru | --r)
1115 ac_prev=runstatedir ;;
1116 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1117 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1118 | --run=* | --ru=* | --r=*)
1119 runstatedir=$ac_optarg ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: '$ac_useropt'"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: '$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: '$ac_option'
1217 Try '$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir runstatedir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: '$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 printf "%s\n" X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 'configure' configures detex (TeX Live) 2.8.11 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print 'checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for '--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or '..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, 'make install' will install all the files in
1398 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than '$ac_default_prefix' using '--prefix',
1400 for instance '--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root
1421 [DATAROOTDIR/doc/detex--tex-live-]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of detex (TeX Live) 2.8.11:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-maintainer-mode
1454 enable make rules and dependencies not useful (and
1455 sometimes confusing) to the casual installer
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
1460 --enable-compiler-warnings=[no|min|yes|max|all]
1461 Turn on compiler warnings [default: yes if
1462 maintainer-mode, min otherwise]
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-static[=PKGS] build static libraries [default=yes]
1465 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1466 both]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --enable-aix-soname=aix|svr4|both
1470 shared library versioning (aka "SONAME") variant to
1471 provide on AIX, [default=aix].
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1473 --disable-largefile omit support for large files
1474 --enable-year2038 support timestamps after 2038
1475
1476 Optional Packages:
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1481 compiler's sysroot if not specified).
1482 --with-system-kpathsea use installed kpathsea headers and library (requires
1483 pkg-config)
1484
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 LT_SYS_LIBRARY_PATH
1494 User-defined run-time library search path.
1495
1496 Use these variables to override the choices made by 'configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 Report bugs to <[email protected]>.
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for configure.gnu first; this name is used for a wrapper for
1546 # Metaconfig's "Configure" on case-insensitive file systems.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 detex (TeX Live) configure 2.8.11
1564 generated by GNU Autoconf 2.72
1565
1566 Copyright (C) 2023 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest.beam
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 printf "%s\n" "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext
1603 then :
1604 ac_retval=0
1605 else case e in #(
1606 e) printf "%s\n" "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1 ;;
1610 esac
1611 fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 printf %s "checking for $2... " >&6; }
1626 if eval test \${$3+y}
1627 then :
1628 printf %s "(cached) " >&6
1629 else case e in #(
1630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 $4
1633 #include <$2>
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"
1636 then :
1637 eval "$3=yes"
1638 else case e in #(
1639 e) eval "$3=no" ;;
1640 esac
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1643 esac
1644 fi
1645 eval ac_res=\$$3
1646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 printf "%s\n" "$ac_res" >&6; }
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650 } # ac_fn_c_check_header_compile
1651
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf "%s\n" "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1680 }
1681 then :
1682 ac_retval=0
1683 else case e in #(
1684 e) printf "%s\n" "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1 ;;
1688 esac
1689 fi
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_link
1699
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else case e in #(
1712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716 #define $2 innocuous_$2
1717
1718 /* System header to define __stub macros and hopefully few prototypes,
1719 which can conflict with char $2 (void); below. */
1720
1721 #include <limits.h>
1722 #undef $2
1723
1724 /* Override any GCC internal prototype to avoid an error.
1725 Use char because int might match the return type of a GCC
1726 builtin and then its argument prototype would still apply. */
1727 #ifdef __cplusplus
1728 extern "C"
1729 #endif
1730 char $2 (void);
1731 /* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734 #if defined __stub_$2 || defined __stub___$2
1735 choke me
1736 #endif
1737
1738 int
1739 main (void)
1740 {
1741 return $2 ();
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 if ac_fn_c_try_link "$LINENO"
1747 then :
1748 eval "$3=yes"
1749 else case e in #(
1750 e) eval "$3=no" ;;
1751 esac
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1754 conftest$ac_exeext conftest.$ac_ext ;;
1755 esac
1756 fi
1757 eval ac_res=\$$3
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_func
1763
1764 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1765 # -------------------------------------------
1766 # Tests whether TYPE exists after having included INCLUDES, setting cache
1767 # variable VAR accordingly.
1768 ac_fn_c_check_type ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 printf %s "checking for $2... " >&6; }
1773 if eval test \${$3+y}
1774 then :
1775 printf %s "(cached) " >&6
1776 else case e in #(
1777 e) eval "$3=no"
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 int
1782 main (void)
1783 {
1784 if (sizeof ($2))
1785 return 0;
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"
1791 then :
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 $4
1795 int
1796 main (void)
1797 {
1798 if (sizeof (($2)))
1799 return 0;
1800 ;
1801 return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"
1805 then :
1806
1807 else case e in #(
1808 e) eval "$3=yes" ;;
1809 esac
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1814 esac
1815 fi
1816 eval ac_res=\$$3
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 printf "%s\n" "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_type
1822
1823 # ac_fn_c_find_intX_t LINENO BITS VAR
1824 # -----------------------------------
1825 # Finds a signed integer type with width BITS, setting cache variable VAR
1826 # accordingly.
1827 ac_fn_c_find_intX_t ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1831 printf %s "checking for int$2_t... " >&6; }
1832 if eval test \${$3+y}
1833 then :
1834 printf %s "(cached) " >&6
1835 else case e in #(
1836 e) eval "$3=no"
1837 # Order is important - never check a type that is potentially smaller
1838 # than half of the expected target width.
1839 for ac_type in int$2_t 'int' 'long int' \
1840 'long long int' 'short int' 'signed char'; do
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $ac_includes_default
1844 enum { N = $2 / 2 - 1 };
1845 int
1846 main (void)
1847 {
1848 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1849 test_array [0] = 0;
1850 return test_array [0];
1851
1852 ;
1853 return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"
1857 then :
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $ac_includes_default
1861 enum { N = $2 / 2 - 1 };
1862 int
1863 main (void)
1864 {
1865 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1866 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1867 test_array [0] = 0;
1868 return test_array [0];
1869
1870 ;
1871 return 0;
1872 }
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"
1875 then :
1876
1877 else case e in #(
1878 e) case $ac_type in #(
1879 int$2_t) :
1880 eval "$3=yes" ;; #(
1881 *) :
1882 eval "$3=\$ac_type" ;;
1883 esac ;;
1884 esac
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1889 if eval test \"x\$"$3"\" = x"no"
1890 then :
1891
1892 else case e in #(
1893 e) break ;;
1894 esac
1895 fi
1896 done ;;
1897 esac
1898 fi
1899 eval ac_res=\$$3
1900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 printf "%s\n" "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_find_intX_t
1905
1906 # ac_fn_c_find_uintX_t LINENO BITS VAR
1907 # ------------------------------------
1908 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1909 # accordingly.
1910 ac_fn_c_find_uintX_t ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1914 printf %s "checking for uint$2_t... " >&6; }
1915 if eval test \${$3+y}
1916 then :
1917 printf %s "(cached) " >&6
1918 else case e in #(
1919 e) eval "$3=no"
1920 # Order is important - never check a type that is potentially smaller
1921 # than half of the expected target width.
1922 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1923 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $ac_includes_default
1927 int
1928 main (void)
1929 {
1930 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1931 test_array [0] = 0;
1932 return test_array [0];
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"
1939 then :
1940 case $ac_type in #(
1941 uint$2_t) :
1942 eval "$3=yes" ;; #(
1943 *) :
1944 eval "$3=\$ac_type" ;;
1945 esac
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1948 if eval test \"x\$"$3"\" = x"no"
1949 then :
1950
1951 else case e in #(
1952 e) break ;;
1953 esac
1954 fi
1955 done ;;
1956 esac
1957 fi
1958 eval ac_res=\$$3
1959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 printf "%s\n" "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963 } # ac_fn_c_find_uintX_t
1964
1965 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1966 # ------------------------------------------------------------------
1967 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1968 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1969 ac_fn_check_decl ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 as_decl_name=`echo $2|sed 's/ *(.*//'`
1973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1974 printf %s "checking whether $as_decl_name is declared... " >&6; }
1975 if eval test \${$3+y}
1976 then :
1977 printf %s "(cached) " >&6
1978 else case e in #(
1979 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1980 eval ac_save_FLAGS=\$$6
1981 as_fn_append $6 " $5"
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 int
1986 main (void)
1987 {
1988 #ifndef $as_decl_name
1989 #ifdef __cplusplus
1990 (void) $as_decl_use;
1991 #else
1992 (void) $as_decl_name;
1993 #endif
1994 #endif
1995
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"
2001 then :
2002 eval "$3=yes"
2003 else case e in #(
2004 e) eval "$3=no" ;;
2005 esac
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2008 eval $6=\$ac_save_FLAGS
2009 ;;
2010 esac
2011 fi
2012 eval ac_res=\$$3
2013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 printf "%s\n" "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017 } # ac_fn_check_decl
2018
2019 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2020 # ----------------------------------------------------
2021 # Tries to find if the field MEMBER exists in type AGGR, after including
2022 # INCLUDES, setting cache variable VAR accordingly.
2023 ac_fn_c_check_member ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2027 printf %s "checking for $2.$3... " >&6; }
2028 if eval test \${$4+y}
2029 then :
2030 printf %s "(cached) " >&6
2031 else case e in #(
2032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $5
2035 int
2036 main (void)
2037 {
2038 static $2 ac_aggr;
2039 if (ac_aggr.$3)
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"
2046 then :
2047 eval "$4=yes"
2048 else case e in #(
2049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $5
2052 int
2053 main (void)
2054 {
2055 static $2 ac_aggr;
2056 if (sizeof ac_aggr.$3)
2057 return 0;
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"
2063 then :
2064 eval "$4=yes"
2065 else case e in #(
2066 e) eval "$4=no" ;;
2067 esac
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2070 esac
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2073 esac
2074 fi
2075 eval ac_res=\$$4
2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 printf "%s\n" "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080 } # ac_fn_c_check_member
2081 ac_configure_args_raw=
2082 for ac_arg
2083 do
2084 case $ac_arg in
2085 *\'*)
2086 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 esac
2088 as_fn_append ac_configure_args_raw " '$ac_arg'"
2089 done
2090
2091 case $ac_configure_args_raw in
2092 *$as_nl*)
2093 ac_safe_unquote= ;;
2094 *)
2095 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2096 ac_unsafe_a="$ac_unsafe_z#~"
2097 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2098 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2099 esac
2100
2101 cat >config.log <<_ACEOF
2102 This file contains any messages produced by compilers while
2103 running configure, to aid debugging if configure makes a mistake.
2104
2105 It was created by detex (TeX Live) $as_me 2.8.11, which was
2106 generated by GNU Autoconf 2.72. Invocation command line was
2107
2108 $ $0$ac_configure_args_raw
2109
2110 _ACEOF
2111 exec 5>>config.log
2112 {
2113 cat <<_ASUNAME
2114 ## --------- ##
2115 ## Platform. ##
2116 ## --------- ##
2117
2118 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123
2124 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2126
2127 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2128 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2129 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2131 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2132 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2133 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2134
2135 _ASUNAME
2136
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 case $as_dir in #(((
2142 '') as_dir=./ ;;
2143 */) ;;
2144 *) as_dir=$as_dir/ ;;
2145 esac
2146 printf "%s\n" "PATH: $as_dir"
2147 done
2148 IFS=$as_save_IFS
2149
2150 } >&5
2151
2152 cat >&5 <<_ACEOF
2153
2154
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2158
2159 _ACEOF
2160
2161
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2172 do
2173 for ac_arg
2174 do
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
2180 *\'*)
2181 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 esac
2183 case $ac_pass in
2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185 2)
2186 as_fn_append ac_configure_args1 " '$ac_arg'"
2187 if test $ac_must_keep_next = true; then
2188 ac_must_keep_next=false # Got value, back to normal.
2189 else
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2198 ;;
2199 -* ) ac_must_keep_next=true ;;
2200 esac
2201 fi
2202 as_fn_append ac_configure_args " '$ac_arg'"
2203 ;;
2204 esac
2205 done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2209
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log. We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216 # Sanitize IFS.
2217 IFS=" "" $as_nl"
2218 # Save into config.log some information that might help in debugging.
2219 {
2220 echo
2221
2222 printf "%s\n" "## ---------------- ##
2223 ## Cache variables. ##
2224 ## ---------------- ##"
2225 echo
2226 # The following way of writing the cache mishandles newlines in values,
2227 (
2228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in #(
2231 *${as_nl}*)
2232 case $ac_var in #(
2233 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 esac
2236 case $ac_var in #(
2237 _ | IFS | as_nl) ;; #(
2238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239 *) { eval $ac_var=; unset $ac_var;} ;;
2240 esac ;;
2241 esac
2242 done
2243 (set) 2>&1 |
2244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245 *${as_nl}ac_space=\ *)
2246 sed -n \
2247 "s/'\''/'\''\\\\'\'''\''/g;
2248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 ;; #(
2250 *)
2251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 ;;
2253 esac |
2254 sort
2255 )
2256 echo
2257
2258 printf "%s\n" "## ----------------- ##
2259 ## Output variables. ##
2260 ## ----------------- ##"
2261 echo
2262 for ac_var in $ac_subst_vars
2263 do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 printf "%s\n" "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2271
2272 if test -n "$ac_subst_files"; then
2273 printf "%s\n" "## ------------------- ##
2274 ## File substitutions. ##
2275 ## ------------------- ##"
2276 echo
2277 for ac_var in $ac_subst_files
2278 do
2279 eval ac_val=\$$ac_var
2280 case $ac_val in
2281 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 esac
2283 printf "%s\n" "$ac_var='\''$ac_val'\''"
2284 done | sort
2285 echo
2286 fi
2287
2288 if test -s confdefs.h; then
2289 printf "%s\n" "## ----------- ##
2290 ## confdefs.h. ##
2291 ## ----------- ##"
2292 echo
2293 cat confdefs.h
2294 echo
2295 fi
2296 test "$ac_signal" != 0 &&
2297 printf "%s\n" "$as_me: caught signal $ac_signal"
2298 printf "%s\n" "$as_me: exit $exit_status"
2299 } >&5
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 exit $exit_status
2303 ' 0
2304 for ac_signal in 1 2 13 15; do
2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2308
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2311
2312 printf "%s\n" "/* confdefs.h */" > confdefs.h
2313
2314 # Predefined preprocessor variables.
2315
2316 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2317
2318 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2319
2320 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2321
2322 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2323
2324 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2325
2326 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2327
2328
2329 # Let the site file select an alternate cache file if it wants to.
2330 # Prefer an explicitly selected file to automatically selected ones.
2331 if test -n "$CONFIG_SITE"; then
2332 ac_site_files="$CONFIG_SITE"
2333 elif test "x$prefix" != xNONE; then
2334 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2335 else
2336 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2337 fi
2338
2339 for ac_site_file in $ac_site_files
2340 do
2341 case $ac_site_file in #(
2342 */*) :
2343 ;; #(
2344 *) :
2345 ac_site_file=./$ac_site_file ;;
2346 esac
2347 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2350 sed 's/^/| /' "$ac_site_file" >&5
2351 . "$ac_site_file" \
2352 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2353 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2354 as_fn_error $? "failed to load site script $ac_site_file
2355 See 'config.log' for more details" "$LINENO" 5; }
2356 fi
2357 done
2358
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special files
2361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2369 fi
2370 else
2371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2374 fi
2375
2376 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2377 # Test code for whether the C compiler supports C89 (global declarations)
2378 ac_c_conftest_c89_globals='
2379 /* Does the compiler advertise C89 conformance?
2380 Do not test the value of __STDC__, because some compilers set it to 0
2381 while being otherwise adequately conformant. */
2382 #if !defined __STDC__
2383 # error "Compiler does not advertise C89 conformance"
2384 #endif
2385
2386 #include <stddef.h>
2387 #include <stdarg.h>
2388 struct stat;
2389 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2390 struct buf { int x; };
2391 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2392 static char *e (char **p, int i)
2393 {
2394 return p[i];
2395 }
2396 static char *f (char * (*g) (char **, int), char **p, ...)
2397 {
2398 char *s;
2399 va_list v;
2400 va_start (v,p);
2401 s = g (p, va_arg (v,int));
2402 va_end (v);
2403 return s;
2404 }
2405
2406 /* C89 style stringification. */
2407 #define noexpand_stringify(a) #a
2408 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2409
2410 /* C89 style token pasting. Exercises some of the corner cases that
2411 e.g. old MSVC gets wrong, but not very hard. */
2412 #define noexpand_concat(a,b) a##b
2413 #define expand_concat(a,b) noexpand_concat(a,b)
2414 extern int vA;
2415 extern int vbee;
2416 #define aye A
2417 #define bee B
2418 int *pvA = &expand_concat(v,aye);
2419 int *pvbee = &noexpand_concat(v,bee);
2420
2421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2422 function prototypes and stuff, but not \xHH hex character constants.
2423 These do not provoke an error unfortunately, instead are silently treated
2424 as an "x". The following induces an error, until -std is added to get
2425 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2426 array size at least. It is necessary to write \x00 == 0 to get something
2427 that is true only with -std. */
2428 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2429
2430 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2431 inside strings and character constants. */
2432 #define FOO(x) '\''x'\''
2433 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2434
2435 int test (int i, double x);
2436 struct s1 {int (*f) (int a);};
2437 struct s2 {int (*f) (double a);};
2438 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2439 int, int);'
2440
2441 # Test code for whether the C compiler supports C89 (body of main).
2442 ac_c_conftest_c89_main='
2443 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2444 '
2445
2446 # Test code for whether the C compiler supports C99 (global declarations)
2447 ac_c_conftest_c99_globals='
2448 /* Does the compiler advertise C99 conformance? */
2449 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2450 # error "Compiler does not advertise C99 conformance"
2451 #endif
2452
2453 // See if C++-style comments work.
2454
2455 #include <stdbool.h>
2456 extern int puts (const char *);
2457 extern int printf (const char *, ...);
2458 extern int dprintf (int, const char *, ...);
2459 extern void *malloc (size_t);
2460 extern void free (void *);
2461
2462 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2463 // dprintf is used instead of fprintf to avoid needing to declare
2464 // FILE and stderr.
2465 #define debug(...) dprintf (2, __VA_ARGS__)
2466 #define showlist(...) puts (#__VA_ARGS__)
2467 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2468 static void
2469 test_varargs_macros (void)
2470 {
2471 int x = 1234;
2472 int y = 5678;
2473 debug ("Flag");
2474 debug ("X = %d\n", x);
2475 showlist (The first, second, and third items.);
2476 report (x>y, "x is %d but y is %d", x, y);
2477 }
2478
2479 // Check long long types.
2480 #define BIG64 18446744073709551615ull
2481 #define BIG32 4294967295ul
2482 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2483 #if !BIG_OK
2484 #error "your preprocessor is broken"
2485 #endif
2486 #if BIG_OK
2487 #else
2488 #error "your preprocessor is broken"
2489 #endif
2490 static long long int bignum = -9223372036854775807LL;
2491 static unsigned long long int ubignum = BIG64;
2492
2493 struct incomplete_array
2494 {
2495 int datasize;
2496 double data[];
2497 };
2498
2499 struct named_init {
2500 int number;
2501 const wchar_t *name;
2502 double average;
2503 };
2504
2505 typedef const char *ccp;
2506
2507 static inline int
2508 test_restrict (ccp restrict text)
2509 {
2510 // Iterate through items via the restricted pointer.
2511 // Also check for declarations in for loops.
2512 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2513 continue;
2514 return 0;
2515 }
2516
2517 // Check varargs and va_copy.
2518 static bool
2519 test_varargs (const char *format, ...)
2520 {
2521 va_list args;
2522 va_start (args, format);
2523 va_list args_copy;
2524 va_copy (args_copy, args);
2525
2526 const char *str = "";
2527 int number = 0;
2528 float fnumber = 0;
2529
2530 while (*format)
2531 {
2532 switch (*format++)
2533 {
2534 case '\''s'\'': // string
2535 str = va_arg (args_copy, const char *);
2536 break;
2537 case '\''d'\'': // int
2538 number = va_arg (args_copy, int);
2539 break;
2540 case '\''f'\'': // float
2541 fnumber = va_arg (args_copy, double);
2542 break;
2543 default:
2544 break;
2545 }
2546 }
2547 va_end (args_copy);
2548 va_end (args);
2549
2550 return *str && number && fnumber;
2551 }
2552 '
2553
2554 # Test code for whether the C compiler supports C99 (body of main).
2555 ac_c_conftest_c99_main='
2556 // Check bool.
2557 _Bool success = false;
2558 success |= (argc != 0);
2559
2560 // Check restrict.
2561 if (test_restrict ("String literal") == 0)
2562 success = true;
2563 char *restrict newvar = "Another string";
2564
2565 // Check varargs.
2566 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2567 test_varargs_macros ();
2568
2569 // Check flexible array members.
2570 struct incomplete_array *ia =
2571 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2572 ia->datasize = 10;
2573 for (int i = 0; i < ia->datasize; ++i)
2574 ia->data[i] = i * 1.234;
2575 // Work around memory leak warnings.
2576 free (ia);
2577
2578 // Check named initializers.
2579 struct named_init ni = {
2580 .number = 34,
2581 .name = L"Test wide string",
2582 .average = 543.34343,
2583 };
2584
2585 ni.number = 58;
2586
2587 int dynamic_array[ni.number];
2588 dynamic_array[0] = argv[0][0];
2589 dynamic_array[ni.number - 1] = 543;
2590
2591 // work around unused variable warnings
2592 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2593 || dynamic_array[ni.number - 1] != 543);
2594 '
2595
2596 # Test code for whether the C compiler supports C11 (global declarations)
2597 ac_c_conftest_c11_globals='
2598 /* Does the compiler advertise C11 conformance? */
2599 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2600 # error "Compiler does not advertise C11 conformance"
2601 #endif
2602
2603 // Check _Alignas.
2604 char _Alignas (double) aligned_as_double;
2605 char _Alignas (0) no_special_alignment;
2606 extern char aligned_as_int;
2607 char _Alignas (0) _Alignas (int) aligned_as_int;
2608
2609 // Check _Alignof.
2610 enum
2611 {
2612 int_alignment = _Alignof (int),
2613 int_array_alignment = _Alignof (int[100]),
2614 char_alignment = _Alignof (char)
2615 };
2616 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2617
2618 // Check _Noreturn.
2619 int _Noreturn does_not_return (void) { for (;;) continue; }
2620
2621 // Check _Static_assert.
2622 struct test_static_assert
2623 {
2624 int x;
2625 _Static_assert (sizeof (int) <= sizeof (long int),
2626 "_Static_assert does not work in struct");
2627 long int y;
2628 };
2629
2630 // Check UTF-8 literals.
2631 #define u8 syntax error!
2632 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2633
2634 // Check duplicate typedefs.
2635 typedef long *long_ptr;
2636 typedef long int *long_ptr;
2637 typedef long_ptr long_ptr;
2638
2639 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2640 struct anonymous
2641 {
2642 union {
2643 struct { int i; int j; };
2644 struct { int k; long int l; } w;
2645 };
2646 int m;
2647 } v1;
2648 '
2649
2650 # Test code for whether the C compiler supports C11 (body of main).
2651 ac_c_conftest_c11_main='
2652 _Static_assert ((offsetof (struct anonymous, i)
2653 == offsetof (struct anonymous, w.k)),
2654 "Anonymous union alignment botch");
2655 v1.i = 2;
2656 v1.w.k = 5;
2657 ok |= v1.i != 5;
2658 '
2659
2660 # Test code for whether the C compiler supports C11 (complete).
2661 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2662 ${ac_c_conftest_c99_globals}
2663 ${ac_c_conftest_c11_globals}
2664
2665 int
2666 main (int argc, char **argv)
2667 {
2668 int ok = 0;
2669 ${ac_c_conftest_c89_main}
2670 ${ac_c_conftest_c99_main}
2671 ${ac_c_conftest_c11_main}
2672 return ok;
2673 }
2674 "
2675
2676 # Test code for whether the C compiler supports C99 (complete).
2677 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2678 ${ac_c_conftest_c99_globals}
2679
2680 int
2681 main (int argc, char **argv)
2682 {
2683 int ok = 0;
2684 ${ac_c_conftest_c89_main}
2685 ${ac_c_conftest_c99_main}
2686 return ok;
2687 }
2688 "
2689
2690 # Test code for whether the C compiler supports C89 (complete).
2691 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2692
2693 int
2694 main (int argc, char **argv)
2695 {
2696 int ok = 0;
2697 ${ac_c_conftest_c89_main}
2698 return ok;
2699 }
2700 "
2701
2702 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2703 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2704 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2705 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2706 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2707 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2708 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2709 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2710 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2711 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2712
2713 # Auxiliary files required by this configure script.
2714 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2715
2716 # Locations in which to look for auxiliary files.
2717 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2718
2719 # Search for a directory containing all of the required auxiliary files,
2720 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2721 # If we don't find one directory that contains all the files we need,
2722 # we report the set of missing files from the *first* directory in
2723 # $ac_aux_dir_candidates and give up.
2724 ac_missing_aux_files=""
2725 ac_first_candidate=:
2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 as_found=false
2729 for as_dir in $ac_aux_dir_candidates
2730 do
2731 IFS=$as_save_IFS
2732 case $as_dir in #(((
2733 '') as_dir=./ ;;
2734 */) ;;
2735 *) as_dir=$as_dir/ ;;
2736 esac
2737 as_found=:
2738
2739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2740 ac_aux_dir_found=yes
2741 ac_install_sh=
2742 for ac_aux in $ac_aux_files
2743 do
2744 # As a special case, if "install-sh" is required, that requirement
2745 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2746 # and $ac_install_sh is set appropriately for whichever one is found.
2747 if test x"$ac_aux" = x"install-sh"
2748 then
2749 if test -f "${as_dir}install-sh"; then
2750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2751 ac_install_sh="${as_dir}install-sh -c"
2752 elif test -f "${as_dir}install.sh"; then
2753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2754 ac_install_sh="${as_dir}install.sh -c"
2755 elif test -f "${as_dir}shtool"; then
2756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2757 ac_install_sh="${as_dir}shtool install -c"
2758 else
2759 ac_aux_dir_found=no
2760 if $ac_first_candidate; then
2761 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2762 else
2763 break
2764 fi
2765 fi
2766 else
2767 if test -f "${as_dir}${ac_aux}"; then
2768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2769 else
2770 ac_aux_dir_found=no
2771 if $ac_first_candidate; then
2772 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2773 else
2774 break
2775 fi
2776 fi
2777 fi
2778 done
2779 if test "$ac_aux_dir_found" = yes; then
2780 ac_aux_dir="$as_dir"
2781 break
2782 fi
2783 ac_first_candidate=false
2784
2785 as_found=false
2786 done
2787 IFS=$as_save_IFS
2788 if $as_found
2789 then :
2790
2791 else case e in #(
2792 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2793 esac
2794 fi
2795
2796
2797 # These three variables are undocumented and unsupported,
2798 # and are intended to be withdrawn in a future Autoconf release.
2799 # They can cause serious problems if a builder's source tree is in a directory
2800 # whose full name contains unusual characters.
2801 if test -f "${ac_aux_dir}config.guess"; then
2802 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2803 fi
2804 if test -f "${ac_aux_dir}config.sub"; then
2805 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2806 fi
2807 if test -f "$ac_aux_dir/configure"; then
2808 ac_configure="$SHELL ${ac_aux_dir}configure"
2809 fi
2810
2811 # Check that the precious variables saved in the cache have kept the same
2812 # value.
2813 ac_cache_corrupted=false
2814 for ac_var in $ac_precious_vars; do
2815 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2816 eval ac_new_set=\$ac_env_${ac_var}_set
2817 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2818 eval ac_new_val=\$ac_env_${ac_var}_value
2819 case $ac_old_set,$ac_new_set in
2820 set,)
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2822 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2823 ac_cache_corrupted=: ;;
2824 ,set)
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2826 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2827 ac_cache_corrupted=: ;;
2828 ,);;
2829 *)
2830 if test "x$ac_old_val" != "x$ac_new_val"; then
2831 # differences in whitespace do not lead to failure.
2832 ac_old_val_w=`echo x $ac_old_val`
2833 ac_new_val_w=`echo x $ac_new_val`
2834 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2836 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2837 ac_cache_corrupted=:
2838 else
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2840 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2841 eval $ac_var=\$ac_old_val
2842 fi
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2844 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2846 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2847 fi;;
2848 esac
2849 # Pass precious variables to config.status.
2850 if test "$ac_new_set" = set; then
2851 case $ac_new_val in
2852 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2853 *) ac_arg=$ac_var=$ac_new_val ;;
2854 esac
2855 case " $ac_configure_args " in
2856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2857 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2858 esac
2859 fi
2860 done
2861 if $ac_cache_corrupted; then
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2863 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2865 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2866 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2867 and start over" "$LINENO" 5
2868 fi
2869 ## -------------------- ##
2870 ## Main body of script. ##
2871 ## -------------------- ##
2872
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878
2879
2880
2881
2882
2883
2884
2885 am__api_version='1.18'
2886
2887
2888
2889 # Find a good install program. We prefer a C program (faster),
2890 # so one script is as good as another. But avoid the broken or
2891 # incompatible versions:
2892 # SysV /etc/install, /usr/sbin/install
2893 # SunOS /usr/etc/install
2894 # IRIX /sbin/install
2895 # AIX /bin/install
2896 # AmigaOS /C/install, which installs bootblocks on floppy discs
2897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2900 # OS/2's system install, which has a completely different semantic
2901 # ./install, which can be erroneously created by make from ./install.sh.
2902 # Reject install programs that cannot install multiple files.
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2904 printf %s "checking for a BSD-compatible install... " >&6; }
2905 if test -z "$INSTALL"; then
2906 if test ${ac_cv_path_install+y}
2907 then :
2908 printf %s "(cached) " >&6
2909 else case e in #(
2910 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 case $as_dir in #(((
2915 '') as_dir=./ ;;
2916 */) ;;
2917 *) as_dir=$as_dir/ ;;
2918 esac
2919 # Account for fact that we put trailing slashes in our PATH walk.
2920 case $as_dir in #((
2921 ./ | /[cC]/* | \
2922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2923 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2924 /usr/ucb/* ) ;;
2925 *)
2926 # OSF1 and SCO ODT 3.0 have their own names for install.
2927 # Don't use installbsd from OSF since it installs stuff as root
2928 # by default.
2929 for ac_prog in ginstall scoinst install; do
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2932 if test $ac_prog = install &&
2933 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2934 # AIX install. It has an incompatible calling convention.
2935 :
2936 elif test $ac_prog = install &&
2937 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2938 # program-specific install script used by HP pwplus--don't use.
2939 :
2940 else
2941 rm -rf conftest.one conftest.two conftest.dir
2942 echo one > conftest.one
2943 echo two > conftest.two
2944 mkdir conftest.dir
2945 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2946 test -s conftest.one && test -s conftest.two &&
2947 test -s conftest.dir/conftest.one &&
2948 test -s conftest.dir/conftest.two
2949 then
2950 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2951 break 3
2952 fi
2953 fi
2954 fi
2955 done
2956 done
2957 ;;
2958 esac
2959
2960 done
2961 IFS=$as_save_IFS
2962
2963 rm -rf conftest.one conftest.two conftest.dir
2964 ;;
2965 esac
2966 fi
2967 if test ${ac_cv_path_install+y}; then
2968 INSTALL=$ac_cv_path_install
2969 else
2970 # As a last resort, use the slow shell script. Don't cache a
2971 # value for INSTALL within a source directory, because that will
2972 # break other packages using the cache if that directory is
2973 # removed, or if the value is a relative name.
2974 INSTALL=$ac_install_sh
2975 fi
2976 fi
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2978 printf "%s\n" "$INSTALL" >&6; }
2979
2980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2981 # It thinks the first close brace ends the variable substitution.
2982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2983
2984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2985
2986 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2987
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2989 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2990 if test ${am_cv_sleep_fractional_seconds+y}
2991 then :
2992 printf %s "(cached) " >&6
2993 else case e in #(
2994 e) if sleep 0.001 2>/dev/null
2995 then :
2996 am_cv_sleep_fractional_seconds=yes
2997 else case e in #(
2998 e) am_cv_sleep_fractional_seconds=no ;;
2999 esac
3000 fi
3001 ;;
3002 esac
3003 fi
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3005 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3006
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3008 printf %s "checking filesystem timestamp resolution... " >&6; }
3009 if test ${am_cv_filesystem_timestamp_resolution+y}
3010 then :
3011 printf %s "(cached) " >&6
3012 else case e in #(
3013 e) # Default to the worst case.
3014 am_cv_filesystem_timestamp_resolution=2
3015
3016 # Only try to go finer than 1 sec if sleep can do it.
3017 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3018 # - 1 sec is not much of a win compared to 2 sec, and
3019 # - it takes 2 seconds to perform the test whether 1 sec works.
3020 #
3021 # Instead, just use the default 2s on platforms that have 1s resolution,
3022 # accept the extra 1s delay when using $sleep in the Automake tests, in
3023 # exchange for not incurring the 2s delay for running the test for all
3024 # packages.
3025 #
3026 am_try_resolutions=
3027 if test "$am_cv_sleep_fractional_seconds" = yes; then
3028 # Even a millisecond often causes a bunch of false positives,
3029 # so just try a hundredth of a second. The time saved between .001 and
3030 # .01 is not terribly consequential.
3031 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3032 fi
3033
3034 # In order to catch current-generation FAT out, we must *modify* files
3035 # that already exist; the *creation* timestamp is finer. Use names
3036 # that make ls -t sort them differently when they have equal
3037 # timestamps than when they have distinct timestamps, keeping
3038 # in mind that ls -t prints the *newest* file first.
3039 rm -f conftest.ts?
3040 : > conftest.ts1
3041 : > conftest.ts2
3042 : > conftest.ts3
3043
3044 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3045 # clobber the current shell's arguments. (Outer-level square brackets
3046 # are removed by m4; they're present so that m4 does not expand
3047 # <dollar><star>; be careful, easy to get confused.)
3048 if (
3049 set X `ls -t conftest.ts[12]` &&
3050 {
3051 test "$*" != "X conftest.ts1 conftest.ts2" ||
3052 test "$*" != "X conftest.ts2 conftest.ts1";
3053 }
3054 ); then :; else
3055 # If neither matched, then we have a broken ls. This can happen
3056 # if, for instance, CONFIG_SHELL is bash and it inherits a
3057 # broken ls alias from the environment. This has actually
3058 # happened. Such a system could not be considered "sane".
3059 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3061 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3062 as_fn_error $? "ls -t produces unexpected output.
3063 Make sure there is not a broken ls alias in your environment.
3064 See 'config.log' for more details" "$LINENO" 5; }
3065 fi
3066
3067 for am_try_res in $am_try_resolutions; do
3068 # Any one fine-grained sleep might happen to cross the boundary
3069 # between two values of a coarser actual resolution, but if we do
3070 # two fine-grained sleeps in a row, at least one of them will fall
3071 # entirely within a coarse interval.
3072 echo alpha > conftest.ts1
3073 sleep $am_try_res
3074 echo beta > conftest.ts2
3075 sleep $am_try_res
3076 echo gamma > conftest.ts3
3077
3078 # We assume that 'ls -t' will make use of high-resolution
3079 # timestamps if the operating system supports them at all.
3080 if (set X `ls -t conftest.ts?` &&
3081 test "$2" = conftest.ts3 &&
3082 test "$3" = conftest.ts2 &&
3083 test "$4" = conftest.ts1); then
3084 #
3085 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3086 # because we don't need to test make.
3087 make_ok=true
3088 if test $am_try_res != 1; then
3089 # But if we've succeeded so far with a subsecond resolution, we
3090 # have one more thing to check: make. It can happen that
3091 # everything else supports the subsecond mtimes, but make doesn't;
3092 # notably on macOS, which ships make 3.81 from 2006 (the last one
3093 # released under GPLv2). https://bugs.gnu.org/68808
3094 #
3095 # We test $MAKE if it is defined in the environment, else "make".
3096 # It might get overridden later, but our hope is that in practice
3097 # it does not matter: it is the system "make" which is (by far)
3098 # the most likely to be broken, whereas if the user overrides it,
3099 # probably they did so with a better, or at least not worse, make.
3100 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3101 #
3102 # Create a Makefile (real tab character here):
3103 rm -f conftest.mk
3104 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3105 echo ' touch conftest.ts2' >>conftest.mk
3106 #
3107 # Now, running
3108 # touch conftest.ts1; touch conftest.ts2; make
3109 # should touch ts1 because ts2 is newer. This could happen by luck,
3110 # but most often, it will fail if make's support is insufficient. So
3111 # test for several consecutive successes.
3112 #
3113 # (We reuse conftest.ts[12] because we still want to modify existing
3114 # files, not create new ones, per above.)
3115 n=0
3116 make=${MAKE-make}
3117 until test $n -eq 3; do
3118 echo one > conftest.ts1
3119 sleep $am_try_res
3120 echo two > conftest.ts2 # ts2 should now be newer than ts1
3121 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3122 make_ok=false
3123 break # out of $n loop
3124 fi
3125 n=`expr $n + 1`
3126 done
3127 fi
3128 #
3129 if $make_ok; then
3130 # Everything we know to check worked out, so call this resolution good.
3131 am_cv_filesystem_timestamp_resolution=$am_try_res
3132 break # out of $am_try_res loop
3133 fi
3134 # Otherwise, we'll go on to check the next resolution.
3135 fi
3136 done
3137 rm -f conftest.ts?
3138 # (end _am_filesystem_timestamp_resolution)
3139 ;;
3140 esac
3141 fi
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3143 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3144
3145 # This check should not be cached, as it may vary across builds of
3146 # different projects.
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3148 printf %s "checking whether build environment is sane... " >&6; }
3149 # Reject unsafe characters in $srcdir or the absolute working directory
3150 # name. Accept space and tab only in the latter.
3151 am_lf='
3152 '
3153 case `pwd` in
3154 *[\\\"\#\$\&\'\`$am_lf]*)
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 printf "%s\n" "no" >&6; }
3157 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3158 esac
3159 case $srcdir in
3160 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 printf "%s\n" "no" >&6; }
3163 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3164 esac
3165
3166 # Do 'set' in a subshell so we don't clobber the current shell's
3167 # arguments. Must try -L first in case configure is actually a
3168 # symlink; some systems play weird games with the mod time of symlinks
3169 # (eg FreeBSD returns the mod time of the symlink's containing
3170 # directory).
3171 am_build_env_is_sane=no
3172 am_has_slept=no
3173 rm -f conftest.file
3174 for am_try in 1 2; do
3175 echo "timestamp, slept: $am_has_slept" > conftest.file
3176 if (
3177 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3178 if test "$*" = "X"; then
3179 # -L didn't work.
3180 set X `ls -t "$srcdir/configure" conftest.file`
3181 fi
3182 test "$2" = conftest.file
3183 ); then
3184 am_build_env_is_sane=yes
3185 break
3186 fi
3187 # Just in case.
3188 sleep "$am_cv_filesystem_timestamp_resolution"
3189 am_has_slept=yes
3190 done
3191
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3193 printf "%s\n" "$am_build_env_is_sane" >&6; }
3194 if test "$am_build_env_is_sane" = no; then
3195 as_fn_error $? "newly created file is older than distributed files!
3196 Check your system clock" "$LINENO" 5
3197 fi
3198
3199 # If we didn't sleep, we still need to ensure time stamps of config.status and
3200 # generated files are strictly newer.
3201 am_sleep_pid=
3202 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3203 then :
3204
3205 else case e in #(
3206 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3207 am_sleep_pid=$!
3208 ;;
3209 esac
3210 fi
3211
3212 rm -f conftest.file
3213
3214 test "$program_prefix" != NONE &&
3215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3216 # Use a double $ so make ignores it.
3217 test "$program_suffix" != NONE &&
3218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3219 # Double any \ or $.
3220 # By default was 's,x,x', remove it if useless.
3221 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3222 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3223
3224
3225 # Expand $ac_aux_dir to an absolute path.
3226 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3227
3228
3229 if test x"${MISSING+set}" != xset; then
3230 MISSING="\${SHELL} '$am_aux_dir/missing'"
3231 fi
3232 # Use eval to expand $SHELL
3233 if eval "$MISSING --is-lightweight"; then
3234 am_missing_run="$MISSING "
3235 else
3236 am_missing_run=
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3238 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3239 fi
3240
3241 if test x"${install_sh+set}" != xset; then
3242 case $am_aux_dir in
3243 *\ * | *\ *)
3244 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3245 *)
3246 install_sh="\${SHELL} $am_aux_dir/install-sh"
3247 esac
3248 fi
3249
3250 # Installed binaries are usually stripped using 'strip' when the user
3251 # run "make install-strip". However 'strip' might not be the right
3252 # tool to use in cross-compilation environments, therefore Automake
3253 # will honor the 'STRIP' environment variable to overrule this program.
3254 if test "$cross_compiling" != no; then
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}strip; ac_word=$2
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 printf %s "checking for $ac_word... " >&6; }
3260 if test ${ac_cv_prog_STRIP+y}
3261 then :
3262 printf %s "(cached) " >&6
3263 else case e in #(
3264 e) if test -n "$STRIP"; then
3265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 case $as_dir in #(((
3272 '') as_dir=./ ;;
3273 */) ;;
3274 *) as_dir=$as_dir/ ;;
3275 esac
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi ;;
3287 esac
3288 fi
3289 STRIP=$ac_cv_prog_STRIP
3290 if test -n "$STRIP"; then
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3292 printf "%s\n" "$STRIP" >&6; }
3293 else
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 printf "%s\n" "no" >&6; }
3296 fi
3297
3298
3299 fi
3300 if test -z "$ac_cv_prog_STRIP"; then
3301 ac_ct_STRIP=$STRIP
3302 # Extract the first word of "strip", so it can be a program name with args.
3303 set dummy strip; ac_word=$2
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 printf %s "checking for $ac_word... " >&6; }
3306 if test ${ac_cv_prog_ac_ct_STRIP+y}
3307 then :
3308 printf %s "(cached) " >&6
3309 else case e in #(
3310 e) if test -n "$ac_ct_STRIP"; then
3311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316 IFS=$as_save_IFS
3317 case $as_dir in #(((
3318 '') as_dir=./ ;;
3319 */) ;;
3320 *) as_dir=$as_dir/ ;;
3321 esac
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_ac_ct_STRIP="strip"
3325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328 done
3329 done
3330 IFS=$as_save_IFS
3331
3332 fi ;;
3333 esac
3334 fi
3335 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3336 if test -n "$ac_ct_STRIP"; then
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3338 printf "%s\n" "$ac_ct_STRIP" >&6; }
3339 else
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 printf "%s\n" "no" >&6; }
3342 fi
3343
3344 if test "x$ac_ct_STRIP" = x; then
3345 STRIP=":"
3346 else
3347 case $cross_compiling:$ac_tool_warned in
3348 yes:)
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3350 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3351 ac_tool_warned=yes ;;
3352 esac
3353 STRIP=$ac_ct_STRIP
3354 fi
3355 else
3356 STRIP="$ac_cv_prog_STRIP"
3357 fi
3358
3359 fi
3360 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3361
3362
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3364 printf %s "checking for a race-free mkdir -p... " >&6; }
3365 if test -z "$MKDIR_P"; then
3366 if test ${ac_cv_path_mkdir+y}
3367 then :
3368 printf %s "(cached) " >&6
3369 else case e in #(
3370 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3372 do
3373 IFS=$as_save_IFS
3374 case $as_dir in #(((
3375 '') as_dir=./ ;;
3376 */) ;;
3377 *) as_dir=$as_dir/ ;;
3378 esac
3379 for ac_prog in mkdir gmkdir; do
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3382 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3383 'mkdir ('*'coreutils) '* | \
3384 *'BusyBox '* | \
3385 'mkdir (fileutils) '4.1*)
3386 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3387 break 3;;
3388 esac
3389 done
3390 done
3391 done
3392 IFS=$as_save_IFS
3393 ;;
3394 esac
3395 fi
3396
3397 test -d ./--version && rmdir ./--version
3398 if test ${ac_cv_path_mkdir+y}; then
3399 MKDIR_P="$ac_cv_path_mkdir -p"
3400 else
3401 # As a last resort, use plain mkdir -p,
3402 # in the hope it doesn't have the bugs of ancient mkdir.
3403 MKDIR_P='mkdir -p'
3404 fi
3405 fi
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3407 printf "%s\n" "$MKDIR_P" >&6; }
3408
3409 for ac_prog in gawk mawk nawk awk
3410 do
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 printf %s "checking for $ac_word... " >&6; }
3415 if test ${ac_cv_prog_AWK+y}
3416 then :
3417 printf %s "(cached) " >&6
3418 else case e in #(
3419 e) if test -n "$AWK"; then
3420 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 case $as_dir in #(((
3427 '') as_dir=./ ;;
3428 */) ;;
3429 *) as_dir=$as_dir/ ;;
3430 esac
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_AWK="$ac_prog"
3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi ;;
3442 esac
3443 fi
3444 AWK=$ac_cv_prog_AWK
3445 if test -n "$AWK"; then
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3447 printf "%s\n" "$AWK" >&6; }
3448 else
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 printf "%s\n" "no" >&6; }
3451 fi
3452
3453
3454 test -n "$AWK" && break
3455 done
3456
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3458 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3459 set x ${MAKE-make}
3460 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3461 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3462 then :
3463 printf %s "(cached) " >&6
3464 else case e in #(
3465 e) cat >conftest.make <<\_ACEOF
3466 SHELL = /bin/sh
3467 all:
3468 @echo '@@@%%%=$(MAKE)=@@@%%%'
3469 _ACEOF
3470 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3471 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3472 *@@@%%%=?*=@@@%%%*)
3473 eval ac_cv_prog_make_${ac_make}_set=yes;;
3474 *)
3475 eval ac_cv_prog_make_${ac_make}_set=no;;
3476 esac
3477 rm -f conftest.make ;;
3478 esac
3479 fi
3480 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3482 printf "%s\n" "yes" >&6; }
3483 SET_MAKE=
3484 else
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 printf "%s\n" "no" >&6; }
3487 SET_MAKE="MAKE=${MAKE-make}"
3488 fi
3489
3490 rm -rf .tst 2>/dev/null
3491 mkdir .tst 2>/dev/null
3492 if test -d .tst; then
3493 am__leading_dot=.
3494 else
3495 am__leading_dot=_
3496 fi
3497 rmdir .tst 2>/dev/null
3498
3499 AM_DEFAULT_VERBOSITY=1
3500 # Check whether --enable-silent-rules was given.
3501 if test ${enable_silent_rules+y}
3502 then :
3503 enableval=$enable_silent_rules;
3504 fi
3505
3506 am_make=${MAKE-make}
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3508 printf %s "checking whether $am_make supports nested variables... " >&6; }
3509 if test ${am_cv_make_support_nested_variables+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else case e in #(
3513 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3514 BAR0=false
3515 BAR1=true
3516 V=1
3517 am__doit:
3518 @$(TRUE)
3519 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3520 am_cv_make_support_nested_variables=yes
3521 else
3522 am_cv_make_support_nested_variables=no
3523 fi ;;
3524 esac
3525 fi
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3527 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3528 AM_BACKSLASH='\'
3529
3530 am__rm_f_notfound=
3531 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3532 then :
3533
3534 else case e in #(
3535 e) am__rm_f_notfound='""' ;;
3536 esac
3537 fi
3538
3539
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3541 printf %s "checking xargs -n works... " >&6; }
3542 if test ${am_cv_xargs_n_works+y}
3543 then :
3544 printf %s "(cached) " >&6
3545 else case e in #(
3546 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3547 3"
3548 then :
3549 am_cv_xargs_n_works=yes
3550 else case e in #(
3551 e) am_cv_xargs_n_works=no ;;
3552 esac
3553 fi ;;
3554 esac
3555 fi
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3557 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3558 if test "$am_cv_xargs_n_works" = yes
3559 then :
3560 am__xargs_n='xargs -n'
3561 else case e in #(
3562 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3563 ;;
3564 esac
3565 fi
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576 DEPDIR="${am__leading_dot}deps"
3577
3578 ac_config_commands="$ac_config_commands depfiles"
3579
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3581 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3582 cat > confinc.mk << 'END'
3583 am__doit:
3584 @echo this is the am__doit target >confinc.out
3585 .PHONY: am__doit
3586 END
3587 am__include="#"
3588 am__quote=
3589 # BSD make does it like this.
3590 echo '.include "confinc.mk" # ignored' > confmf.BSD
3591 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3592 echo 'include confinc.mk # ignored' > confmf.GNU
3593 _am_result=no
3594 for s in GNU BSD; do
3595 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3596 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600 case $?:`cat confinc.out 2>/dev/null` in #(
3601 '0:this is the am__doit target') :
3602 case $s in #(
3603 BSD) :
3604 am__include='.include' am__quote='"' ;; #(
3605 *) :
3606 am__include='include' am__quote='' ;;
3607 esac ;; #(
3608 *) :
3609 ;;
3610 esac
3611 if test "$am__include" != "#"; then
3612 _am_result="yes ($s style)"
3613 break
3614 fi
3615 done
3616 rm -f confinc.* confmf.*
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3618 printf "%s\n" "${_am_result}" >&6; }
3619
3620 # Check whether --enable-dependency-tracking was given.
3621 if test ${enable_dependency_tracking+y}
3622 then :
3623 enableval=$enable_dependency_tracking;
3624 fi
3625
3626 if test "x$enable_dependency_tracking" != xno; then
3627 am_depcomp="$ac_aux_dir/depcomp"
3628 AMDEPBACKSLASH='\'
3629 am__nodep='_no'
3630 fi
3631 if test "x$enable_dependency_tracking" != xno; then
3632 AMDEP_TRUE=
3633 AMDEP_FALSE='#'
3634 else
3635 AMDEP_TRUE='#'
3636 AMDEP_FALSE=
3637 fi
3638
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 printf %s "checking for $ac_word... " >&6; }
3650 if test ${ac_cv_prog_CC+y}
3651 then :
3652 printf %s "(cached) " >&6
3653 else case e in #(
3654 e) if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 case $as_dir in #(((
3662 '') as_dir=./ ;;
3663 */) ;;
3664 *) as_dir=$as_dir/ ;;
3665 esac
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 fi ;;
3677 esac
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 printf "%s\n" "$CC" >&6; }
3683 else
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 printf "%s\n" "no" >&6; }
3686 fi
3687
3688
3689 fi
3690 if test -z "$ac_cv_prog_CC"; then
3691 ac_ct_CC=$CC
3692 # Extract the first word of "gcc", so it can be a program name with args.
3693 set dummy gcc; ac_word=$2
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 printf %s "checking for $ac_word... " >&6; }
3696 if test ${ac_cv_prog_ac_ct_CC+y}
3697 then :
3698 printf %s "(cached) " >&6
3699 else case e in #(
3700 e) if test -n "$ac_ct_CC"; then
3701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 case $as_dir in #(((
3708 '') as_dir=./ ;;
3709 */) ;;
3710 *) as_dir=$as_dir/ ;;
3711 esac
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_CC="gcc"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3721
3722 fi ;;
3723 esac
3724 fi
3725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3726 if test -n "$ac_ct_CC"; then
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3728 printf "%s\n" "$ac_ct_CC" >&6; }
3729 else
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 printf "%s\n" "no" >&6; }
3732 fi
3733
3734 if test "x$ac_ct_CC" = x; then
3735 CC=""
3736 else
3737 case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743 CC=$ac_ct_CC
3744 fi
3745 else
3746 CC="$ac_cv_prog_CC"
3747 fi
3748
3749 if test -z "$CC"; then
3750 if test -n "$ac_tool_prefix"; then
3751 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3752 set dummy ${ac_tool_prefix}cc; ac_word=$2
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 printf %s "checking for $ac_word... " >&6; }
3755 if test ${ac_cv_prog_CC+y}
3756 then :
3757 printf %s "(cached) " >&6
3758 else case e in #(
3759 e) if test -n "$CC"; then
3760 ac_cv_prog_CC="$CC" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765 IFS=$as_save_IFS
3766 case $as_dir in #(((
3767 '') as_dir=./ ;;
3768 */) ;;
3769 *) as_dir=$as_dir/ ;;
3770 esac
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_CC="${ac_tool_prefix}cc"
3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777 done
3778 done
3779 IFS=$as_save_IFS
3780
3781 fi ;;
3782 esac
3783 fi
3784 CC=$ac_cv_prog_CC
3785 if test -n "$CC"; then
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787 printf "%s\n" "$CC" >&6; }
3788 else
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 printf "%s\n" "no" >&6; }
3791 fi
3792
3793
3794 fi
3795 fi
3796 if test -z "$CC"; then
3797 # Extract the first word of "cc", so it can be a program name with args.
3798 set dummy cc; ac_word=$2
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 printf %s "checking for $ac_word... " >&6; }
3801 if test ${ac_cv_prog_CC+y}
3802 then :
3803 printf %s "(cached) " >&6
3804 else case e in #(
3805 e) if test -n "$CC"; then
3806 ac_cv_prog_CC="$CC" # Let the user override the test.
3807 else
3808 ac_prog_rejected=no
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812 IFS=$as_save_IFS
3813 case $as_dir in #(((
3814 '') as_dir=./ ;;
3815 */) ;;
3816 *) as_dir=$as_dir/ ;;
3817 esac
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3820 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3821 ac_prog_rejected=yes
3822 continue
3823 fi
3824 ac_cv_prog_CC="cc"
3825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828 done
3829 done
3830 IFS=$as_save_IFS
3831
3832 if test $ac_prog_rejected = yes; then
3833 # We found a bogon in the path, so make sure we never use it.
3834 set dummy $ac_cv_prog_CC
3835 shift
3836 if test $# != 0; then
3837 # We chose a different compiler from the bogus one.
3838 # However, it has the same basename, so the bogon will be chosen
3839 # first if we set CC to just the basename; use the full file name.
3840 shift
3841 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3842 fi
3843 fi
3844 fi ;;
3845 esac
3846 fi
3847 CC=$ac_cv_prog_CC
3848 if test -n "$CC"; then
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3850 printf "%s\n" "$CC" >&6; }
3851 else
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 printf "%s\n" "no" >&6; }
3854 fi
3855
3856
3857 fi
3858 if test -z "$CC"; then
3859 if test -n "$ac_tool_prefix"; then
3860 for ac_prog in cl.exe
3861 do
3862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 printf %s "checking for $ac_word... " >&6; }
3866 if test ${ac_cv_prog_CC+y}
3867 then :
3868 printf %s "(cached) " >&6
3869 else case e in #(
3870 e) if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876 IFS=$as_save_IFS
3877 case $as_dir in #(((
3878 '') as_dir=./ ;;
3879 */) ;;
3880 *) as_dir=$as_dir/ ;;
3881 esac
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3886 break 2
3887 fi
3888 done
3889 done
3890 IFS=$as_save_IFS
3891
3892 fi ;;
3893 esac
3894 fi
3895 CC=$ac_cv_prog_CC
3896 if test -n "$CC"; then
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 printf "%s\n" "$CC" >&6; }
3899 else
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 printf "%s\n" "no" >&6; }
3902 fi
3903
3904
3905 test -n "$CC" && break
3906 done
3907 fi
3908 if test -z "$CC"; then
3909 ac_ct_CC=$CC
3910 for ac_prog in cl.exe
3911 do
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 printf %s "checking for $ac_word... " >&6; }
3916 if test ${ac_cv_prog_ac_ct_CC+y}
3917 then :
3918 printf %s "(cached) " >&6
3919 else case e in #(
3920 e) if test -n "$ac_ct_CC"; then
3921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926 IFS=$as_save_IFS
3927 case $as_dir in #(((
3928 '') as_dir=./ ;;
3929 */) ;;
3930 *) as_dir=$as_dir/ ;;
3931 esac
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_ac_ct_CC="$ac_prog"
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3936 break 2
3937 fi
3938 done
3939 done
3940 IFS=$as_save_IFS
3941
3942 fi ;;
3943 esac
3944 fi
3945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3946 if test -n "$ac_ct_CC"; then
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3948 printf "%s\n" "$ac_ct_CC" >&6; }
3949 else
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 printf "%s\n" "no" >&6; }
3952 fi
3953
3954
3955 test -n "$ac_ct_CC" && break
3956 done
3957
3958 if test "x$ac_ct_CC" = x; then
3959 CC=""
3960 else
3961 case $cross_compiling:$ac_tool_warned in
3962 yes:)
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3965 ac_tool_warned=yes ;;
3966 esac
3967 CC=$ac_ct_CC
3968 fi
3969 fi
3970
3971 fi
3972 if test -z "$CC"; then
3973 if test -n "$ac_tool_prefix"; then
3974 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3975 set dummy ${ac_tool_prefix}clang; ac_word=$2
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 printf %s "checking for $ac_word... " >&6; }
3978 if test ${ac_cv_prog_CC+y}
3979 then :
3980 printf %s "(cached) " >&6
3981 else case e in #(
3982 e) if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 case $as_dir in #(((
3990 '') as_dir=./ ;;
3991 */) ;;
3992 *) as_dir=$as_dir/ ;;
3993 esac
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_CC="${ac_tool_prefix}clang"
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi ;;
4005 esac
4006 fi
4007 CC=$ac_cv_prog_CC
4008 if test -n "$CC"; then
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010 printf "%s\n" "$CC" >&6; }
4011 else
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 printf "%s\n" "no" >&6; }
4014 fi
4015
4016
4017 fi
4018 if test -z "$ac_cv_prog_CC"; then
4019 ac_ct_CC=$CC
4020 # Extract the first word of "clang", so it can be a program name with args.
4021 set dummy clang; ac_word=$2
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 printf %s "checking for $ac_word... " >&6; }
4024 if test ${ac_cv_prog_ac_ct_CC+y}
4025 then :
4026 printf %s "(cached) " >&6
4027 else case e in #(
4028 e) if test -n "$ac_ct_CC"; then
4029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034 IFS=$as_save_IFS
4035 case $as_dir in #(((
4036 '') as_dir=./ ;;
4037 */) ;;
4038 *) as_dir=$as_dir/ ;;
4039 esac
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_ac_ct_CC="clang"
4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 fi ;;
4051 esac
4052 fi
4053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4054 if test -n "$ac_ct_CC"; then
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4056 printf "%s\n" "$ac_ct_CC" >&6; }
4057 else
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 printf "%s\n" "no" >&6; }
4060 fi
4061
4062 if test "x$ac_ct_CC" = x; then
4063 CC=""
4064 else
4065 case $cross_compiling:$ac_tool_warned in
4066 yes:)
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069 ac_tool_warned=yes ;;
4070 esac
4071 CC=$ac_ct_CC
4072 fi
4073 else
4074 CC="$ac_cv_prog_CC"
4075 fi
4076
4077 fi
4078
4079
4080 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4081 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4082 as_fn_error $? "no acceptable C compiler found in \$PATH
4083 See 'config.log' for more details" "$LINENO" 5; }
4084
4085 # Provide some information about the compiler.
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4087 set X $ac_compile
4088 ac_compiler=$2
4089 for ac_option in --version -v -V -qversion -version; do
4090 { { ac_try="$ac_compiler $ac_option >&5"
4091 case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096 printf "%s\n" "$ac_try_echo"; } >&5
4097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4098 ac_status=$?
4099 if test -s conftest.err; then
4100 sed '10a\
4101 ... rest of stderr output deleted ...
4102 10q' conftest.err >conftest.er1
4103 cat conftest.er1 >&5
4104 fi
4105 rm -f conftest.er1 conftest.err
4106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }
4108 done
4109
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 int
4114 main (void)
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 ac_clean_files_save=$ac_clean_files
4122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4123 # Try to create an executable without -o first, disregard a.out.
4124 # It will help us diagnose broken compilers, and finding out an intuition
4125 # of exeext.
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4127 printf %s "checking whether the C compiler works... " >&6; }
4128 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4129
4130 # The possible output files:
4131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4132
4133 ac_rmfiles=
4134 for ac_file in $ac_files
4135 do
4136 case $ac_file in
4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4139 esac
4140 done
4141 rm -f $ac_rmfiles
4142
4143 if { { ac_try="$ac_link_default"
4144 case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 printf "%s\n" "$ac_try_echo"; } >&5
4150 (eval "$ac_link_default") 2>&5
4151 ac_status=$?
4152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }
4154 then :
4155 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4156 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4157 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4158 # so that the user can short-circuit this test for compilers unknown to
4159 # Autoconf.
4160 for ac_file in $ac_files ''
4161 do
4162 test -f "$ac_file" || continue
4163 case $ac_file in
4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4165 ;;
4166 [ab].out )
4167 # We found the default executable, but exeext='' is most
4168 # certainly right.
4169 break;;
4170 *.* )
4171 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4172 then :; else
4173 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4174 fi
4175 # We set ac_cv_exeext here because the later test for it is not
4176 # safe: cross compilers may not add the suffix if given an '-o'
4177 # argument, so we may need to know it at that point already.
4178 # Even if this section looks crufty: it has the advantage of
4179 # actually working.
4180 break;;
4181 * )
4182 break;;
4183 esac
4184 done
4185 test "$ac_cv_exeext" = no && ac_cv_exeext=
4186
4187 else case e in #(
4188 e) ac_file='' ;;
4189 esac
4190 fi
4191 if test -z "$ac_file"
4192 then :
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 printf "%s\n" "no" >&6; }
4195 printf "%s\n" "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4199 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4200 as_fn_error 77 "C compiler cannot create executables
4201 See 'config.log' for more details" "$LINENO" 5; }
4202 else case e in #(
4203 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4204 printf "%s\n" "yes" >&6; } ;;
4205 esac
4206 fi
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4208 printf %s "checking for C compiler default output file name... " >&6; }
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4210 printf "%s\n" "$ac_file" >&6; }
4211 ac_exeext=$ac_cv_exeext
4212
4213 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4214 ac_clean_files=$ac_clean_files_save
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4216 printf %s "checking for suffix of executables... " >&6; }
4217 if { { ac_try="$ac_link"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 printf "%s\n" "$ac_try_echo"; } >&5
4224 (eval "$ac_link") 2>&5
4225 ac_status=$?
4226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }
4228 then :
4229 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4230 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4231 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4232 # 'rm'.
4233 for ac_file in conftest.exe conftest conftest.*; do
4234 test -f "$ac_file" || continue
4235 case $ac_file in
4236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4238 break;;
4239 * ) break;;
4240 esac
4241 done
4242 else case e in #(
4243 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4244 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4245 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4246 See 'config.log' for more details" "$LINENO" 5; } ;;
4247 esac
4248 fi
4249 rm -f conftest conftest$ac_cv_exeext
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4251 printf "%s\n" "$ac_cv_exeext" >&6; }
4252
4253 rm -f conftest.$ac_ext
4254 EXEEXT=$ac_cv_exeext
4255 ac_exeext=$EXEEXT
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <stdio.h>
4259 int
4260 main (void)
4261 {
4262 FILE *f = fopen ("conftest.out", "w");
4263 if (!f)
4264 return 1;
4265 return ferror (f) || fclose (f) != 0;
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 ac_clean_files="$ac_clean_files conftest.out"
4272 # Check that the compiler produces executables we can run. If not, either
4273 # the compiler is broken, or we cross compile.
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4275 printf %s "checking whether we are cross compiling... " >&6; }
4276 if test "$cross_compiling" != yes; then
4277 { { ac_try="$ac_link"
4278 case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 printf "%s\n" "$ac_try_echo"; } >&5
4284 (eval "$ac_link") 2>&5
4285 ac_status=$?
4286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }
4288 if { ac_try='./conftest$ac_cv_exeext'
4289 { { case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 printf "%s\n" "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
4296 ac_status=$?
4297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; }; }; then
4299 cross_compiling=no
4300 else
4301 if test "$cross_compiling" = maybe; then
4302 cross_compiling=yes
4303 else
4304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4305 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4306 as_fn_error 77 "cannot run C compiled programs.
4307 If you meant to cross compile, use '--host'.
4308 See 'config.log' for more details" "$LINENO" 5; }
4309 fi
4310 fi
4311 fi
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4313 printf "%s\n" "$cross_compiling" >&6; }
4314
4315 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4316 conftest.o conftest.obj conftest.out
4317 ac_clean_files=$ac_clean_files_save
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4319 printf %s "checking for suffix of object files... " >&6; }
4320 if test ${ac_cv_objext+y}
4321 then :
4322 printf %s "(cached) " >&6
4323 else case e in #(
4324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326
4327 int
4328 main (void)
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 rm -f conftest.o conftest.obj
4336 if { { ac_try="$ac_compile"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 printf "%s\n" "$ac_try_echo"; } >&5
4343 (eval "$ac_compile") 2>&5
4344 ac_status=$?
4345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; }
4347 then :
4348 for ac_file in conftest.o conftest.obj conftest.*; do
4349 test -f "$ac_file" || continue;
4350 case $ac_file in
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4353 break;;
4354 esac
4355 done
4356 else case e in #(
4357 e) printf "%s\n" "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4361 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4362 as_fn_error $? "cannot compute suffix of object files: cannot compile
4363 See 'config.log' for more details" "$LINENO" 5; } ;;
4364 esac
4365 fi
4366 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4367 esac
4368 fi
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4370 printf "%s\n" "$ac_cv_objext" >&6; }
4371 OBJEXT=$ac_cv_objext
4372 ac_objext=$OBJEXT
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4374 printf %s "checking whether the compiler supports GNU C... " >&6; }
4375 if test ${ac_cv_c_compiler_gnu+y}
4376 then :
4377 printf %s "(cached) " >&6
4378 else case e in #(
4379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382 int
4383 main (void)
4384 {
4385 #ifndef __GNUC__
4386 choke me
4387 #endif
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_compile "$LINENO"
4394 then :
4395 ac_compiler_gnu=yes
4396 else case e in #(
4397 e) ac_compiler_gnu=no ;;
4398 esac
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4402 ;;
4403 esac
4404 fi
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4406 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408
4409 if test $ac_compiler_gnu = yes; then
4410 GCC=yes
4411 else
4412 GCC=
4413 fi
4414 ac_test_CFLAGS=${CFLAGS+y}
4415 ac_save_CFLAGS=$CFLAGS
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4417 printf %s "checking whether $CC accepts -g... " >&6; }
4418 if test ${ac_cv_prog_cc_g+y}
4419 then :
4420 printf %s "(cached) " >&6
4421 else case e in #(
4422 e) ac_save_c_werror_flag=$ac_c_werror_flag
4423 ac_c_werror_flag=yes
4424 ac_cv_prog_cc_g=no
4425 CFLAGS="-g"
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428
4429 int
4430 main (void)
4431 {
4432
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 if ac_fn_c_try_compile "$LINENO"
4438 then :
4439 ac_cv_prog_cc_g=yes
4440 else case e in #(
4441 e) CFLAGS=""
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444
4445 int
4446 main (void)
4447 {
4448
4449 ;
4450 return 0;
4451 }
4452 _ACEOF
4453 if ac_fn_c_try_compile "$LINENO"
4454 then :
4455
4456 else case e in #(
4457 e) ac_c_werror_flag=$ac_save_c_werror_flag
4458 CFLAGS="-g"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461
4462 int
4463 main (void)
4464 {
4465
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 if ac_fn_c_try_compile "$LINENO"
4471 then :
4472 ac_cv_prog_cc_g=yes
4473 fi
4474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4475 esac
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4478 esac
4479 fi
4480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4481 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4482 esac
4483 fi
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4485 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4486 if test $ac_test_CFLAGS; then
4487 CFLAGS=$ac_save_CFLAGS
4488 elif test $ac_cv_prog_cc_g = yes; then
4489 if test "$GCC" = yes; then
4490 CFLAGS="-g -O2"
4491 else
4492 CFLAGS="-g"
4493 fi
4494 else
4495 if test "$GCC" = yes; then
4496 CFLAGS="-O2"
4497 else
4498 CFLAGS=
4499 fi
4500 fi
4501 ac_prog_cc_stdc=no
4502 if test x$ac_prog_cc_stdc = xno
4503 then :
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4505 printf %s "checking for $CC option to enable C11 features... " >&6; }
4506 if test ${ac_cv_prog_cc_c11+y}
4507 then :
4508 printf %s "(cached) " >&6
4509 else case e in #(
4510 e) ac_cv_prog_cc_c11=no
4511 ac_save_CC=$CC
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514 $ac_c_conftest_c11_program
4515 _ACEOF
4516 for ac_arg in '' -std=gnu11
4517 do
4518 CC="$ac_save_CC $ac_arg"
4519 if ac_fn_c_try_compile "$LINENO"
4520 then :
4521 ac_cv_prog_cc_c11=$ac_arg
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.beam
4524 test "x$ac_cv_prog_cc_c11" != "xno" && break
4525 done
4526 rm -f conftest.$ac_ext
4527 CC=$ac_save_CC ;;
4528 esac
4529 fi
4530
4531 if test "x$ac_cv_prog_cc_c11" = xno
4532 then :
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4534 printf "%s\n" "unsupported" >&6; }
4535 else case e in #(
4536 e) if test "x$ac_cv_prog_cc_c11" = x
4537 then :
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4539 printf "%s\n" "none needed" >&6; }
4540 else case e in #(
4541 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4542 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4543 CC="$CC $ac_cv_prog_cc_c11" ;;
4544 esac
4545 fi
4546 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4547 ac_prog_cc_stdc=c11 ;;
4548 esac
4549 fi
4550 fi
4551 if test x$ac_prog_cc_stdc = xno
4552 then :
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4554 printf %s "checking for $CC option to enable C99 features... " >&6; }
4555 if test ${ac_cv_prog_cc_c99+y}
4556 then :
4557 printf %s "(cached) " >&6
4558 else case e in #(
4559 e) ac_cv_prog_cc_c99=no
4560 ac_save_CC=$CC
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 $ac_c_conftest_c99_program
4564 _ACEOF
4565 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4566 do
4567 CC="$ac_save_CC $ac_arg"
4568 if ac_fn_c_try_compile "$LINENO"
4569 then :
4570 ac_cv_prog_cc_c99=$ac_arg
4571 fi
4572 rm -f core conftest.err conftest.$ac_objext conftest.beam
4573 test "x$ac_cv_prog_cc_c99" != "xno" && break
4574 done
4575 rm -f conftest.$ac_ext
4576 CC=$ac_save_CC ;;
4577 esac
4578 fi
4579
4580 if test "x$ac_cv_prog_cc_c99" = xno
4581 then :
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4583 printf "%s\n" "unsupported" >&6; }
4584 else case e in #(
4585 e) if test "x$ac_cv_prog_cc_c99" = x
4586 then :
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4588 printf "%s\n" "none needed" >&6; }
4589 else case e in #(
4590 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4591 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4592 CC="$CC $ac_cv_prog_cc_c99" ;;
4593 esac
4594 fi
4595 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4596 ac_prog_cc_stdc=c99 ;;
4597 esac
4598 fi
4599 fi
4600 if test x$ac_prog_cc_stdc = xno
4601 then :
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4603 printf %s "checking for $CC option to enable C89 features... " >&6; }
4604 if test ${ac_cv_prog_cc_c89+y}
4605 then :
4606 printf %s "(cached) " >&6
4607 else case e in #(
4608 e) ac_cv_prog_cc_c89=no
4609 ac_save_CC=$CC
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612 $ac_c_conftest_c89_program
4613 _ACEOF
4614 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4615 do
4616 CC="$ac_save_CC $ac_arg"
4617 if ac_fn_c_try_compile "$LINENO"
4618 then :
4619 ac_cv_prog_cc_c89=$ac_arg
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.beam
4622 test "x$ac_cv_prog_cc_c89" != "xno" && break
4623 done
4624 rm -f conftest.$ac_ext
4625 CC=$ac_save_CC ;;
4626 esac
4627 fi
4628
4629 if test "x$ac_cv_prog_cc_c89" = xno
4630 then :
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4632 printf "%s\n" "unsupported" >&6; }
4633 else case e in #(
4634 e) if test "x$ac_cv_prog_cc_c89" = x
4635 then :
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4637 printf "%s\n" "none needed" >&6; }
4638 else case e in #(
4639 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4640 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4641 CC="$CC $ac_cv_prog_cc_c89" ;;
4642 esac
4643 fi
4644 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4645 ac_prog_cc_stdc=c89 ;;
4646 esac
4647 fi
4648 fi
4649
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655
4656
4657 ac_ext=c
4658 ac_cpp='$CPP $CPPFLAGS'
4659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4663 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4664 if test ${am_cv_prog_cc_c_o+y}
4665 then :
4666 printf %s "(cached) " >&6
4667 else case e in #(
4668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4670
4671 int
4672 main (void)
4673 {
4674
4675 ;
4676 return 0;
4677 }
4678 _ACEOF
4679 # Make sure it works both with $CC and with simple cc.
4680 # Following AC_PROG_CC_C_O, we do the test twice because some
4681 # compilers refuse to overwrite an existing .o file with -o,
4682 # though they will create one.
4683 am_cv_prog_cc_c_o=yes
4684 for am_i in 1 2; do
4685 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4686 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } \
4690 && test -f conftest2.$ac_objext; then
4691 : OK
4692 else
4693 am_cv_prog_cc_c_o=no
4694 break
4695 fi
4696 done
4697 # aligned with autoconf, so not including core; see bug#72225.
4698 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4699 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4700 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4701 unset am_i ;;
4702 esac
4703 fi
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4705 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4706 if test "$am_cv_prog_cc_c_o" != yes; then
4707 # Losing compiler, so override with the script.
4708 # FIXME: It is wrong to rewrite CC.
4709 # But if we don't then we get into trouble of one sort or another.
4710 # A longer-term fix would be to have automake use am__CC in this case,
4711 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4712 CC="$am_aux_dir/compile $CC"
4713 fi
4714 ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719
4720
4721 depcc="$CC" am_compiler_list=
4722
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4724 printf %s "checking dependency style of $depcc... " >&6; }
4725 if test ${am_cv_CC_dependencies_compiler_type+y}
4726 then :
4727 printf %s "(cached) " >&6
4728 else case e in #(
4729 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4730 # We make a subdir and do the tests there. Otherwise we can end up
4731 # making bogus files that we don't know about and never remove. For
4732 # instance it was reported that on HP-UX the gcc test will end up
4733 # making a dummy file named 'D' -- because '-MD' means "put the output
4734 # in D".
4735 rm -rf conftest.dir
4736 mkdir conftest.dir
4737 # Copy depcomp to subdir because otherwise we won't find it if we're
4738 # using a relative directory.
4739 cp "$am_depcomp" conftest.dir
4740 cd conftest.dir
4741 # We will build objects and dependencies in a subdirectory because
4742 # it helps to detect inapplicable dependency modes. For instance
4743 # both Tru64's cc and ICC support -MD to output dependencies as a
4744 # side effect of compilation, but ICC will put the dependencies in
4745 # the current directory while Tru64 will put them in the object
4746 # directory.
4747 mkdir sub
4748
4749 am_cv_CC_dependencies_compiler_type=none
4750 if test "$am_compiler_list" = ""; then
4751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4752 fi
4753 am__universal=false
4754 case " $depcc " in #(
4755 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4756 esac
4757
4758 for depmode in $am_compiler_list; do
4759 # Setup a source with many dependencies, because some compilers
4760 # like to wrap large dependency lists on column 80 (with \), and
4761 # we should not choose a depcomp mode which is confused by this.
4762 #
4763 # We need to recreate these files for each test, as the compiler may
4764 # overwrite some of them when testing with obscure command lines.
4765 # This happens at least with the AIX C compiler.
4766 : > sub/conftest.c
4767 for i in 1 2 3 4 5 6; do
4768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4769 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4770 # Solaris 10 /bin/sh.
4771 echo '/* dummy */' > sub/conftst$i.h
4772 done
4773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4774
4775 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4776 # mode. It turns out that the SunPro C++ compiler does not properly
4777 # handle '-M -o', and we need to detect this. Also, some Intel
4778 # versions had trouble with output in subdirs.
4779 am__obj=sub/conftest.${OBJEXT-o}
4780 am__minus_obj="-o $am__obj"
4781 case $depmode in
4782 gcc)
4783 # This depmode causes a compiler race in universal mode.
4784 test "$am__universal" = false || continue
4785 ;;
4786 nosideeffect)
4787 # After this tag, mechanisms are not by side-effect, so they'll
4788 # only be used when explicitly requested.
4789 if test "x$enable_dependency_tracking" = xyes; then
4790 continue
4791 else
4792 break
4793 fi
4794 ;;
4795 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4796 # This compiler won't grok '-c -o', but also, the minuso test has
4797 # not run yet. These depmodes are late enough in the game, and
4798 # so weak that their functioning should not be impacted.
4799 am__obj=conftest.${OBJEXT-o}
4800 am__minus_obj=
4801 ;;
4802 none) break ;;
4803 esac
4804 if depmode=$depmode \
4805 source=sub/conftest.c object=$am__obj \
4806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4807 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4808 >/dev/null 2>conftest.err &&
4809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4811 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4813 # icc doesn't choke on unknown options, it will just issue warnings
4814 # or remarks (even with -Werror). So we grep stderr for any message
4815 # that says an option was ignored or not supported.
4816 # When given -MP, icc 7.0 and 7.1 complain thus:
4817 # icc: Command line warning: ignoring option '-M'; no argument required
4818 # The diagnosis changed in icc 8.0:
4819 # icc: Command line remark: option '-MP' not supported
4820 if (grep 'ignoring option' conftest.err ||
4821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4822 am_cv_CC_dependencies_compiler_type=$depmode
4823 break
4824 fi
4825 fi
4826 done
4827
4828 cd ..
4829 rm -rf conftest.dir
4830 else
4831 am_cv_CC_dependencies_compiler_type=none
4832 fi
4833 ;;
4834 esac
4835 fi
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4837 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4838 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4839
4840 if
4841 test "x$enable_dependency_tracking" != xno \
4842 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4843 am__fastdepCC_TRUE=
4844 am__fastdepCC_FALSE='#'
4845 else
4846 am__fastdepCC_TRUE='#'
4847 am__fastdepCC_FALSE=
4848 fi
4849
4850
4851
4852 ac_header= ac_cache=
4853 for ac_item in $ac_header_c_list
4854 do
4855 if test $ac_cache; then
4856 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4857 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4858 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4859 fi
4860 ac_header= ac_cache=
4861 elif test $ac_header; then
4862 ac_cache=$ac_item
4863 else
4864 ac_header=$ac_item
4865 fi
4866 done
4867
4868
4869
4870
4871
4872
4873
4874
4875 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4876 then :
4877
4878 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4879
4880 fi
4881
4882
4883
4884
4885
4886
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4888 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4889 if test ${ac_cv_safe_to_define___extensions__+y}
4890 then :
4891 printf %s "(cached) " >&6
4892 else case e in #(
4893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895
4896 # define __EXTENSIONS__ 1
4897 $ac_includes_default
4898 int
4899 main (void)
4900 {
4901
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"
4907 then :
4908 ac_cv_safe_to_define___extensions__=yes
4909 else case e in #(
4910 e) ac_cv_safe_to_define___extensions__=no ;;
4911 esac
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4914 esac
4915 fi
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4917 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4918
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4920 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4921 if test ${ac_cv_should_define__xopen_source+y}
4922 then :
4923 printf %s "(cached) " >&6
4924 else case e in #(
4925 e) ac_cv_should_define__xopen_source=no
4926 if test $ac_cv_header_wchar_h = yes
4927 then :
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930
4931 #include <wchar.h>
4932 mbstate_t x;
4933 int
4934 main (void)
4935 {
4936
4937 ;
4938 return 0;
4939 }
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"
4942 then :
4943
4944 else case e in #(
4945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947
4948 #define _XOPEN_SOURCE 500
4949 #include <wchar.h>
4950 mbstate_t x;
4951 int
4952 main (void)
4953 {
4954
4955 ;
4956 return 0;
4957 }
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"
4960 then :
4961 ac_cv_should_define__xopen_source=yes
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4964 esac
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4967 fi ;;
4968 esac
4969 fi
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4971 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4972
4973 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4974
4975 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4976
4977 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4978
4979 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4980
4981 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4982
4983 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4984
4985 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4986
4987 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4988
4989 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4990
4991 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4992
4993 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4994
4995 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4996
4997 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4998
4999 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5000
5001 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5002
5003 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5004
5005 if test $ac_cv_header_minix_config_h = yes
5006 then :
5007 MINIX=yes
5008 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5009
5010 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5011
5012 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5013
5014 else case e in #(
5015 e) MINIX= ;;
5016 esac
5017 fi
5018 if test $ac_cv_safe_to_define___extensions__ = yes
5019 then :
5020 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5021
5022 fi
5023 if test $ac_cv_should_define__xopen_source = yes
5024 then :
5025 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5026
5027 fi
5028
5029 # Check whether --enable-compiler-warnings was given.
5030 if test ${enable_compiler_warnings+y}
5031 then :
5032 enableval=$enable_compiler_warnings;
5033 fi
5034 case $enable_compiler_warnings in #(
5035 no | min | yes | max | all) :
5036 ;; #(
5037 *) :
5038 if test "x$enable_maintainer_mode" = xyes
5039 then :
5040 enable_compiler_warnings=yes
5041 else case e in #(
5042 e) enable_compiler_warnings=min ;;
5043 esac
5044 fi ;;
5045 esac
5046
5047 case `pwd` in
5048 *\ * | *\ *)
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5050 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5051 esac
5052
5053
5054
5055 macro_version='2.5.4'
5056 macro_revision='2.5.4'
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071 ltmain=$ac_aux_dir/ltmain.sh
5072
5073
5074
5075 # Make sure we can run config.sub.
5076 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5077 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5078
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5080 printf %s "checking build system type... " >&6; }
5081 if test ${ac_cv_build+y}
5082 then :
5083 printf %s "(cached) " >&6
5084 else case e in #(
5085 e) ac_build_alias=$build_alias
5086 test "x$ac_build_alias" = x &&
5087 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5088 test "x$ac_build_alias" = x &&
5089 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5090 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5091 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5092 ;;
5093 esac
5094 fi
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5096 printf "%s\n" "$ac_cv_build" >&6; }
5097 case $ac_cv_build in
5098 *-*-*) ;;
5099 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5100 esac
5101 build=$ac_cv_build
5102 ac_save_IFS=$IFS; IFS='-'
5103 set x $ac_cv_build
5104 shift
5105 build_cpu=$1
5106 build_vendor=$2
5107 shift; shift
5108 # Remember, the first character of IFS is used to create $*,
5109 # except with old shells:
5110 build_os=$*
5111 IFS=$ac_save_IFS
5112 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5113
5114
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5116 printf %s "checking host system type... " >&6; }
5117 if test ${ac_cv_host+y}
5118 then :
5119 printf %s "(cached) " >&6
5120 else case e in #(
5121 e) if test "x$host_alias" = x; then
5122 ac_cv_host=$ac_cv_build
5123 else
5124 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5125 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5126 fi
5127 ;;
5128 esac
5129 fi
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5131 printf "%s\n" "$ac_cv_host" >&6; }
5132 case $ac_cv_host in
5133 *-*-*) ;;
5134 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5135 esac
5136 host=$ac_cv_host
5137 ac_save_IFS=$IFS; IFS='-'
5138 set x $ac_cv_host
5139 shift
5140 host_cpu=$1
5141 host_vendor=$2
5142 shift; shift
5143 # Remember, the first character of IFS is used to create $*,
5144 # except with old shells:
5145 host_os=$*
5146 IFS=$ac_save_IFS
5147 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5148
5149
5150 # Backslashify metacharacters that are still active within
5151 # double-quoted strings.
5152 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5153
5154 # Same as above, but do not quote variable references.
5155 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5156
5157 # Sed substitution to delay expansion of an escaped shell variable in a
5158 # double_quote_subst'ed string.
5159 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5160
5161 # Sed substitution to delay expansion of an escaped single quote.
5162 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5163
5164 # Sed substitution to avoid accidental globbing in evaled expressions
5165 no_glob_subst='s/\*/\\\*/g'
5166
5167 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5168 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5169 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5170
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5172 printf %s "checking how to print strings... " >&6; }
5173 # Test print first, because it will be a builtin if present.
5174 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5175 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5176 ECHO='print -r --'
5177 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5178 ECHO='printf %s\n'
5179 else
5180 # Use this function as a fallback that always works.
5181 func_fallback_echo ()
5182 {
5183 eval 'cat <<_LTECHO_EOF
5184 $1
5185 _LTECHO_EOF'
5186 }
5187 ECHO='func_fallback_echo'
5188 fi
5189
5190 # func_echo_all arg...
5191 # Invoke $ECHO with all args, space-separated.
5192 func_echo_all ()
5193 {
5194 $ECHO ""
5195 }
5196
5197 case $ECHO in
5198 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5199 printf "%s\n" "printf" >&6; } ;;
5200 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5201 printf "%s\n" "print -r" >&6; } ;;
5202 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5203 printf "%s\n" "cat" >&6; } ;;
5204 esac
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5220 printf %s "checking for a sed that does not truncate output... " >&6; }
5221 if test ${ac_cv_path_SED+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else case e in #(
5225 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5226 for ac_i in 1 2 3 4 5 6 7; do
5227 ac_script="$ac_script$as_nl$ac_script"
5228 done
5229 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5230 { ac_script=; unset ac_script;}
5231 if test -z "$SED"; then
5232 ac_path_SED_found=false
5233 # Loop through the user's path and test for each of PROGNAME-LIST
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 case $as_dir in #(((
5239 '') as_dir=./ ;;
5240 */) ;;
5241 *) as_dir=$as_dir/ ;;
5242 esac
5243 for ac_prog in sed gsed
5244 do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5247 as_fn_executable_p "$ac_path_SED" || continue
5248 # Check for GNU ac_path_SED and select it if it is found.
5249 # Check for GNU $ac_path_SED
5250 case `"$ac_path_SED" --version 2>&1` in #(
5251 *GNU*)
5252 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5253 #(
5254 *)
5255 ac_count=0
5256 printf %s 0123456789 >"conftest.in"
5257 while :
5258 do
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 printf "%s\n" '' >> "conftest.nl"
5263 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 as_fn_arith $ac_count + 1 && ac_count=$as_val
5266 if test $ac_count -gt ${ac_path_SED_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_SED="$ac_path_SED"
5269 ac_path_SED_max=$ac_count
5270 fi
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5273 done
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275 esac
5276
5277 $ac_path_SED_found && break 3
5278 done
5279 done
5280 done
5281 IFS=$as_save_IFS
5282 if test -z "$ac_cv_path_SED"; then
5283 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5284 fi
5285 else
5286 ac_cv_path_SED=$SED
5287 fi
5288 ;;
5289 esac
5290 fi
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5292 printf "%s\n" "$ac_cv_path_SED" >&6; }
5293 SED="$ac_cv_path_SED"
5294 rm -f conftest.sed
5295
5296 test -z "$SED" && SED=sed
5297 Xsed="$SED -e 1s/^X//"
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5310 printf %s "checking for grep that handles long lines and -e... " >&6; }
5311 if test ${ac_cv_path_GREP+y}
5312 then :
5313 printf %s "(cached) " >&6
5314 else case e in #(
5315 e) if test -z "$GREP"; then
5316 ac_path_GREP_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5320 do
5321 IFS=$as_save_IFS
5322 case $as_dir in #(((
5323 '') as_dir=./ ;;
5324 */) ;;
5325 *) as_dir=$as_dir/ ;;
5326 esac
5327 for ac_prog in grep ggrep
5328 do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5331 as_fn_executable_p "$ac_path_GREP" || continue
5332 # Check for GNU ac_path_GREP and select it if it is found.
5333 # Check for GNU $ac_path_GREP
5334 case `"$ac_path_GREP" --version 2>&1` in #(
5335 *GNU*)
5336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5337 #(
5338 *)
5339 ac_count=0
5340 printf %s 0123456789 >"conftest.in"
5341 while :
5342 do
5343 cat "conftest.in" "conftest.in" >"conftest.tmp"
5344 mv "conftest.tmp" "conftest.in"
5345 cp "conftest.in" "conftest.nl"
5346 printf "%s\n" 'GREP' >> "conftest.nl"
5347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5349 as_fn_arith $ac_count + 1 && ac_count=$as_val
5350 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5351 # Best one so far, save it but keep looking for a better one
5352 ac_cv_path_GREP="$ac_path_GREP"
5353 ac_path_GREP_max=$ac_count
5354 fi
5355 # 10*(2^10) chars as input seems more than enough
5356 test $ac_count -gt 10 && break
5357 done
5358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5359 esac
5360
5361 $ac_path_GREP_found && break 3
5362 done
5363 done
5364 done
5365 IFS=$as_save_IFS
5366 if test -z "$ac_cv_path_GREP"; then
5367 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5368 fi
5369 else
5370 ac_cv_path_GREP=$GREP
5371 fi
5372 ;;
5373 esac
5374 fi
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5376 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5377 GREP="$ac_cv_path_GREP"
5378
5379
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5381 printf %s "checking for egrep... " >&6; }
5382 if test ${ac_cv_path_EGREP+y}
5383 then :
5384 printf %s "(cached) " >&6
5385 else case e in #(
5386 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5387 then ac_cv_path_EGREP="$GREP -E"
5388 else
5389 if test -z "$EGREP"; then
5390 ac_path_EGREP_found=false
5391 # Loop through the user's path and test for each of PROGNAME-LIST
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5394 do
5395 IFS=$as_save_IFS
5396 case $as_dir in #(((
5397 '') as_dir=./ ;;
5398 */) ;;
5399 *) as_dir=$as_dir/ ;;
5400 esac
5401 for ac_prog in egrep
5402 do
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5405 as_fn_executable_p "$ac_path_EGREP" || continue
5406 # Check for GNU ac_path_EGREP and select it if it is found.
5407 # Check for GNU $ac_path_EGREP
5408 case `"$ac_path_EGREP" --version 2>&1` in #(
5409 *GNU*)
5410 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5411 #(
5412 *)
5413 ac_count=0
5414 printf %s 0123456789 >"conftest.in"
5415 while :
5416 do
5417 cat "conftest.in" "conftest.in" >"conftest.tmp"
5418 mv "conftest.tmp" "conftest.in"
5419 cp "conftest.in" "conftest.nl"
5420 printf "%s\n" 'EGREP' >> "conftest.nl"
5421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5423 as_fn_arith $ac_count + 1 && ac_count=$as_val
5424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5425 # Best one so far, save it but keep looking for a better one
5426 ac_cv_path_EGREP="$ac_path_EGREP"
5427 ac_path_EGREP_max=$ac_count
5428 fi
5429 # 10*(2^10) chars as input seems more than enough
5430 test $ac_count -gt 10 && break
5431 done
5432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5433 esac
5434
5435 $ac_path_EGREP_found && break 3
5436 done
5437 done
5438 done
5439 IFS=$as_save_IFS
5440 if test -z "$ac_cv_path_EGREP"; then
5441 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5442 fi
5443 else
5444 ac_cv_path_EGREP=$EGREP
5445 fi
5446
5447 fi ;;
5448 esac
5449 fi
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5451 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5452 EGREP="$ac_cv_path_EGREP"
5453
5454 EGREP_TRADITIONAL=$EGREP
5455 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5456
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5458 printf %s "checking for fgrep... " >&6; }
5459 if test ${ac_cv_path_FGREP+y}
5460 then :
5461 printf %s "(cached) " >&6
5462 else case e in #(
5463 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5464 then ac_cv_path_FGREP="$GREP -F"
5465 else
5466 if test -z "$FGREP"; then
5467 ac_path_FGREP_found=false
5468 # Loop through the user's path and test for each of PROGNAME-LIST
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 do
5472 IFS=$as_save_IFS
5473 case $as_dir in #(((
5474 '') as_dir=./ ;;
5475 */) ;;
5476 *) as_dir=$as_dir/ ;;
5477 esac
5478 for ac_prog in fgrep
5479 do
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5482 as_fn_executable_p "$ac_path_FGREP" || continue
5483 # Check for GNU ac_path_FGREP and select it if it is found.
5484 # Check for GNU $ac_path_FGREP
5485 case `"$ac_path_FGREP" --version 2>&1` in #(
5486 *GNU*)
5487 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5488 #(
5489 *)
5490 ac_count=0
5491 printf %s 0123456789 >"conftest.in"
5492 while :
5493 do
5494 cat "conftest.in" "conftest.in" >"conftest.tmp"
5495 mv "conftest.tmp" "conftest.in"
5496 cp "conftest.in" "conftest.nl"
5497 printf "%s\n" 'FGREP' >> "conftest.nl"
5498 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500 as_fn_arith $ac_count + 1 && ac_count=$as_val
5501 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5502 # Best one so far, save it but keep looking for a better one
5503 ac_cv_path_FGREP="$ac_path_FGREP"
5504 ac_path_FGREP_max=$ac_count
5505 fi
5506 # 10*(2^10) chars as input seems more than enough
5507 test $ac_count -gt 10 && break
5508 done
5509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5510 esac
5511
5512 $ac_path_FGREP_found && break 3
5513 done
5514 done
5515 done
5516 IFS=$as_save_IFS
5517 if test -z "$ac_cv_path_FGREP"; then
5518 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5519 fi
5520 else
5521 ac_cv_path_FGREP=$FGREP
5522 fi
5523
5524 fi ;;
5525 esac
5526 fi
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5528 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5529 FGREP="$ac_cv_path_FGREP"
5530
5531
5532 test -z "$GREP" && GREP=grep
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 # Check whether --with-gnu-ld was given.
5553 if test ${with_gnu_ld+y}
5554 then :
5555 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5556 else case e in #(
5557 e) with_gnu_ld=no ;;
5558 esac
5559 fi
5560
5561 ac_prog=ld
5562 if test yes = "$GCC"; then
5563 # Check if gcc -print-prog-name=ld gives a path.
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5565 printf %s "checking for ld used by $CC... " >&6; }
5566 case $host in
5567 *-*-mingw* | *-*-windows*)
5568 # gcc leaves a trailing carriage return, which upsets mingw
5569 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5570 *)
5571 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5572 esac
5573 case $ac_prog in
5574 # Accept absolute paths.
5575 [\\/]* | ?:[\\/]*)
5576 re_direlt='/[^/][^/]*/\.\./'
5577 # Canonicalize the pathname of ld
5578 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5579 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5580 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5581 done
5582 test -z "$LD" && LD=$ac_prog
5583 ;;
5584 "")
5585 # If it fails, then pretend we aren't using GCC.
5586 ac_prog=ld
5587 ;;
5588 *)
5589 # If it is relative, then search for the first ld in PATH.
5590 with_gnu_ld=unknown
5591 ;;
5592 esac
5593 elif test yes = "$with_gnu_ld"; then
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5595 printf %s "checking for GNU ld... " >&6; }
5596 else
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5598 printf %s "checking for non-GNU ld... " >&6; }
5599 fi
5600 if test ${lt_cv_path_LD+y}
5601 then :
5602 printf %s "(cached) " >&6
5603 else case e in #(
5604 e) if test -z "$LD"; then
5605 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5606 for ac_dir in $PATH; do
5607 IFS=$lt_save_ifs
5608 test -z "$ac_dir" && ac_dir=.
5609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5610 lt_cv_path_LD=$ac_dir/$ac_prog
5611 # Check to see if the program is GNU ld. I'd rather use --version,
5612 # but apparently some variants of GNU ld only accept -v.
5613 # Break only if it was the GNU/non-GNU ld that we prefer.
5614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5615 *GNU* | *'with BFD'*)
5616 test no != "$with_gnu_ld" && break
5617 ;;
5618 *)
5619 test yes != "$with_gnu_ld" && break
5620 ;;
5621 esac
5622 fi
5623 done
5624 IFS=$lt_save_ifs
5625 else
5626 lt_cv_path_LD=$LD # Let the user override the test with a path.
5627 fi ;;
5628 esac
5629 fi
5630
5631 LD=$lt_cv_path_LD
5632 if test -n "$LD"; then
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5634 printf "%s\n" "$LD" >&6; }
5635 else
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 printf "%s\n" "no" >&6; }
5638 fi
5639 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5641 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5642 if test ${lt_cv_prog_gnu_ld+y}
5643 then :
5644 printf %s "(cached) " >&6
5645 else case e in #(
5646 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5647 case `$LD -v 2>&1 </dev/null` in
5648 *GNU* | *'with BFD'*)
5649 lt_cv_prog_gnu_ld=yes
5650 ;;
5651 *)
5652 lt_cv_prog_gnu_ld=no
5653 ;;
5654 esac ;;
5655 esac
5656 fi
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5658 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5659 with_gnu_ld=$lt_cv_prog_gnu_ld
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5670 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5671 if test ${lt_cv_path_NM+y}
5672 then :
5673 printf %s "(cached) " >&6
5674 else case e in #(
5675 e) if test -n "$NM"; then
5676 # Let the user override the test.
5677 lt_cv_path_NM=$NM
5678 else
5679 lt_nm_to_check=${ac_tool_prefix}nm
5680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5681 lt_nm_to_check="$lt_nm_to_check nm"
5682 fi
5683 for lt_tmp_nm in $lt_nm_to_check; do
5684 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5685 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5686 IFS=$lt_save_ifs
5687 test -z "$ac_dir" && ac_dir=.
5688 tmp_nm=$ac_dir/$lt_tmp_nm
5689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5690 # Check to see if the nm accepts a BSD-compat flag.
5691 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5692 # nm: unknown option "B" ignored
5693 # Tru64's nm complains that /dev/null is an invalid object file
5694 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5695 case $build_os in
5696 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5697 *) lt_bad_file=/dev/null ;;
5698 esac
5699 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5700 *$lt_bad_file* | *'Invalid file or object type'*)
5701 lt_cv_path_NM="$tmp_nm -B"
5702 break 2
5703 ;;
5704 *)
5705 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5706 */dev/null*)
5707 lt_cv_path_NM="$tmp_nm -p"
5708 break 2
5709 ;;
5710 *)
5711 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5712 continue # so that we can try to find one that supports BSD flags
5713 ;;
5714 esac
5715 ;;
5716 esac
5717 fi
5718 done
5719 IFS=$lt_save_ifs
5720 done
5721 : ${lt_cv_path_NM=no}
5722 fi ;;
5723 esac
5724 fi
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5726 printf "%s\n" "$lt_cv_path_NM" >&6; }
5727 if test no != "$lt_cv_path_NM"; then
5728 NM=$lt_cv_path_NM
5729 else
5730 # Didn't find any BSD compatible name lister, look for dumpbin.
5731 if test -n "$DUMPBIN"; then :
5732 # Let the user override the test.
5733 else
5734 if test -n "$ac_tool_prefix"; then
5735 for ac_prog in dumpbin "link -dump"
5736 do
5737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 printf %s "checking for $ac_word... " >&6; }
5741 if test ${ac_cv_prog_DUMPBIN+y}
5742 then :
5743 printf %s "(cached) " >&6
5744 else case e in #(
5745 e) if test -n "$DUMPBIN"; then
5746 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751 IFS=$as_save_IFS
5752 case $as_dir in #(((
5753 '') as_dir=./ ;;
5754 */) ;;
5755 *) as_dir=$as_dir/ ;;
5756 esac
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5765 IFS=$as_save_IFS
5766
5767 fi ;;
5768 esac
5769 fi
5770 DUMPBIN=$ac_cv_prog_DUMPBIN
5771 if test -n "$DUMPBIN"; then
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5773 printf "%s\n" "$DUMPBIN" >&6; }
5774 else
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 printf "%s\n" "no" >&6; }
5777 fi
5778
5779
5780 test -n "$DUMPBIN" && break
5781 done
5782 fi
5783 if test -z "$DUMPBIN"; then
5784 ac_ct_DUMPBIN=$DUMPBIN
5785 for ac_prog in dumpbin "link -dump"
5786 do
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 printf %s "checking for $ac_word... " >&6; }
5791 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else case e in #(
5795 e) if test -n "$ac_ct_DUMPBIN"; then
5796 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801 IFS=$as_save_IFS
5802 case $as_dir in #(((
5803 '') as_dir=./ ;;
5804 */) ;;
5805 *) as_dir=$as_dir/ ;;
5806 esac
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi ;;
5818 esac
5819 fi
5820 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5821 if test -n "$ac_ct_DUMPBIN"; then
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5823 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5824 else
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 printf "%s\n" "no" >&6; }
5827 fi
5828
5829
5830 test -n "$ac_ct_DUMPBIN" && break
5831 done
5832
5833 if test "x$ac_ct_DUMPBIN" = x; then
5834 DUMPBIN=":"
5835 else
5836 case $cross_compiling:$ac_tool_warned in
5837 yes:)
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5840 ac_tool_warned=yes ;;
5841 esac
5842 DUMPBIN=$ac_ct_DUMPBIN
5843 fi
5844 fi
5845
5846 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5847 *COFF*)
5848 DUMPBIN="$DUMPBIN -symbols -headers"
5849 ;;
5850 *)
5851 DUMPBIN=:
5852 ;;
5853 esac
5854 fi
5855
5856 if test : != "$DUMPBIN"; then
5857 NM=$DUMPBIN
5858 fi
5859 fi
5860 test -z "$NM" && NM=nm
5861
5862
5863
5864
5865
5866
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5868 printf %s "checking the name lister ($NM) interface... " >&6; }
5869 if test ${lt_cv_nm_interface+y}
5870 then :
5871 printf %s "(cached) " >&6
5872 else case e in #(
5873 e) lt_cv_nm_interface="BSD nm"
5874 echo "int some_variable = 0;" > conftest.$ac_ext
5875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5876 (eval "$ac_compile" 2>conftest.err)
5877 cat conftest.err >&5
5878 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5879 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5880 cat conftest.err >&5
5881 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5882 cat conftest.out >&5
5883 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5884 lt_cv_nm_interface="MS dumpbin"
5885 fi
5886 rm -f conftest* ;;
5887 esac
5888 fi
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5890 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5891
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5893 printf %s "checking whether ln -s works... " >&6; }
5894 LN_S=$as_ln_s
5895 if test "$LN_S" = "ln -s"; then
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5897 printf "%s\n" "yes" >&6; }
5898 else
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5900 printf "%s\n" "no, using $LN_S" >&6; }
5901 fi
5902
5903 # find the maximum length of command line arguments
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5905 printf %s "checking the maximum length of command line arguments... " >&6; }
5906 if test ${lt_cv_sys_max_cmd_len+y}
5907 then :
5908 printf %s "(cached) " >&6
5909 else case e in #(
5910 e) i=0
5911 teststring=ABCD
5912
5913 case $build_os in
5914 msdosdjgpp*)
5915 # On DJGPP, this test can blow up pretty badly due to problems in libc
5916 # (any single argument exceeding 2000 bytes causes a buffer overrun
5917 # during glob expansion). Even if it were fixed, the result of this
5918 # check would be larger than it should be.
5919 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5920 ;;
5921
5922 gnu* | ironclad*)
5923 # Under GNU Hurd and Ironclad, this test is not required because there
5924 # is no limit to the length of command line arguments.
5925 # Libtool will interpret -1 as no limit whatsoever
5926 lt_cv_sys_max_cmd_len=-1;
5927 ;;
5928
5929 cygwin* | mingw* | windows* | cegcc*)
5930 # On Win9x/ME, this test blows up -- it succeeds, but takes
5931 # about 5 minutes as the teststring grows exponentially.
5932 # Worse, since 9x/ME are not pre-emptively multitasking,
5933 # you end up with a "frozen" computer, even though with patience
5934 # the test eventually succeeds (with a max line length of 256k).
5935 # Instead, let's just punt: use the minimum linelength reported by
5936 # all of the supported platforms: 8192 (on NT/2K/XP).
5937 lt_cv_sys_max_cmd_len=8192;
5938 ;;
5939
5940 mint*)
5941 # On MiNT this can take a long time and run out of memory.
5942 lt_cv_sys_max_cmd_len=8192;
5943 ;;
5944
5945 amigaos*)
5946 # On AmigaOS with pdksh, this test takes hours, literally.
5947 # So we just punt and use a minimum line length of 8192.
5948 lt_cv_sys_max_cmd_len=8192;
5949 ;;
5950
5951 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5952 # This has been around since 386BSD, at least. Likely further.
5953 if test -x /sbin/sysctl; then
5954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5955 elif test -x /usr/sbin/sysctl; then
5956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5957 else
5958 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5959 fi
5960 # And add a safety zone
5961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5963 ;;
5964
5965 interix*)
5966 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5967 lt_cv_sys_max_cmd_len=196608
5968 ;;
5969
5970 os2*)
5971 # The test takes a long time on OS/2.
5972 lt_cv_sys_max_cmd_len=8192
5973 ;;
5974
5975 osf*)
5976 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5977 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5978 # nice to cause kernel panics so lets avoid the loop below.
5979 # First set a reasonable default.
5980 lt_cv_sys_max_cmd_len=16384
5981 #
5982 if test -x /sbin/sysconfig; then
5983 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5984 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5985 esac
5986 fi
5987 ;;
5988 sco3.2v5*)
5989 lt_cv_sys_max_cmd_len=102400
5990 ;;
5991 sysv5* | sco5v6* | sysv4.2uw2*)
5992 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5993 if test -n "$kargmax"; then
5994 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5995 else
5996 lt_cv_sys_max_cmd_len=32768
5997 fi
5998 ;;
5999 *)
6000 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6001 if test -n "$lt_cv_sys_max_cmd_len" && \
6002 test undefined != "$lt_cv_sys_max_cmd_len"; then
6003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6005 else
6006 # Make teststring a little bigger before we do anything with it.
6007 # a 1K string should be a reasonable start.
6008 for i in 1 2 3 4 5 6 7 8; do
6009 teststring=$teststring$teststring
6010 done
6011 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6012 # If test is not a shell built-in, we'll probably end up computing a
6013 # maximum length that is only half of the actual maximum length, but
6014 # we can't tell.
6015 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6016 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6017 test 17 != "$i" # 1/2 MB should be enough
6018 do
6019 i=`expr $i + 1`
6020 teststring=$teststring$teststring
6021 done
6022 # Only check the string length outside the loop.
6023 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6024 teststring=
6025 # Add a significant safety factor because C++ compilers can tack on
6026 # massive amounts of additional arguments before passing them to the
6027 # linker. It appears as though 1/2 is a usable value.
6028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6029 fi
6030 ;;
6031 esac
6032 ;;
6033 esac
6034 fi
6035
6036 if test -n "$lt_cv_sys_max_cmd_len"; then
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6038 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6039 else
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6041 printf "%s\n" "none" >&6; }
6042 fi
6043 max_cmd_len=$lt_cv_sys_max_cmd_len
6044
6045
6046
6047
6048
6049
6050 : ${CP="cp -f"}
6051 : ${MV="mv -f"}
6052 : ${RM="rm -f"}
6053
6054 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6055 lt_unset=unset
6056 else
6057 lt_unset=false
6058 fi
6059
6060
6061
6062
6063
6064 # test EBCDIC or ASCII
6065 case `echo X|tr X '\101'` in
6066 A) # ASCII based system
6067 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6068 lt_SP2NL='tr \040 \012'
6069 lt_NL2SP='tr \015\012 \040\040'
6070 ;;
6071 *) # EBCDIC based system
6072 lt_SP2NL='tr \100 \n'
6073 lt_NL2SP='tr \r\n \100\100'
6074 ;;
6075 esac
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6086 printf %s "checking how to convert $build file names to $host format... " >&6; }
6087 if test ${lt_cv_to_host_file_cmd+y}
6088 then :
6089 printf %s "(cached) " >&6
6090 else case e in #(
6091 e) case $host in
6092 *-*-mingw* )
6093 case $build in
6094 *-*-mingw* | *-*-windows* ) # actually msys
6095 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6096 ;;
6097 *-*-cygwin* )
6098 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6099 ;;
6100 * ) # otherwise, assume *nix
6101 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6102 ;;
6103 esac
6104 ;;
6105 *-*-cygwin* )
6106 case $build in
6107 *-*-mingw* | *-*-windows* ) # actually msys
6108 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6109 ;;
6110 *-*-cygwin* )
6111 lt_cv_to_host_file_cmd=func_convert_file_noop
6112 ;;
6113 * ) # otherwise, assume *nix
6114 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6115 ;;
6116 esac
6117 ;;
6118 * ) # unhandled hosts (and "normal" native builds)
6119 lt_cv_to_host_file_cmd=func_convert_file_noop
6120 ;;
6121 esac
6122 ;;
6123 esac
6124 fi
6125
6126 to_host_file_cmd=$lt_cv_to_host_file_cmd
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6128 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6129
6130
6131
6132
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6135 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6136 if test ${lt_cv_to_tool_file_cmd+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else case e in #(
6140 e) #assume ordinary cross tools, or native build.
6141 lt_cv_to_tool_file_cmd=func_convert_file_noop
6142 case $host in
6143 *-*-mingw* | *-*-windows* )
6144 case $build in
6145 *-*-mingw* | *-*-windows* ) # actually msys
6146 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6147 ;;
6148 esac
6149 ;;
6150 esac
6151 ;;
6152 esac
6153 fi
6154
6155 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6157 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6158
6159
6160
6161
6162
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6164 printf %s "checking for $LD option to reload object files... " >&6; }
6165 if test ${lt_cv_ld_reload_flag+y}
6166 then :
6167 printf %s "(cached) " >&6
6168 else case e in #(
6169 e) lt_cv_ld_reload_flag='-r' ;;
6170 esac
6171 fi
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6173 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6174 reload_flag=$lt_cv_ld_reload_flag
6175 case $reload_flag in
6176 "" | " "*) ;;
6177 *) reload_flag=" $reload_flag" ;;
6178 esac
6179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6180 case $host_os in
6181 cygwin* | mingw* | windows* | pw32* | cegcc*)
6182 if test yes != "$GCC"; then
6183 reload_cmds=false
6184 fi
6185 ;;
6186 darwin*)
6187 if test yes = "$GCC"; then
6188 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6189 else
6190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191 fi
6192 ;;
6193 esac
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 # Extract the first word of "file", so it can be a program name with args.
6204 set dummy file; ac_word=$2
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 printf %s "checking for $ac_word... " >&6; }
6207 if test ${ac_cv_prog_FILECMD+y}
6208 then :
6209 printf %s "(cached) " >&6
6210 else case e in #(
6211 e) if test -n "$FILECMD"; then
6212 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217 IFS=$as_save_IFS
6218 case $as_dir in #(((
6219 '') as_dir=./ ;;
6220 */) ;;
6221 *) as_dir=$as_dir/ ;;
6222 esac
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_FILECMD="file"
6226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6234 fi ;;
6235 esac
6236 fi
6237 FILECMD=$ac_cv_prog_FILECMD
6238 if test -n "$FILECMD"; then
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6240 printf "%s\n" "$FILECMD" >&6; }
6241 else
6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 printf "%s\n" "no" >&6; }
6244 fi
6245
6246
6247
6248
6249
6250
6251
6252
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 printf %s "checking for $ac_word... " >&6; }
6258 if test ${ac_cv_prog_OBJDUMP+y}
6259 then :
6260 printf %s "(cached) " >&6
6261 else case e in #(
6262 e) if test -n "$OBJDUMP"; then
6263 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268 IFS=$as_save_IFS
6269 case $as_dir in #(((
6270 '') as_dir=./ ;;
6271 */) ;;
6272 *) as_dir=$as_dir/ ;;
6273 esac
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284 fi ;;
6285 esac
6286 fi
6287 OBJDUMP=$ac_cv_prog_OBJDUMP
6288 if test -n "$OBJDUMP"; then
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6290 printf "%s\n" "$OBJDUMP" >&6; }
6291 else
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 printf "%s\n" "no" >&6; }
6294 fi
6295
6296
6297 fi
6298 if test -z "$ac_cv_prog_OBJDUMP"; then
6299 ac_ct_OBJDUMP=$OBJDUMP
6300 # Extract the first word of "objdump", so it can be a program name with args.
6301 set dummy objdump; ac_word=$2
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 printf %s "checking for $ac_word... " >&6; }
6304 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6305 then :
6306 printf %s "(cached) " >&6
6307 else case e in #(
6308 e) if test -n "$ac_ct_OBJDUMP"; then
6309 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 case $as_dir in #(((
6316 '') as_dir=./ ;;
6317 */) ;;
6318 *) as_dir=$as_dir/ ;;
6319 esac
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi ;;
6331 esac
6332 fi
6333 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6334 if test -n "$ac_ct_OBJDUMP"; then
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6336 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6337 else
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 printf "%s\n" "no" >&6; }
6340 fi
6341
6342 if test "x$ac_ct_OBJDUMP" = x; then
6343 OBJDUMP="false"
6344 else
6345 case $cross_compiling:$ac_tool_warned in
6346 yes:)
6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349 ac_tool_warned=yes ;;
6350 esac
6351 OBJDUMP=$ac_ct_OBJDUMP
6352 fi
6353 else
6354 OBJDUMP="$ac_cv_prog_OBJDUMP"
6355 fi
6356
6357 test -z "$OBJDUMP" && OBJDUMP=objdump
6358
6359
6360
6361
6362
6363
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6365 printf %s "checking how to recognize dependent libraries... " >&6; }
6366 if test ${lt_cv_deplibs_check_method+y}
6367 then :
6368 printf %s "(cached) " >&6
6369 else case e in #(
6370 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6371 lt_cv_file_magic_test_file=
6372 lt_cv_deplibs_check_method='unknown'
6373 # Need to set the preceding variable on all platforms that support
6374 # interlibrary dependencies.
6375 # 'none' -- dependencies not supported.
6376 # 'unknown' -- same as none, but documents that we really don't know.
6377 # 'pass_all' -- all dependencies passed with no checks.
6378 # 'file_magic [[regex]]' -- check by looking for files in library path
6379 # that responds to the $file_magic_cmd with a given extended regex.
6380 # If you have 'file' or equivalent on your system and you're not sure
6381 # whether 'pass_all' will *always* work, you probably want this one.
6382
6383 case $host_os in
6384 aix[4-9]*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388 beos*)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391
6392 bsdi[45]*)
6393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6394 lt_cv_file_magic_cmd='$FILECMD -L'
6395 lt_cv_file_magic_test_file=/shlib/libc.so
6396 ;;
6397
6398 cygwin*)
6399 # func_win32_libid is a shell function defined in ltmain.sh
6400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6401 lt_cv_file_magic_cmd='func_win32_libid'
6402 ;;
6403
6404 mingw* | windows* | pw32*)
6405 # Base MSYS/MinGW do not provide the 'file' command needed by
6406 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6407 # unless we find 'file', for example because we are cross-compiling.
6408 if ( file / ) >/dev/null 2>&1; then
6409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6410 lt_cv_file_magic_cmd='func_win32_libid'
6411 else
6412 # Keep this pattern in sync with the one in func_win32_libid.
6413 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6414 lt_cv_file_magic_cmd='$OBJDUMP -f'
6415 fi
6416 ;;
6417
6418 cegcc*)
6419 # use the weaker test based on 'objdump'. See mingw*.
6420 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6421 lt_cv_file_magic_cmd='$OBJDUMP -f'
6422 ;;
6423
6424 darwin* | rhapsody*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427
6428 freebsd* | dragonfly* | midnightbsd*)
6429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6430 case $host_cpu in
6431 i*86 )
6432 # Not sure whether the presence of OpenBSD here was a mistake.
6433 # Let's accept both of them until this is cleared up.
6434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6435 lt_cv_file_magic_cmd=$FILECMD
6436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6437 ;;
6438 esac
6439 else
6440 lt_cv_deplibs_check_method=pass_all
6441 fi
6442 ;;
6443
6444 haiku*)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447
6448 hpux10.20* | hpux11*)
6449 lt_cv_file_magic_cmd=$FILECMD
6450 case $host_cpu in
6451 ia64*)
6452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6454 ;;
6455 hppa*64*)
6456 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]'
6457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6458 ;;
6459 *)
6460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6462 ;;
6463 esac
6464 ;;
6465
6466 interix[3-9]*)
6467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6469 ;;
6470
6471 irix5* | irix6* | nonstopux*)
6472 case $LD in
6473 *-32|*"-32 ") libmagic=32-bit;;
6474 *-n32|*"-n32 ") libmagic=N32;;
6475 *-64|*"-64 ") libmagic=64-bit;;
6476 *) libmagic=never-match;;
6477 esac
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480
6481 # This must be glibc/ELF.
6482 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6483 lt_cv_deplibs_check_method=pass_all
6484 ;;
6485
6486 *-mlibc)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
6489
6490 netbsd* | netbsdelf*-gnu)
6491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493 else
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6495 fi
6496 ;;
6497
6498 newos6*)
6499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6500 lt_cv_file_magic_cmd=$FILECMD
6501 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6502 ;;
6503
6504 *nto* | *qnx*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508 openbsd*)
6509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6511 else
6512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6513 fi
6514 ;;
6515
6516 osf3* | osf4* | osf5*)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
6520 rdos*)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523
6524 serenity*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528 solaris*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536 sysv4 | sysv4.3*)
6537 case $host_vendor in
6538 motorola)
6539 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]'
6540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6541 ;;
6542 ncr)
6543 lt_cv_deplibs_check_method=pass_all
6544 ;;
6545 sequent)
6546 lt_cv_file_magic_cmd='/bin/file'
6547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6548 ;;
6549 sni)
6550 lt_cv_file_magic_cmd='/bin/file'
6551 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6552 lt_cv_file_magic_test_file=/lib/libc.so
6553 ;;
6554 siemens)
6555 lt_cv_deplibs_check_method=pass_all
6556 ;;
6557 pc)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560 esac
6561 ;;
6562
6563 tpf*)
6564 lt_cv_deplibs_check_method=pass_all
6565 ;;
6566 os2*)
6567 lt_cv_deplibs_check_method=pass_all
6568 ;;
6569 esac
6570 ;;
6571 esac
6572 fi
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6574 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6575
6576 file_magic_glob=
6577 want_nocaseglob=no
6578 if test "$build" = "$host"; then
6579 case $host_os in
6580 mingw* | windows* | pw32*)
6581 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6582 want_nocaseglob=yes
6583 else
6584 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6585 fi
6586 ;;
6587 esac
6588 fi
6589
6590 file_magic_cmd=$lt_cv_file_magic_cmd
6591 deplibs_check_method=$lt_cv_deplibs_check_method
6592 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 printf %s "checking for $ac_word... " >&6; }
6620 if test ${ac_cv_prog_DLLTOOL+y}
6621 then :
6622 printf %s "(cached) " >&6
6623 else case e in #(
6624 e) if test -n "$DLLTOOL"; then
6625 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630 IFS=$as_save_IFS
6631 case $as_dir in #(((
6632 '') as_dir=./ ;;
6633 */) ;;
6634 *) as_dir=$as_dir/ ;;
6635 esac
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi ;;
6647 esac
6648 fi
6649 DLLTOOL=$ac_cv_prog_DLLTOOL
6650 if test -n "$DLLTOOL"; then
6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6652 printf "%s\n" "$DLLTOOL" >&6; }
6653 else
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 printf "%s\n" "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_DLLTOOL"; then
6661 ac_ct_DLLTOOL=$DLLTOOL
6662 # Extract the first word of "dlltool", so it can be a program name with args.
6663 set dummy dlltool; ac_word=$2
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 printf %s "checking for $ac_word... " >&6; }
6666 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6667 then :
6668 printf %s "(cached) " >&6
6669 else case e in #(
6670 e) if test -n "$ac_ct_DLLTOOL"; then
6671 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 case $as_dir in #(((
6678 '') as_dir=./ ;;
6679 */) ;;
6680 *) as_dir=$as_dir/ ;;
6681 esac
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi ;;
6693 esac
6694 fi
6695 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6696 if test -n "$ac_ct_DLLTOOL"; then
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6698 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6699 else
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 printf "%s\n" "no" >&6; }
6702 fi
6703
6704 if test "x$ac_ct_DLLTOOL" = x; then
6705 DLLTOOL="false"
6706 else
6707 case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713 DLLTOOL=$ac_ct_DLLTOOL
6714 fi
6715 else
6716 DLLTOOL="$ac_cv_prog_DLLTOOL"
6717 fi
6718
6719 test -z "$DLLTOOL" && DLLTOOL=dlltool
6720
6721
6722
6723
6724
6725
6726
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6728 printf %s "checking how to associate runtime and link libraries... " >&6; }
6729 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6730 then :
6731 printf %s "(cached) " >&6
6732 else case e in #(
6733 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6734
6735 case $host_os in
6736 cygwin* | mingw* | windows* | pw32* | cegcc*)
6737 # two different shell functions defined in ltmain.sh;
6738 # decide which one to use based on capabilities of $DLLTOOL
6739 case `$DLLTOOL --help 2>&1` in
6740 *--identify-strict*)
6741 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6742 ;;
6743 *)
6744 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6745 ;;
6746 esac
6747 ;;
6748 *)
6749 # fallback: assume linklib IS sharedlib
6750 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6751 ;;
6752 esac
6753 ;;
6754 esac
6755 fi
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6757 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6758 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6759 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6760
6761
6762
6763
6764
6765
6766
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 printf %s "checking for $ac_word... " >&6; }
6772 if test ${ac_cv_prog_RANLIB+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else case e in #(
6776 e) if test -n "$RANLIB"; then
6777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 case $as_dir in #(((
6784 '') as_dir=./ ;;
6785 */) ;;
6786 *) as_dir=$as_dir/ ;;
6787 esac
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi ;;
6799 esac
6800 fi
6801 RANLIB=$ac_cv_prog_RANLIB
6802 if test -n "$RANLIB"; then
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6804 printf "%s\n" "$RANLIB" >&6; }
6805 else
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 printf "%s\n" "no" >&6; }
6808 fi
6809
6810
6811 fi
6812 if test -z "$ac_cv_prog_RANLIB"; then
6813 ac_ct_RANLIB=$RANLIB
6814 # Extract the first word of "ranlib", so it can be a program name with args.
6815 set dummy ranlib; ac_word=$2
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 printf %s "checking for $ac_word... " >&6; }
6818 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6819 then :
6820 printf %s "(cached) " >&6
6821 else case e in #(
6822 e) if test -n "$ac_ct_RANLIB"; then
6823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828 IFS=$as_save_IFS
6829 case $as_dir in #(((
6830 '') as_dir=./ ;;
6831 */) ;;
6832 *) as_dir=$as_dir/ ;;
6833 esac
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_ac_ct_RANLIB="ranlib"
6837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi ;;
6845 esac
6846 fi
6847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6848 if test -n "$ac_ct_RANLIB"; then
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6850 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6851 else
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 printf "%s\n" "no" >&6; }
6854 fi
6855
6856 if test "x$ac_ct_RANLIB" = x; then
6857 RANLIB=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865 RANLIB=$ac_ct_RANLIB
6866 fi
6867 else
6868 RANLIB="$ac_cv_prog_RANLIB"
6869 fi
6870
6871 if test -n "$ac_tool_prefix"; then
6872 for ac_prog in ar
6873 do
6874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 printf %s "checking for $ac_word... " >&6; }
6878 if test ${ac_cv_prog_AR+y}
6879 then :
6880 printf %s "(cached) " >&6
6881 else case e in #(
6882 e) if test -n "$AR"; then
6883 ac_cv_prog_AR="$AR" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 case $as_dir in #(((
6890 '') as_dir=./ ;;
6891 */) ;;
6892 *) as_dir=$as_dir/ ;;
6893 esac
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi ;;
6905 esac
6906 fi
6907 AR=$ac_cv_prog_AR
6908 if test -n "$AR"; then
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6910 printf "%s\n" "$AR" >&6; }
6911 else
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 printf "%s\n" "no" >&6; }
6914 fi
6915
6916
6917 test -n "$AR" && break
6918 done
6919 fi
6920 if test -z "$AR"; then
6921 ac_ct_AR=$AR
6922 for ac_prog in ar
6923 do
6924 # Extract the first word of "$ac_prog", so it can be a program name with args.
6925 set dummy $ac_prog; ac_word=$2
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 printf %s "checking for $ac_word... " >&6; }
6928 if test ${ac_cv_prog_ac_ct_AR+y}
6929 then :
6930 printf %s "(cached) " >&6
6931 else case e in #(
6932 e) if test -n "$ac_ct_AR"; then
6933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938 IFS=$as_save_IFS
6939 case $as_dir in #(((
6940 '') as_dir=./ ;;
6941 */) ;;
6942 *) as_dir=$as_dir/ ;;
6943 esac
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_ac_ct_AR="$ac_prog"
6947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi ;;
6955 esac
6956 fi
6957 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6958 if test -n "$ac_ct_AR"; then
6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6960 printf "%s\n" "$ac_ct_AR" >&6; }
6961 else
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 printf "%s\n" "no" >&6; }
6964 fi
6965
6966
6967 test -n "$ac_ct_AR" && break
6968 done
6969
6970 if test "x$ac_ct_AR" = x; then
6971 AR="false"
6972 else
6973 case $cross_compiling:$ac_tool_warned in
6974 yes:)
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977 ac_tool_warned=yes ;;
6978 esac
6979 AR=$ac_ct_AR
6980 fi
6981 fi
6982
6983 : ${AR=ar}
6984
6985
6986
6987
6988
6989
6990 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6991 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6992 # higher priority because that's what people were doing historically (setting
6993 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6994 # variable obsoleted/removed.
6995
6996 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6997 lt_ar_flags=$AR_FLAGS
6998
6999
7000
7001
7002
7003
7004 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7005 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7006
7007
7008
7009
7010
7011
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7013 printf %s "checking for archiver @FILE support... " >&6; }
7014 if test ${lt_cv_ar_at_file+y}
7015 then :
7016 printf %s "(cached) " >&6
7017 else case e in #(
7018 e) lt_cv_ar_at_file=no
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7021
7022 int
7023 main (void)
7024 {
7025
7026 ;
7027 return 0;
7028 }
7029 _ACEOF
7030 if ac_fn_c_try_compile "$LINENO"
7031 then :
7032 echo conftest.$ac_objext > conftest.lst
7033 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7035 (eval $lt_ar_try) 2>&5
7036 ac_status=$?
7037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038 test $ac_status = 0; }
7039 if test 0 -eq "$ac_status"; then
7040 # Ensure the archiver fails upon bogus file names.
7041 rm -f conftest.$ac_objext libconftest.a
7042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7043 (eval $lt_ar_try) 2>&5
7044 ac_status=$?
7045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }
7047 if test 0 -ne "$ac_status"; then
7048 lt_cv_ar_at_file=@
7049 fi
7050 fi
7051 rm -f conftest.* libconftest.a
7052
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7055 ;;
7056 esac
7057 fi
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7059 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7060
7061 if test no = "$lt_cv_ar_at_file"; then
7062 archiver_list_spec=
7063 else
7064 archiver_list_spec=$lt_cv_ar_at_file
7065 fi
7066
7067
7068
7069
7070
7071
7072
7073 if test -n "$ac_tool_prefix"; then
7074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7075 set dummy ${ac_tool_prefix}strip; ac_word=$2
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 printf %s "checking for $ac_word... " >&6; }
7078 if test ${ac_cv_prog_STRIP+y}
7079 then :
7080 printf %s "(cached) " >&6
7081 else case e in #(
7082 e) if test -n "$STRIP"; then
7083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 case $as_dir in #(((
7090 '') as_dir=./ ;;
7091 */) ;;
7092 *) as_dir=$as_dir/ ;;
7093 esac
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi ;;
7105 esac
7106 fi
7107 STRIP=$ac_cv_prog_STRIP
7108 if test -n "$STRIP"; then
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7110 printf "%s\n" "$STRIP" >&6; }
7111 else
7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 printf "%s\n" "no" >&6; }
7114 fi
7115
7116
7117 fi
7118 if test -z "$ac_cv_prog_STRIP"; then
7119 ac_ct_STRIP=$STRIP
7120 # Extract the first word of "strip", so it can be a program name with args.
7121 set dummy strip; ac_word=$2
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 printf %s "checking for $ac_word... " >&6; }
7124 if test ${ac_cv_prog_ac_ct_STRIP+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else case e in #(
7128 e) if test -n "$ac_ct_STRIP"; then
7129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134 IFS=$as_save_IFS
7135 case $as_dir in #(((
7136 '') as_dir=./ ;;
7137 */) ;;
7138 *) as_dir=$as_dir/ ;;
7139 esac
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_ac_ct_STRIP="strip"
7143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi ;;
7151 esac
7152 fi
7153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7154 if test -n "$ac_ct_STRIP"; then
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7156 printf "%s\n" "$ac_ct_STRIP" >&6; }
7157 else
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 printf "%s\n" "no" >&6; }
7160 fi
7161
7162 if test "x$ac_ct_STRIP" = x; then
7163 STRIP=":"
7164 else
7165 case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 STRIP=$ac_ct_STRIP
7172 fi
7173 else
7174 STRIP="$ac_cv_prog_STRIP"
7175 fi
7176
7177 test -z "$STRIP" && STRIP=:
7178
7179
7180
7181
7182
7183
7184
7185 test -z "$RANLIB" && RANLIB=:
7186
7187
7188
7189
7190
7191
7192 # Determine commands to create old-style static archives.
7193 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7194 old_postinstall_cmds='chmod 644 $oldlib'
7195 old_postuninstall_cmds=
7196
7197 if test -n "$RANLIB"; then
7198 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7200 fi
7201
7202 case $host_os in
7203 darwin*)
7204 lock_old_archive_extraction=yes ;;
7205 *)
7206 lock_old_archive_extraction=no ;;
7207 esac
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247 # If no C compiler was specified, use CC.
7248 LTCC=${LTCC-"$CC"}
7249
7250 # If no C compiler flags were specified, use CFLAGS.
7251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7252
7253 # Allow CC to be a program name with arguments.
7254 compiler=$CC
7255
7256
7257 # Check for command to grab the raw symbol name followed by C symbol from nm.
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7259 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7260 if test ${lt_cv_sys_global_symbol_pipe+y}
7261 then :
7262 printf %s "(cached) " >&6
7263 else case e in #(
7264 e)
7265 # These are sane defaults that work on at least a few old systems.
7266 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7267
7268 # Character class describing NM global symbol codes.
7269 symcode='[BCDEGRST]'
7270
7271 # Regexp to match symbols that can be accessed directly from C.
7272 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7273
7274 # Define system-specific variables.
7275 case $host_os in
7276 aix*)
7277 symcode='[BCDT]'
7278 ;;
7279 cygwin* | mingw* | windows* | pw32* | cegcc*)
7280 symcode='[ABCDGISTW]'
7281 ;;
7282 hpux*)
7283 if test ia64 = "$host_cpu"; then
7284 symcode='[ABCDEGRST]'
7285 fi
7286 ;;
7287 irix* | nonstopux*)
7288 symcode='[BCDEGRST]'
7289 ;;
7290 osf*)
7291 symcode='[BCDEGQRST]'
7292 ;;
7293 solaris*)
7294 symcode='[BCDRT]'
7295 ;;
7296 sco3.2v5*)
7297 symcode='[DT]'
7298 ;;
7299 sysv4.2uw2*)
7300 symcode='[DT]'
7301 ;;
7302 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7303 symcode='[ABDT]'
7304 ;;
7305 sysv4)
7306 symcode='[DFNSTU]'
7307 ;;
7308 esac
7309
7310 # If we're using GNU nm, then use its standard symbol codes.
7311 case `$NM -V 2>&1` in
7312 *GNU* | *'with BFD'*)
7313 symcode='[ABCDGIRSTW]' ;;
7314 esac
7315
7316 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7317 # Gets list of data symbols to import.
7318 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7319 # Adjust the below global symbol transforms to fixup imported variables.
7320 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7321 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7322 lt_c_name_lib_hook="\
7323 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7324 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7325 else
7326 # Disable hooks by default.
7327 lt_cv_sys_global_symbol_to_import=
7328 lt_cdecl_hook=
7329 lt_c_name_hook=
7330 lt_c_name_lib_hook=
7331 fi
7332
7333 # Transform an extracted symbol line into a proper C declaration.
7334 # Some systems (esp. on ia64) link data and code symbols differently,
7335 # so use this general approach.
7336 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7337 $lt_cdecl_hook\
7338 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7339 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7340
7341 # Transform an extracted symbol line into symbol name and symbol address
7342 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7343 $lt_c_name_hook\
7344 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7345 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7346
7347 # Transform an extracted symbol line into symbol name with lib prefix and
7348 # symbol address.
7349 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7350 $lt_c_name_lib_hook\
7351 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7352 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7353 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7354
7355 # Handle CRLF in mingw tool chain
7356 opt_cr=
7357 case $build_os in
7358 mingw* | windows*)
7359 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7360 ;;
7361 esac
7362
7363 # Try without a prefix underscore, then with it.
7364 for ac_symprfx in "" "_"; do
7365
7366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7367 symxfrm="\\1 $ac_symprfx\\2 \\2"
7368
7369 # Write the raw and C identifiers.
7370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7371 # Fake it for dumpbin and say T for any non-static function,
7372 # D for any global variable and I for any imported variable.
7373 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7374 # which start with @ or ?.
7375 lt_cv_sys_global_symbol_pipe="$AWK '"\
7376 " {last_section=section; section=\$ 3};"\
7377 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7378 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7379 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7380 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7381 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7382 " \$ 0!~/External *\|/{next};"\
7383 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7384 " {if(hide[section]) next};"\
7385 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7386 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7387 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7388 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7389 " ' prfx=^$ac_symprfx"
7390 else
7391 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7392 fi
7393 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7394
7395 # Check to see that the pipe works correctly.
7396 pipe_works=no
7397
7398 rm -f conftest*
7399 cat > conftest.$ac_ext <<_LT_EOF
7400 #ifdef __cplusplus
7401 extern "C" {
7402 #endif
7403 char nm_test_var;
7404 void nm_test_func(void);
7405 void nm_test_func(void){}
7406 #ifdef __cplusplus
7407 }
7408 #endif
7409 int main(void){nm_test_var='a';nm_test_func();return(0);}
7410 _LT_EOF
7411
7412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7413 (eval $ac_compile) 2>&5
7414 ac_status=$?
7415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416 test $ac_status = 0; }; then
7417 # Now try to grab the symbols.
7418 nlist=conftest.nm
7419 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7420 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7421 # Try sorting and uniquifying the output.
7422 if sort "$nlist" | uniq > "$nlist"T; then
7423 mv -f "$nlist"T "$nlist"
7424 else
7425 rm -f "$nlist"T
7426 fi
7427
7428 # Make sure that we snagged all the symbols we need.
7429 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7430 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7431 cat <<_LT_EOF > conftest.$ac_ext
7432 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7433 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7434 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7435 relocations are performed -- see ld's documentation on pseudo-relocs. */
7436 # define LT_DLSYM_CONST
7437 #elif defined __osf__
7438 /* This system does not cope well with relocations in const data. */
7439 # define LT_DLSYM_CONST
7440 #else
7441 # define LT_DLSYM_CONST const
7442 #endif
7443
7444 #ifdef __cplusplus
7445 extern "C" {
7446 #endif
7447
7448 _LT_EOF
7449 # Now generate the symbol file.
7450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7451
7452 cat <<_LT_EOF >> conftest.$ac_ext
7453
7454 /* The mapping between symbol names and symbols. */
7455 LT_DLSYM_CONST struct {
7456 const char *name;
7457 void *address;
7458 }
7459 lt__PROGRAM__LTX_preloaded_symbols[] =
7460 {
7461 { "@PROGRAM@", (void *) 0 },
7462 _LT_EOF
7463 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7464 cat <<\_LT_EOF >> conftest.$ac_ext
7465 {0, (void *) 0}
7466 };
7467
7468 /* This works around a problem in FreeBSD linker */
7469 #ifdef FREEBSD_WORKAROUND
7470 static const void *lt_preloaded_setup() {
7471 return lt__PROGRAM__LTX_preloaded_symbols;
7472 }
7473 #endif
7474
7475 #ifdef __cplusplus
7476 }
7477 #endif
7478 _LT_EOF
7479 # Now try linking the two files.
7480 mv conftest.$ac_objext conftstm.$ac_objext
7481 lt_globsym_save_LIBS=$LIBS
7482 lt_globsym_save_CFLAGS=$CFLAGS
7483 LIBS=conftstm.$ac_objext
7484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7486 (eval $ac_link) 2>&5
7487 ac_status=$?
7488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7490 pipe_works=yes
7491 fi
7492 LIBS=$lt_globsym_save_LIBS
7493 CFLAGS=$lt_globsym_save_CFLAGS
7494 else
7495 echo "cannot find nm_test_func in $nlist" >&5
7496 fi
7497 else
7498 echo "cannot find nm_test_var in $nlist" >&5
7499 fi
7500 else
7501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7502 fi
7503 else
7504 echo "$progname: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 fi
7507 rm -rf conftest* conftst*
7508
7509 # Do not use the global_symbol_pipe unless it works.
7510 if test yes = "$pipe_works"; then
7511 break
7512 else
7513 lt_cv_sys_global_symbol_pipe=
7514 fi
7515 done
7516 ;;
7517 esac
7518 fi
7519
7520 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7521 lt_cv_sys_global_symbol_to_cdecl=
7522 fi
7523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7525 printf "%s\n" "failed" >&6; }
7526 else
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7528 printf "%s\n" "ok" >&6; }
7529 fi
7530
7531 # Response file support.
7532 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7533 nm_file_list_spec='@'
7534 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7535 nm_file_list_spec='@'
7536 fi
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7575 printf %s "checking for sysroot... " >&6; }
7576
7577 # Check whether --with-sysroot was given.
7578 if test ${with_sysroot+y}
7579 then :
7580 withval=$with_sysroot;
7581 else case e in #(
7582 e) with_sysroot=no ;;
7583 esac
7584 fi
7585
7586
7587 lt_sysroot=
7588 case $with_sysroot in #(
7589 yes)
7590 if test yes = "$GCC"; then
7591 # Trim trailing / since we'll always append absolute paths and we want
7592 # to avoid //, if only for less confusing output for the user.
7593 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7594 fi
7595 ;; #(
7596 /*)
7597 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7598 ;; #(
7599 no|'')
7600 ;; #(
7601 *)
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7603 printf "%s\n" "$with_sysroot" >&6; }
7604 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7605 ;;
7606 esac
7607
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7609 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7610
7611
7612
7613
7614
7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7616 printf %s "checking for a working dd... " >&6; }
7617 if test ${ac_cv_path_lt_DD+y}
7618 then :
7619 printf %s "(cached) " >&6
7620 else case e in #(
7621 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7622 cat conftest.i conftest.i >conftest2.i
7623 : ${lt_DD:=$DD}
7624 if test -z "$lt_DD"; then
7625 ac_path_lt_DD_found=false
7626 # Loop through the user's path and test for each of PROGNAME-LIST
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 case $as_dir in #(((
7632 '') as_dir=./ ;;
7633 */) ;;
7634 *) as_dir=$as_dir/ ;;
7635 esac
7636 for ac_prog in dd
7637 do
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7640 as_fn_executable_p "$ac_path_lt_DD" || continue
7641 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7642 cmp -s conftest.i conftest.out \
7643 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7644 fi
7645 $ac_path_lt_DD_found && break 3
7646 done
7647 done
7648 done
7649 IFS=$as_save_IFS
7650 if test -z "$ac_cv_path_lt_DD"; then
7651 :
7652 fi
7653 else
7654 ac_cv_path_lt_DD=$lt_DD
7655 fi
7656
7657 rm -f conftest.i conftest2.i conftest.out ;;
7658 esac
7659 fi
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7661 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7662
7663
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7665 printf %s "checking how to truncate binary pipes... " >&6; }
7666 if test ${lt_cv_truncate_bin+y}
7667 then :
7668 printf %s "(cached) " >&6
7669 else case e in #(
7670 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7671 cat conftest.i conftest.i >conftest2.i
7672 lt_cv_truncate_bin=
7673 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7674 cmp -s conftest.i conftest.out \
7675 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7676 fi
7677 rm -f conftest.i conftest2.i conftest.out
7678 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7679 esac
7680 fi
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7682 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7683
7684
7685
7686
7687
7688
7689
7690 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7691 func_cc_basename ()
7692 {
7693 for cc_temp in $*""; do
7694 case $cc_temp in
7695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7697 \-*) ;;
7698 *) break;;
7699 esac
7700 done
7701 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7702 }
7703
7704 # Check whether --enable-libtool-lock was given.
7705 if test ${enable_libtool_lock+y}
7706 then :
7707 enableval=$enable_libtool_lock;
7708 fi
7709
7710 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7711
7712 # Some flags need to be propagated to the compiler or linker for good
7713 # libtool support.
7714 case $host in
7715 ia64-*-hpux*)
7716 # Find out what ABI is being produced by ac_compile, and set mode
7717 # options accordingly.
7718 echo 'int i;' > conftest.$ac_ext
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7720 (eval $ac_compile) 2>&5
7721 ac_status=$?
7722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; then
7724 case `$FILECMD conftest.$ac_objext` in
7725 *ELF-32*)
7726 HPUX_IA64_MODE=32
7727 ;;
7728 *ELF-64*)
7729 HPUX_IA64_MODE=64
7730 ;;
7731 esac
7732 fi
7733 rm -rf conftest*
7734 ;;
7735 *-*-irix6*)
7736 # Find out what ABI is being produced by ac_compile, and set linker
7737 # options accordingly.
7738 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7740 (eval $ac_compile) 2>&5
7741 ac_status=$?
7742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7743 test $ac_status = 0; }; then
7744 if test yes = "$lt_cv_prog_gnu_ld"; then
7745 case `$FILECMD conftest.$ac_objext` in
7746 *32-bit*)
7747 LD="${LD-ld} -melf32bsmip"
7748 ;;
7749 *N32*)
7750 LD="${LD-ld} -melf32bmipn32"
7751 ;;
7752 *64-bit*)
7753 LD="${LD-ld} -melf64bmip"
7754 ;;
7755 esac
7756 else
7757 case `$FILECMD conftest.$ac_objext` in
7758 *32-bit*)
7759 LD="${LD-ld} -32"
7760 ;;
7761 *N32*)
7762 LD="${LD-ld} -n32"
7763 ;;
7764 *64-bit*)
7765 LD="${LD-ld} -64"
7766 ;;
7767 esac
7768 fi
7769 fi
7770 rm -rf conftest*
7771 ;;
7772
7773 mips64*-*linux*)
7774 # Find out what ABI is being produced by ac_compile, and set linker
7775 # options accordingly.
7776 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7778 (eval $ac_compile) 2>&5
7779 ac_status=$?
7780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781 test $ac_status = 0; }; then
7782 emul=elf
7783 case `$FILECMD conftest.$ac_objext` in
7784 *32-bit*)
7785 emul="${emul}32"
7786 ;;
7787 *64-bit*)
7788 emul="${emul}64"
7789 ;;
7790 esac
7791 case `$FILECMD conftest.$ac_objext` in
7792 *MSB*)
7793 emul="${emul}btsmip"
7794 ;;
7795 *LSB*)
7796 emul="${emul}ltsmip"
7797 ;;
7798 esac
7799 case `$FILECMD conftest.$ac_objext` in
7800 *N32*)
7801 emul="${emul}n32"
7802 ;;
7803 esac
7804 LD="${LD-ld} -m $emul"
7805 fi
7806 rm -rf conftest*
7807 ;;
7808
7809 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7810 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7811 # Find out what ABI is being produced by ac_compile, and set linker
7812 # options accordingly. Note that the listed cases only cover the
7813 # situations where additional linker options are needed (such as when
7814 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7815 # vice versa); the common cases where no linker options are needed do
7816 # not appear in the list.
7817 echo 'int i;' > conftest.$ac_ext
7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7819 (eval $ac_compile) 2>&5
7820 ac_status=$?
7821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }; then
7823 case `$FILECMD conftest.o` in
7824 *32-bit*)
7825 case $host in
7826 x86_64-*kfreebsd*-gnu)
7827 LD="${LD-ld} -m elf_i386_fbsd"
7828 ;;
7829 x86_64-*linux*|x86_64-gnu*)
7830 case `$FILECMD conftest.o` in
7831 *x86-64*)
7832 LD="${LD-ld} -m elf32_x86_64"
7833 ;;
7834 *)
7835 LD="${LD-ld} -m elf_i386"
7836 ;;
7837 esac
7838 ;;
7839 powerpc64le-*linux*)
7840 LD="${LD-ld} -m elf32lppclinux"
7841 ;;
7842 powerpc64-*linux*)
7843 LD="${LD-ld} -m elf32ppclinux"
7844 ;;
7845 s390x-*linux*)
7846 LD="${LD-ld} -m elf_s390"
7847 ;;
7848 sparc64-*linux*)
7849 LD="${LD-ld} -m elf32_sparc"
7850 ;;
7851 esac
7852 ;;
7853 *64-bit*)
7854 case $host in
7855 x86_64-*kfreebsd*-gnu)
7856 LD="${LD-ld} -m elf_x86_64_fbsd"
7857 ;;
7858 x86_64-*linux*|x86_64-gnu*)
7859 LD="${LD-ld} -m elf_x86_64"
7860 ;;
7861 powerpcle-*linux*)
7862 LD="${LD-ld} -m elf64lppc"
7863 ;;
7864 powerpc-*linux*)
7865 LD="${LD-ld} -m elf64ppc"
7866 ;;
7867 s390*-*linux*|s390*-*tpf*)
7868 LD="${LD-ld} -m elf64_s390"
7869 ;;
7870 sparc*-*linux*)
7871 LD="${LD-ld} -m elf64_sparc"
7872 ;;
7873 esac
7874 ;;
7875 esac
7876 fi
7877 rm -rf conftest*
7878 ;;
7879
7880 *-*-sco3.2v5*)
7881 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7882 SAVE_CFLAGS=$CFLAGS
7883 CFLAGS="$CFLAGS -belf"
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7885 printf %s "checking whether the C compiler needs -belf... " >&6; }
7886 if test ${lt_cv_cc_needs_belf+y}
7887 then :
7888 printf %s "(cached) " >&6
7889 else case e in #(
7890 e) ac_ext=c
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898
7899 int
7900 main (void)
7901 {
7902
7903 ;
7904 return 0;
7905 }
7906 _ACEOF
7907 if ac_fn_c_try_link "$LINENO"
7908 then :
7909 lt_cv_cc_needs_belf=yes
7910 else case e in #(
7911 e) lt_cv_cc_needs_belf=no ;;
7912 esac
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7915 conftest$ac_exeext conftest.$ac_ext
7916 ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921 ;;
7922 esac
7923 fi
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7925 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7926 if test yes != "$lt_cv_cc_needs_belf"; then
7927 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7928 CFLAGS=$SAVE_CFLAGS
7929 fi
7930 ;;
7931 *-*solaris*)
7932 # Find out what ABI is being produced by ac_compile, and set linker
7933 # options accordingly.
7934 echo 'int i;' > conftest.$ac_ext
7935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936 (eval $ac_compile) 2>&5
7937 ac_status=$?
7938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 case `$FILECMD conftest.o` in
7941 *64-bit*)
7942 case $lt_cv_prog_gnu_ld in
7943 yes*)
7944 case $host in
7945 i?86-*-solaris*|x86_64-*-solaris*)
7946 LD="${LD-ld} -m elf_x86_64"
7947 ;;
7948 sparc*-*-solaris*)
7949 LD="${LD-ld} -m elf64_sparc"
7950 ;;
7951 esac
7952 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7953 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7954 LD=${LD-ld}_sol2
7955 fi
7956 ;;
7957 *)
7958 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7959 LD="${LD-ld} -64"
7960 fi
7961 ;;
7962 esac
7963 ;;
7964 esac
7965 fi
7966 rm -rf conftest*
7967 ;;
7968 esac
7969
7970 need_locks=$enable_libtool_lock
7971
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}mt; ac_word=$2
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 printf %s "checking for $ac_word... " >&6; }
7977 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7978 then :
7979 printf %s "(cached) " >&6
7980 else case e in #(
7981 e) if test -n "$MANIFEST_TOOL"; then
7982 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987 IFS=$as_save_IFS
7988 case $as_dir in #(((
7989 '') as_dir=./ ;;
7990 */) ;;
7991 *) as_dir=$as_dir/ ;;
7992 esac
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi ;;
8004 esac
8005 fi
8006 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8007 if test -n "$MANIFEST_TOOL"; then
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8009 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8010 else
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 printf "%s\n" "no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8018 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8019 # Extract the first word of "mt", so it can be a program name with args.
8020 set dummy mt; ac_word=$2
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 printf %s "checking for $ac_word... " >&6; }
8023 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8024 then :
8025 printf %s "(cached) " >&6
8026 else case e in #(
8027 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8028 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 case $as_dir in #(((
8035 '') as_dir=./ ;;
8036 */) ;;
8037 *) as_dir=$as_dir/ ;;
8038 esac
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8041 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8043 break 2
8044 fi
8045 done
8046 done
8047 IFS=$as_save_IFS
8048
8049 fi ;;
8050 esac
8051 fi
8052 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8053 if test -n "$ac_ct_MANIFEST_TOOL"; then
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8055 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8056 else
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 printf "%s\n" "no" >&6; }
8059 fi
8060
8061 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8062 MANIFEST_TOOL=":"
8063 else
8064 case $cross_compiling:$ac_tool_warned in
8065 yes:)
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068 ac_tool_warned=yes ;;
8069 esac
8070 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8071 fi
8072 else
8073 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8074 fi
8075
8076 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8078 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8079 if test ${lt_cv_path_manifest_tool+y}
8080 then :
8081 printf %s "(cached) " >&6
8082 else case e in #(
8083 e) lt_cv_path_manifest_tool=no
8084 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8085 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8086 cat conftest.err >&5
8087 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8088 lt_cv_path_manifest_tool=yes
8089 fi
8090 rm -f conftest* ;;
8091 esac
8092 fi
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8094 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8095 if test yes != "$lt_cv_path_manifest_tool"; then
8096 MANIFEST_TOOL=:
8097 fi
8098
8099
8100
8101
8102
8103
8104 case $host_os in
8105 rhapsody* | darwin*)
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8108 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 printf %s "checking for $ac_word... " >&6; }
8111 if test ${ac_cv_prog_DSYMUTIL+y}
8112 then :
8113 printf %s "(cached) " >&6
8114 else case e in #(
8115 e) if test -n "$DSYMUTIL"; then
8116 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121 IFS=$as_save_IFS
8122 case $as_dir in #(((
8123 '') as_dir=./ ;;
8124 */) ;;
8125 *) as_dir=$as_dir/ ;;
8126 esac
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8136
8137 fi ;;
8138 esac
8139 fi
8140 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8141 if test -n "$DSYMUTIL"; then
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8143 printf "%s\n" "$DSYMUTIL" >&6; }
8144 else
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 printf "%s\n" "no" >&6; }
8147 fi
8148
8149
8150 fi
8151 if test -z "$ac_cv_prog_DSYMUTIL"; then
8152 ac_ct_DSYMUTIL=$DSYMUTIL
8153 # Extract the first word of "dsymutil", so it can be a program name with args.
8154 set dummy dsymutil; ac_word=$2
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 printf %s "checking for $ac_word... " >&6; }
8157 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8158 then :
8159 printf %s "(cached) " >&6
8160 else case e in #(
8161 e) if test -n "$ac_ct_DSYMUTIL"; then
8162 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8163 else
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8166 do
8167 IFS=$as_save_IFS
8168 case $as_dir in #(((
8169 '') as_dir=./ ;;
8170 */) ;;
8171 *) as_dir=$as_dir/ ;;
8172 esac
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8175 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179 done
8180 done
8181 IFS=$as_save_IFS
8182
8183 fi ;;
8184 esac
8185 fi
8186 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8187 if test -n "$ac_ct_DSYMUTIL"; then
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8189 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8190 else
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 printf "%s\n" "no" >&6; }
8193 fi
8194
8195 if test "x$ac_ct_DSYMUTIL" = x; then
8196 DSYMUTIL=":"
8197 else
8198 case $cross_compiling:$ac_tool_warned in
8199 yes:)
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8202 ac_tool_warned=yes ;;
8203 esac
8204 DSYMUTIL=$ac_ct_DSYMUTIL
8205 fi
8206 else
8207 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8208 fi
8209
8210 if test -n "$ac_tool_prefix"; then
8211 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 printf %s "checking for $ac_word... " >&6; }
8215 if test ${ac_cv_prog_NMEDIT+y}
8216 then :
8217 printf %s "(cached) " >&6
8218 else case e in #(
8219 e) if test -n "$NMEDIT"; then
8220 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8221 else
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225 IFS=$as_save_IFS
8226 case $as_dir in #(((
8227 '') as_dir=./ ;;
8228 */) ;;
8229 *) as_dir=$as_dir/ ;;
8230 esac
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8233 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241 fi ;;
8242 esac
8243 fi
8244 NMEDIT=$ac_cv_prog_NMEDIT
8245 if test -n "$NMEDIT"; then
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8247 printf "%s\n" "$NMEDIT" >&6; }
8248 else
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 printf "%s\n" "no" >&6; }
8251 fi
8252
8253
8254 fi
8255 if test -z "$ac_cv_prog_NMEDIT"; then
8256 ac_ct_NMEDIT=$NMEDIT
8257 # Extract the first word of "nmedit", so it can be a program name with args.
8258 set dummy nmedit; ac_word=$2
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 printf %s "checking for $ac_word... " >&6; }
8261 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8262 then :
8263 printf %s "(cached) " >&6
8264 else case e in #(
8265 e) if test -n "$ac_ct_NMEDIT"; then
8266 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271 IFS=$as_save_IFS
8272 case $as_dir in #(((
8273 '') as_dir=./ ;;
8274 */) ;;
8275 *) as_dir=$as_dir/ ;;
8276 esac
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8279 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8281 break 2
8282 fi
8283 done
8284 done
8285 IFS=$as_save_IFS
8286
8287 fi ;;
8288 esac
8289 fi
8290 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8291 if test -n "$ac_ct_NMEDIT"; then
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8293 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8294 else
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 printf "%s\n" "no" >&6; }
8297 fi
8298
8299 if test "x$ac_ct_NMEDIT" = x; then
8300 NMEDIT=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308 NMEDIT=$ac_ct_NMEDIT
8309 fi
8310 else
8311 NMEDIT="$ac_cv_prog_NMEDIT"
8312 fi
8313
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 printf %s "checking for $ac_word... " >&6; }
8319 if test ${ac_cv_prog_LIPO+y}
8320 then :
8321 printf %s "(cached) " >&6
8322 else case e in #(
8323 e) if test -n "$LIPO"; then
8324 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329 IFS=$as_save_IFS
8330 case $as_dir in #(((
8331 '') as_dir=./ ;;
8332 */) ;;
8333 *) as_dir=$as_dir/ ;;
8334 esac
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345 fi ;;
8346 esac
8347 fi
8348 LIPO=$ac_cv_prog_LIPO
8349 if test -n "$LIPO"; then
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8351 printf "%s\n" "$LIPO" >&6; }
8352 else
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 printf "%s\n" "no" >&6; }
8355 fi
8356
8357
8358 fi
8359 if test -z "$ac_cv_prog_LIPO"; then
8360 ac_ct_LIPO=$LIPO
8361 # Extract the first word of "lipo", so it can be a program name with args.
8362 set dummy lipo; ac_word=$2
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 printf %s "checking for $ac_word... " >&6; }
8365 if test ${ac_cv_prog_ac_ct_LIPO+y}
8366 then :
8367 printf %s "(cached) " >&6
8368 else case e in #(
8369 e) if test -n "$ac_ct_LIPO"; then
8370 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375 IFS=$as_save_IFS
8376 case $as_dir in #(((
8377 '') as_dir=./ ;;
8378 */) ;;
8379 *) as_dir=$as_dir/ ;;
8380 esac
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8383 ac_cv_prog_ac_ct_LIPO="lipo"
8384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8385 break 2
8386 fi
8387 done
8388 done
8389 IFS=$as_save_IFS
8390
8391 fi ;;
8392 esac
8393 fi
8394 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8395 if test -n "$ac_ct_LIPO"; then
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8397 printf "%s\n" "$ac_ct_LIPO" >&6; }
8398 else
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 printf "%s\n" "no" >&6; }
8401 fi
8402
8403 if test "x$ac_ct_LIPO" = x; then
8404 LIPO=":"
8405 else
8406 case $cross_compiling:$ac_tool_warned in
8407 yes:)
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8410 ac_tool_warned=yes ;;
8411 esac
8412 LIPO=$ac_ct_LIPO
8413 fi
8414 else
8415 LIPO="$ac_cv_prog_LIPO"
8416 fi
8417
8418 if test -n "$ac_tool_prefix"; then
8419 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8420 set dummy ${ac_tool_prefix}otool; ac_word=$2
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 printf %s "checking for $ac_word... " >&6; }
8423 if test ${ac_cv_prog_OTOOL+y}
8424 then :
8425 printf %s "(cached) " >&6
8426 else case e in #(
8427 e) if test -n "$OTOOL"; then
8428 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433 IFS=$as_save_IFS
8434 case $as_dir in #(((
8435 '') as_dir=./ ;;
8436 */) ;;
8437 *) as_dir=$as_dir/ ;;
8438 esac
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8441 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8443 break 2
8444 fi
8445 done
8446 done
8447 IFS=$as_save_IFS
8448
8449 fi ;;
8450 esac
8451 fi
8452 OTOOL=$ac_cv_prog_OTOOL
8453 if test -n "$OTOOL"; then
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8455 printf "%s\n" "$OTOOL" >&6; }
8456 else
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 printf "%s\n" "no" >&6; }
8459 fi
8460
8461
8462 fi
8463 if test -z "$ac_cv_prog_OTOOL"; then
8464 ac_ct_OTOOL=$OTOOL
8465 # Extract the first word of "otool", so it can be a program name with args.
8466 set dummy otool; ac_word=$2
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 printf %s "checking for $ac_word... " >&6; }
8469 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8470 then :
8471 printf %s "(cached) " >&6
8472 else case e in #(
8473 e) if test -n "$ac_ct_OTOOL"; then
8474 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8478 do
8479 IFS=$as_save_IFS
8480 case $as_dir in #(((
8481 '') as_dir=./ ;;
8482 */) ;;
8483 *) as_dir=$as_dir/ ;;
8484 esac
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8487 ac_cv_prog_ac_ct_OTOOL="otool"
8488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491 done
8492 done
8493 IFS=$as_save_IFS
8494
8495 fi ;;
8496 esac
8497 fi
8498 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8499 if test -n "$ac_ct_OTOOL"; then
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8501 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8502 else
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 printf "%s\n" "no" >&6; }
8505 fi
8506
8507 if test "x$ac_ct_OTOOL" = x; then
8508 OTOOL=":"
8509 else
8510 case $cross_compiling:$ac_tool_warned in
8511 yes:)
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8513 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8514 ac_tool_warned=yes ;;
8515 esac
8516 OTOOL=$ac_ct_OTOOL
8517 fi
8518 else
8519 OTOOL="$ac_cv_prog_OTOOL"
8520 fi
8521
8522 if test -n "$ac_tool_prefix"; then
8523 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8524 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 printf %s "checking for $ac_word... " >&6; }
8527 if test ${ac_cv_prog_OTOOL64+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else case e in #(
8531 e) if test -n "$OTOOL64"; then
8532 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8536 do
8537 IFS=$as_save_IFS
8538 case $as_dir in #(((
8539 '') as_dir=./ ;;
8540 */) ;;
8541 *) as_dir=$as_dir/ ;;
8542 esac
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8547 break 2
8548 fi
8549 done
8550 done
8551 IFS=$as_save_IFS
8552
8553 fi ;;
8554 esac
8555 fi
8556 OTOOL64=$ac_cv_prog_OTOOL64
8557 if test -n "$OTOOL64"; then
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8559 printf "%s\n" "$OTOOL64" >&6; }
8560 else
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 printf "%s\n" "no" >&6; }
8563 fi
8564
8565
8566 fi
8567 if test -z "$ac_cv_prog_OTOOL64"; then
8568 ac_ct_OTOOL64=$OTOOL64
8569 # Extract the first word of "otool64", so it can be a program name with args.
8570 set dummy otool64; ac_word=$2
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 printf %s "checking for $ac_word... " >&6; }
8573 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8574 then :
8575 printf %s "(cached) " >&6
8576 else case e in #(
8577 e) if test -n "$ac_ct_OTOOL64"; then
8578 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8582 do
8583 IFS=$as_save_IFS
8584 case $as_dir in #(((
8585 '') as_dir=./ ;;
8586 */) ;;
8587 *) as_dir=$as_dir/ ;;
8588 esac
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8591 ac_cv_prog_ac_ct_OTOOL64="otool64"
8592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595 done
8596 done
8597 IFS=$as_save_IFS
8598
8599 fi ;;
8600 esac
8601 fi
8602 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8603 if test -n "$ac_ct_OTOOL64"; then
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8605 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8606 else
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 printf "%s\n" "no" >&6; }
8609 fi
8610
8611 if test "x$ac_ct_OTOOL64" = x; then
8612 OTOOL64=":"
8613 else
8614 case $cross_compiling:$ac_tool_warned in
8615 yes:)
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8619 esac
8620 OTOOL64=$ac_ct_OTOOL64
8621 fi
8622 else
8623 OTOOL64="$ac_cv_prog_OTOOL64"
8624 fi
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8653 printf %s "checking for -single_module linker flag... " >&6; }
8654 if test ${lt_cv_apple_cc_single_mod+y}
8655 then :
8656 printf %s "(cached) " >&6
8657 else case e in #(
8658 e) lt_cv_apple_cc_single_mod=no
8659 if test -z "$LT_MULTI_MODULE"; then
8660 # By default we will add the -single_module flag. You can override
8661 # by either setting the environment variable LT_MULTI_MODULE
8662 # non-empty at configure time, or by adding -multi_module to the
8663 # link flags.
8664 rm -rf libconftest.dylib*
8665 echo "int foo(void){return 1;}" > conftest.c
8666 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8667 -dynamiclib -Wl,-single_module conftest.c" >&5
8668 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8669 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8670 _lt_result=$?
8671 # If there is a non-empty error log, and "single_module"
8672 # appears in it, assume the flag caused a linker warning
8673 if test -s conftest.err && $GREP single_module conftest.err; then
8674 cat conftest.err >&5
8675 # Otherwise, if the output was created with a 0 exit code from
8676 # the compiler, it worked.
8677 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8678 lt_cv_apple_cc_single_mod=yes
8679 else
8680 cat conftest.err >&5
8681 fi
8682 rm -rf libconftest.dylib*
8683 rm -f conftest.*
8684 fi ;;
8685 esac
8686 fi
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8688 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8689
8690 # Feature test to disable chained fixups since it is not
8691 # compatible with '-undefined dynamic_lookup'
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8693 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8694 if test ${lt_cv_support_no_fixup_chains+y}
8695 then :
8696 printf %s "(cached) " >&6
8697 else case e in #(
8698 e) save_LDFLAGS=$LDFLAGS
8699 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702
8703 int
8704 main (void)
8705 {
8706
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 if ac_fn_c_try_link "$LINENO"
8712 then :
8713 lt_cv_support_no_fixup_chains=yes
8714 else case e in #(
8715 e) lt_cv_support_no_fixup_chains=no
8716 ;;
8717 esac
8718 fi
8719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8720 conftest$ac_exeext conftest.$ac_ext
8721 LDFLAGS=$save_LDFLAGS
8722
8723 ;;
8724 esac
8725 fi
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8727 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8728
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8730 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8731 if test ${lt_cv_ld_exported_symbols_list+y}
8732 then :
8733 printf %s "(cached) " >&6
8734 else case e in #(
8735 e) lt_cv_ld_exported_symbols_list=no
8736 save_LDFLAGS=$LDFLAGS
8737 echo "_main" > conftest.sym
8738 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741
8742 int
8743 main (void)
8744 {
8745
8746 ;
8747 return 0;
8748 }
8749 _ACEOF
8750 if ac_fn_c_try_link "$LINENO"
8751 then :
8752 lt_cv_ld_exported_symbols_list=yes
8753 else case e in #(
8754 e) lt_cv_ld_exported_symbols_list=no ;;
8755 esac
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8758 conftest$ac_exeext conftest.$ac_ext
8759 LDFLAGS=$save_LDFLAGS
8760 ;;
8761 esac
8762 fi
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8764 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8765
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8767 printf %s "checking for -force_load linker flag... " >&6; }
8768 if test ${lt_cv_ld_force_load+y}
8769 then :
8770 printf %s "(cached) " >&6
8771 else case e in #(
8772 e) lt_cv_ld_force_load=no
8773 cat > conftest.c << _LT_EOF
8774 int forced_loaded() { return 2;}
8775 _LT_EOF
8776 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8777 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8778 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8779 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8780 echo "$RANLIB libconftest.a" >&5
8781 $RANLIB libconftest.a 2>&5
8782 cat > conftest.c << _LT_EOF
8783 int main(void) { return 0;}
8784 _LT_EOF
8785 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8786 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8787 _lt_result=$?
8788 if test -s conftest.err && $GREP force_load conftest.err; then
8789 cat conftest.err >&5
8790 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8791 lt_cv_ld_force_load=yes
8792 else
8793 cat conftest.err >&5
8794 fi
8795 rm -f conftest.err libconftest.a conftest conftest.c
8796 rm -rf conftest.dSYM
8797 ;;
8798 esac
8799 fi
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8801 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8802 case $host_os in
8803 rhapsody* | darwin1.[012])
8804 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8805 darwin1.*)
8806 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8807 darwin*)
8808 case $MACOSX_DEPLOYMENT_TARGET,$host in
8809 10.[012],*|,*powerpc*-darwin[5-8]*)
8810 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8811 *)
8812 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8813 if test yes = "$lt_cv_support_no_fixup_chains"; then
8814 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8815 fi
8816 ;;
8817 esac
8818 ;;
8819 esac
8820 if test yes = "$lt_cv_apple_cc_single_mod"; then
8821 _lt_dar_single_mod='$single_module'
8822 fi
8823 _lt_dar_needs_single_mod=no
8824 case $host_os in
8825 rhapsody* | darwin1.*)
8826 _lt_dar_needs_single_mod=yes ;;
8827 darwin*)
8828 # When targeting Mac OS X 10.4 (darwin 8) or later,
8829 # -single_module is the default and -multi_module is unsupported.
8830 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8831 # target any OS version that needs -single_module.
8832 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8833 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8834 _lt_dar_needs_single_mod=yes ;;
8835 esac
8836 ;;
8837 esac
8838 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8839 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8840 else
8841 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8842 fi
8843 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8844 _lt_dsymutil='~$DSYMUTIL $lib || :'
8845 else
8846 _lt_dsymutil=
8847 fi
8848 ;;
8849 esac
8850
8851 # func_munge_path_list VARIABLE PATH
8852 # -----------------------------------
8853 # VARIABLE is name of variable containing _space_ separated list of
8854 # directories to be munged by the contents of PATH, which is string
8855 # having a format:
8856 # "DIR[:DIR]:"
8857 # string "DIR[ DIR]" will be prepended to VARIABLE
8858 # ":DIR[:DIR]"
8859 # string "DIR[ DIR]" will be appended to VARIABLE
8860 # "DIRP[:DIRP]::[DIRA:]DIRA"
8861 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8862 # "DIRA[ DIRA]" will be appended to VARIABLE
8863 # "DIR[:DIR]"
8864 # VARIABLE will be replaced by "DIR[ DIR]"
8865 func_munge_path_list ()
8866 {
8867 case x$2 in
8868 x)
8869 ;;
8870 *:)
8871 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8872 ;;
8873 x:*)
8874 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8875 ;;
8876 *::*)
8877 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8878 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8879 ;;
8880 *)
8881 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8882 ;;
8883 esac
8884 }
8885
8886 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8887 "
8888 if test "x$ac_cv_header_dlfcn_h" = xyes
8889 then :
8890 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8891
8892 fi
8893
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8895 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8896 if test ${ac_cv_c_undeclared_builtin_options+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else case e in #(
8900 e) ac_save_CFLAGS=$CFLAGS
8901 ac_cv_c_undeclared_builtin_options='cannot detect'
8902 for ac_arg in '' -fno-builtin; do
8903 CFLAGS="$ac_save_CFLAGS $ac_arg"
8904 # This test program should *not* compile successfully.
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907
8908 int
8909 main (void)
8910 {
8911 (void) strchr;
8912 ;
8913 return 0;
8914 }
8915 _ACEOF
8916 if ac_fn_c_try_compile "$LINENO"
8917 then :
8918
8919 else case e in #(
8920 e) # This test program should compile successfully.
8921 # No library function is consistently available on
8922 # freestanding implementations, so test against a dummy
8923 # declaration. Include always-available headers on the
8924 # off chance that they somehow elicit warnings.
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <float.h>
8928 #include <limits.h>
8929 #include <stdarg.h>
8930 #include <stddef.h>
8931 extern void ac_decl (int, char *);
8932
8933 int
8934 main (void)
8935 {
8936 (void) ac_decl (0, (char *) 0);
8937 (void) ac_decl;
8938
8939 ;
8940 return 0;
8941 }
8942 _ACEOF
8943 if ac_fn_c_try_compile "$LINENO"
8944 then :
8945 if test x"$ac_arg" = x
8946 then :
8947 ac_cv_c_undeclared_builtin_options='none needed'
8948 else case e in #(
8949 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8950 esac
8951 fi
8952 break
8953 fi
8954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8955 esac
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8958 done
8959 CFLAGS=$ac_save_CFLAGS
8960 ;;
8961 esac
8962 fi
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8964 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8965 case $ac_cv_c_undeclared_builtin_options in #(
8966 'cannot detect') :
8967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8968 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8969 as_fn_error $? "cannot make $CC report undeclared builtins
8970 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8971 'none needed') :
8972 ac_c_undeclared_builtin_options='' ;; #(
8973 *) :
8974 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8975 esac
8976
8977 echo 'tldbg:KPSE_COMMON called (pkg=detex, amopt=)' >&5
8978 echo 'tldbg:KPSE_BASIC called (pkg=detex, amopt=)' >&5
8979
8980 #
8981 # am_init_automake
8982 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8983 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8984 # is not polluted with repeated "-I."
8985 am__isrc=' -I$(srcdir)'
8986 # test to see if srcdir already configured
8987 if test -f $srcdir/config.status; then
8988 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8989 fi
8990 fi
8991
8992 # test whether we have cygpath
8993 if test -z "$CYGPATH_W"; then
8994 if (cygpath --version) >/dev/null 2>/dev/null; then
8995 CYGPATH_W='cygpath -w'
8996 else
8997 CYGPATH_W=echo
8998 fi
8999 fi
9000
9001
9002 # Define the identity of the package.
9003 PACKAGE='detex--tex-live-'
9004 VERSION='2.8.11'
9005
9006
9007 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9008
9009
9010 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9011
9012 # Some tools Automake needs.
9013
9014 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9015
9016
9017 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9018
9019
9020 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9021
9022
9023 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9024
9025
9026 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9027
9028 # For better backward compatibility. To be removed once Automake 1.9.x
9029 # dies out for good. For more background, see:
9030 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9031 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9032 mkdir_p='$(MKDIR_P)'
9033
9034 # We need awk for the "check" target (and possibly the TAP driver). The
9035 # system "awk" is bad on some platforms.
9036 # Always define AMTAR for backward compatibility. Yes, it's still used
9037 # in the wild :-( We should find a proper way to deprecate it ...
9038 AMTAR='$${TAR-tar}'
9039
9040
9041 # We'll loop over all known methods to create a tar archive until one works.
9042 _am_tools='gnutar plaintar pax cpio none'
9043
9044 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9045 # There is notably a 21 bits limit for the UID and the GID. In fact,
9046 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9047 # and bug#13588).
9048 am_max_uid=2097151 # 2^21 - 1
9049 am_max_gid=$am_max_uid
9050 # The $UID and $GID variables are not portable, so we need to resort
9051 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9052 # below are definitely unexpected, so allow the users to see them
9053 # (that is, avoid stderr redirection).
9054 am_uid=`id -u || echo unknown`
9055 am_gid=`id -g || echo unknown`
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9057 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9058 if test x$am_uid = xunknown; then
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9060 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9061 elif test $am_uid -le $am_max_uid; then
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9063 printf "%s\n" "yes" >&6; }
9064 else
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 printf "%s\n" "no" >&6; }
9067 _am_tools=none
9068 fi
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9070 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9071 if test x$gm_gid = xunknown; then
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9073 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9074 elif test $am_gid -le $am_max_gid; then
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9076 printf "%s\n" "yes" >&6; }
9077 else
9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 printf "%s\n" "no" >&6; }
9080 _am_tools=none
9081 fi
9082
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9084 printf %s "checking how to create a ustar tar archive... " >&6; }
9085
9086 # Go ahead even if we have the value already cached. We do so because we
9087 # need to set the values for the 'am__tar' and 'am__untar' variables.
9088 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9089
9090 for _am_tool in $_am_tools; do
9091 case $_am_tool in
9092 gnutar)
9093 for _am_tar in tar gnutar gtar; do
9094 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9095 ($_am_tar --version) >&5 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } && break
9099 done
9100 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9101 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9102 am__untar="$_am_tar -xf -"
9103 ;;
9104 plaintar)
9105 # Must skip GNU tar: if it does not support --format= it doesn't create
9106 # ustar tarball either.
9107 (tar --version) >/dev/null 2>&1 && continue
9108 am__tar='tar chf - "$$tardir"'
9109 am__tar_='tar chf - "$tardir"'
9110 am__untar='tar xf -'
9111 ;;
9112 pax)
9113 am__tar='pax -L -x ustar -w "$$tardir"'
9114 am__tar_='pax -L -x ustar -w "$tardir"'
9115 am__untar='pax -r'
9116 ;;
9117 cpio)
9118 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9119 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9120 am__untar='cpio -i -H ustar -d'
9121 ;;
9122 none)
9123 am__tar=false
9124 am__tar_=false
9125 am__untar=false
9126 ;;
9127 esac
9128
9129 # If the value was cached, stop now. We just wanted to have am__tar
9130 # and am__untar set.
9131 test -n "${am_cv_prog_tar_ustar}" && break
9132
9133 # tar/untar a dummy directory, and stop if the command works.
9134 rm -rf conftest.dir
9135 mkdir conftest.dir
9136 echo GrepMe > conftest.dir/file
9137 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9138 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }
9142 rm -rf conftest.dir
9143 if test -s conftest.tar; then
9144 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9145 ($am__untar <conftest.tar) >&5 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }
9149 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9150 (cat conftest.dir/file) >&5 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }
9154 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9155 fi
9156 done
9157 rm -rf conftest.dir
9158
9159 if test ${am_cv_prog_tar_ustar+y}
9160 then :
9161 printf %s "(cached) " >&6
9162 else case e in #(
9163 e) am_cv_prog_tar_ustar=$_am_tool ;;
9164 esac
9165 fi
9166
9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9168 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9169
9170
9171
9172
9173
9174 # Variables for tags utilities; see am/tags.am
9175 if test -z "$CTAGS"; then
9176 CTAGS=ctags
9177 fi
9178
9179 if test -z "$ETAGS"; then
9180 ETAGS=etags
9181 fi
9182
9183 if test -z "$CSCOPE"; then
9184 CSCOPE=cscope
9185 fi
9186
9187
9188
9189
9190
9191
9192
9193
9194 # am_maintainer_mode
9195
9196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9197 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9198 # Check whether --enable-maintainer-mode was given.
9199 if test ${enable_maintainer_mode+y}
9200 then :
9201 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9202 else case e in #(
9203 e) USE_MAINTAINER_MODE=no ;;
9204 esac
9205 fi
9206
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9208 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9209 if test $USE_MAINTAINER_MODE = yes; then
9210 MAINTAINER_MODE_TRUE=
9211 MAINTAINER_MODE_FALSE='#'
9212 else
9213 MAINTAINER_MODE_TRUE='#'
9214 MAINTAINER_MODE_FALSE=
9215 fi
9216
9217 MAINT=$MAINTAINER_MODE_TRUE
9218
9219
9220
9221 # See comments in kpse-setup.m4 about system extensions.
9222
9223
9224 # Check whether prototypes work.
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9226 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9227 if test ${kb_cv_c_prototypes+y}
9228 then :
9229 printf %s "(cached) " >&6
9230 else case e in #(
9231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <stdarg.h>
9234 int
9235 main (void)
9236 {
9237 extern void foo(int i,...);
9238 ;
9239 return 0;
9240 }
9241 _ACEOF
9242 if ac_fn_c_try_link "$LINENO"
9243 then :
9244 kb_cv_c_prototypes=yes
9245 else case e in #(
9246 e) kb_cv_c_prototypes=no ;;
9247 esac
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9250 conftest$ac_exeext conftest.$ac_ext ;;
9251 esac
9252 fi
9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9254 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9255 if test "x$kb_cv_c_prototypes" = xno; then
9256 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9257 fi
9258
9259 # kpse_compiler_warnings options.
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9261 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9262 if test ${kpse_cv_warning_cflags+y}
9263 then :
9264 printf %s "(cached) " >&6
9265 else case e in #(
9266 e) if test "x$GCC" = xyes; then
9267 kpse_cv_warning_cflags=
9268 if test "x$enable_compiler_warnings" != xno; then
9269 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9270 case `$CC -dumpversion` in #(
9271 3.4.* | 4.* | 5.*) :
9272 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9273 *) :
9274 ;;
9275 esac
9276 case `$CC -dumpversion` in #(
9277 3.[234].* | 4.* | 5.*) :
9278 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9279 *) :
9280 ;;
9281 esac
9282 if test "x$enable_compiler_warnings" != xmin; then
9283 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9284 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9285 if test "x$enable_compiler_warnings" != xyes; then
9286 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9287 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9288 case `$CC -dumpversion` in #(
9289 3.4.* | 4.* | 5.*) :
9290 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9291 *) :
9292 ;;
9293 esac
9294 if test "x$enable_compiler_warnings" != xmax; then
9295 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9296 fi
9297 fi
9298 fi
9299 fi
9300 elif test "x$enable_compiler_warnings" = xno; then
9301 kpse_cv_warning_cflags=
9302 else
9303 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9304 fi ;;
9305 esac
9306 fi
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9308 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9309 WARNING_CFLAGS=$kpse_cv_warning_cflags
9310
9311
9312
9313
9314
9315
9316
9317 # end of kpse_basic macro.
9318 echo 'tldbg:KPSE_BASIC done (pkg=detex, amopt=)' >&5
9319
9320 # am_prog_ar must be called before lt_init.
9321
9322 if test -n "$ac_tool_prefix"; then
9323 for ac_prog in ar lib "link -lib"
9324 do
9325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328 printf %s "checking for $ac_word... " >&6; }
9329 if test ${ac_cv_prog_AR+y}
9330 then :
9331 printf %s "(cached) " >&6
9332 else case e in #(
9333 e) if test -n "$AR"; then
9334 ac_cv_prog_AR="$AR" # Let the user override the test.
9335 else
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9338 do
9339 IFS=$as_save_IFS
9340 case $as_dir in #(((
9341 '') as_dir=./ ;;
9342 */) ;;
9343 *) as_dir=$as_dir/ ;;
9344 esac
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9347 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9349 break 2
9350 fi
9351 done
9352 done
9353 IFS=$as_save_IFS
9354
9355 fi ;;
9356 esac
9357 fi
9358 AR=$ac_cv_prog_AR
9359 if test -n "$AR"; then
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9361 printf "%s\n" "$AR" >&6; }
9362 else
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 printf "%s\n" "no" >&6; }
9365 fi
9366
9367
9368 test -n "$AR" && break
9369 done
9370 fi
9371 if test -z "$AR"; then
9372 ac_ct_AR=$AR
9373 for ac_prog in ar lib "link -lib"
9374 do
9375 # Extract the first word of "$ac_prog", so it can be a program name with args.
9376 set dummy $ac_prog; ac_word=$2
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 printf %s "checking for $ac_word... " >&6; }
9379 if test ${ac_cv_prog_ac_ct_AR+y}
9380 then :
9381 printf %s "(cached) " >&6
9382 else case e in #(
9383 e) if test -n "$ac_ct_AR"; then
9384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9385 else
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 for as_dir in $PATH
9388 do
9389 IFS=$as_save_IFS
9390 case $as_dir in #(((
9391 '') as_dir=./ ;;
9392 */) ;;
9393 *) as_dir=$as_dir/ ;;
9394 esac
9395 for ac_exec_ext in '' $ac_executable_extensions; do
9396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9397 ac_cv_prog_ac_ct_AR="$ac_prog"
9398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9399 break 2
9400 fi
9401 done
9402 done
9403 IFS=$as_save_IFS
9404
9405 fi ;;
9406 esac
9407 fi
9408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9409 if test -n "$ac_ct_AR"; then
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9411 printf "%s\n" "$ac_ct_AR" >&6; }
9412 else
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 printf "%s\n" "no" >&6; }
9415 fi
9416
9417
9418 test -n "$ac_ct_AR" && break
9419 done
9420
9421 if test "x$ac_ct_AR" = x; then
9422 AR="false"
9423 else
9424 case $cross_compiling:$ac_tool_warned in
9425 yes:)
9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9428 ac_tool_warned=yes ;;
9429 esac
9430 AR=$ac_ct_AR
9431 fi
9432 fi
9433
9434 : ${AR=ar}
9435 : ${ARFLAGS=cr}
9436
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9438 printf %s "checking the archiver ($AR) interface... " >&6; }
9439 if test ${am_cv_ar_interface+y}
9440 then :
9441 printf %s "(cached) " >&6
9442 else case e in #(
9443 e) ac_ext=c
9444 ac_cpp='$CPP $CPPFLAGS'
9445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9448
9449 am_cv_ar_interface=ar
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 int some_variable = 0;
9453 _ACEOF
9454 if ac_fn_c_try_compile "$LINENO"
9455 then :
9456 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9458 (eval $am_ar_try) 2>&5
9459 ac_status=$?
9460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9461 test $ac_status = 0; }
9462 if test "$ac_status" -eq 0; then
9463 am_cv_ar_interface=ar
9464 else
9465 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9467 (eval $am_ar_try) 2>&5
9468 ac_status=$?
9469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9470 test $ac_status = 0; }
9471 if test "$ac_status" -eq 0; then
9472 am_cv_ar_interface=lib
9473 else
9474 am_cv_ar_interface=unknown
9475 fi
9476 fi
9477 rm -f conftest.lib libconftest.a
9478
9479 fi
9480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9481 ac_ext=c
9482 ac_cpp='$CPP $CPPFLAGS'
9483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9486 ;;
9487 esac
9488 fi
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9490 printf "%s\n" "$am_cv_ar_interface" >&6; }
9491
9492 case $am_cv_ar_interface in
9493 ar)
9494 ;;
9495 lib)
9496 # Microsoft lib, so override with the ar-lib wrapper script.
9497 # FIXME: It is wrong to rewrite AR.
9498 # But if we don't then we get into trouble of one sort or another.
9499 # A longer-term fix would be to have automake use am__AR in this case,
9500 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9501 # similar.
9502 AR="$am_aux_dir/ar-lib $AR"
9503 ;;
9504 unknown)
9505 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9506 ;;
9507 esac
9508
9509 # (end am_prog_ar)
9510 # starting lt_prereq + lt_init.
9511
9512
9513
9514
9515
9516 # Set options
9517 enable_win32_dll=yes
9518
9519 case $host in
9520 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9521 if test -n "$ac_tool_prefix"; then
9522 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9523 set dummy ${ac_tool_prefix}as; ac_word=$2
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 printf %s "checking for $ac_word... " >&6; }
9526 if test ${ac_cv_prog_AS+y}
9527 then :
9528 printf %s "(cached) " >&6
9529 else case e in #(
9530 e) if test -n "$AS"; then
9531 ac_cv_prog_AS="$AS" # Let the user override the test.
9532 else
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH
9535 do
9536 IFS=$as_save_IFS
9537 case $as_dir in #(((
9538 '') as_dir=./ ;;
9539 */) ;;
9540 *) as_dir=$as_dir/ ;;
9541 esac
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9544 ac_cv_prog_AS="${ac_tool_prefix}as"
9545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9546 break 2
9547 fi
9548 done
9549 done
9550 IFS=$as_save_IFS
9551
9552 fi ;;
9553 esac
9554 fi
9555 AS=$ac_cv_prog_AS
9556 if test -n "$AS"; then
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9558 printf "%s\n" "$AS" >&6; }
9559 else
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 printf "%s\n" "no" >&6; }
9562 fi
9563
9564
9565 fi
9566 if test -z "$ac_cv_prog_AS"; then
9567 ac_ct_AS=$AS
9568 # Extract the first word of "as", so it can be a program name with args.
9569 set dummy as; ac_word=$2
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 printf %s "checking for $ac_word... " >&6; }
9572 if test ${ac_cv_prog_ac_ct_AS+y}
9573 then :
9574 printf %s "(cached) " >&6
9575 else case e in #(
9576 e) if test -n "$ac_ct_AS"; then
9577 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9578 else
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 for as_dir in $PATH
9581 do
9582 IFS=$as_save_IFS
9583 case $as_dir in #(((
9584 '') as_dir=./ ;;
9585 */) ;;
9586 *) as_dir=$as_dir/ ;;
9587 esac
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9590 ac_cv_prog_ac_ct_AS="as"
9591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9592 break 2
9593 fi
9594 done
9595 done
9596 IFS=$as_save_IFS
9597
9598 fi ;;
9599 esac
9600 fi
9601 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9602 if test -n "$ac_ct_AS"; then
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9604 printf "%s\n" "$ac_ct_AS" >&6; }
9605 else
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 printf "%s\n" "no" >&6; }
9608 fi
9609
9610 if test "x$ac_ct_AS" = x; then
9611 AS="false"
9612 else
9613 case $cross_compiling:$ac_tool_warned in
9614 yes:)
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9616 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9617 ac_tool_warned=yes ;;
9618 esac
9619 AS=$ac_ct_AS
9620 fi
9621 else
9622 AS="$ac_cv_prog_AS"
9623 fi
9624
9625 if test -n "$ac_tool_prefix"; then
9626 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9627 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 printf %s "checking for $ac_word... " >&6; }
9630 if test ${ac_cv_prog_DLLTOOL+y}
9631 then :
9632 printf %s "(cached) " >&6
9633 else case e in #(
9634 e) if test -n "$DLLTOOL"; then
9635 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9636 else
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 for as_dir in $PATH
9639 do
9640 IFS=$as_save_IFS
9641 case $as_dir in #(((
9642 '') as_dir=./ ;;
9643 */) ;;
9644 *) as_dir=$as_dir/ ;;
9645 esac
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9648 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9650 break 2
9651 fi
9652 done
9653 done
9654 IFS=$as_save_IFS
9655
9656 fi ;;
9657 esac
9658 fi
9659 DLLTOOL=$ac_cv_prog_DLLTOOL
9660 if test -n "$DLLTOOL"; then
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9662 printf "%s\n" "$DLLTOOL" >&6; }
9663 else
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 printf "%s\n" "no" >&6; }
9666 fi
9667
9668
9669 fi
9670 if test -z "$ac_cv_prog_DLLTOOL"; then
9671 ac_ct_DLLTOOL=$DLLTOOL
9672 # Extract the first word of "dlltool", so it can be a program name with args.
9673 set dummy dlltool; ac_word=$2
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9675 printf %s "checking for $ac_word... " >&6; }
9676 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9677 then :
9678 printf %s "(cached) " >&6
9679 else case e in #(
9680 e) if test -n "$ac_ct_DLLTOOL"; then
9681 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9682 else
9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 for as_dir in $PATH
9685 do
9686 IFS=$as_save_IFS
9687 case $as_dir in #(((
9688 '') as_dir=./ ;;
9689 */) ;;
9690 *) as_dir=$as_dir/ ;;
9691 esac
9692 for ac_exec_ext in '' $ac_executable_extensions; do
9693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9694 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9696 break 2
9697 fi
9698 done
9699 done
9700 IFS=$as_save_IFS
9701
9702 fi ;;
9703 esac
9704 fi
9705 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9706 if test -n "$ac_ct_DLLTOOL"; then
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9708 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9709 else
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 printf "%s\n" "no" >&6; }
9712 fi
9713
9714 if test "x$ac_ct_DLLTOOL" = x; then
9715 DLLTOOL="false"
9716 else
9717 case $cross_compiling:$ac_tool_warned in
9718 yes:)
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9720 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9721 ac_tool_warned=yes ;;
9722 esac
9723 DLLTOOL=$ac_ct_DLLTOOL
9724 fi
9725 else
9726 DLLTOOL="$ac_cv_prog_DLLTOOL"
9727 fi
9728
9729 if test -n "$ac_tool_prefix"; then
9730 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9731 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 printf %s "checking for $ac_word... " >&6; }
9734 if test ${ac_cv_prog_OBJDUMP+y}
9735 then :
9736 printf %s "(cached) " >&6
9737 else case e in #(
9738 e) if test -n "$OBJDUMP"; then
9739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9740 else
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9743 do
9744 IFS=$as_save_IFS
9745 case $as_dir in #(((
9746 '') as_dir=./ ;;
9747 */) ;;
9748 *) as_dir=$as_dir/ ;;
9749 esac
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756 done
9757 done
9758 IFS=$as_save_IFS
9759
9760 fi ;;
9761 esac
9762 fi
9763 OBJDUMP=$ac_cv_prog_OBJDUMP
9764 if test -n "$OBJDUMP"; then
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9766 printf "%s\n" "$OBJDUMP" >&6; }
9767 else
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 printf "%s\n" "no" >&6; }
9770 fi
9771
9772
9773 fi
9774 if test -z "$ac_cv_prog_OBJDUMP"; then
9775 ac_ct_OBJDUMP=$OBJDUMP
9776 # Extract the first word of "objdump", so it can be a program name with args.
9777 set dummy objdump; ac_word=$2
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779 printf %s "checking for $ac_word... " >&6; }
9780 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9781 then :
9782 printf %s "(cached) " >&6
9783 else case e in #(
9784 e) if test -n "$ac_ct_OBJDUMP"; then
9785 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9786 else
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in $PATH
9789 do
9790 IFS=$as_save_IFS
9791 case $as_dir in #(((
9792 '') as_dir=./ ;;
9793 */) ;;
9794 *) as_dir=$as_dir/ ;;
9795 esac
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9798 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9800 break 2
9801 fi
9802 done
9803 done
9804 IFS=$as_save_IFS
9805
9806 fi ;;
9807 esac
9808 fi
9809 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9810 if test -n "$ac_ct_OBJDUMP"; then
9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9812 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9813 else
9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 printf "%s\n" "no" >&6; }
9816 fi
9817
9818 if test "x$ac_ct_OBJDUMP" = x; then
9819 OBJDUMP="false"
9820 else
9821 case $cross_compiling:$ac_tool_warned in
9822 yes:)
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9824 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9825 ac_tool_warned=yes ;;
9826 esac
9827 OBJDUMP=$ac_ct_OBJDUMP
9828 fi
9829 else
9830 OBJDUMP="$ac_cv_prog_OBJDUMP"
9831 fi
9832
9833 ;;
9834 esac
9835
9836 test -z "$AS" && AS=as
9837
9838
9839
9840
9841
9842 test -z "$DLLTOOL" && DLLTOOL=dlltool
9843
9844
9845
9846
9847
9848 test -z "$OBJDUMP" && OBJDUMP=objdump
9849
9850
9851
9852
9853
9854
9855
9856 enable_dlopen=no
9857
9858
9859
9860 # Check whether --enable-shared was given.
9861 if test ${enable_shared+y}
9862 then :
9863 enableval=$enable_shared; p=${PACKAGE-default}
9864 case $enableval in
9865 yes) enable_shared=yes ;;
9866 no) enable_shared=no ;;
9867 *)
9868 enable_shared=no
9869 # Look at the argument we got. We use all the common list separators.
9870 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9871 for pkg in $enableval; do
9872 IFS=$lt_save_ifs
9873 if test "X$pkg" = "X$p"; then
9874 enable_shared=yes
9875 fi
9876 done
9877 IFS=$lt_save_ifs
9878 ;;
9879 esac
9880 else case e in #(
9881 e) enable_shared=yes ;;
9882 esac
9883 fi
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893 # Check whether --enable-static was given.
9894 if test ${enable_static+y}
9895 then :
9896 enableval=$enable_static; p=${PACKAGE-default}
9897 case $enableval in
9898 yes) enable_static=yes ;;
9899 no) enable_static=no ;;
9900 *)
9901 enable_static=no
9902 # Look at the argument we got. We use all the common list separators.
9903 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9904 for pkg in $enableval; do
9905 IFS=$lt_save_ifs
9906 if test "X$pkg" = "X$p"; then
9907 enable_static=yes
9908 fi
9909 done
9910 IFS=$lt_save_ifs
9911 ;;
9912 esac
9913 else case e in #(
9914 e) enable_static=yes ;;
9915 esac
9916 fi
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926 # Check whether --enable-pic was given.
9927 if test ${enable_pic+y}
9928 then :
9929 enableval=$enable_pic; lt_p=${PACKAGE-default}
9930 case $enableval in
9931 yes|no) pic_mode=$enableval ;;
9932 *)
9933 pic_mode=default
9934 # Look at the argument we got. We use all the common list separators.
9935 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9936 for lt_pkg in $enableval; do
9937 IFS=$lt_save_ifs
9938 if test "X$lt_pkg" = "X$lt_p"; then
9939 pic_mode=yes
9940 fi
9941 done
9942 IFS=$lt_save_ifs
9943 ;;
9944 esac
9945 else case e in #(
9946 e) # Check whether --with-pic was given.
9947 if test ${with_pic+y}
9948 then :
9949 withval=$with_pic; lt_p=${PACKAGE-default}
9950 case $withval in
9951 yes|no) pic_mode=$withval ;;
9952 *)
9953 pic_mode=default
9954 # Look at the argument we got. We use all the common list separators.
9955 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9956 for lt_pkg in $withval; do
9957 IFS=$lt_save_ifs
9958 if test "X$lt_pkg" = "X$lt_p"; then
9959 pic_mode=yes
9960 fi
9961 done
9962 IFS=$lt_save_ifs
9963 ;;
9964 esac
9965 else case e in #(
9966 e) pic_mode=default ;;
9967 esac
9968 fi
9969
9970 ;;
9971 esac
9972 fi
9973
9974
9975
9976
9977
9978
9979
9980
9981 # Check whether --enable-fast-install was given.
9982 if test ${enable_fast_install+y}
9983 then :
9984 enableval=$enable_fast_install; p=${PACKAGE-default}
9985 case $enableval in
9986 yes) enable_fast_install=yes ;;
9987 no) enable_fast_install=no ;;
9988 *)
9989 enable_fast_install=no
9990 # Look at the argument we got. We use all the common list separators.
9991 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9992 for pkg in $enableval; do
9993 IFS=$lt_save_ifs
9994 if test "X$pkg" = "X$p"; then
9995 enable_fast_install=yes
9996 fi
9997 done
9998 IFS=$lt_save_ifs
9999 ;;
10000 esac
10001 else case e in #(
10002 e) enable_fast_install=yes ;;
10003 esac
10004 fi
10005
10006
10007
10008
10009
10010
10011
10012
10013 shared_archive_member_spec=
10014 case $host,$enable_shared in
10015 power*-*-aix[5-9]*,yes)
10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10017 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10018 # Check whether --enable-aix-soname was given.
10019 if test ${enable_aix_soname+y}
10020 then :
10021 enableval=$enable_aix_soname; case $enableval in
10022 aix|svr4|both)
10023 ;;
10024 *)
10025 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10026 ;;
10027 esac
10028 lt_cv_with_aix_soname=$enable_aix_soname
10029 else case e in #(
10030 e) # Check whether --with-aix-soname was given.
10031 if test ${with_aix_soname+y}
10032 then :
10033 withval=$with_aix_soname; case $withval in
10034 aix|svr4|both)
10035 ;;
10036 *)
10037 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10038 ;;
10039 esac
10040 lt_cv_with_aix_soname=$with_aix_soname
10041 else case e in #(
10042 e) if test ${lt_cv_with_aix_soname+y}
10043 then :
10044 printf %s "(cached) " >&6
10045 else case e in #(
10046 e) lt_cv_with_aix_soname=aix ;;
10047 esac
10048 fi
10049 ;;
10050 esac
10051 fi
10052
10053 enable_aix_soname=$lt_cv_with_aix_soname ;;
10054 esac
10055 fi
10056
10057 with_aix_soname=$enable_aix_soname
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10059 printf "%s\n" "$with_aix_soname" >&6; }
10060 if test aix != "$with_aix_soname"; then
10061 # For the AIX way of multilib, we name the shared archive member
10062 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10063 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10064 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10065 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10066 if test 64 = "${OBJECT_MODE-32}"; then
10067 shared_archive_member_spec=shr_64
10068 else
10069 shared_archive_member_spec=shr
10070 fi
10071 fi
10072 ;;
10073 *)
10074 with_aix_soname=aix
10075 ;;
10076 esac
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087 # This can be used to rebuild libtool when needed
10088 LIBTOOL_DEPS=$ltmain
10089
10090 # Always use our own libtool.
10091 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122 test -z "$LN_S" && LN_S="ln -s"
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137 if test -n "${ZSH_VERSION+set}"; then
10138 setopt NO_GLOB_SUBST
10139 fi
10140
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10142 printf %s "checking for objdir... " >&6; }
10143 if test ${lt_cv_objdir+y}
10144 then :
10145 printf %s "(cached) " >&6
10146 else case e in #(
10147 e) rm -f .libs 2>/dev/null
10148 mkdir .libs 2>/dev/null
10149 if test -d .libs; then
10150 lt_cv_objdir=.libs
10151 else
10152 # MS-DOS does not allow filenames that begin with a dot.
10153 lt_cv_objdir=_libs
10154 fi
10155 rmdir .libs 2>/dev/null ;;
10156 esac
10157 fi
10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10159 printf "%s\n" "$lt_cv_objdir" >&6; }
10160 objdir=$lt_cv_objdir
10161
10162
10163
10164
10165
10166 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10167
10168
10169
10170
10171 case $host_os in
10172 aix3*)
10173 # AIX sometimes has problems with the GCC collect2 program. For some
10174 # reason, if we set the COLLECT_NAMES environment variable, the problems
10175 # vanish in a puff of smoke.
10176 if test set != "${COLLECT_NAMES+set}"; then
10177 COLLECT_NAMES=
10178 export COLLECT_NAMES
10179 fi
10180 ;;
10181 esac
10182
10183 # Global variables:
10184 ofile=libtool
10185 can_build_shared=yes
10186
10187 # All known linkers require a '.a' archive for static linking (except MSVC and
10188 # ICC, which need '.lib').
10189 libext=a
10190
10191 with_gnu_ld=$lt_cv_prog_gnu_ld
10192
10193 old_CC=$CC
10194 old_CFLAGS=$CFLAGS
10195
10196 # Set sane defaults for various variables
10197 test -z "$CC" && CC=cc
10198 test -z "$LTCC" && LTCC=$CC
10199 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10200 test -z "$LD" && LD=ld
10201 test -z "$ac_objext" && ac_objext=o
10202
10203 func_cc_basename $compiler
10204 cc_basename=$func_cc_basename_result
10205
10206
10207 # Only perform the check for file, if the check method requires it
10208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10209 case $deplibs_check_method in
10210 file_magic*)
10211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10213 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10214 if test ${lt_cv_path_MAGIC_CMD+y}
10215 then :
10216 printf %s "(cached) " >&6
10217 else case e in #(
10218 e) case $MAGIC_CMD in
10219 [\\/*] | ?:[\\/]*)
10220 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10221 ;;
10222 *)
10223 lt_save_MAGIC_CMD=$MAGIC_CMD
10224 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10226 for ac_dir in $ac_dummy; do
10227 IFS=$lt_save_ifs
10228 test -z "$ac_dir" && ac_dir=.
10229 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10230 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10231 if test -n "$file_magic_test_file"; then
10232 case $deplibs_check_method in
10233 "file_magic "*)
10234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10235 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10237 $EGREP "$file_magic_regex" > /dev/null; then
10238 :
10239 else
10240 cat <<_LT_EOF 1>&2
10241
10242 *** Warning: the command libtool uses to detect shared libraries,
10243 *** $file_magic_cmd, produces output that libtool cannot recognize.
10244 *** The result is that libtool may fail to recognize shared libraries
10245 *** as such. This will affect the creation of libtool libraries that
10246 *** depend on shared libraries, but programs linked with such libtool
10247 *** libraries will work regardless of this problem. Nevertheless, you
10248 *** may want to report the problem to your system manager and/or to
10249 *** [email protected]
10250
10251 _LT_EOF
10252 fi ;;
10253 esac
10254 fi
10255 break
10256 fi
10257 done
10258 IFS=$lt_save_ifs
10259 MAGIC_CMD=$lt_save_MAGIC_CMD
10260 ;;
10261 esac ;;
10262 esac
10263 fi
10264
10265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10266 if test -n "$MAGIC_CMD"; then
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10268 printf "%s\n" "$MAGIC_CMD" >&6; }
10269 else
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 printf "%s\n" "no" >&6; }
10272 fi
10273
10274
10275
10276
10277
10278 if test -z "$lt_cv_path_MAGIC_CMD"; then
10279 if test -n "$ac_tool_prefix"; then
10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10281 printf %s "checking for file... " >&6; }
10282 if test ${lt_cv_path_MAGIC_CMD+y}
10283 then :
10284 printf %s "(cached) " >&6
10285 else case e in #(
10286 e) case $MAGIC_CMD in
10287 [\\/*] | ?:[\\/]*)
10288 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10289 ;;
10290 *)
10291 lt_save_MAGIC_CMD=$MAGIC_CMD
10292 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10294 for ac_dir in $ac_dummy; do
10295 IFS=$lt_save_ifs
10296 test -z "$ac_dir" && ac_dir=.
10297 if test -f "$ac_dir/file"; then
10298 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10299 if test -n "$file_magic_test_file"; then
10300 case $deplibs_check_method in
10301 "file_magic "*)
10302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10303 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10305 $EGREP "$file_magic_regex" > /dev/null; then
10306 :
10307 else
10308 cat <<_LT_EOF 1>&2
10309
10310 *** Warning: the command libtool uses to detect shared libraries,
10311 *** $file_magic_cmd, produces output that libtool cannot recognize.
10312 *** The result is that libtool may fail to recognize shared libraries
10313 *** as such. This will affect the creation of libtool libraries that
10314 *** depend on shared libraries, but programs linked with such libtool
10315 *** libraries will work regardless of this problem. Nevertheless, you
10316 *** may want to report the problem to your system manager and/or to
10317 *** [email protected]
10318
10319 _LT_EOF
10320 fi ;;
10321 esac
10322 fi
10323 break
10324 fi
10325 done
10326 IFS=$lt_save_ifs
10327 MAGIC_CMD=$lt_save_MAGIC_CMD
10328 ;;
10329 esac ;;
10330 esac
10331 fi
10332
10333 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10334 if test -n "$MAGIC_CMD"; then
10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10336 printf "%s\n" "$MAGIC_CMD" >&6; }
10337 else
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 printf "%s\n" "no" >&6; }
10340 fi
10341
10342
10343 else
10344 MAGIC_CMD=:
10345 fi
10346 fi
10347
10348 fi
10349 ;;
10350 esac
10351
10352 # Use C for the default configuration in the libtool script
10353
10354 lt_save_CC=$CC
10355 ac_ext=c
10356 ac_cpp='$CPP $CPPFLAGS'
10357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10360
10361
10362 # Source file extension for C test sources.
10363 ac_ext=c
10364
10365 # Object file extension for compiled C test sources.
10366 objext=o
10367 objext=$objext
10368
10369 # Code to be used in simple compile tests
10370 lt_simple_compile_test_code="int some_variable = 0;"
10371
10372 # Code to be used in simple link tests
10373 lt_simple_link_test_code='int main(void){return(0);}'
10374
10375
10376
10377
10378
10379
10380
10381 # If no C compiler was specified, use CC.
10382 LTCC=${LTCC-"$CC"}
10383
10384 # If no C compiler flags were specified, use CFLAGS.
10385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10386
10387 # Allow CC to be a program name with arguments.
10388 compiler=$CC
10389
10390 # Save the default compiler, since it gets overwritten when the other
10391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10392 compiler_DEFAULT=$CC
10393
10394 # save warnings/boilerplate of simple test code
10395 ac_outfile=conftest.$ac_objext
10396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10398 _lt_compiler_boilerplate=`cat conftest.err`
10399 $RM conftest*
10400
10401 ac_outfile=conftest.$ac_objext
10402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10404 _lt_linker_boilerplate=`cat conftest.err`
10405 $RM -r conftest*
10406
10407
10408 ## CAVEAT EMPTOR:
10409 ## There is no encapsulation within the following macros, do not change
10410 ## the running order or otherwise move them around unless you know exactly
10411 ## what you are doing...
10412 if test -n "$compiler"; then
10413
10414 lt_prog_compiler_no_builtin_flag=
10415
10416 if test yes = "$GCC"; then
10417 case $cc_basename in
10418 nvcc*)
10419 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10420 *)
10421 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10422 esac
10423
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10425 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10426 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10427 then :
10428 printf %s "(cached) " >&6
10429 else case e in #(
10430 e) lt_cv_prog_compiler_rtti_exceptions=no
10431 ac_outfile=conftest.$ac_objext
10432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10433 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10434 # Insert the option either (1) after the last *FLAGS variable, or
10435 # (2) before a word containing "conftest.", or (3) at the end.
10436 # Note that $ac_compile itself does not contain backslashes and begins
10437 # with a dollar sign (not a hyphen), so the echo should work correctly.
10438 # The option is referenced via a variable to avoid confusing sed.
10439 lt_compile=`echo "$ac_compile" | $SED \
10440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10442 -e 's:$: $lt_compiler_flag:'`
10443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10444 (eval "$lt_compile" 2>conftest.err)
10445 ac_status=$?
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 if (exit $ac_status) && test -s "$ac_outfile"; then
10449 # The compiler can only warn and ignore the option if not recognized
10450 # So say no if there are warnings other than the usual output.
10451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10453 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10454 lt_cv_prog_compiler_rtti_exceptions=yes
10455 fi
10456 fi
10457 $RM conftest*
10458 ;;
10459 esac
10460 fi
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10462 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10463
10464 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10465 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10466 else
10467 :
10468 fi
10469
10470 fi
10471
10472
10473
10474
10475
10476
10477 lt_prog_compiler_wl=
10478 lt_prog_compiler_pic=
10479 lt_prog_compiler_static=
10480
10481
10482 if test yes = "$GCC"; then
10483 lt_prog_compiler_wl='-Wl,'
10484 lt_prog_compiler_static='-static'
10485
10486 case $host_os in
10487 aix*)
10488 # All AIX code is PIC.
10489 if test ia64 = "$host_cpu"; then
10490 # AIX 5 now supports IA64 processor
10491 lt_prog_compiler_static='-Bstatic'
10492 fi
10493 lt_prog_compiler_pic='-fPIC'
10494 ;;
10495
10496 amigaos*)
10497 case $host_cpu in
10498 powerpc)
10499 # see comment about AmigaOS4 .so support
10500 lt_prog_compiler_pic='-fPIC'
10501 ;;
10502 m68k)
10503 # FIXME: we need at least 68020 code to build shared libraries, but
10504 # adding the '-m68020' flag to GCC prevents building anything better,
10505 # like '-m68040'.
10506 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10507 ;;
10508 esac
10509 ;;
10510
10511 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10512 # PIC is the default for these OSes.
10513 ;;
10514
10515 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10516 # This hack is so that the source file can tell whether it is being
10517 # built for inclusion in a dll (and should export symbols for example).
10518 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10519 # (--disable-auto-import) libraries
10520 lt_prog_compiler_pic='-DDLL_EXPORT'
10521 case $host_os in
10522 os2*)
10523 lt_prog_compiler_static='$wl-static'
10524 ;;
10525 esac
10526 ;;
10527
10528 darwin* | rhapsody*)
10529 # PIC is the default on this platform
10530 # Common symbols not allowed in MH_DYLIB files
10531 lt_prog_compiler_pic='-fno-common'
10532 ;;
10533
10534 haiku*)
10535 # PIC is the default for Haiku.
10536 # The "-static" flag exists, but is broken.
10537 lt_prog_compiler_static=
10538 ;;
10539
10540 hpux*)
10541 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10542 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10543 # sets the default TLS model and affects inlining.
10544 case $host_cpu in
10545 hppa*64*)
10546 # +Z the default
10547 ;;
10548 *)
10549 lt_prog_compiler_pic='-fPIC'
10550 ;;
10551 esac
10552 ;;
10553
10554 interix[3-9]*)
10555 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10556 # Instead, we relocate shared libraries at runtime.
10557 ;;
10558
10559 msdosdjgpp*)
10560 # Just because we use GCC doesn't mean we suddenly get shared libraries
10561 # on systems that don't support them.
10562 lt_prog_compiler_can_build_shared=no
10563 enable_shared=no
10564 ;;
10565
10566 *nto* | *qnx*)
10567 # QNX uses GNU C++, but need to define -shared option too, otherwise
10568 # it will coredump.
10569 lt_prog_compiler_pic='-fPIC -shared'
10570 ;;
10571
10572 sysv4*MP*)
10573 if test -d /usr/nec; then
10574 lt_prog_compiler_pic=-Kconform_pic
10575 fi
10576 ;;
10577
10578 *)
10579 lt_prog_compiler_pic='-fPIC'
10580 ;;
10581 esac
10582
10583 case $cc_basename in
10584 nvcc*) # Cuda Compiler Driver 2.2
10585 lt_prog_compiler_wl='-Xlinker '
10586 if test -n "$lt_prog_compiler_pic"; then
10587 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10588 fi
10589 ;;
10590 esac
10591 else
10592 # PORTME Check for flag to pass linker flags through the system compiler.
10593 case $host_os in
10594 aix*)
10595 lt_prog_compiler_wl='-Wl,'
10596 if test ia64 = "$host_cpu"; then
10597 # AIX 5 now supports IA64 processor
10598 lt_prog_compiler_static='-Bstatic'
10599 else
10600 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10601 fi
10602 ;;
10603
10604 darwin* | rhapsody*)
10605 # PIC is the default on this platform
10606 # Common symbols not allowed in MH_DYLIB files
10607 lt_prog_compiler_pic='-fno-common'
10608 case $cc_basename in
10609 nagfor*)
10610 # NAG Fortran compiler
10611 lt_prog_compiler_wl='-Wl,-Wl,,'
10612 lt_prog_compiler_pic='-PIC'
10613 lt_prog_compiler_static='-Bstatic'
10614 ;;
10615 esac
10616 ;;
10617
10618 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10619 # This hack is so that the source file can tell whether it is being
10620 # built for inclusion in a dll (and should export symbols for example).
10621 lt_prog_compiler_pic='-DDLL_EXPORT'
10622 case $host_os in
10623 os2*)
10624 lt_prog_compiler_static='$wl-static'
10625 ;;
10626 esac
10627 ;;
10628
10629 hpux9* | hpux10* | hpux11*)
10630 lt_prog_compiler_wl='-Wl,'
10631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10632 # not for PA HP-UX.
10633 case $host_cpu in
10634 hppa*64*|ia64*)
10635 # +Z the default
10636 ;;
10637 *)
10638 lt_prog_compiler_pic='+Z'
10639 ;;
10640 esac
10641 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10642 lt_prog_compiler_static='$wl-a ${wl}archive'
10643 ;;
10644
10645 irix5* | irix6* | nonstopux*)
10646 lt_prog_compiler_wl='-Wl,'
10647 # PIC (with -KPIC) is the default.
10648 lt_prog_compiler_static='-non_shared'
10649 ;;
10650
10651 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10652 case $cc_basename in
10653 # old Intel for x86_64, which still supported -KPIC.
10654 ecc*)
10655 lt_prog_compiler_wl='-Wl,'
10656 lt_prog_compiler_pic='-KPIC'
10657 lt_prog_compiler_static='-static'
10658 ;;
10659 *flang* | ftn | f18* | f95*)
10660 # Flang compiler.
10661 lt_prog_compiler_wl='-Wl,'
10662 lt_prog_compiler_pic='-fPIC'
10663 lt_prog_compiler_static='-static'
10664 ;;
10665 # icc used to be incompatible with GCC.
10666 # ICC 10 doesn't accept -KPIC any more.
10667 icc* | ifort*)
10668 lt_prog_compiler_wl='-Wl,'
10669 lt_prog_compiler_pic='-fPIC'
10670 lt_prog_compiler_static='-static'
10671 ;;
10672 # Lahey Fortran 8.1.
10673 lf95*)
10674 lt_prog_compiler_wl='-Wl,'
10675 lt_prog_compiler_pic='--shared'
10676 lt_prog_compiler_static='--static'
10677 ;;
10678 nagfor*)
10679 # NAG Fortran compiler
10680 lt_prog_compiler_wl='-Wl,-Wl,,'
10681 lt_prog_compiler_pic='-PIC'
10682 lt_prog_compiler_static='-Bstatic'
10683 ;;
10684 tcc*)
10685 # Fabrice Bellard et al's Tiny C Compiler
10686 lt_prog_compiler_wl='-Wl,'
10687 lt_prog_compiler_pic='-fPIC'
10688 lt_prog_compiler_static='-static'
10689 ;;
10690 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10691 # Portland Group compilers (*not* the Pentium gcc compiler,
10692 # which looks to be a dead project)
10693 lt_prog_compiler_wl='-Wl,'
10694 lt_prog_compiler_pic='-fpic'
10695 lt_prog_compiler_static='-Bstatic'
10696 ;;
10697 ccc*)
10698 lt_prog_compiler_wl='-Wl,'
10699 # All Alpha code is PIC.
10700 lt_prog_compiler_static='-non_shared'
10701 ;;
10702 xl* | bgxl* | bgf* | mpixl*)
10703 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10704 lt_prog_compiler_wl='-Wl,'
10705 lt_prog_compiler_pic='-qpic'
10706 lt_prog_compiler_static='-qstaticlink'
10707 ;;
10708 *)
10709 case `$CC -V 2>&1 | $SED 5q` in
10710 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10711 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10712 lt_prog_compiler_pic='-KPIC'
10713 lt_prog_compiler_static='-Bstatic'
10714 lt_prog_compiler_wl=''
10715 ;;
10716 *Sun\ F* | *Sun*Fortran*)
10717 lt_prog_compiler_pic='-KPIC'
10718 lt_prog_compiler_static='-Bstatic'
10719 lt_prog_compiler_wl='-Qoption ld '
10720 ;;
10721 *Sun\ C*)
10722 # Sun C 5.9
10723 lt_prog_compiler_pic='-KPIC'
10724 lt_prog_compiler_static='-Bstatic'
10725 lt_prog_compiler_wl='-Wl,'
10726 ;;
10727 *Intel*\ [CF]*Compiler*)
10728 lt_prog_compiler_wl='-Wl,'
10729 lt_prog_compiler_pic='-fPIC'
10730 lt_prog_compiler_static='-static'
10731 ;;
10732 *Portland\ Group*)
10733 lt_prog_compiler_wl='-Wl,'
10734 lt_prog_compiler_pic='-fpic'
10735 lt_prog_compiler_static='-Bstatic'
10736 ;;
10737 esac
10738 ;;
10739 esac
10740 ;;
10741
10742 newsos6)
10743 lt_prog_compiler_pic='-KPIC'
10744 lt_prog_compiler_static='-Bstatic'
10745 ;;
10746
10747 *-mlibc)
10748 lt_prog_compiler_wl='-Wl,'
10749 lt_prog_compiler_pic='-fPIC'
10750 lt_prog_compiler_static='-static'
10751 ;;
10752
10753 *nto* | *qnx*)
10754 # QNX uses GNU C++, but need to define -shared option too, otherwise
10755 # it will coredump.
10756 lt_prog_compiler_pic='-fPIC -shared'
10757 ;;
10758
10759 osf3* | osf4* | osf5*)
10760 lt_prog_compiler_wl='-Wl,'
10761 # All OSF/1 code is PIC.
10762 lt_prog_compiler_static='-non_shared'
10763 ;;
10764
10765 rdos*)
10766 lt_prog_compiler_static='-non_shared'
10767 ;;
10768
10769 serenity*)
10770 ;;
10771
10772 solaris*)
10773 lt_prog_compiler_pic='-KPIC'
10774 lt_prog_compiler_static='-Bstatic'
10775 case $cc_basename in
10776 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10777 lt_prog_compiler_wl='-Qoption ld ';;
10778 *)
10779 lt_prog_compiler_wl='-Wl,';;
10780 esac
10781 ;;
10782
10783 sunos4*)
10784 lt_prog_compiler_wl='-Qoption ld '
10785 lt_prog_compiler_pic='-PIC'
10786 lt_prog_compiler_static='-Bstatic'
10787 ;;
10788
10789 sysv4 | sysv4.2uw2* | sysv4.3*)
10790 lt_prog_compiler_wl='-Wl,'
10791 lt_prog_compiler_pic='-KPIC'
10792 lt_prog_compiler_static='-Bstatic'
10793 ;;
10794
10795 sysv4*MP*)
10796 if test -d /usr/nec; then
10797 lt_prog_compiler_pic='-Kconform_pic'
10798 lt_prog_compiler_static='-Bstatic'
10799 fi
10800 ;;
10801
10802 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10803 lt_prog_compiler_wl='-Wl,'
10804 lt_prog_compiler_pic='-KPIC'
10805 lt_prog_compiler_static='-Bstatic'
10806 ;;
10807
10808 unicos*)
10809 lt_prog_compiler_wl='-Wl,'
10810 lt_prog_compiler_can_build_shared=no
10811 ;;
10812
10813 uts4*)
10814 lt_prog_compiler_pic='-pic'
10815 lt_prog_compiler_static='-Bstatic'
10816 ;;
10817
10818 *)
10819 lt_prog_compiler_can_build_shared=no
10820 ;;
10821 esac
10822 fi
10823
10824 case $host_os in
10825 # For platforms that do not support PIC, -DPIC is meaningless:
10826 *djgpp*)
10827 lt_prog_compiler_pic=
10828 ;;
10829 *)
10830 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10831 ;;
10832 esac
10833
10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10835 printf %s "checking for $compiler option to produce PIC... " >&6; }
10836 if test ${lt_cv_prog_compiler_pic+y}
10837 then :
10838 printf %s "(cached) " >&6
10839 else case e in #(
10840 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10841 esac
10842 fi
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10844 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10845 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10846
10847 #
10848 # Check to make sure the PIC flag actually works.
10849 #
10850 if test -n "$lt_prog_compiler_pic"; then
10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10852 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10853 if test ${lt_cv_prog_compiler_pic_works+y}
10854 then :
10855 printf %s "(cached) " >&6
10856 else case e in #(
10857 e) lt_cv_prog_compiler_pic_works=no
10858 ac_outfile=conftest.$ac_objext
10859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10860 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10861 # Insert the option either (1) after the last *FLAGS variable, or
10862 # (2) before a word containing "conftest.", or (3) at the end.
10863 # Note that $ac_compile itself does not contain backslashes and begins
10864 # with a dollar sign (not a hyphen), so the echo should work correctly.
10865 # The option is referenced via a variable to avoid confusing sed.
10866 lt_compile=`echo "$ac_compile" | $SED \
10867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10869 -e 's:$: $lt_compiler_flag:'`
10870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10871 (eval "$lt_compile" 2>conftest.err)
10872 ac_status=$?
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 if (exit $ac_status) && test -s "$ac_outfile"; then
10876 # The compiler can only warn and ignore the option if not recognized
10877 # So say no if there are warnings other than the usual output.
10878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10881 lt_cv_prog_compiler_pic_works=yes
10882 fi
10883 fi
10884 $RM conftest*
10885 ;;
10886 esac
10887 fi
10888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10889 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10890
10891 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10892 case $lt_prog_compiler_pic in
10893 "" | " "*) ;;
10894 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10895 esac
10896 else
10897 lt_prog_compiler_pic=
10898 lt_prog_compiler_can_build_shared=no
10899 fi
10900
10901 fi
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913 #
10914 # Check to make sure the static flag actually works.
10915 #
10916 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10918 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10919 if test ${lt_cv_prog_compiler_static_works+y}
10920 then :
10921 printf %s "(cached) " >&6
10922 else case e in #(
10923 e) lt_cv_prog_compiler_static_works=no
10924 save_LDFLAGS=$LDFLAGS
10925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10926 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10928 # The linker can only warn and ignore the option if not recognized
10929 # So say no if there are warnings
10930 if test -s conftest.err; then
10931 # Append any errors to the config.log.
10932 cat conftest.err 1>&5
10933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10935 if diff conftest.exp conftest.er2 >/dev/null; then
10936 lt_cv_prog_compiler_static_works=yes
10937 fi
10938 else
10939 lt_cv_prog_compiler_static_works=yes
10940 fi
10941 fi
10942 $RM -r conftest*
10943 LDFLAGS=$save_LDFLAGS
10944 ;;
10945 esac
10946 fi
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10948 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10949
10950 if test yes = "$lt_cv_prog_compiler_static_works"; then
10951 :
10952 else
10953 lt_prog_compiler_static=
10954 fi
10955
10956
10957
10958
10959
10960
10961
10962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10963 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10964 if test ${lt_cv_prog_compiler_c_o+y}
10965 then :
10966 printf %s "(cached) " >&6
10967 else case e in #(
10968 e) lt_cv_prog_compiler_c_o=no
10969 $RM -r conftest 2>/dev/null
10970 mkdir conftest
10971 cd conftest
10972 mkdir out
10973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10974
10975 lt_compiler_flag="-o out/conftest2.$ac_objext"
10976 # Insert the option either (1) after the last *FLAGS variable, or
10977 # (2) before a word containing "conftest.", or (3) at the end.
10978 # Note that $ac_compile itself does not contain backslashes and begins
10979 # with a dollar sign (not a hyphen), so the echo should work correctly.
10980 lt_compile=`echo "$ac_compile" | $SED \
10981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10983 -e 's:$: $lt_compiler_flag:'`
10984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10985 (eval "$lt_compile" 2>out/conftest.err)
10986 ac_status=$?
10987 cat out/conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10990 then
10991 # The compiler can only warn and ignore the option if not recognized
10992 # So say no if there are warnings
10993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10996 lt_cv_prog_compiler_c_o=yes
10997 fi
10998 fi
10999 chmod u+w . 2>&5
11000 $RM conftest*
11001 # SGI C++ compiler will create directory out/ii_files/ for
11002 # template instantiation
11003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11004 $RM out/* && rmdir out
11005 cd ..
11006 $RM -r conftest
11007 $RM conftest*
11008 ;;
11009 esac
11010 fi
11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11012 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11013
11014
11015
11016
11017
11018
11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11020 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11021 if test ${lt_cv_prog_compiler_c_o+y}
11022 then :
11023 printf %s "(cached) " >&6
11024 else case e in #(
11025 e) lt_cv_prog_compiler_c_o=no
11026 $RM -r conftest 2>/dev/null
11027 mkdir conftest
11028 cd conftest
11029 mkdir out
11030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11031
11032 lt_compiler_flag="-o out/conftest2.$ac_objext"
11033 # Insert the option either (1) after the last *FLAGS variable, or
11034 # (2) before a word containing "conftest.", or (3) at the end.
11035 # Note that $ac_compile itself does not contain backslashes and begins
11036 # with a dollar sign (not a hyphen), so the echo should work correctly.
11037 lt_compile=`echo "$ac_compile" | $SED \
11038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11040 -e 's:$: $lt_compiler_flag:'`
11041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11042 (eval "$lt_compile" 2>out/conftest.err)
11043 ac_status=$?
11044 cat out/conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11047 then
11048 # The compiler can only warn and ignore the option if not recognized
11049 # So say no if there are warnings
11050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11053 lt_cv_prog_compiler_c_o=yes
11054 fi
11055 fi
11056 chmod u+w . 2>&5
11057 $RM conftest*
11058 # SGI C++ compiler will create directory out/ii_files/ for
11059 # template instantiation
11060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11061 $RM out/* && rmdir out
11062 cd ..
11063 $RM -r conftest
11064 $RM conftest*
11065 ;;
11066 esac
11067 fi
11068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11069 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11070
11071
11072
11073
11074 hard_links=nottested
11075 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11076 # do not overwrite the value of need_locks provided by the user
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11078 printf %s "checking if we can lock with hard links... " >&6; }
11079 hard_links=yes
11080 $RM conftest*
11081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11082 touch conftest.a
11083 ln conftest.a conftest.b 2>&5 || hard_links=no
11084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11086 printf "%s\n" "$hard_links" >&6; }
11087 if test no = "$hard_links"; then
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11089 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11090 need_locks=warn
11091 fi
11092 else
11093 need_locks=no
11094 fi
11095
11096
11097
11098
11099
11100
11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11102 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11103
11104 runpath_var=
11105 allow_undefined_flag=
11106 always_export_symbols=no
11107 archive_cmds=
11108 archive_expsym_cmds=
11109 compiler_needs_object=no
11110 enable_shared_with_static_runtimes=no
11111 export_dynamic_flag_spec=
11112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11113 hardcode_automatic=no
11114 hardcode_direct=no
11115 hardcode_direct_absolute=no
11116 hardcode_libdir_flag_spec=
11117 hardcode_libdir_separator=
11118 hardcode_minus_L=no
11119 hardcode_shlibpath_var=unsupported
11120 inherit_rpath=no
11121 link_all_deplibs=unknown
11122 module_cmds=
11123 module_expsym_cmds=
11124 old_archive_from_new_cmds=
11125 old_archive_from_expsyms_cmds=
11126 thread_safe_flag_spec=
11127 whole_archive_flag_spec=
11128 # include_expsyms should be a list of space-separated symbols to be *always*
11129 # included in the symbol list
11130 include_expsyms=
11131 # exclude_expsyms can be an extended regexp of symbols to exclude
11132 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11133 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11134 # as well as any symbol that contains 'd'.
11135 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11137 # platforms (ab)use it in PIC code, but their linkers get confused if
11138 # the symbol is explicitly referenced. Since portable code cannot
11139 # rely on this symbol name, it's probably fine to never include it in
11140 # preloaded symbol tables.
11141 # Exclude shared library initialization/finalization symbols.
11142 extract_expsyms_cmds=
11143
11144 case $host_os in
11145 cygwin* | mingw* | windows* | pw32* | cegcc*)
11146 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11147 # When not using gcc, we currently assume that we are using
11148 # Microsoft Visual C++ or Intel C++ Compiler.
11149 if test yes != "$GCC"; then
11150 with_gnu_ld=no
11151 fi
11152 ;;
11153 interix*)
11154 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11155 with_gnu_ld=yes
11156 ;;
11157 esac
11158
11159 ld_shlibs=yes
11160
11161 # On some targets, GNU ld is compatible enough with the native linker
11162 # that we're better off using the native interface for both.
11163 lt_use_gnu_ld_interface=no
11164 if test yes = "$with_gnu_ld"; then
11165 case $host_os in
11166 aix*)
11167 # The AIX port of GNU ld has always aspired to compatibility
11168 # with the native linker. However, as the warning in the GNU ld
11169 # block says, versions before 2.19.5* couldn't really create working
11170 # shared libraries, regardless of the interface used.
11171 case `$LD -v 2>&1` in
11172 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11173 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11174 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11175 *)
11176 lt_use_gnu_ld_interface=yes
11177 ;;
11178 esac
11179 ;;
11180 *)
11181 lt_use_gnu_ld_interface=yes
11182 ;;
11183 esac
11184 fi
11185
11186 if test yes = "$lt_use_gnu_ld_interface"; then
11187 # If archive_cmds runs LD, not CC, wlarc should be empty
11188 wlarc='$wl'
11189
11190 # Set some defaults for GNU ld with shared library support. These
11191 # are reset later if shared libraries are not supported. Putting them
11192 # here allows them to be overridden if necessary.
11193 runpath_var=LD_RUN_PATH
11194 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11195 export_dynamic_flag_spec='$wl--export-dynamic'
11196 # ancient GNU ld didn't support --whole-archive et. al.
11197 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11198 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11199 else
11200 whole_archive_flag_spec=
11201 fi
11202 supports_anon_versioning=no
11203 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11204 *GNU\ gold*) supports_anon_versioning=yes ;;
11205 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11208 *\ 2.11.*) ;; # other 2.11 versions
11209 *) supports_anon_versioning=yes ;;
11210 esac
11211
11212 # See if GNU ld supports shared libraries.
11213 case $host_os in
11214 aix[3-9]*)
11215 # On AIX/PPC, the GNU linker is very broken
11216 if test ia64 != "$host_cpu"; then
11217 ld_shlibs=no
11218 cat <<_LT_EOF 1>&2
11219
11220 *** Warning: the GNU linker, at least up to release 2.19, is reported
11221 *** to be unable to reliably create shared libraries on AIX.
11222 *** Therefore, libtool is disabling shared libraries support. If you
11223 *** really care for shared libraries, you may want to install binutils
11224 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11225 *** You will then need to restart the configuration process.
11226
11227 _LT_EOF
11228 fi
11229 ;;
11230
11231 amigaos*)
11232 case $host_cpu in
11233 powerpc)
11234 # see comment about AmigaOS4 .so support
11235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11236 archive_expsym_cmds=''
11237 ;;
11238 m68k)
11239 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)'
11240 hardcode_libdir_flag_spec='-L$libdir'
11241 hardcode_minus_L=yes
11242 ;;
11243 esac
11244 ;;
11245
11246 beos*)
11247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11248 allow_undefined_flag=unsupported
11249 # Joseph Beckenbach <[email protected]> says some releases of gcc
11250 # support --undefined. This deserves some investigation. FIXME
11251 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11252 else
11253 ld_shlibs=no
11254 fi
11255 ;;
11256
11257 cygwin* | mingw* | windows* | pw32* | cegcc*)
11258 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11259 # as there is no search path for DLLs.
11260 hardcode_libdir_flag_spec='-L$libdir'
11261 export_dynamic_flag_spec='$wl--export-all-symbols'
11262 allow_undefined_flag=unsupported
11263 always_export_symbols=no
11264 enable_shared_with_static_runtimes=yes
11265 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'
11266 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11267 file_list_spec='@'
11268
11269 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11271 # If the export-symbols file already is a .def file, use it as
11272 # is; otherwise, prepend EXPORTS...
11273 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11274 cp $export_symbols $output_objdir/$soname.def;
11275 else
11276 echo EXPORTS > $output_objdir/$soname.def;
11277 cat $export_symbols >> $output_objdir/$soname.def;
11278 fi~
11279 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11280 else
11281 ld_shlibs=no
11282 fi
11283 ;;
11284
11285 haiku*)
11286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11287 link_all_deplibs=no
11288 ;;
11289
11290 os2*)
11291 hardcode_libdir_flag_spec='-L$libdir'
11292 hardcode_minus_L=yes
11293 allow_undefined_flag=unsupported
11294 shrext_cmds=.dll
11295 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11296 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11297 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11298 $ECHO EXPORTS >> $output_objdir/$libname.def~
11299 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11300 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11301 emximp -o $lib $output_objdir/$libname.def'
11302 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11303 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11304 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11305 $ECHO EXPORTS >> $output_objdir/$libname.def~
11306 prefix_cmds="$SED"~
11307 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11308 prefix_cmds="$prefix_cmds -e 1d";
11309 fi~
11310 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11311 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11312 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11313 emximp -o $lib $output_objdir/$libname.def'
11314 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11315 enable_shared_with_static_runtimes=yes
11316 file_list_spec='@'
11317 ;;
11318
11319 interix[3-9]*)
11320 hardcode_direct=no
11321 hardcode_shlibpath_var=no
11322 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11323 export_dynamic_flag_spec='$wl-E'
11324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11325 # Instead, shared libraries are loaded at an image base (0x10000000 by
11326 # default) and relocated if they conflict, which is a slow very memory
11327 # consuming and fragmenting process. To avoid this, we pick a random,
11328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11330 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11331 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'
11332 ;;
11333
11334 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11335 tmp_diet=no
11336 if test linux-dietlibc = "$host_os"; then
11337 case $cc_basename in
11338 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11339 esac
11340 fi
11341 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11342 && test no = "$tmp_diet"
11343 then
11344 tmp_addflag=' $pic_flag'
11345 tmp_sharedflag='-shared'
11346 case $cc_basename,$host_cpu in
11347 pgcc*) # Portland Group C compiler
11348 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'
11349 tmp_addflag=' $pic_flag'
11350 ;;
11351 pgf77* | pgf90* | pgf95* | pgfortran*)
11352 # Portland Group f77 and f90 compilers
11353 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'
11354 tmp_addflag=' $pic_flag -Mnomain' ;;
11355 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11356 tmp_addflag=' -i_dynamic' ;;
11357 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11358 tmp_addflag=' -i_dynamic -nofor_main' ;;
11359 ifc* | ifort*) # Intel Fortran compiler
11360 tmp_addflag=' -nofor_main' ;;
11361 lf95*) # Lahey Fortran 8.1
11362 whole_archive_flag_spec=
11363 tmp_sharedflag='--shared' ;;
11364 nagfor*) # NAGFOR 5.3
11365 tmp_sharedflag='-Wl,-shared' ;;
11366 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11367 tmp_sharedflag='-qmkshrobj'
11368 tmp_addflag= ;;
11369 nvcc*) # Cuda Compiler Driver 2.2
11370 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'
11371 compiler_needs_object=yes
11372 ;;
11373 esac
11374 case `$CC -V 2>&1 | $SED 5q` in
11375 *Sun\ C*) # Sun C 5.9
11376 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'
11377 compiler_needs_object=yes
11378 tmp_sharedflag='-G' ;;
11379 *Sun\ F*) # Sun Fortran 8.3
11380 tmp_sharedflag='-G' ;;
11381 esac
11382 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11383
11384 if test yes = "$supports_anon_versioning"; then
11385 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11386 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11387 echo "local: *; };" >> $output_objdir/$libname.ver~
11388 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11389 fi
11390
11391 case $cc_basename in
11392 tcc*)
11393 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11394 export_dynamic_flag_spec='-rdynamic'
11395 ;;
11396 xlf* | bgf* | bgxlf* | mpixlf*)
11397 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11398 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11399 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11400 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11401 if test yes = "$supports_anon_versioning"; then
11402 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11403 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11404 echo "local: *; };" >> $output_objdir/$libname.ver~
11405 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11406 fi
11407 ;;
11408 esac
11409 else
11410 ld_shlibs=no
11411 fi
11412 ;;
11413
11414 *-mlibc)
11415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11416 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11417 ;;
11418
11419 netbsd* | netbsdelf*-gnu)
11420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11421 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11422 wlarc=
11423 else
11424 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11425 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11426 fi
11427 ;;
11428
11429 solaris*)
11430 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11431 ld_shlibs=no
11432 cat <<_LT_EOF 1>&2
11433
11434 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11435 *** create shared libraries on Solaris systems. Therefore, libtool
11436 *** is disabling shared libraries support. We urge you to upgrade GNU
11437 *** binutils to release 2.9.1 or newer. Another option is to modify
11438 *** your PATH or compiler configuration so that the native linker is
11439 *** used, and then restart.
11440
11441 _LT_EOF
11442 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11444 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11445 else
11446 ld_shlibs=no
11447 fi
11448 ;;
11449
11450 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11451 case `$LD -v 2>&1` in
11452 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11453 ld_shlibs=no
11454 cat <<_LT_EOF 1>&2
11455
11456 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11457 *** reliably create shared libraries on SCO systems. Therefore, libtool
11458 *** is disabling shared libraries support. We urge you to upgrade GNU
11459 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11460 *** your PATH or compiler configuration so that the native linker is
11461 *** used, and then restart.
11462
11463 _LT_EOF
11464 ;;
11465 *)
11466 # For security reasons, it is highly recommended that you always
11467 # use absolute paths for naming shared libraries, and exclude the
11468 # DT_RUNPATH tag from executables and libraries. But doing so
11469 # requires that you compile everything twice, which is a pain.
11470 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11471 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11473 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11474 else
11475 ld_shlibs=no
11476 fi
11477 ;;
11478 esac
11479 ;;
11480
11481 sunos4*)
11482 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11483 wlarc=
11484 hardcode_direct=yes
11485 hardcode_shlibpath_var=no
11486 ;;
11487
11488 *)
11489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11490 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11491 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11492 else
11493 ld_shlibs=no
11494 fi
11495 ;;
11496 esac
11497
11498 if test no = "$ld_shlibs"; then
11499 runpath_var=
11500 hardcode_libdir_flag_spec=
11501 export_dynamic_flag_spec=
11502 whole_archive_flag_spec=
11503 fi
11504 else
11505 # PORTME fill in a description of your system's linker (not GNU ld)
11506 case $host_os in
11507 aix3*)
11508 allow_undefined_flag=unsupported
11509 always_export_symbols=yes
11510 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'
11511 # Note: this linker hardcodes the directories in LIBPATH if there
11512 # are no directories specified by -L.
11513 hardcode_minus_L=yes
11514 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11515 # Neither direct hardcoding nor static linking is supported with a
11516 # broken collect2.
11517 hardcode_direct=unsupported
11518 fi
11519 ;;
11520
11521 aix[4-9]*)
11522 if test ia64 = "$host_cpu"; then
11523 # On IA64, the linker does run time linking by default, so we don't
11524 # have to do anything special.
11525 aix_use_runtimelinking=no
11526 exp_sym_flag='-Bexport'
11527 no_entry_flag=
11528 else
11529 # If we're using GNU nm, then we don't want the "-C" option.
11530 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11531 # Without the "-l" option, or with the "-B" option, AIX nm treats
11532 # weak defined symbols like other global defined symbols, whereas
11533 # GNU nm marks them as "W".
11534 # While the 'weak' keyword is ignored in the Export File, we need
11535 # it in the Import File for the 'aix-soname' feature, so we have
11536 # to replace the "-B" option with "-P" for AIX nm.
11537 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11538 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'
11539 else
11540 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'
11541 fi
11542 aix_use_runtimelinking=no
11543
11544 # Test if we are trying to use run time linking or normal
11545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11546 # have runtime linking enabled, and use it for executables.
11547 # For shared libraries, we enable/disable runtime linking
11548 # depending on the kind of the shared library created -
11549 # when "with_aix_soname,aix_use_runtimelinking" is:
11550 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11551 # "aix,yes" lib.so shared, rtl:yes, for executables
11552 # lib.a static archive
11553 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11554 # lib.a(lib.so.V) shared, rtl:no, for executables
11555 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11556 # lib.a(lib.so.V) shared, rtl:no
11557 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11558 # lib.a static archive
11559 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11560 for ld_flag in $LDFLAGS; do
11561 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11562 aix_use_runtimelinking=yes
11563 break
11564 fi
11565 done
11566 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11567 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11568 # so we don't have lib.a shared libs to link our executables.
11569 # We have to force runtime linking in this case.
11570 aix_use_runtimelinking=yes
11571 LDFLAGS="$LDFLAGS -Wl,-brtl"
11572 fi
11573 ;;
11574 esac
11575
11576 exp_sym_flag='-bexport'
11577 no_entry_flag='-bnoentry'
11578 fi
11579
11580 # When large executables or shared objects are built, AIX ld can
11581 # have problems creating the table of contents. If linking a library
11582 # or program results in "error TOC overflow" add -mminimal-toc to
11583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11585
11586 archive_cmds=''
11587 hardcode_direct=yes
11588 hardcode_direct_absolute=yes
11589 hardcode_libdir_separator=':'
11590 link_all_deplibs=yes
11591 file_list_spec='$wl-f,'
11592 case $with_aix_soname,$aix_use_runtimelinking in
11593 aix,*) ;; # traditional, no import file
11594 svr4,* | *,yes) # use import file
11595 # The Import File defines what to hardcode.
11596 hardcode_direct=no
11597 hardcode_direct_absolute=no
11598 ;;
11599 esac
11600
11601 if test yes = "$GCC"; then
11602 case $host_os in aix4.[012]|aix4.[012].*)
11603 # We only want to do this on AIX 4.2 and lower, the check
11604 # below for broken collect2 doesn't work under 4.3+
11605 collect2name=`$CC -print-prog-name=collect2`
11606 if test -f "$collect2name" &&
11607 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11608 then
11609 # We have reworked collect2
11610 :
11611 else
11612 # We have old collect2
11613 hardcode_direct=unsupported
11614 # It fails to find uninstalled libraries when the uninstalled
11615 # path is not listed in the libpath. Setting hardcode_minus_L
11616 # to unsupported forces relinking
11617 hardcode_minus_L=yes
11618 hardcode_libdir_flag_spec='-L$libdir'
11619 hardcode_libdir_separator=
11620 fi
11621 ;;
11622 esac
11623 shared_flag='-shared'
11624 if test yes = "$aix_use_runtimelinking"; then
11625 shared_flag="$shared_flag "'$wl-G'
11626 fi
11627 # Need to ensure runtime linking is disabled for the traditional
11628 # shared library, or the linker may eventually find shared libraries
11629 # /with/ Import File - we do not want to mix them.
11630 shared_flag_aix='-shared'
11631 shared_flag_svr4='-shared $wl-G'
11632 else
11633 # not using gcc
11634 if test ia64 = "$host_cpu"; then
11635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11636 # chokes on -Wl,-G. The following line is correct:
11637 shared_flag='-G'
11638 else
11639 if test yes = "$aix_use_runtimelinking"; then
11640 shared_flag='$wl-G'
11641 else
11642 shared_flag='$wl-bM:SRE'
11643 fi
11644 shared_flag_aix='$wl-bM:SRE'
11645 shared_flag_svr4='$wl-G'
11646 fi
11647 fi
11648
11649 export_dynamic_flag_spec='$wl-bexpall'
11650 # It seems that -bexpall does not export symbols beginning with
11651 # underscore (_), so it is better to generate a list of symbols to export.
11652 always_export_symbols=yes
11653 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11654 # Warning - without using the other runtime loading flags (-brtl),
11655 # -berok will link without error, but may produce a broken library.
11656 allow_undefined_flag='-berok'
11657 # Determine the default libpath from the value encoded in an
11658 # empty executable.
11659 if test set = "${lt_cv_aix_libpath+set}"; then
11660 aix_libpath=$lt_cv_aix_libpath
11661 else
11662 if test ${lt_cv_aix_libpath_+y}
11663 then :
11664 printf %s "(cached) " >&6
11665 else case e in #(
11666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11668
11669 int
11670 main (void)
11671 {
11672
11673 ;
11674 return 0;
11675 }
11676 _ACEOF
11677 if ac_fn_c_try_link "$LINENO"
11678 then :
11679
11680 lt_aix_libpath_sed='
11681 /Import File Strings/,/^$/ {
11682 /^0/ {
11683 s/^0 *\([^ ]*\) *$/\1/
11684 p
11685 }
11686 }'
11687 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11688 # Check for a 64-bit object if we didn't find anything.
11689 if test -z "$lt_cv_aix_libpath_"; then
11690 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11691 fi
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11694 conftest$ac_exeext conftest.$ac_ext
11695 if test -z "$lt_cv_aix_libpath_"; then
11696 lt_cv_aix_libpath_=/usr/lib:/lib
11697 fi
11698 ;;
11699 esac
11700 fi
11701
11702 aix_libpath=$lt_cv_aix_libpath_
11703 fi
11704
11705 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11706 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
11707 else
11708 if test ia64 = "$host_cpu"; then
11709 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11710 allow_undefined_flag="-z nodefs"
11711 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"
11712 else
11713 # Determine the default libpath from the value encoded in an
11714 # empty executable.
11715 if test set = "${lt_cv_aix_libpath+set}"; then
11716 aix_libpath=$lt_cv_aix_libpath
11717 else
11718 if test ${lt_cv_aix_libpath_+y}
11719 then :
11720 printf %s "(cached) " >&6
11721 else case e in #(
11722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724
11725 int
11726 main (void)
11727 {
11728
11729 ;
11730 return 0;
11731 }
11732 _ACEOF
11733 if ac_fn_c_try_link "$LINENO"
11734 then :
11735
11736 lt_aix_libpath_sed='
11737 /Import File Strings/,/^$/ {
11738 /^0/ {
11739 s/^0 *\([^ ]*\) *$/\1/
11740 p
11741 }
11742 }'
11743 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11744 # Check for a 64-bit object if we didn't find anything.
11745 if test -z "$lt_cv_aix_libpath_"; then
11746 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 fi
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11750 conftest$ac_exeext conftest.$ac_ext
11751 if test -z "$lt_cv_aix_libpath_"; then
11752 lt_cv_aix_libpath_=/usr/lib:/lib
11753 fi
11754 ;;
11755 esac
11756 fi
11757
11758 aix_libpath=$lt_cv_aix_libpath_
11759 fi
11760
11761 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11762 # Warning - without using the other run time loading flags,
11763 # -berok will link without error, but may produce a broken library.
11764 no_undefined_flag=' $wl-bernotok'
11765 allow_undefined_flag=' $wl-berok'
11766 if test yes = "$with_gnu_ld"; then
11767 # We only use this code for GNU lds that support --whole-archive.
11768 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11769 else
11770 # Exported symbols can be pulled into shared objects from archives
11771 whole_archive_flag_spec='$convenience'
11772 fi
11773 archive_cmds_need_lc=yes
11774 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11775 # -brtl affects multiple linker settings, -berok does not and is overridden later
11776 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11777 if test svr4 != "$with_aix_soname"; then
11778 # This is similar to how AIX traditionally builds its shared libraries.
11779 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'
11780 fi
11781 if test aix != "$with_aix_soname"; then
11782 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'
11783 else
11784 # used by -dlpreopen to get the symbols
11785 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11786 fi
11787 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11788 fi
11789 fi
11790 ;;
11791
11792 amigaos*)
11793 case $host_cpu in
11794 powerpc)
11795 # see comment about AmigaOS4 .so support
11796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11797 archive_expsym_cmds=''
11798 ;;
11799 m68k)
11800 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)'
11801 hardcode_libdir_flag_spec='-L$libdir'
11802 hardcode_minus_L=yes
11803 ;;
11804 esac
11805 ;;
11806
11807 bsdi[45]*)
11808 export_dynamic_flag_spec=-rdynamic
11809 ;;
11810
11811 cygwin* | mingw* | windows* | pw32* | cegcc*)
11812 # When not using gcc, we currently assume that we are using
11813 # Microsoft Visual C++ or Intel C++ Compiler.
11814 # hardcode_libdir_flag_spec is actually meaningless, as there is
11815 # no search path for DLLs.
11816 case $cc_basename in
11817 cl* | icl*)
11818 # Native MSVC or ICC
11819 hardcode_libdir_flag_spec=' '
11820 allow_undefined_flag=unsupported
11821 always_export_symbols=yes
11822 file_list_spec='@'
11823 # Tell ltmain to make .lib files, not .a files.
11824 libext=lib
11825 # Tell ltmain to make .dll files, not .so files.
11826 shrext_cmds=.dll
11827 # FIXME: Setting linknames here is a bad hack.
11828 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11829 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11830 cp "$export_symbols" "$output_objdir/$soname.def";
11831 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11832 else
11833 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11834 fi~
11835 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11836 linknames='
11837 # The linker will not automatically build a static lib if we build a DLL.
11838 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11839 enable_shared_with_static_runtimes=yes
11840 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11842 # Don't use ranlib
11843 old_postinstall_cmds='chmod 644 $oldlib'
11844 postlink_cmds='lt_outputfile="@OUTPUT@"~
11845 lt_tool_outputfile="@TOOL_OUTPUT@"~
11846 case $lt_outputfile in
11847 *.exe|*.EXE) ;;
11848 *)
11849 lt_outputfile=$lt_outputfile.exe
11850 lt_tool_outputfile=$lt_tool_outputfile.exe
11851 ;;
11852 esac~
11853 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11854 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11855 $RM "$lt_outputfile.manifest";
11856 fi'
11857 ;;
11858 *)
11859 # Assume MSVC and ICC wrapper
11860 hardcode_libdir_flag_spec=' '
11861 allow_undefined_flag=unsupported
11862 # Tell ltmain to make .lib files, not .a files.
11863 libext=lib
11864 # Tell ltmain to make .dll files, not .so files.
11865 shrext_cmds=.dll
11866 # FIXME: Setting linknames here is a bad hack.
11867 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11868 # The linker will automatically build a .lib file if we build a DLL.
11869 old_archive_from_new_cmds='true'
11870 # FIXME: Should let the user specify the lib program.
11871 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11872 enable_shared_with_static_runtimes=yes
11873 ;;
11874 esac
11875 ;;
11876
11877 darwin* | rhapsody*)
11878
11879
11880 archive_cmds_need_lc=no
11881 hardcode_direct=no
11882 hardcode_automatic=yes
11883 hardcode_shlibpath_var=unsupported
11884 if test yes = "$lt_cv_ld_force_load"; then
11885 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\"`'
11886
11887 else
11888 whole_archive_flag_spec=''
11889 fi
11890 link_all_deplibs=yes
11891 allow_undefined_flag=$_lt_dar_allow_undefined
11892 case $cc_basename in
11893 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11894 *) _lt_dar_can_shared=$GCC ;;
11895 esac
11896 if test yes = "$_lt_dar_can_shared"; then
11897 output_verbose_link_cmd=func_echo_all
11898 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11899 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11900 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"
11901 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"
11902
11903 else
11904 ld_shlibs=no
11905 fi
11906
11907 ;;
11908
11909 dgux*)
11910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11911 hardcode_libdir_flag_spec='-L$libdir'
11912 hardcode_shlibpath_var=no
11913 ;;
11914
11915 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11916 # support. Future versions do this automatically, but an explicit c++rt0.o
11917 # does not break anything, and helps significantly (at the cost of a little
11918 # extra space).
11919 freebsd2.2*)
11920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11921 hardcode_libdir_flag_spec='-R$libdir'
11922 hardcode_direct=yes
11923 hardcode_shlibpath_var=no
11924 ;;
11925
11926 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11927 freebsd2.*)
11928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11929 hardcode_direct=yes
11930 hardcode_minus_L=yes
11931 hardcode_shlibpath_var=no
11932 ;;
11933
11934 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11935 freebsd* | dragonfly* | midnightbsd*)
11936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11937 hardcode_libdir_flag_spec='-R$libdir'
11938 hardcode_direct=yes
11939 hardcode_shlibpath_var=no
11940 ;;
11941
11942 hpux9*)
11943 if test yes = "$GCC"; then
11944 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'
11945 else
11946 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'
11947 fi
11948 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11949 hardcode_libdir_separator=:
11950 hardcode_direct=yes
11951
11952 # hardcode_minus_L: Not really in the search PATH,
11953 # but as the default location of the library.
11954 hardcode_minus_L=yes
11955 export_dynamic_flag_spec='$wl-E'
11956 ;;
11957
11958 hpux10*)
11959 if test yes,no = "$GCC,$with_gnu_ld"; then
11960 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11961 else
11962 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11963 fi
11964 if test no = "$with_gnu_ld"; then
11965 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11966 hardcode_libdir_separator=:
11967 hardcode_direct=yes
11968 hardcode_direct_absolute=yes
11969 export_dynamic_flag_spec='$wl-E'
11970 # hardcode_minus_L: Not really in the search PATH,
11971 # but as the default location of the library.
11972 hardcode_minus_L=yes
11973 fi
11974 ;;
11975
11976 hpux11*)
11977 if test yes,no = "$GCC,$with_gnu_ld"; then
11978 case $host_cpu in
11979 hppa*64*)
11980 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11981 ;;
11982 ia64*)
11983 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11984 ;;
11985 *)
11986 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11987 ;;
11988 esac
11989 else
11990 case $host_cpu in
11991 hppa*64*)
11992 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11993 ;;
11994 ia64*)
11995 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11996 ;;
11997 *)
11998
11999 # Older versions of the 11.00 compiler do not understand -b yet
12000 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12002 printf %s "checking if $CC understands -b... " >&6; }
12003 if test ${lt_cv_prog_compiler__b+y}
12004 then :
12005 printf %s "(cached) " >&6
12006 else case e in #(
12007 e) lt_cv_prog_compiler__b=no
12008 save_LDFLAGS=$LDFLAGS
12009 LDFLAGS="$LDFLAGS -b"
12010 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12011 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12012 # The linker can only warn and ignore the option if not recognized
12013 # So say no if there are warnings
12014 if test -s conftest.err; then
12015 # Append any errors to the config.log.
12016 cat conftest.err 1>&5
12017 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12019 if diff conftest.exp conftest.er2 >/dev/null; then
12020 lt_cv_prog_compiler__b=yes
12021 fi
12022 else
12023 lt_cv_prog_compiler__b=yes
12024 fi
12025 fi
12026 $RM -r conftest*
12027 LDFLAGS=$save_LDFLAGS
12028 ;;
12029 esac
12030 fi
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12032 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12033
12034 if test yes = "$lt_cv_prog_compiler__b"; then
12035 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12036 else
12037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12038 fi
12039
12040 ;;
12041 esac
12042 fi
12043 if test no = "$with_gnu_ld"; then
12044 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12045 hardcode_libdir_separator=:
12046
12047 case $host_cpu in
12048 hppa*64*|ia64*)
12049 hardcode_direct=no
12050 hardcode_shlibpath_var=no
12051 ;;
12052 *)
12053 hardcode_direct=yes
12054 hardcode_direct_absolute=yes
12055 export_dynamic_flag_spec='$wl-E'
12056
12057 # hardcode_minus_L: Not really in the search PATH,
12058 # but as the default location of the library.
12059 hardcode_minus_L=yes
12060 ;;
12061 esac
12062 fi
12063 ;;
12064
12065 irix5* | irix6* | nonstopux*)
12066 if test yes = "$GCC"; then
12067 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'
12068 # Try to use the -exported_symbol ld option, if it does not
12069 # work, assume that -exports_file does not work either and
12070 # implicitly export all symbols.
12071 # This should be the same for all languages, so no per-tag cache variable.
12072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12073 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12074 if test ${lt_cv_irix_exported_symbol+y}
12075 then :
12076 printf %s "(cached) " >&6
12077 else case e in #(
12078 e) save_LDFLAGS=$LDFLAGS
12079 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 int foo (void) { return 0; }
12083 _ACEOF
12084 if ac_fn_c_try_link "$LINENO"
12085 then :
12086 lt_cv_irix_exported_symbol=yes
12087 else case e in #(
12088 e) lt_cv_irix_exported_symbol=no ;;
12089 esac
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12092 conftest$ac_exeext conftest.$ac_ext
12093 LDFLAGS=$save_LDFLAGS ;;
12094 esac
12095 fi
12096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12097 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12098 if test yes = "$lt_cv_irix_exported_symbol"; then
12099 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'
12100 fi
12101 else
12102 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'
12103 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'
12104 fi
12105 archive_cmds_need_lc='no'
12106 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12107 hardcode_libdir_separator=:
12108 inherit_rpath=yes
12109 link_all_deplibs=yes
12110 ;;
12111
12112 linux*)
12113 case $cc_basename in
12114 tcc*)
12115 # Fabrice Bellard et al's Tiny C Compiler
12116 ld_shlibs=yes
12117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12118 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12119 ;;
12120 esac
12121 ;;
12122
12123 *-mlibc)
12124 ;;
12125
12126 netbsd* | netbsdelf*-gnu)
12127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12129 else
12130 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12131 fi
12132 hardcode_libdir_flag_spec='-R$libdir'
12133 hardcode_direct=yes
12134 hardcode_shlibpath_var=no
12135 ;;
12136
12137 newsos6)
12138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12139 hardcode_direct=yes
12140 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12141 hardcode_libdir_separator=:
12142 hardcode_shlibpath_var=no
12143 ;;
12144
12145 *nto* | *qnx*)
12146 ;;
12147
12148 openbsd*)
12149 if test -f /usr/libexec/ld.so; then
12150 hardcode_direct=yes
12151 hardcode_shlibpath_var=no
12152 hardcode_direct_absolute=yes
12153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12154 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12155 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12156 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12157 export_dynamic_flag_spec='$wl-E'
12158 else
12159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12160 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12161 fi
12162 else
12163 ld_shlibs=no
12164 fi
12165 ;;
12166
12167 os2*)
12168 hardcode_libdir_flag_spec='-L$libdir'
12169 hardcode_minus_L=yes
12170 allow_undefined_flag=unsupported
12171 shrext_cmds=.dll
12172 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12173 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12174 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12175 $ECHO EXPORTS >> $output_objdir/$libname.def~
12176 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12177 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12178 emximp -o $lib $output_objdir/$libname.def'
12179 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12180 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12181 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12182 $ECHO EXPORTS >> $output_objdir/$libname.def~
12183 prefix_cmds="$SED"~
12184 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12185 prefix_cmds="$prefix_cmds -e 1d";
12186 fi~
12187 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12188 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12189 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12190 emximp -o $lib $output_objdir/$libname.def'
12191 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12192 enable_shared_with_static_runtimes=yes
12193 file_list_spec='@'
12194 ;;
12195
12196 osf3*)
12197 if test yes = "$GCC"; then
12198 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12199 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'
12200 else
12201 allow_undefined_flag=' -expect_unresolved \*'
12202 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'
12203 fi
12204 archive_cmds_need_lc='no'
12205 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12206 hardcode_libdir_separator=:
12207 ;;
12208
12209 osf4* | osf5*) # as osf3* with the addition of -msym flag
12210 if test yes = "$GCC"; then
12211 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12212 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'
12213 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12214 else
12215 allow_undefined_flag=' -expect_unresolved \*'
12216 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'
12217 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~
12218 $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'
12219
12220 # Both c and cxx compiler support -rpath directly
12221 hardcode_libdir_flag_spec='-rpath $libdir'
12222 fi
12223 archive_cmds_need_lc='no'
12224 hardcode_libdir_separator=:
12225 ;;
12226
12227 serenity*)
12228 ;;
12229
12230 solaris*)
12231 no_undefined_flag=' -z defs'
12232 if test yes = "$GCC"; then
12233 wlarc='$wl'
12234 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12235 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12236 $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'
12237 else
12238 case `$CC -V 2>&1` in
12239 *"Compilers 5.0"*)
12240 wlarc=''
12241 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12242 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12243 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12244 ;;
12245 *)
12246 wlarc='$wl'
12247 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12248 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12249 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12250 ;;
12251 esac
12252 fi
12253 hardcode_libdir_flag_spec='-R$libdir'
12254 hardcode_shlibpath_var=no
12255 case $host_os in
12256 solaris2.[0-5] | solaris2.[0-5].*) ;;
12257 *)
12258 # The compiler driver will combine and reorder linker options,
12259 # but understands '-z linker_flag'. GCC discards it without '$wl',
12260 # but is careful enough not to reorder.
12261 # Supported since Solaris 2.6 (maybe 2.5.1?)
12262 if test yes = "$GCC"; then
12263 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12264 else
12265 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12266 fi
12267 ;;
12268 esac
12269 link_all_deplibs=yes
12270 ;;
12271
12272 sunos4*)
12273 if test sequent = "$host_vendor"; then
12274 # Use $CC to link under sequent, because it throws in some extra .o
12275 # files that make .init and .fini sections work.
12276 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12277 else
12278 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12279 fi
12280 hardcode_libdir_flag_spec='-L$libdir'
12281 hardcode_direct=yes
12282 hardcode_minus_L=yes
12283 hardcode_shlibpath_var=no
12284 ;;
12285
12286 sysv4)
12287 case $host_vendor in
12288 sni)
12289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12290 hardcode_direct=yes # is this really true???
12291 ;;
12292 siemens)
12293 ## LD is ld it makes a PLAMLIB
12294 ## CC just makes a GrossModule.
12295 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12296 reload_cmds='$CC -r -o $output$reload_objs'
12297 hardcode_direct=no
12298 ;;
12299 motorola)
12300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12301 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12302 ;;
12303 esac
12304 runpath_var='LD_RUN_PATH'
12305 hardcode_shlibpath_var=no
12306 ;;
12307
12308 sysv4.3*)
12309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12310 hardcode_shlibpath_var=no
12311 export_dynamic_flag_spec='-Bexport'
12312 ;;
12313
12314 sysv4*MP*)
12315 if test -d /usr/nec; then
12316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12317 hardcode_shlibpath_var=no
12318 runpath_var=LD_RUN_PATH
12319 hardcode_runpath_var=yes
12320 ld_shlibs=yes
12321 fi
12322 ;;
12323
12324 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12325 no_undefined_flag='$wl-z,text'
12326 archive_cmds_need_lc=no
12327 hardcode_shlibpath_var=no
12328 runpath_var='LD_RUN_PATH'
12329
12330 if test yes = "$GCC"; then
12331 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12332 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12333 else
12334 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336 fi
12337 ;;
12338
12339 sysv5* | sco3.2v5* | sco5v6*)
12340 # Note: We CANNOT use -z defs as we might desire, because we do not
12341 # link with -lc, and that would cause any symbols used from libc to
12342 # always be unresolved, which means just about no library would
12343 # ever link correctly. If we're not using GNU ld we use -z text
12344 # though, which does catch some bad symbols but isn't as heavy-handed
12345 # as -z defs.
12346 no_undefined_flag='$wl-z,text'
12347 allow_undefined_flag='$wl-z,nodefs'
12348 archive_cmds_need_lc=no
12349 hardcode_shlibpath_var=no
12350 hardcode_libdir_flag_spec='$wl-R,$libdir'
12351 hardcode_libdir_separator=':'
12352 link_all_deplibs=yes
12353 export_dynamic_flag_spec='$wl-Bexport'
12354 runpath_var='LD_RUN_PATH'
12355
12356 if test yes = "$GCC"; then
12357 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12358 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12359 else
12360 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12361 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12362 fi
12363 ;;
12364
12365 uts4*)
12366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12367 hardcode_libdir_flag_spec='-L$libdir'
12368 hardcode_shlibpath_var=no
12369 ;;
12370
12371 *)
12372 ld_shlibs=no
12373 ;;
12374 esac
12375
12376 if test sni = "$host_vendor"; then
12377 case $host in
12378 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12379 export_dynamic_flag_spec='$wl-Blargedynsym'
12380 ;;
12381 esac
12382 fi
12383 fi
12384
12385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12386 printf "%s\n" "$ld_shlibs" >&6; }
12387 test no = "$ld_shlibs" && can_build_shared=no
12388
12389 with_gnu_ld=$with_gnu_ld
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405 #
12406 # Do we need to explicitly link libc?
12407 #
12408 case "x$archive_cmds_need_lc" in
12409 x|xyes)
12410 # Assume -lc should be added
12411 archive_cmds_need_lc=yes
12412
12413 if test yes,yes = "$GCC,$enable_shared"; then
12414 case $archive_cmds in
12415 *'~'*)
12416 # FIXME: we may have to deal with multi-command sequences.
12417 ;;
12418 '$CC '*)
12419 # Test whether the compiler implicitly links with -lc since on some
12420 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12421 # to ld, don't add -lc before -lgcc.
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12423 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12424 if test ${lt_cv_archive_cmds_need_lc+y}
12425 then :
12426 printf %s "(cached) " >&6
12427 else case e in #(
12428 e) $RM conftest*
12429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12430
12431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12432 (eval $ac_compile) 2>&5
12433 ac_status=$?
12434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12435 test $ac_status = 0; } 2>conftest.err; then
12436 soname=conftest
12437 lib=conftest
12438 libobjs=conftest.$ac_objext
12439 deplibs=
12440 wl=$lt_prog_compiler_wl
12441 pic_flag=$lt_prog_compiler_pic
12442 compiler_flags=-v
12443 linker_flags=-v
12444 verstring=
12445 output_objdir=.
12446 libname=conftest
12447 lt_save_allow_undefined_flag=$allow_undefined_flag
12448 allow_undefined_flag=
12449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12450 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12451 ac_status=$?
12452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12453 test $ac_status = 0; }
12454 then
12455 lt_cv_archive_cmds_need_lc=no
12456 else
12457 lt_cv_archive_cmds_need_lc=yes
12458 fi
12459 allow_undefined_flag=$lt_save_allow_undefined_flag
12460 else
12461 cat conftest.err 1>&5
12462 fi
12463 $RM conftest*
12464 ;;
12465 esac
12466 fi
12467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12468 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12469 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12470 ;;
12471 esac
12472 fi
12473 ;;
12474 esac
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12628 printf %s "checking dynamic linker characteristics... " >&6; }
12629
12630 if test yes = "$GCC"; then
12631 case $host_os in
12632 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12633 *) lt_awk_arg='/^libraries:/' ;;
12634 esac
12635 case $host_os in
12636 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12637 *) lt_sed_strip_eq='s|=/|/|g' ;;
12638 esac
12639 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12640 case $lt_search_path_spec in
12641 *\;*)
12642 # if the path contains ";" then we assume it to be the separator
12643 # otherwise default to the standard path separator (i.e. ":") - it is
12644 # assumed that no part of a normal pathname contains ";" but that should
12645 # okay in the real world where ";" in dirpaths is itself problematic.
12646 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12647 ;;
12648 *)
12649 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12650 ;;
12651 esac
12652 # Ok, now we have the path, separated by spaces, we can step through it
12653 # and add multilib dir if necessary...
12654 lt_tmp_lt_search_path_spec=
12655 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12656 # ...but if some path component already ends with the multilib dir we assume
12657 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12658 case "$lt_multi_os_dir; $lt_search_path_spec " in
12659 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12660 lt_multi_os_dir=
12661 ;;
12662 esac
12663 for lt_sys_path in $lt_search_path_spec; do
12664 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12665 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12666 elif test -n "$lt_multi_os_dir"; then
12667 test -d "$lt_sys_path" && \
12668 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12669 fi
12670 done
12671 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12672 BEGIN {RS = " "; FS = "/|\n";} {
12673 lt_foo = "";
12674 lt_count = 0;
12675 for (lt_i = NF; lt_i > 0; lt_i--) {
12676 if ($lt_i != "" && $lt_i != ".") {
12677 if ($lt_i == "..") {
12678 lt_count++;
12679 } else {
12680 if (lt_count == 0) {
12681 lt_foo = "/" $lt_i lt_foo;
12682 } else {
12683 lt_count--;
12684 }
12685 }
12686 }
12687 }
12688 if (lt_foo != "") { lt_freq[lt_foo]++; }
12689 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12690 }'`
12691 # AWK program above erroneously prepends '/' to C:/dos/paths
12692 # for these hosts.
12693 case $host_os in
12694 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12695 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12696 esac
12697 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12698 else
12699 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12700 fi
12701 library_names_spec=
12702 libname_spec='lib$name'
12703 soname_spec=
12704 shrext_cmds=.so
12705 postinstall_cmds=
12706 postuninstall_cmds=
12707 finish_cmds=
12708 finish_eval=
12709 shlibpath_var=
12710 shlibpath_overrides_runpath=unknown
12711 version_type=none
12712 dynamic_linker="$host_os ld.so"
12713 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12714 need_lib_prefix=unknown
12715 hardcode_into_libs=no
12716
12717 # when you set need_version to no, make sure it does not cause -set_version
12718 # flags to be left without arguments
12719 need_version=unknown
12720
12721
12722
12723 case $host_os in
12724 aix3*)
12725 version_type=linux # correct to gnu/linux during the next big refactor
12726 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12727 shlibpath_var=LIBPATH
12728
12729 # AIX 3 has no versioning support, so we append a major version to the name.
12730 soname_spec='$libname$release$shared_ext$major'
12731 ;;
12732
12733 aix[4-9]*)
12734 version_type=linux # correct to gnu/linux during the next big refactor
12735 need_lib_prefix=no
12736 need_version=no
12737 hardcode_into_libs=yes
12738 if test ia64 = "$host_cpu"; then
12739 # AIX 5 supports IA64
12740 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 else
12743 # With GCC up to 2.95.x, collect2 would create an import file
12744 # for dependence libraries. The import file would start with
12745 # the line '#! .'. This would cause the generated library to
12746 # depend on '.', always an invalid library. This was fixed in
12747 # development snapshots of GCC prior to 3.0.
12748 case $host_os in
12749 aix4 | aix4.[01] | aix4.[01].*)
12750 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12751 echo ' yes '
12752 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12753 :
12754 else
12755 can_build_shared=no
12756 fi
12757 ;;
12758 esac
12759 # Using Import Files as archive members, it is possible to support
12760 # filename-based versioning of shared library archives on AIX. While
12761 # this would work for both with and without runtime linking, it will
12762 # prevent static linking of such archives. So we do filename-based
12763 # shared library versioning with .so extension only, which is used
12764 # when both runtime linking and shared linking is enabled.
12765 # Unfortunately, runtime linking may impact performance, so we do
12766 # not want this to be the default eventually. Also, we use the
12767 # versioned .so libs for executables only if there is the -brtl
12768 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12769 # To allow for filename-based versioning support, we need to create
12770 # libNAME.so.V as an archive file, containing:
12771 # *) an Import File, referring to the versioned filename of the
12772 # archive as well as the shared archive member, telling the
12773 # bitwidth (32 or 64) of that shared object, and providing the
12774 # list of exported symbols of that shared object, eventually
12775 # decorated with the 'weak' keyword
12776 # *) the shared object with the F_LOADONLY flag set, to really avoid
12777 # it being seen by the linker.
12778 # At run time we better use the real file rather than another symlink,
12779 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12780
12781 case $with_aix_soname,$aix_use_runtimelinking in
12782 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12783 # soname into executable. Probably we can add versioning support to
12784 # collect2, so additional links can be useful in future.
12785 aix,yes) # traditional libtool
12786 dynamic_linker='AIX unversionable lib.so'
12787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12788 # instead of lib<name>.a to let people know that these are not
12789 # typical AIX shared libraries.
12790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12791 ;;
12792 aix,no) # traditional AIX only
12793 dynamic_linker='AIX lib.a(lib.so.V)'
12794 # We preserve .a as extension for shared libraries through AIX4.2
12795 # and later when we are not doing run time linking.
12796 library_names_spec='$libname$release.a $libname.a'
12797 soname_spec='$libname$release$shared_ext$major'
12798 ;;
12799 svr4,*) # full svr4 only
12800 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12801 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12802 # We do not specify a path in Import Files, so LIBPATH fires.
12803 shlibpath_overrides_runpath=yes
12804 ;;
12805 *,yes) # both, prefer svr4
12806 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12807 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12808 # unpreferred sharedlib libNAME.a needs extra handling
12809 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"'
12810 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"'
12811 # We do not specify a path in Import Files, so LIBPATH fires.
12812 shlibpath_overrides_runpath=yes
12813 ;;
12814 *,no) # both, prefer aix
12815 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12816 library_names_spec='$libname$release.a $libname.a'
12817 soname_spec='$libname$release$shared_ext$major'
12818 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12819 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)'
12820 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"'
12821 ;;
12822 esac
12823 shlibpath_var=LIBPATH
12824 fi
12825 ;;
12826
12827 amigaos*)
12828 case $host_cpu in
12829 powerpc)
12830 # Since July 2007 AmigaOS4 officially supports .so libraries.
12831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12833 ;;
12834 m68k)
12835 library_names_spec='$libname.ixlibrary $libname.a'
12836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12837 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'
12838 ;;
12839 esac
12840 ;;
12841
12842 beos*)
12843 library_names_spec='$libname$shared_ext'
12844 dynamic_linker="$host_os ld.so"
12845 shlibpath_var=LIBRARY_PATH
12846 ;;
12847
12848 bsdi[45]*)
12849 version_type=linux # correct to gnu/linux during the next big refactor
12850 need_version=no
12851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12852 soname_spec='$libname$release$shared_ext$major'
12853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12854 shlibpath_var=LD_LIBRARY_PATH
12855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12857 # the default ld.so.conf also contains /usr/contrib/lib and
12858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12859 # libtool to hard-code these into programs
12860 ;;
12861
12862 cygwin* | mingw* | windows* | pw32* | cegcc*)
12863 version_type=windows
12864 shrext_cmds=.dll
12865 need_version=no
12866 need_lib_prefix=no
12867
12868 case $GCC,$cc_basename in
12869 yes,*)
12870 # gcc
12871 library_names_spec='$libname.dll.a'
12872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12873 # If user builds GCC with multilib enabled,
12874 # it should just install on $(libdir)
12875 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12876 if test xyes = x"$multilib"; then
12877 postinstall_cmds='base_file=`basename \$file`~
12878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12879 dldir=$destdir/`dirname \$dlpath`~
12880 $install_prog $dir/$dlname $destdir/$dlname~
12881 chmod a+x $destdir/$dlname~
12882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12883 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12884 fi'
12885 else
12886 postinstall_cmds='base_file=`basename \$file`~
12887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12888 dldir=$destdir/`dirname \$dlpath`~
12889 test -d \$dldir || mkdir -p \$dldir~
12890 $install_prog $dir/$dlname \$dldir/$dlname~
12891 chmod a+x \$dldir/$dlname~
12892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12894 fi'
12895 fi
12896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12897 dlpath=$dir/\$dldll~
12898 $RM \$dlpath'
12899 shlibpath_overrides_runpath=yes
12900
12901 case $host_os in
12902 cygwin*)
12903 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12904 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12905
12906 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12907 ;;
12908 mingw* | windows* | cegcc*)
12909 # MinGW DLLs use traditional 'lib' prefix
12910 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12911 ;;
12912 pw32*)
12913 # pw32 DLLs use 'pw' prefix rather than 'lib'
12914 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12915 ;;
12916 esac
12917 dynamic_linker='Win32 ld.exe'
12918 ;;
12919
12920 *,cl* | *,icl*)
12921 # Native MSVC or ICC
12922 libname_spec='$name'
12923 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12924 library_names_spec='$libname.dll.lib'
12925
12926 case $build_os in
12927 mingw* | windows*)
12928 sys_lib_search_path_spec=
12929 lt_save_ifs=$IFS
12930 IFS=';'
12931 for lt_path in $LIB
12932 do
12933 IFS=$lt_save_ifs
12934 # Let DOS variable expansion print the short 8.3 style file name.
12935 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12936 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12937 done
12938 IFS=$lt_save_ifs
12939 # Convert to MSYS style.
12940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12941 ;;
12942 cygwin*)
12943 # Convert to unix form, then to dos form, then back to unix form
12944 # but this time dos style (no spaces!) so that the unix form looks
12945 # like /cygdrive/c/PROGRA~1:/cygdr...
12946 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12947 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12948 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12949 ;;
12950 *)
12951 sys_lib_search_path_spec=$LIB
12952 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12953 # It is most probably a Windows format PATH.
12954 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12955 else
12956 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12957 fi
12958 # FIXME: find the short name or the path components, as spaces are
12959 # common. (e.g. "Program Files" -> "PROGRA~1")
12960 ;;
12961 esac
12962
12963 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12964 postinstall_cmds='base_file=`basename \$file`~
12965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12966 dldir=$destdir/`dirname \$dlpath`~
12967 test -d \$dldir || mkdir -p \$dldir~
12968 $install_prog $dir/$dlname \$dldir/$dlname'
12969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12970 dlpath=$dir/\$dldll~
12971 $RM \$dlpath'
12972 shlibpath_overrides_runpath=yes
12973 dynamic_linker='Win32 link.exe'
12974 ;;
12975
12976 *)
12977 # Assume MSVC and ICC wrapper
12978 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12979 dynamic_linker='Win32 ld.exe'
12980 ;;
12981 esac
12982 # FIXME: first we should search . and the directory the executable is in
12983 shlibpath_var=PATH
12984 ;;
12985
12986 darwin* | rhapsody*)
12987 dynamic_linker="$host_os dyld"
12988 version_type=darwin
12989 need_lib_prefix=no
12990 need_version=no
12991 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12992 soname_spec='$libname$release$major$shared_ext'
12993 shlibpath_overrides_runpath=yes
12994 shlibpath_var=DYLD_LIBRARY_PATH
12995 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12996
12997 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12998 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12999 ;;
13000
13001 dgux*)
13002 version_type=linux # correct to gnu/linux during the next big refactor
13003 need_lib_prefix=no
13004 need_version=no
13005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13006 soname_spec='$libname$release$shared_ext$major'
13007 shlibpath_var=LD_LIBRARY_PATH
13008 ;;
13009
13010 freebsd* | dragonfly* | midnightbsd*)
13011 # DragonFly does not have aout. When/if they implement a new
13012 # versioning mechanism, adjust this.
13013 if test -x /usr/bin/objformat; then
13014 objformat=`/usr/bin/objformat`
13015 else
13016 case $host_os in
13017 freebsd[23].*) objformat=aout ;;
13018 *) objformat=elf ;;
13019 esac
13020 fi
13021 version_type=freebsd-$objformat
13022 case $version_type in
13023 freebsd-elf*)
13024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13025 soname_spec='$libname$release$shared_ext$major'
13026 need_version=no
13027 need_lib_prefix=no
13028 ;;
13029 freebsd-*)
13030 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13031 need_version=yes
13032 ;;
13033 esac
13034 case $host_cpu in
13035 powerpc64)
13036 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13037 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040 int test_pointer_size[sizeof (void *) - 5];
13041
13042 _ACEOF
13043 if ac_fn_c_try_compile "$LINENO"
13044 then :
13045 shlibpath_var=LD_LIBRARY_PATH
13046 else case e in #(
13047 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13048 esac
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13051 ;;
13052 *)
13053 shlibpath_var=LD_LIBRARY_PATH
13054 ;;
13055 esac
13056 case $host_os in
13057 freebsd2.*)
13058 shlibpath_overrides_runpath=yes
13059 ;;
13060 freebsd3.[01]* | freebsdelf3.[01]*)
13061 shlibpath_overrides_runpath=yes
13062 hardcode_into_libs=yes
13063 ;;
13064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13066 shlibpath_overrides_runpath=no
13067 hardcode_into_libs=yes
13068 ;;
13069 *) # from 4.6 on, and DragonFly
13070 shlibpath_overrides_runpath=yes
13071 hardcode_into_libs=yes
13072 ;;
13073 esac
13074 ;;
13075
13076 haiku*)
13077 version_type=linux # correct to gnu/linux during the next big refactor
13078 need_lib_prefix=no
13079 need_version=no
13080 dynamic_linker="$host_os runtime_loader"
13081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13082 soname_spec='$libname$release$shared_ext$major'
13083 shlibpath_var=LIBRARY_PATH
13084 shlibpath_overrides_runpath=no
13085 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13086 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13087 hardcode_into_libs=no
13088 ;;
13089
13090 hpux9* | hpux10* | hpux11*)
13091 # Give a soname corresponding to the major version so that dld.sl refuses to
13092 # link against other versions.
13093 version_type=sunos
13094 need_lib_prefix=no
13095 need_version=no
13096 case $host_cpu in
13097 ia64*)
13098 shrext_cmds='.so'
13099 hardcode_into_libs=yes
13100 dynamic_linker="$host_os dld.so"
13101 shlibpath_var=LD_LIBRARY_PATH
13102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13104 soname_spec='$libname$release$shared_ext$major'
13105 if test 32 = "$HPUX_IA64_MODE"; then
13106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13107 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13108 else
13109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13110 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13111 fi
13112 ;;
13113 hppa*64*)
13114 shrext_cmds='.sl'
13115 hardcode_into_libs=yes
13116 dynamic_linker="$host_os dld.sl"
13117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13120 soname_spec='$libname$release$shared_ext$major'
13121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13123 ;;
13124 *)
13125 shrext_cmds='.sl'
13126 dynamic_linker="$host_os dld.sl"
13127 shlibpath_var=SHLIB_PATH
13128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13130 soname_spec='$libname$release$shared_ext$major'
13131 ;;
13132 esac
13133 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13134 postinstall_cmds='chmod 555 $lib'
13135 # or fails outright, so override atomically:
13136 install_override_mode=555
13137 ;;
13138
13139 interix[3-9]*)
13140 version_type=linux # correct to gnu/linux during the next big refactor
13141 need_lib_prefix=no
13142 need_version=no
13143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13144 soname_spec='$libname$release$shared_ext$major'
13145 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13146 shlibpath_var=LD_LIBRARY_PATH
13147 shlibpath_overrides_runpath=no
13148 hardcode_into_libs=yes
13149 ;;
13150
13151 irix5* | irix6* | nonstopux*)
13152 case $host_os in
13153 nonstopux*) version_type=nonstopux ;;
13154 *)
13155 if test yes = "$lt_cv_prog_gnu_ld"; then
13156 version_type=linux # correct to gnu/linux during the next big refactor
13157 else
13158 version_type=irix
13159 fi ;;
13160 esac
13161 need_lib_prefix=no
13162 need_version=no
13163 soname_spec='$libname$release$shared_ext$major'
13164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13165 case $host_os in
13166 irix5* | nonstopux*)
13167 libsuff= shlibsuff=
13168 ;;
13169 *)
13170 case $LD in # libtool.m4 will add one of these switches to LD
13171 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13172 libsuff= shlibsuff= libmagic=32-bit;;
13173 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13174 libsuff=32 shlibsuff=N32 libmagic=N32;;
13175 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13176 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13177 *) libsuff= shlibsuff= libmagic=never-match;;
13178 esac
13179 ;;
13180 esac
13181 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13182 shlibpath_overrides_runpath=no
13183 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13184 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13185 hardcode_into_libs=yes
13186 ;;
13187
13188 # No shared lib support for Linux oldld, aout, or coff.
13189 linux*oldld* | linux*aout* | linux*coff*)
13190 dynamic_linker=no
13191 ;;
13192
13193 linux*android*)
13194 version_type=none # Android doesn't support versioned libraries.
13195 need_lib_prefix=no
13196 need_version=no
13197 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13198 soname_spec='$libname$release$shared_ext'
13199 finish_cmds=
13200 shlibpath_var=LD_LIBRARY_PATH
13201 shlibpath_overrides_runpath=yes
13202
13203 # This implies no fast_install, which is unacceptable.
13204 # Some rework will be needed to allow for fast_install
13205 # before this can be enabled.
13206 hardcode_into_libs=yes
13207
13208 dynamic_linker='Android linker'
13209 # -rpath works at least for libraries that are not overridden by
13210 # libraries installed in system locations.
13211 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13212 ;;
13213
13214 # This must be glibc/ELF.
13215 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13216 version_type=linux # correct to gnu/linux during the next big refactor
13217 need_lib_prefix=no
13218 need_version=no
13219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13220 soname_spec='$libname$release$shared_ext$major'
13221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 shlibpath_overrides_runpath=no
13224
13225 # Some binutils ld are patched to set DT_RUNPATH
13226 if test ${lt_cv_shlibpath_overrides_runpath+y}
13227 then :
13228 printf %s "(cached) " >&6
13229 else case e in #(
13230 e) lt_cv_shlibpath_overrides_runpath=no
13231 save_LDFLAGS=$LDFLAGS
13232 save_libdir=$libdir
13233 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13234 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237
13238 int
13239 main (void)
13240 {
13241
13242 ;
13243 return 0;
13244 }
13245 _ACEOF
13246 if ac_fn_c_try_link "$LINENO"
13247 then :
13248 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13249 then :
13250 lt_cv_shlibpath_overrides_runpath=yes
13251 fi
13252 fi
13253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13254 conftest$ac_exeext conftest.$ac_ext
13255 LDFLAGS=$save_LDFLAGS
13256 libdir=$save_libdir
13257 ;;
13258 esac
13259 fi
13260
13261 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13262
13263 # This implies no fast_install, which is unacceptable.
13264 # Some rework will be needed to allow for fast_install
13265 # before this can be enabled.
13266 hardcode_into_libs=yes
13267
13268 # Ideally, we could use ldconfig to report *all* directories which are
13269 # searched for libraries, however this is still not possible. Aside from not
13270 # being certain /sbin/ldconfig is available, command
13271 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13272 # even though it is searched at run-time. Try to do the best guess by
13273 # appending ld.so.conf contents (and includes) to the search path.
13274 if test -f /etc/ld.so.conf; then
13275 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' ' '`
13276 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13277 fi
13278
13279 # We used to test for /lib/ld.so.1 and disable shared libraries on
13280 # powerpc, because MkLinux only supported shared libraries with the
13281 # GNU dynamic linker. Since this was broken with cross compilers,
13282 # most powerpc-linux boxes support dynamic linking these days and
13283 # people can always --disable-shared, the test was removed, and we
13284 # assume the GNU/Linux dynamic linker is in use.
13285 dynamic_linker='GNU/Linux ld.so'
13286 ;;
13287
13288 netbsdelf*-gnu)
13289 version_type=linux
13290 need_lib_prefix=no
13291 need_version=no
13292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13293 soname_spec='$libname$release$shared_ext$major'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 shlibpath_overrides_runpath=no
13296 hardcode_into_libs=yes
13297 dynamic_linker='NetBSD ld.elf_so'
13298 ;;
13299
13300 netbsd*)
13301 version_type=sunos
13302 need_lib_prefix=no
13303 need_version=no
13304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13305 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13307 dynamic_linker='NetBSD (a.out) ld.so'
13308 else
13309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13310 soname_spec='$libname$release$shared_ext$major'
13311 dynamic_linker='NetBSD ld.elf_so'
13312 fi
13313 shlibpath_var=LD_LIBRARY_PATH
13314 shlibpath_overrides_runpath=yes
13315 hardcode_into_libs=yes
13316 ;;
13317
13318 *-mlibc)
13319 version_type=linux # correct to gnu/linux during the next big refactor
13320 need_lib_prefix=no
13321 need_version=no
13322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13323 soname_spec='$libname$release$shared_ext$major'
13324 dynamic_linker='mlibc ld.so'
13325 shlibpath_var=LD_LIBRARY_PATH
13326 shlibpath_overrides_runpath=no
13327 hardcode_into_libs=yes
13328 ;;
13329
13330 newsos6)
13331 version_type=linux # correct to gnu/linux during the next big refactor
13332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13333 shlibpath_var=LD_LIBRARY_PATH
13334 shlibpath_overrides_runpath=yes
13335 ;;
13336
13337 *nto* | *qnx*)
13338 version_type=qnx
13339 need_lib_prefix=no
13340 need_version=no
13341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13342 soname_spec='$libname$release$shared_ext$major'
13343 shlibpath_var=LD_LIBRARY_PATH
13344 shlibpath_overrides_runpath=no
13345 hardcode_into_libs=yes
13346 dynamic_linker='ldqnx.so'
13347 ;;
13348
13349 openbsd*)
13350 version_type=sunos
13351 sys_lib_dlsearch_path_spec=/usr/lib
13352 need_lib_prefix=no
13353 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13354 need_version=no
13355 else
13356 need_version=yes
13357 fi
13358 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13360 shlibpath_var=LD_LIBRARY_PATH
13361 shlibpath_overrides_runpath=yes
13362 ;;
13363
13364 os2*)
13365 libname_spec='$name'
13366 version_type=windows
13367 shrext_cmds=.dll
13368 need_version=no
13369 need_lib_prefix=no
13370 # OS/2 can only load a DLL with a base name of 8 characters or less.
13371 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13372 v=$($ECHO $release$versuffix | tr -d .-);
13373 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13374 $ECHO $n$v`$shared_ext'
13375 library_names_spec='${libname}_dll.$libext'
13376 dynamic_linker='OS/2 ld.exe'
13377 shlibpath_var=BEGINLIBPATH
13378 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13380 postinstall_cmds='base_file=`basename \$file`~
13381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13382 dldir=$destdir/`dirname \$dlpath`~
13383 test -d \$dldir || mkdir -p \$dldir~
13384 $install_prog $dir/$dlname \$dldir/$dlname~
13385 chmod a+x \$dldir/$dlname~
13386 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13387 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13388 fi'
13389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13390 dlpath=$dir/\$dldll~
13391 $RM \$dlpath'
13392 ;;
13393
13394 osf3* | osf4* | osf5*)
13395 version_type=osf
13396 need_lib_prefix=no
13397 need_version=no
13398 soname_spec='$libname$release$shared_ext$major'
13399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13403 ;;
13404
13405 rdos*)
13406 dynamic_linker=no
13407 ;;
13408
13409 serenity*)
13410 version_type=linux # correct to gnu/linux during the next big refactor
13411 need_lib_prefix=no
13412 need_version=no
13413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13414 soname_spec='$libname$release$shared_ext$major'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath=no
13417 dynamic_linker='SerenityOS LibELF'
13418 ;;
13419
13420 solaris*)
13421 version_type=linux # correct to gnu/linux during the next big refactor
13422 need_lib_prefix=no
13423 need_version=no
13424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13425 soname_spec='$libname$release$shared_ext$major'
13426 shlibpath_var=LD_LIBRARY_PATH
13427 shlibpath_overrides_runpath=yes
13428 hardcode_into_libs=yes
13429 # ldd complains unless libraries are executable
13430 postinstall_cmds='chmod +x $lib'
13431 ;;
13432
13433 sunos4*)
13434 version_type=sunos
13435 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13436 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 shlibpath_overrides_runpath=yes
13439 if test yes = "$with_gnu_ld"; then
13440 need_lib_prefix=no
13441 fi
13442 need_version=yes
13443 ;;
13444
13445 sysv4 | sysv4.3*)
13446 version_type=linux # correct to gnu/linux during the next big refactor
13447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13448 soname_spec='$libname$release$shared_ext$major'
13449 shlibpath_var=LD_LIBRARY_PATH
13450 case $host_vendor in
13451 sni)
13452 shlibpath_overrides_runpath=no
13453 need_lib_prefix=no
13454 runpath_var=LD_RUN_PATH
13455 ;;
13456 siemens)
13457 need_lib_prefix=no
13458 ;;
13459 motorola)
13460 need_lib_prefix=no
13461 need_version=no
13462 shlibpath_overrides_runpath=no
13463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13464 ;;
13465 esac
13466 ;;
13467
13468 sysv4*MP*)
13469 if test -d /usr/nec; then
13470 version_type=linux # correct to gnu/linux during the next big refactor
13471 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13472 soname_spec='$libname$shared_ext.$major'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 fi
13475 ;;
13476
13477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13478 version_type=sco
13479 need_lib_prefix=no
13480 need_version=no
13481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13482 soname_spec='$libname$release$shared_ext$major'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 shlibpath_overrides_runpath=yes
13485 hardcode_into_libs=yes
13486 if test yes = "$with_gnu_ld"; then
13487 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13488 else
13489 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13490 case $host_os in
13491 sco3.2v5*)
13492 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13493 ;;
13494 esac
13495 fi
13496 sys_lib_dlsearch_path_spec='/usr/lib'
13497 ;;
13498
13499 tpf*)
13500 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13501 version_type=linux # correct to gnu/linux during the next big refactor
13502 need_lib_prefix=no
13503 need_version=no
13504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13505 shlibpath_var=LD_LIBRARY_PATH
13506 shlibpath_overrides_runpath=no
13507 hardcode_into_libs=yes
13508 ;;
13509
13510 uts4*)
13511 version_type=linux # correct to gnu/linux during the next big refactor
13512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13513 soname_spec='$libname$release$shared_ext$major'
13514 shlibpath_var=LD_LIBRARY_PATH
13515 ;;
13516
13517 emscripten*)
13518 version_type=none
13519 need_lib_prefix=no
13520 need_version=no
13521 library_names_spec='$libname$release$shared_ext'
13522 soname_spec='$libname$release$shared_ext'
13523 finish_cmds=
13524 dynamic_linker="Emscripten linker"
13525 lt_prog_compiler_wl=
13526 lt_prog_compiler_pic=
13527 lt_prog_compiler_static=
13528
13529
13530 if test yes = "$GCC"; then
13531 lt_prog_compiler_wl='-Wl,'
13532 lt_prog_compiler_static='-static'
13533
13534 case $host_os in
13535 aix*)
13536 # All AIX code is PIC.
13537 if test ia64 = "$host_cpu"; then
13538 # AIX 5 now supports IA64 processor
13539 lt_prog_compiler_static='-Bstatic'
13540 fi
13541 lt_prog_compiler_pic='-fPIC'
13542 ;;
13543
13544 amigaos*)
13545 case $host_cpu in
13546 powerpc)
13547 # see comment about AmigaOS4 .so support
13548 lt_prog_compiler_pic='-fPIC'
13549 ;;
13550 m68k)
13551 # FIXME: we need at least 68020 code to build shared libraries, but
13552 # adding the '-m68020' flag to GCC prevents building anything better,
13553 # like '-m68040'.
13554 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13555 ;;
13556 esac
13557 ;;
13558
13559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13560 # PIC is the default for these OSes.
13561 ;;
13562
13563 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13564 # This hack is so that the source file can tell whether it is being
13565 # built for inclusion in a dll (and should export symbols for example).
13566 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13567 # (--disable-auto-import) libraries
13568 lt_prog_compiler_pic='-DDLL_EXPORT'
13569 case $host_os in
13570 os2*)
13571 lt_prog_compiler_static='$wl-static'
13572 ;;
13573 esac
13574 ;;
13575
13576 darwin* | rhapsody*)
13577 # PIC is the default on this platform
13578 # Common symbols not allowed in MH_DYLIB files
13579 lt_prog_compiler_pic='-fno-common'
13580 ;;
13581
13582 haiku*)
13583 # PIC is the default for Haiku.
13584 # The "-static" flag exists, but is broken.
13585 lt_prog_compiler_static=
13586 ;;
13587
13588 hpux*)
13589 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13590 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13591 # sets the default TLS model and affects inlining.
13592 case $host_cpu in
13593 hppa*64*)
13594 # +Z the default
13595 ;;
13596 *)
13597 lt_prog_compiler_pic='-fPIC'
13598 ;;
13599 esac
13600 ;;
13601
13602 interix[3-9]*)
13603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13604 # Instead, we relocate shared libraries at runtime.
13605 ;;
13606
13607 msdosdjgpp*)
13608 # Just because we use GCC doesn't mean we suddenly get shared libraries
13609 # on systems that don't support them.
13610 lt_prog_compiler_can_build_shared=no
13611 enable_shared=no
13612 ;;
13613
13614 *nto* | *qnx*)
13615 # QNX uses GNU C++, but need to define -shared option too, otherwise
13616 # it will coredump.
13617 lt_prog_compiler_pic='-fPIC -shared'
13618 ;;
13619
13620 sysv4*MP*)
13621 if test -d /usr/nec; then
13622 lt_prog_compiler_pic=-Kconform_pic
13623 fi
13624 ;;
13625
13626 *)
13627 lt_prog_compiler_pic='-fPIC'
13628 ;;
13629 esac
13630
13631 case $cc_basename in
13632 nvcc*) # Cuda Compiler Driver 2.2
13633 lt_prog_compiler_wl='-Xlinker '
13634 if test -n "$lt_prog_compiler_pic"; then
13635 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13636 fi
13637 ;;
13638 esac
13639 else
13640 # PORTME Check for flag to pass linker flags through the system compiler.
13641 case $host_os in
13642 aix*)
13643 lt_prog_compiler_wl='-Wl,'
13644 if test ia64 = "$host_cpu"; then
13645 # AIX 5 now supports IA64 processor
13646 lt_prog_compiler_static='-Bstatic'
13647 else
13648 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13649 fi
13650 ;;
13651
13652 darwin* | rhapsody*)
13653 # PIC is the default on this platform
13654 # Common symbols not allowed in MH_DYLIB files
13655 lt_prog_compiler_pic='-fno-common'
13656 case $cc_basename in
13657 nagfor*)
13658 # NAG Fortran compiler
13659 lt_prog_compiler_wl='-Wl,-Wl,,'
13660 lt_prog_compiler_pic='-PIC'
13661 lt_prog_compiler_static='-Bstatic'
13662 ;;
13663 esac
13664 ;;
13665
13666 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13667 # This hack is so that the source file can tell whether it is being
13668 # built for inclusion in a dll (and should export symbols for example).
13669 lt_prog_compiler_pic='-DDLL_EXPORT'
13670 case $host_os in
13671 os2*)
13672 lt_prog_compiler_static='$wl-static'
13673 ;;
13674 esac
13675 ;;
13676
13677 hpux9* | hpux10* | hpux11*)
13678 lt_prog_compiler_wl='-Wl,'
13679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13680 # not for PA HP-UX.
13681 case $host_cpu in
13682 hppa*64*|ia64*)
13683 # +Z the default
13684 ;;
13685 *)
13686 lt_prog_compiler_pic='+Z'
13687 ;;
13688 esac
13689 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13690 lt_prog_compiler_static='$wl-a ${wl}archive'
13691 ;;
13692
13693 irix5* | irix6* | nonstopux*)
13694 lt_prog_compiler_wl='-Wl,'
13695 # PIC (with -KPIC) is the default.
13696 lt_prog_compiler_static='-non_shared'
13697 ;;
13698
13699 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13700 case $cc_basename in
13701 # old Intel for x86_64, which still supported -KPIC.
13702 ecc*)
13703 lt_prog_compiler_wl='-Wl,'
13704 lt_prog_compiler_pic='-KPIC'
13705 lt_prog_compiler_static='-static'
13706 ;;
13707 *flang* | ftn | f18* | f95*)
13708 # Flang compiler.
13709 lt_prog_compiler_wl='-Wl,'
13710 lt_prog_compiler_pic='-fPIC'
13711 lt_prog_compiler_static='-static'
13712 ;;
13713 # icc used to be incompatible with GCC.
13714 # ICC 10 doesn't accept -KPIC any more.
13715 icc* | ifort*)
13716 lt_prog_compiler_wl='-Wl,'
13717 lt_prog_compiler_pic='-fPIC'
13718 lt_prog_compiler_static='-static'
13719 ;;
13720 # Lahey Fortran 8.1.
13721 lf95*)
13722 lt_prog_compiler_wl='-Wl,'
13723 lt_prog_compiler_pic='--shared'
13724 lt_prog_compiler_static='--static'
13725 ;;
13726 nagfor*)
13727 # NAG Fortran compiler
13728 lt_prog_compiler_wl='-Wl,-Wl,,'
13729 lt_prog_compiler_pic='-PIC'
13730 lt_prog_compiler_static='-Bstatic'
13731 ;;
13732 tcc*)
13733 # Fabrice Bellard et al's Tiny C Compiler
13734 lt_prog_compiler_wl='-Wl,'
13735 lt_prog_compiler_pic='-fPIC'
13736 lt_prog_compiler_static='-static'
13737 ;;
13738 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13739 # Portland Group compilers (*not* the Pentium gcc compiler,
13740 # which looks to be a dead project)
13741 lt_prog_compiler_wl='-Wl,'
13742 lt_prog_compiler_pic='-fpic'
13743 lt_prog_compiler_static='-Bstatic'
13744 ;;
13745 ccc*)
13746 lt_prog_compiler_wl='-Wl,'
13747 # All Alpha code is PIC.
13748 lt_prog_compiler_static='-non_shared'
13749 ;;
13750 xl* | bgxl* | bgf* | mpixl*)
13751 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13752 lt_prog_compiler_wl='-Wl,'
13753 lt_prog_compiler_pic='-qpic'
13754 lt_prog_compiler_static='-qstaticlink'
13755 ;;
13756 *)
13757 case `$CC -V 2>&1 | $SED 5q` in
13758 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13760 lt_prog_compiler_pic='-KPIC'
13761 lt_prog_compiler_static='-Bstatic'
13762 lt_prog_compiler_wl=''
13763 ;;
13764 *Sun\ F* | *Sun*Fortran*)
13765 lt_prog_compiler_pic='-KPIC'
13766 lt_prog_compiler_static='-Bstatic'
13767 lt_prog_compiler_wl='-Qoption ld '
13768 ;;
13769 *Sun\ C*)
13770 # Sun C 5.9
13771 lt_prog_compiler_pic='-KPIC'
13772 lt_prog_compiler_static='-Bstatic'
13773 lt_prog_compiler_wl='-Wl,'
13774 ;;
13775 *Intel*\ [CF]*Compiler*)
13776 lt_prog_compiler_wl='-Wl,'
13777 lt_prog_compiler_pic='-fPIC'
13778 lt_prog_compiler_static='-static'
13779 ;;
13780 *Portland\ Group*)
13781 lt_prog_compiler_wl='-Wl,'
13782 lt_prog_compiler_pic='-fpic'
13783 lt_prog_compiler_static='-Bstatic'
13784 ;;
13785 esac
13786 ;;
13787 esac
13788 ;;
13789
13790 newsos6)
13791 lt_prog_compiler_pic='-KPIC'
13792 lt_prog_compiler_static='-Bstatic'
13793 ;;
13794
13795 *-mlibc)
13796 lt_prog_compiler_wl='-Wl,'
13797 lt_prog_compiler_pic='-fPIC'
13798 lt_prog_compiler_static='-static'
13799 ;;
13800
13801 *nto* | *qnx*)
13802 # QNX uses GNU C++, but need to define -shared option too, otherwise
13803 # it will coredump.
13804 lt_prog_compiler_pic='-fPIC -shared'
13805 ;;
13806
13807 osf3* | osf4* | osf5*)
13808 lt_prog_compiler_wl='-Wl,'
13809 # All OSF/1 code is PIC.
13810 lt_prog_compiler_static='-non_shared'
13811 ;;
13812
13813 rdos*)
13814 lt_prog_compiler_static='-non_shared'
13815 ;;
13816
13817 serenity*)
13818 ;;
13819
13820 solaris*)
13821 lt_prog_compiler_pic='-KPIC'
13822 lt_prog_compiler_static='-Bstatic'
13823 case $cc_basename in
13824 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13825 lt_prog_compiler_wl='-Qoption ld ';;
13826 *)
13827 lt_prog_compiler_wl='-Wl,';;
13828 esac
13829 ;;
13830
13831 sunos4*)
13832 lt_prog_compiler_wl='-Qoption ld '
13833 lt_prog_compiler_pic='-PIC'
13834 lt_prog_compiler_static='-Bstatic'
13835 ;;
13836
13837 sysv4 | sysv4.2uw2* | sysv4.3*)
13838 lt_prog_compiler_wl='-Wl,'
13839 lt_prog_compiler_pic='-KPIC'
13840 lt_prog_compiler_static='-Bstatic'
13841 ;;
13842
13843 sysv4*MP*)
13844 if test -d /usr/nec; then
13845 lt_prog_compiler_pic='-Kconform_pic'
13846 lt_prog_compiler_static='-Bstatic'
13847 fi
13848 ;;
13849
13850 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13851 lt_prog_compiler_wl='-Wl,'
13852 lt_prog_compiler_pic='-KPIC'
13853 lt_prog_compiler_static='-Bstatic'
13854 ;;
13855
13856 unicos*)
13857 lt_prog_compiler_wl='-Wl,'
13858 lt_prog_compiler_can_build_shared=no
13859 ;;
13860
13861 uts4*)
13862 lt_prog_compiler_pic='-pic'
13863 lt_prog_compiler_static='-Bstatic'
13864 ;;
13865
13866 *)
13867 lt_prog_compiler_can_build_shared=no
13868 ;;
13869 esac
13870 fi
13871
13872 case $host_os in
13873 # For platforms that do not support PIC, -DPIC is meaningless:
13874 *djgpp*)
13875 lt_prog_compiler_pic=
13876 ;;
13877 *)
13878 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13879 ;;
13880 esac
13881
13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13883 printf %s "checking for $compiler option to produce PIC... " >&6; }
13884 if test ${lt_cv_prog_compiler_pic+y}
13885 then :
13886 printf %s "(cached) " >&6
13887 else case e in #(
13888 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13889 esac
13890 fi
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13892 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13893 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13894
13895 #
13896 # Check to make sure the PIC flag actually works.
13897 #
13898 if test -n "$lt_prog_compiler_pic"; then
13899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13900 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13901 if test ${lt_cv_prog_compiler_pic_works+y}
13902 then :
13903 printf %s "(cached) " >&6
13904 else case e in #(
13905 e) lt_cv_prog_compiler_pic_works=no
13906 ac_outfile=conftest.$ac_objext
13907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13908 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13909 # Insert the option either (1) after the last *FLAGS variable, or
13910 # (2) before a word containing "conftest.", or (3) at the end.
13911 # Note that $ac_compile itself does not contain backslashes and begins
13912 # with a dollar sign (not a hyphen), so the echo should work correctly.
13913 # The option is referenced via a variable to avoid confusing sed.
13914 lt_compile=`echo "$ac_compile" | $SED \
13915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13917 -e 's:$: $lt_compiler_flag:'`
13918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13919 (eval "$lt_compile" 2>conftest.err)
13920 ac_status=$?
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 if (exit $ac_status) && test -s "$ac_outfile"; then
13924 # The compiler can only warn and ignore the option if not recognized
13925 # So say no if there are warnings other than the usual output.
13926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13929 lt_cv_prog_compiler_pic_works=yes
13930 fi
13931 fi
13932 $RM conftest*
13933 ;;
13934 esac
13935 fi
13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13937 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13938
13939 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13940 case $lt_prog_compiler_pic in
13941 "" | " "*) ;;
13942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13943 esac
13944 else
13945 lt_prog_compiler_pic=
13946 lt_prog_compiler_can_build_shared=no
13947 fi
13948
13949 fi
13950
13951
13952
13953
13954
13955 #
13956 # Check to make sure the static flag actually works.
13957 #
13958 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13960 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13961 if test ${lt_cv_prog_compiler_static_works+y}
13962 then :
13963 printf %s "(cached) " >&6
13964 else case e in #(
13965 e) lt_cv_prog_compiler_static_works=no
13966 save_LDFLAGS=$LDFLAGS
13967 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13968 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13970 # The linker can only warn and ignore the option if not recognized
13971 # So say no if there are warnings
13972 if test -s conftest.err; then
13973 # Append any errors to the config.log.
13974 cat conftest.err 1>&5
13975 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13977 if diff conftest.exp conftest.er2 >/dev/null; then
13978 lt_cv_prog_compiler_static_works=yes
13979 fi
13980 else
13981 lt_cv_prog_compiler_static_works=yes
13982 fi
13983 fi
13984 $RM -r conftest*
13985 LDFLAGS=$save_LDFLAGS
13986 ;;
13987 esac
13988 fi
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13990 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13991
13992 if test yes = "$lt_cv_prog_compiler_static_works"; then
13993 :
13994 else
13995 lt_prog_compiler_static=
13996 fi
13997
13998
13999
14000 ='-fPIC'
14001 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14002 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'
14003 archive_cmds_need_lc=no
14004 no_undefined_flag=
14005 ;;
14006
14007 *)
14008 dynamic_linker=no
14009 ;;
14010 esac
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14012 printf "%s\n" "$dynamic_linker" >&6; }
14013 test no = "$dynamic_linker" && can_build_shared=no
14014
14015 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14016 if test yes = "$GCC"; then
14017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14018 fi
14019
14020 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14021 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14022 fi
14023
14024 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14025 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14026 fi
14027
14028 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14029 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14030
14031 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14032 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14033
14034 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14035 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14134 printf %s "checking how to hardcode library paths into programs... " >&6; }
14135 hardcode_action=
14136 if test -n "$hardcode_libdir_flag_spec" ||
14137 test -n "$runpath_var" ||
14138 test yes = "$hardcode_automatic"; then
14139
14140 # We can hardcode non-existent directories.
14141 if test no != "$hardcode_direct" &&
14142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14143 # have to relink, otherwise we might link with an installed library
14144 # when we should be linking with a yet-to-be-installed one
14145 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14146 test no != "$hardcode_minus_L"; then
14147 # Linking always hardcodes the temporary library directory.
14148 hardcode_action=relink
14149 else
14150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14151 hardcode_action=immediate
14152 fi
14153 else
14154 # We cannot hardcode anything, or else we can only hardcode existing
14155 # directories.
14156 hardcode_action=unsupported
14157 fi
14158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14159 printf "%s\n" "$hardcode_action" >&6; }
14160
14161 if test relink = "$hardcode_action" ||
14162 test yes = "$inherit_rpath"; then
14163 # Fast installation is not supported
14164 enable_fast_install=no
14165 elif test yes = "$shlibpath_overrides_runpath" ||
14166 test no = "$enable_shared"; then
14167 # Fast installation is not necessary
14168 enable_fast_install=needless
14169 fi
14170
14171
14172
14173
14174
14175
14176 if test yes != "$enable_dlopen"; then
14177 enable_dlopen=unknown
14178 enable_dlopen_self=unknown
14179 enable_dlopen_self_static=unknown
14180 else
14181 lt_cv_dlopen=no
14182 lt_cv_dlopen_libs=
14183
14184 case $host_os in
14185 beos*)
14186 lt_cv_dlopen=load_add_on
14187 lt_cv_dlopen_libs=
14188 lt_cv_dlopen_self=yes
14189 ;;
14190
14191 mingw* | windows* | pw32* | cegcc*)
14192 lt_cv_dlopen=LoadLibrary
14193 lt_cv_dlopen_libs=
14194 ;;
14195
14196 cygwin*)
14197 lt_cv_dlopen=dlopen
14198 lt_cv_dlopen_libs=
14199 ;;
14200
14201 darwin*)
14202 # if libdl is installed we need to link against it
14203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14204 printf %s "checking for dlopen in -ldl... " >&6; }
14205 if test ${ac_cv_lib_dl_dlopen+y}
14206 then :
14207 printf %s "(cached) " >&6
14208 else case e in #(
14209 e) ac_check_lib_save_LIBS=$LIBS
14210 LIBS="-ldl $LIBS"
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14213
14214 /* Override any GCC internal prototype to avoid an error.
14215 Use char because int might match the return type of a GCC
14216 builtin and then its argument prototype would still apply.
14217 The 'extern "C"' is for builds by C++ compilers;
14218 although this is not generally supported in C code supporting it here
14219 has little cost and some practical benefit (sr 110532). */
14220 #ifdef __cplusplus
14221 extern "C"
14222 #endif
14223 char dlopen (void);
14224 int
14225 main (void)
14226 {
14227 return dlopen ();
14228 ;
14229 return 0;
14230 }
14231 _ACEOF
14232 if ac_fn_c_try_link "$LINENO"
14233 then :
14234 ac_cv_lib_dl_dlopen=yes
14235 else case e in #(
14236 e) ac_cv_lib_dl_dlopen=no ;;
14237 esac
14238 fi
14239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14240 conftest$ac_exeext conftest.$ac_ext
14241 LIBS=$ac_check_lib_save_LIBS ;;
14242 esac
14243 fi
14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14245 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14246 if test "x$ac_cv_lib_dl_dlopen" = xyes
14247 then :
14248 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14249 else case e in #(
14250 e)
14251 lt_cv_dlopen=dyld
14252 lt_cv_dlopen_libs=
14253 lt_cv_dlopen_self=yes
14254 ;;
14255 esac
14256 fi
14257
14258 ;;
14259
14260 tpf*)
14261 # Don't try to run any link tests for TPF. We know it's impossible
14262 # because TPF is a cross-compiler, and we know how we open DSOs.
14263 lt_cv_dlopen=dlopen
14264 lt_cv_dlopen_libs=
14265 lt_cv_dlopen_self=no
14266 ;;
14267
14268 *)
14269 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14270 if test "x$ac_cv_func_shl_load" = xyes
14271 then :
14272 lt_cv_dlopen=shl_load
14273 else case e in #(
14274 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14275 printf %s "checking for shl_load in -ldld... " >&6; }
14276 if test ${ac_cv_lib_dld_shl_load+y}
14277 then :
14278 printf %s "(cached) " >&6
14279 else case e in #(
14280 e) ac_check_lib_save_LIBS=$LIBS
14281 LIBS="-ldld $LIBS"
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284
14285 /* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply.
14288 The 'extern "C"' is for builds by C++ compilers;
14289 although this is not generally supported in C code supporting it here
14290 has little cost and some practical benefit (sr 110532). */
14291 #ifdef __cplusplus
14292 extern "C"
14293 #endif
14294 char shl_load (void);
14295 int
14296 main (void)
14297 {
14298 return shl_load ();
14299 ;
14300 return 0;
14301 }
14302 _ACEOF
14303 if ac_fn_c_try_link "$LINENO"
14304 then :
14305 ac_cv_lib_dld_shl_load=yes
14306 else case e in #(
14307 e) ac_cv_lib_dld_shl_load=no ;;
14308 esac
14309 fi
14310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14311 conftest$ac_exeext conftest.$ac_ext
14312 LIBS=$ac_check_lib_save_LIBS ;;
14313 esac
14314 fi
14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14316 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14317 if test "x$ac_cv_lib_dld_shl_load" = xyes
14318 then :
14319 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14320 else case e in #(
14321 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14322 if test "x$ac_cv_func_dlopen" = xyes
14323 then :
14324 lt_cv_dlopen=dlopen
14325 else case e in #(
14326 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14327 printf %s "checking for dlopen in -ldl... " >&6; }
14328 if test ${ac_cv_lib_dl_dlopen+y}
14329 then :
14330 printf %s "(cached) " >&6
14331 else case e in #(
14332 e) ac_check_lib_save_LIBS=$LIBS
14333 LIBS="-ldl $LIBS"
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336
14337 /* Override any GCC internal prototype to avoid an error.
14338 Use char because int might match the return type of a GCC
14339 builtin and then its argument prototype would still apply.
14340 The 'extern "C"' is for builds by C++ compilers;
14341 although this is not generally supported in C code supporting it here
14342 has little cost and some practical benefit (sr 110532). */
14343 #ifdef __cplusplus
14344 extern "C"
14345 #endif
14346 char dlopen (void);
14347 int
14348 main (void)
14349 {
14350 return dlopen ();
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_link "$LINENO"
14356 then :
14357 ac_cv_lib_dl_dlopen=yes
14358 else case e in #(
14359 e) ac_cv_lib_dl_dlopen=no ;;
14360 esac
14361 fi
14362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14363 conftest$ac_exeext conftest.$ac_ext
14364 LIBS=$ac_check_lib_save_LIBS ;;
14365 esac
14366 fi
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14368 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14369 if test "x$ac_cv_lib_dl_dlopen" = xyes
14370 then :
14371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14372 else case e in #(
14373 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14374 printf %s "checking for dlopen in -lsvld... " >&6; }
14375 if test ${ac_cv_lib_svld_dlopen+y}
14376 then :
14377 printf %s "(cached) " >&6
14378 else case e in #(
14379 e) ac_check_lib_save_LIBS=$LIBS
14380 LIBS="-lsvld $LIBS"
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14383
14384 /* Override any GCC internal prototype to avoid an error.
14385 Use char because int might match the return type of a GCC
14386 builtin and then its argument prototype would still apply.
14387 The 'extern "C"' is for builds by C++ compilers;
14388 although this is not generally supported in C code supporting it here
14389 has little cost and some practical benefit (sr 110532). */
14390 #ifdef __cplusplus
14391 extern "C"
14392 #endif
14393 char dlopen (void);
14394 int
14395 main (void)
14396 {
14397 return dlopen ();
14398 ;
14399 return 0;
14400 }
14401 _ACEOF
14402 if ac_fn_c_try_link "$LINENO"
14403 then :
14404 ac_cv_lib_svld_dlopen=yes
14405 else case e in #(
14406 e) ac_cv_lib_svld_dlopen=no ;;
14407 esac
14408 fi
14409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14410 conftest$ac_exeext conftest.$ac_ext
14411 LIBS=$ac_check_lib_save_LIBS ;;
14412 esac
14413 fi
14414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14415 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14416 if test "x$ac_cv_lib_svld_dlopen" = xyes
14417 then :
14418 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14419 else case e in #(
14420 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14421 printf %s "checking for dld_link in -ldld... " >&6; }
14422 if test ${ac_cv_lib_dld_dld_link+y}
14423 then :
14424 printf %s "(cached) " >&6
14425 else case e in #(
14426 e) ac_check_lib_save_LIBS=$LIBS
14427 LIBS="-ldld $LIBS"
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430
14431 /* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply.
14434 The 'extern "C"' is for builds by C++ compilers;
14435 although this is not generally supported in C code supporting it here
14436 has little cost and some practical benefit (sr 110532). */
14437 #ifdef __cplusplus
14438 extern "C"
14439 #endif
14440 char dld_link (void);
14441 int
14442 main (void)
14443 {
14444 return dld_link ();
14445 ;
14446 return 0;
14447 }
14448 _ACEOF
14449 if ac_fn_c_try_link "$LINENO"
14450 then :
14451 ac_cv_lib_dld_dld_link=yes
14452 else case e in #(
14453 e) ac_cv_lib_dld_dld_link=no ;;
14454 esac
14455 fi
14456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14457 conftest$ac_exeext conftest.$ac_ext
14458 LIBS=$ac_check_lib_save_LIBS ;;
14459 esac
14460 fi
14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14462 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14463 if test "x$ac_cv_lib_dld_dld_link" = xyes
14464 then :
14465 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14466 fi
14467
14468 ;;
14469 esac
14470 fi
14471
14472 ;;
14473 esac
14474 fi
14475
14476 ;;
14477 esac
14478 fi
14479
14480 ;;
14481 esac
14482 fi
14483
14484 ;;
14485 esac
14486 fi
14487
14488 ;;
14489 esac
14490
14491 if test no = "$lt_cv_dlopen"; then
14492 enable_dlopen=no
14493 else
14494 enable_dlopen=yes
14495 fi
14496
14497 case $lt_cv_dlopen in
14498 dlopen)
14499 save_CPPFLAGS=$CPPFLAGS
14500 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14501
14502 save_LDFLAGS=$LDFLAGS
14503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14504
14505 save_LIBS=$LIBS
14506 LIBS="$lt_cv_dlopen_libs $LIBS"
14507
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14509 printf %s "checking whether a program can dlopen itself... " >&6; }
14510 if test ${lt_cv_dlopen_self+y}
14511 then :
14512 printf %s "(cached) " >&6
14513 else case e in #(
14514 e) if test yes = "$cross_compiling"; then :
14515 lt_cv_dlopen_self=cross
14516 else
14517 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14518 lt_status=$lt_dlunknown
14519 cat > conftest.$ac_ext <<_LT_EOF
14520 #line $LINENO "configure"
14521 #include "confdefs.h"
14522
14523 #if HAVE_DLFCN_H
14524 #include <dlfcn.h>
14525 #endif
14526
14527 #include <stdio.h>
14528
14529 #ifdef RTLD_GLOBAL
14530 # define LT_DLGLOBAL RTLD_GLOBAL
14531 #else
14532 # ifdef DL_GLOBAL
14533 # define LT_DLGLOBAL DL_GLOBAL
14534 # else
14535 # define LT_DLGLOBAL 0
14536 # endif
14537 #endif
14538
14539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14540 find out it does not work in some platform. */
14541 #ifndef LT_DLLAZY_OR_NOW
14542 # ifdef RTLD_LAZY
14543 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14544 # else
14545 # ifdef DL_LAZY
14546 # define LT_DLLAZY_OR_NOW DL_LAZY
14547 # else
14548 # ifdef RTLD_NOW
14549 # define LT_DLLAZY_OR_NOW RTLD_NOW
14550 # else
14551 # ifdef DL_NOW
14552 # define LT_DLLAZY_OR_NOW DL_NOW
14553 # else
14554 # define LT_DLLAZY_OR_NOW 0
14555 # endif
14556 # endif
14557 # endif
14558 # endif
14559 #endif
14560
14561 /* When -fvisibility=hidden is used, assume the code has been annotated
14562 correspondingly for the symbols needed. */
14563 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14564 int fnord (void) __attribute__((visibility("default")));
14565 #endif
14566
14567 int fnord (void) { return 42; }
14568 int main (void)
14569 {
14570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14571 int status = $lt_dlunknown;
14572
14573 if (self)
14574 {
14575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14576 else
14577 {
14578 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14579 else puts (dlerror ());
14580 }
14581 /* dlclose (self); */
14582 }
14583 else
14584 puts (dlerror ());
14585
14586 return status;
14587 }
14588 _LT_EOF
14589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14590 (eval $ac_link) 2>&5
14591 ac_status=$?
14592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14593 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14594 (./conftest; exit; ) >&5 2>/dev/null
14595 lt_status=$?
14596 case x$lt_status in
14597 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14598 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14599 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14600 esac
14601 else :
14602 # compilation failed
14603 lt_cv_dlopen_self=no
14604 fi
14605 fi
14606 rm -fr conftest*
14607
14608 ;;
14609 esac
14610 fi
14611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14612 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14613
14614 if test yes = "$lt_cv_dlopen_self"; then
14615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14617 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14618 if test ${lt_cv_dlopen_self_static+y}
14619 then :
14620 printf %s "(cached) " >&6
14621 else case e in #(
14622 e) if test yes = "$cross_compiling"; then :
14623 lt_cv_dlopen_self_static=cross
14624 else
14625 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14626 lt_status=$lt_dlunknown
14627 cat > conftest.$ac_ext <<_LT_EOF
14628 #line $LINENO "configure"
14629 #include "confdefs.h"
14630
14631 #if HAVE_DLFCN_H
14632 #include <dlfcn.h>
14633 #endif
14634
14635 #include <stdio.h>
14636
14637 #ifdef RTLD_GLOBAL
14638 # define LT_DLGLOBAL RTLD_GLOBAL
14639 #else
14640 # ifdef DL_GLOBAL
14641 # define LT_DLGLOBAL DL_GLOBAL
14642 # else
14643 # define LT_DLGLOBAL 0
14644 # endif
14645 #endif
14646
14647 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14648 find out it does not work in some platform. */
14649 #ifndef LT_DLLAZY_OR_NOW
14650 # ifdef RTLD_LAZY
14651 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14652 # else
14653 # ifdef DL_LAZY
14654 # define LT_DLLAZY_OR_NOW DL_LAZY
14655 # else
14656 # ifdef RTLD_NOW
14657 # define LT_DLLAZY_OR_NOW RTLD_NOW
14658 # else
14659 # ifdef DL_NOW
14660 # define LT_DLLAZY_OR_NOW DL_NOW
14661 # else
14662 # define LT_DLLAZY_OR_NOW 0
14663 # endif
14664 # endif
14665 # endif
14666 # endif
14667 #endif
14668
14669 /* When -fvisibility=hidden is used, assume the code has been annotated
14670 correspondingly for the symbols needed. */
14671 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14672 int fnord (void) __attribute__((visibility("default")));
14673 #endif
14674
14675 int fnord (void) { return 42; }
14676 int main (void)
14677 {
14678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14679 int status = $lt_dlunknown;
14680
14681 if (self)
14682 {
14683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14684 else
14685 {
14686 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14687 else puts (dlerror ());
14688 }
14689 /* dlclose (self); */
14690 }
14691 else
14692 puts (dlerror ());
14693
14694 return status;
14695 }
14696 _LT_EOF
14697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14698 (eval $ac_link) 2>&5
14699 ac_status=$?
14700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14701 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14702 (./conftest; exit; ) >&5 2>/dev/null
14703 lt_status=$?
14704 case x$lt_status in
14705 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14706 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14707 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14708 esac
14709 else :
14710 # compilation failed
14711 lt_cv_dlopen_self_static=no
14712 fi
14713 fi
14714 rm -fr conftest*
14715
14716 ;;
14717 esac
14718 fi
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14720 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14721 fi
14722
14723 CPPFLAGS=$save_CPPFLAGS
14724 LDFLAGS=$save_LDFLAGS
14725 LIBS=$save_LIBS
14726 ;;
14727 esac
14728
14729 case $lt_cv_dlopen_self in
14730 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14731 *) enable_dlopen_self=unknown ;;
14732 esac
14733
14734 case $lt_cv_dlopen_self_static in
14735 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14736 *) enable_dlopen_self_static=unknown ;;
14737 esac
14738 fi
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756 striplib=
14757 old_striplib=
14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14759 printf %s "checking whether stripping libraries is possible... " >&6; }
14760 if test -z "$STRIP"; then
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762 printf "%s\n" "no" >&6; }
14763 else
14764 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14765 old_striplib="$STRIP --strip-debug"
14766 striplib="$STRIP --strip-unneeded"
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14768 printf "%s\n" "yes" >&6; }
14769 else
14770 case $host_os in
14771 darwin*)
14772 # FIXME - insert some real tests, host_os isn't really good enough
14773 striplib="$STRIP -x"
14774 old_striplib="$STRIP -S"
14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14776 printf "%s\n" "yes" >&6; }
14777 ;;
14778 freebsd*)
14779 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14780 old_striplib="$STRIP --strip-debug"
14781 striplib="$STRIP --strip-unneeded"
14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14783 printf "%s\n" "yes" >&6; }
14784 else
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786 printf "%s\n" "no" >&6; }
14787 fi
14788 ;;
14789 *)
14790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14791 printf "%s\n" "no" >&6; }
14792 ;;
14793 esac
14794 fi
14795 fi
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808 # Report what library types will actually be built
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14810 printf %s "checking if libtool supports shared libraries... " >&6; }
14811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14812 printf "%s\n" "$can_build_shared" >&6; }
14813
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14815 printf %s "checking whether to build shared libraries... " >&6; }
14816 test no = "$can_build_shared" && enable_shared=no
14817
14818 # On AIX, shared libraries and static libraries use the same namespace, and
14819 # are all built from PIC.
14820 case $host_os in
14821 aix3*)
14822 test yes = "$enable_shared" && enable_static=no
14823 if test -n "$RANLIB"; then
14824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14825 postinstall_cmds='$RANLIB $lib'
14826 fi
14827 ;;
14828
14829 aix[4-9]*)
14830 if test ia64 != "$host_cpu"; then
14831 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14832 yes,aix,yes) ;; # shared object as lib.so file only
14833 yes,svr4,*) ;; # shared object as lib.so archive member only
14834 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14835 esac
14836 fi
14837 ;;
14838 esac
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14840 printf "%s\n" "$enable_shared" >&6; }
14841
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14843 printf %s "checking whether to build static libraries... " >&6; }
14844 # Make sure either enable_shared or enable_static is yes.
14845 test yes = "$enable_shared" || enable_static=yes
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14847 printf "%s\n" "$enable_static" >&6; }
14848
14849
14850
14851
14852 fi
14853 ac_ext=c
14854 ac_cpp='$CPP $CPPFLAGS'
14855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14858
14859 CC=$lt_save_CC
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875 ac_config_commands="$ac_config_commands libtool"
14876
14877
14878
14879
14880 # Only expand once:
14881
14882
14883 # (end lt_init)
14884 # Check whether --enable-largefile was given.
14885 if test ${enable_largefile+y}
14886 then :
14887 enableval=$enable_largefile;
14888 fi
14889 if test "$enable_largefile,$enable_year2038" != no,no
14890 then :
14891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14892 printf %s "checking for $CC option to enable large file support... " >&6; }
14893 if test ${ac_cv_sys_largefile_opts+y}
14894 then :
14895 printf %s "(cached) " >&6
14896 else case e in #(
14897 e) ac_save_CC="$CC"
14898 ac_opt_found=no
14899 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14900 if test x"$ac_opt" != x"none needed"
14901 then :
14902 CC="$ac_save_CC $ac_opt"
14903 fi
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906 #include <sys/types.h>
14907 #ifndef FTYPE
14908 # define FTYPE off_t
14909 #endif
14910 /* Check that FTYPE can represent 2**63 - 1 correctly.
14911 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14912 since some C++ compilers masquerading as C compilers
14913 incorrectly reject 9223372036854775807. */
14914 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14915 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14916 && LARGE_FTYPE % 2147483647 == 1)
14917 ? 1 : -1];
14918 int
14919 main (void)
14920 {
14921
14922 ;
14923 return 0;
14924 }
14925 _ACEOF
14926 if ac_fn_c_try_compile "$LINENO"
14927 then :
14928 if test x"$ac_opt" = x"none needed"
14929 then :
14930 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14931 CC="$CC -DFTYPE=ino_t"
14932 if ac_fn_c_try_compile "$LINENO"
14933 then :
14934
14935 else case e in #(
14936 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14937 if ac_fn_c_try_compile "$LINENO"
14938 then :
14939 ac_opt='-D_FILE_OFFSET_BITS=64'
14940 fi
14941 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14942 esac
14943 fi
14944 rm -f core conftest.err conftest.$ac_objext conftest.beam
14945 fi
14946 ac_cv_sys_largefile_opts=$ac_opt
14947 ac_opt_found=yes
14948 fi
14949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14950 test $ac_opt_found = no || break
14951 done
14952 CC="$ac_save_CC"
14953
14954 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14955 esac
14956 fi
14957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14958 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14959
14960 ac_have_largefile=yes
14961 case $ac_cv_sys_largefile_opts in #(
14962 "none needed") :
14963 ;; #(
14964 "supported through gnulib") :
14965 ;; #(
14966 "support not detected") :
14967 ac_have_largefile=no ;; #(
14968 "-D_FILE_OFFSET_BITS=64") :
14969
14970 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14971 ;; #(
14972 "-D_LARGE_FILES=1") :
14973
14974 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14975 ;; #(
14976 "-n32") :
14977 CC="$CC -n32" ;; #(
14978 *) :
14979 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14980 esac
14981
14982 if test "$enable_year2038" != no
14983 then :
14984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14985 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14986 if test ${ac_cv_sys_year2038_opts+y}
14987 then :
14988 printf %s "(cached) " >&6
14989 else case e in #(
14990 e) ac_save_CPPFLAGS="$CPPFLAGS"
14991 ac_opt_found=no
14992 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
14993 if test x"$ac_opt" != x"none needed"
14994 then :
14995 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14996 fi
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999
15000 #include <time.h>
15001 /* Check that time_t can represent 2**32 - 1 correctly. */
15002 #define LARGE_TIME_T \\
15003 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15004 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15005 && LARGE_TIME_T % 65537 == 0)
15006 ? 1 : -1];
15007
15008 int
15009 main (void)
15010 {
15011
15012 ;
15013 return 0;
15014 }
15015 _ACEOF
15016 if ac_fn_c_try_compile "$LINENO"
15017 then :
15018 ac_cv_sys_year2038_opts="$ac_opt"
15019 ac_opt_found=yes
15020 fi
15021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15022 test $ac_opt_found = no || break
15023 done
15024 CPPFLAGS="$ac_save_CPPFLAGS"
15025 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15026 esac
15027 fi
15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15029 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15030
15031 ac_have_year2038=yes
15032 case $ac_cv_sys_year2038_opts in #(
15033 "none needed") :
15034 ;; #(
15035 "support not detected") :
15036 ac_have_year2038=no ;; #(
15037 "-D_TIME_BITS=64") :
15038
15039 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15040 ;; #(
15041 "-D__MINGW_USE_VC2005_COMPAT") :
15042
15043 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15044 ;; #(
15045 "-U_USE_32_BIT_TIME_T"*) :
15046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15047 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15048 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15049 will stop working after mid-January 2038. Remove
15050 _USE_32BIT_TIME_T from the compiler flags.
15051 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15052 *) :
15053 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15054 esac
15055
15056 fi
15057
15058 fi
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15060 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15061 if test ${ac_cv_func_fseeko_ftello+y}
15062 then :
15063 printf %s "(cached) " >&6
15064 else case e in #(
15065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15067
15068 #if defined __hpux && !defined _LARGEFILE_SOURCE
15069 # include <limits.h>
15070 # if LONG_MAX >> 31 == 0
15071 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15072 # endif
15073 #endif
15074 #include <sys/types.h> /* for off_t */
15075 #include <stdio.h>
15076
15077 int
15078 main (void)
15079 {
15080
15081 int (*fp1) (FILE *, off_t, int) = fseeko;
15082 off_t (*fp2) (FILE *) = ftello;
15083 return fseeko (stdin, 0, 0)
15084 && fp1 (stdin, 0, 0)
15085 && ftello (stdin) >= 0
15086 && fp2 (stdin) >= 0;
15087
15088 ;
15089 return 0;
15090 }
15091 _ACEOF
15092 if ac_fn_c_try_compile "$LINENO"
15093 then :
15094 ac_cv_func_fseeko_ftello=yes
15095 else case e in #(
15096 e) ac_save_CPPFLAGS="$CPPFLAGS"
15097 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15100
15101 #if defined __hpux && !defined _LARGEFILE_SOURCE
15102 # include <limits.h>
15103 # if LONG_MAX >> 31 == 0
15104 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15105 # endif
15106 #endif
15107 #include <sys/types.h> /* for off_t */
15108 #include <stdio.h>
15109
15110 int
15111 main (void)
15112 {
15113
15114 int (*fp1) (FILE *, off_t, int) = fseeko;
15115 off_t (*fp2) (FILE *) = ftello;
15116 return fseeko (stdin, 0, 0)
15117 && fp1 (stdin, 0, 0)
15118 && ftello (stdin) >= 0
15119 && fp2 (stdin) >= 0;
15120
15121 ;
15122 return 0;
15123 }
15124 _ACEOF
15125 if ac_fn_c_try_compile "$LINENO"
15126 then :
15127 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15128 else case e in #(
15129 e) ac_cv_func_fseeko_ftello=no ;;
15130 esac
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15133 esac
15134 fi
15135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15136 esac
15137 fi
15138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15139 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15140 if test "$ac_cv_func_fseeko_ftello" != no
15141 then :
15142
15143 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15144
15145 fi
15146 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15147 then :
15148
15149 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15150
15151 fi
15152
15153 ac_header_dirent=no
15154 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15155 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15157 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15158 if eval test \${$as_ac_Header+y}
15159 then :
15160 printf %s "(cached) " >&6
15161 else case e in #(
15162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15164 #include <sys/types.h>
15165 #include <$ac_hdr>
15166
15167 int
15168 main (void)
15169 {
15170 if ((DIR *) 0)
15171 return 0;
15172 ;
15173 return 0;
15174 }
15175 _ACEOF
15176 if ac_fn_c_try_compile "$LINENO"
15177 then :
15178 eval "$as_ac_Header=yes"
15179 else case e in #(
15180 e) eval "$as_ac_Header=no" ;;
15181 esac
15182 fi
15183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15184 esac
15185 fi
15186 eval ac_res=\$$as_ac_Header
15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15188 printf "%s\n" "$ac_res" >&6; }
15189 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15190 then :
15191 cat >>confdefs.h <<_ACEOF
15192 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15193 _ACEOF
15194
15195 ac_header_dirent=$ac_hdr; break
15196 fi
15197
15198 done
15199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15200 if test $ac_header_dirent = dirent.h; then
15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15202 printf %s "checking for library containing opendir... " >&6; }
15203 if test ${ac_cv_search_opendir+y}
15204 then :
15205 printf %s "(cached) " >&6
15206 else case e in #(
15207 e) ac_func_search_save_LIBS=$LIBS
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15210
15211 /* Override any GCC internal prototype to avoid an error.
15212 Use char because int might match the return type of a GCC
15213 builtin and then its argument prototype would still apply.
15214 The 'extern "C"' is for builds by C++ compilers;
15215 although this is not generally supported in C code supporting it here
15216 has little cost and some practical benefit (sr 110532). */
15217 #ifdef __cplusplus
15218 extern "C"
15219 #endif
15220 char opendir (void);
15221 int
15222 main (void)
15223 {
15224 return opendir ();
15225 ;
15226 return 0;
15227 }
15228 _ACEOF
15229 for ac_lib in '' dir
15230 do
15231 if test -z "$ac_lib"; then
15232 ac_res="none required"
15233 else
15234 ac_res=-l$ac_lib
15235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15236 fi
15237 if ac_fn_c_try_link "$LINENO"
15238 then :
15239 ac_cv_search_opendir=$ac_res
15240 fi
15241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15242 conftest$ac_exeext
15243 if test ${ac_cv_search_opendir+y}
15244 then :
15245 break
15246 fi
15247 done
15248 if test ${ac_cv_search_opendir+y}
15249 then :
15250
15251 else case e in #(
15252 e) ac_cv_search_opendir=no ;;
15253 esac
15254 fi
15255 rm conftest.$ac_ext
15256 LIBS=$ac_func_search_save_LIBS ;;
15257 esac
15258 fi
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15260 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15261 ac_res=$ac_cv_search_opendir
15262 if test "$ac_res" != no
15263 then :
15264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15265
15266 fi
15267
15268 else
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15270 printf %s "checking for library containing opendir... " >&6; }
15271 if test ${ac_cv_search_opendir+y}
15272 then :
15273 printf %s "(cached) " >&6
15274 else case e in #(
15275 e) ac_func_search_save_LIBS=$LIBS
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15278
15279 /* Override any GCC internal prototype to avoid an error.
15280 Use char because int might match the return type of a GCC
15281 builtin and then its argument prototype would still apply.
15282 The 'extern "C"' is for builds by C++ compilers;
15283 although this is not generally supported in C code supporting it here
15284 has little cost and some practical benefit (sr 110532). */
15285 #ifdef __cplusplus
15286 extern "C"
15287 #endif
15288 char opendir (void);
15289 int
15290 main (void)
15291 {
15292 return opendir ();
15293 ;
15294 return 0;
15295 }
15296 _ACEOF
15297 for ac_lib in '' x
15298 do
15299 if test -z "$ac_lib"; then
15300 ac_res="none required"
15301 else
15302 ac_res=-l$ac_lib
15303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15304 fi
15305 if ac_fn_c_try_link "$LINENO"
15306 then :
15307 ac_cv_search_opendir=$ac_res
15308 fi
15309 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15310 conftest$ac_exeext
15311 if test ${ac_cv_search_opendir+y}
15312 then :
15313 break
15314 fi
15315 done
15316 if test ${ac_cv_search_opendir+y}
15317 then :
15318
15319 else case e in #(
15320 e) ac_cv_search_opendir=no ;;
15321 esac
15322 fi
15323 rm conftest.$ac_ext
15324 LIBS=$ac_func_search_save_LIBS ;;
15325 esac
15326 fi
15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15328 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15329 ac_res=$ac_cv_search_opendir
15330 if test "$ac_res" != no
15331 then :
15332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15333
15334 fi
15335
15336 fi
15337
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15339 printf %s "checking whether closedir returns void... " >&6; }
15340 if test ${ac_cv_func_closedir_void+y}
15341 then :
15342 printf %s "(cached) " >&6
15343 else case e in #(
15344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15346
15347 #include <$ac_header_dirent>
15348
15349 int
15350 main (void)
15351 {
15352
15353 return closedir(0);
15354
15355 ;
15356 return 0;
15357 }
15358 _ACEOF
15359 if ac_fn_c_try_compile "$LINENO"
15360 then :
15361 ac_cv_func_closedir_void=no
15362 else case e in #(
15363 e) ac_cv_func_closedir_void=yes ;;
15364 esac
15365 fi
15366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15367 esac
15368 fi
15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15370 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15371 if test $ac_cv_func_closedir_void = yes; then
15372
15373 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15374
15375 fi
15376
15377 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15378 if test "x$ac_cv_header_assert_h" = xyes
15379 then :
15380 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15381
15382 fi
15383 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15384 if test "x$ac_cv_header_float_h" = xyes
15385 then :
15386 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15387
15388 fi
15389 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15390 if test "x$ac_cv_header_limits_h" = xyes
15391 then :
15392 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15393
15394 fi
15395 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15396 if test "x$ac_cv_header_pwd_h" = xyes
15397 then :
15398 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15399
15400 fi
15401 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15402 if test "x$ac_cv_header_stdlib_h" = xyes
15403 then :
15404 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15405
15406 fi
15407 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15408 if test "x$ac_cv_header_sys_param_h" = xyes
15409 then :
15410 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15411
15412 fi
15413
15414 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15415 if test "x$ac_cv_func_putenv" = xyes
15416 then :
15417 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15418
15419 fi
15420
15421 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15422 if test "x$ac_cv_func_getcwd" = xyes
15423 then :
15424 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15425
15426 fi
15427 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15428 if test "x$ac_cv_func_memcmp" = xyes
15429 then :
15430 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15431
15432 fi
15433 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15434 if test "x$ac_cv_func_memcpy" = xyes
15435 then :
15436 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15437
15438 fi
15439 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15440 if test "x$ac_cv_func_mkstemp" = xyes
15441 then :
15442 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15443
15444 fi
15445 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15446 if test "x$ac_cv_func_mktemp" = xyes
15447 then :
15448 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15449
15450 fi
15451 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15452 if test "x$ac_cv_func_strchr" = xyes
15453 then :
15454 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15455
15456 fi
15457 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15458 if test "x$ac_cv_func_strrchr" = xyes
15459 then :
15460 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15461
15462 fi
15463
15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15465 printf %s "checking for an ANSI C-conforming const... " >&6; }
15466 if test ${ac_cv_c_const+y}
15467 then :
15468 printf %s "(cached) " >&6
15469 else case e in #(
15470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15472
15473 int
15474 main (void)
15475 {
15476
15477 #ifndef __cplusplus
15478 /* Ultrix mips cc rejects this sort of thing. */
15479 typedef int charset[2];
15480 const charset cs = { 0, 0 };
15481 /* SunOS 4.1.1 cc rejects this. */
15482 char const *const *pcpcc;
15483 char **ppc;
15484 /* NEC SVR4.0.2 mips cc rejects this. */
15485 struct point {int x, y;};
15486 static struct point const zero = {0,0};
15487 /* IBM XL C 1.02.0.0 rejects this.
15488 It does not let you subtract one const X* pointer from another in
15489 an arm of an if-expression whose if-part is not a constant
15490 expression */
15491 const char *g = "string";
15492 pcpcc = &g + (g ? g-g : 0);
15493 /* HPUX 7.0 cc rejects these. */
15494 ++pcpcc;
15495 ppc = (char**) pcpcc;
15496 pcpcc = (char const *const *) ppc;
15497 { /* SCO 3.2v4 cc rejects this sort of thing. */
15498 char tx;
15499 char *t = &tx;
15500 char const *s = 0 ? (char *) 0 : (char const *) 0;
15501
15502 *t++ = 0;
15503 if (s) return 0;
15504 }
15505 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15506 int x[] = {25, 17};
15507 const int *foo = &x[0];
15508 ++foo;
15509 }
15510 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15511 typedef const int *iptr;
15512 iptr p = 0;
15513 ++p;
15514 }
15515 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15516 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15517 struct s { int j; const int *ap[3]; } bx;
15518 struct s *b = &bx; b->j = 5;
15519 }
15520 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15521 const int foo = 10;
15522 if (!foo) return 0;
15523 }
15524 return !cs[0] && !zero.x;
15525 #endif
15526
15527 ;
15528 return 0;
15529 }
15530 _ACEOF
15531 if ac_fn_c_try_compile "$LINENO"
15532 then :
15533 ac_cv_c_const=yes
15534 else case e in #(
15535 e) ac_cv_c_const=no ;;
15536 esac
15537 fi
15538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15539 esac
15540 fi
15541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15542 printf "%s\n" "$ac_cv_c_const" >&6; }
15543 if test $ac_cv_c_const = no; then
15544
15545 printf "%s\n" "#define const /**/" >>confdefs.h
15546
15547 fi
15548
15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15550 printf %s "checking for inline... " >&6; }
15551 if test ${ac_cv_c_inline+y}
15552 then :
15553 printf %s "(cached) " >&6
15554 else case e in #(
15555 e) ac_cv_c_inline=no
15556 for ac_kw in inline __inline__ __inline; do
15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15559 #ifndef __cplusplus
15560 typedef int foo_t;
15561 static $ac_kw foo_t static_foo (void) {return 0; }
15562 $ac_kw foo_t foo (void) {return 0; }
15563 #endif
15564
15565 _ACEOF
15566 if ac_fn_c_try_compile "$LINENO"
15567 then :
15568 ac_cv_c_inline=$ac_kw
15569 fi
15570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15571 test "$ac_cv_c_inline" != no && break
15572 done
15573 ;;
15574 esac
15575 fi
15576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15577 printf "%s\n" "$ac_cv_c_inline" >&6; }
15578
15579 case $ac_cv_c_inline in
15580 inline | yes) ;;
15581 *)
15582 case $ac_cv_c_inline in
15583 no) ac_val=;;
15584 *) ac_val=$ac_cv_c_inline;;
15585 esac
15586 cat >>confdefs.h <<_ACEOF
15587 #ifndef __cplusplus
15588 #define inline $ac_val
15589 #endif
15590 _ACEOF
15591 ;;
15592 esac
15593
15594 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15595 if test "x$ac_cv_type_size_t" = xyes
15596 then :
15597
15598 else case e in #(
15599 e)
15600 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15601 ;;
15602 esac
15603 fi
15604
15605 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15606 case $ac_cv_c_int64_t in #(
15607 no|yes) ;; #(
15608 *)
15609
15610 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15611 ;;
15612 esac
15613
15614 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15615 case $ac_cv_c_uint64_t in #(
15616 no|yes) ;; #(
15617 *)
15618
15619 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15620
15621
15622 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15623 ;;
15624 esac
15625
15626 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15627 *':no:'*) :
15628 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15629 *) :
15630 ;;
15631 esac
15632 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15633 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15634 if test "x$ac_cv_have_decl_isascii" = xyes
15635 then :
15636 ac_have_decl=1
15637 else case e in #(
15638 e) ac_have_decl=0 ;;
15639 esac
15640 fi
15641 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15642
15643 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15644 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15645 then :
15646
15647 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15648
15649
15650 fi
15651
15652
15653
15654 for ac_prog in flex lex
15655 do
15656 # Extract the first word of "$ac_prog", so it can be a program name with args.
15657 set dummy $ac_prog; ac_word=$2
15658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15659 printf %s "checking for $ac_word... " >&6; }
15660 if test ${ac_cv_prog_LEX+y}
15661 then :
15662 printf %s "(cached) " >&6
15663 else case e in #(
15664 e) if test -n "$LEX"; then
15665 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15666 else
15667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15668 for as_dir in $PATH
15669 do
15670 IFS=$as_save_IFS
15671 case $as_dir in #(((
15672 '') as_dir=./ ;;
15673 */) ;;
15674 *) as_dir=$as_dir/ ;;
15675 esac
15676 for ac_exec_ext in '' $ac_executable_extensions; do
15677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15678 ac_cv_prog_LEX="$ac_prog"
15679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15680 break 2
15681 fi
15682 done
15683 done
15684 IFS=$as_save_IFS
15685
15686 fi ;;
15687 esac
15688 fi
15689 LEX=$ac_cv_prog_LEX
15690 if test -n "$LEX"; then
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
15692 printf "%s\n" "$LEX" >&6; }
15693 else
15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695 printf "%s\n" "no" >&6; }
15696 fi
15697
15698
15699 test -n "$LEX" && break
15700 done
15701 test -n "$LEX" || LEX=":"
15702
15703 if test "x$LEX" != "x:"; then
15704 cat >conftest.l <<_ACEOF
15705 %{
15706 #ifdef __cplusplus
15707 extern "C"
15708 #endif
15709 int yywrap(void);
15710 %}
15711 %%
15712 a { ECHO; }
15713 b { REJECT; }
15714 c { yymore (); }
15715 d { yyless (1); }
15716 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
15717 #ifdef __cplusplus
15718 yyless ((yyinput () != 0));
15719 #else
15720 yyless ((input () != 0));
15721 #endif
15722 }
15723 f { unput (yytext[0]); }
15724 . { BEGIN INITIAL; }
15725 %%
15726 #ifdef YYTEXT_POINTER
15727 extern char *yytext;
15728 #endif
15729 int
15730 yywrap (void)
15731 {
15732 return 1;
15733 }
15734 int
15735 main (void)
15736 {
15737 return ! yylex ();
15738 }
15739 _ACEOF
15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
15741 printf %s "checking for lex output file root... " >&6; }
15742 if test ${ac_cv_prog_lex_root+y}
15743 then :
15744 printf %s "(cached) " >&6
15745 else case e in #(
15746 e)
15747 ac_cv_prog_lex_root=unknown
15748 { { ac_try="$LEX conftest.l"
15749 case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15752 esac
15753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15754 printf "%s\n" "$ac_try_echo"; } >&5
15755 (eval "$LEX conftest.l") 2>&5
15756 ac_status=$?
15757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15758 test $ac_status = 0; } &&
15759 if test -f lex.yy.c; then
15760 ac_cv_prog_lex_root=lex.yy
15761 elif test -f lexyy.c; then
15762 ac_cv_prog_lex_root=lexyy
15763 fi ;;
15764 esac
15765 fi
15766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
15767 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
15768 if test "$ac_cv_prog_lex_root" = unknown
15769 then :
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
15771 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
15772 LEX=: LEXLIB=
15773 fi
15774 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
15775
15776 if test ${LEXLIB+y}
15777 then :
15778
15779 else case e in #(
15780 e)
15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
15782 printf %s "checking for lex library... " >&6; }
15783 if test ${ac_cv_lib_lex+y}
15784 then :
15785 printf %s "(cached) " >&6
15786 else case e in #(
15787 e)
15788 ac_save_LIBS="$LIBS"
15789 ac_found=false
15790 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
15791 case $ac_cv_lib_lex in #(
15792 'none needed') :
15793 ;; #(
15794 'not found') :
15795 break ;; #(
15796 *) :
15797 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
15798 *) :
15799 ;;
15800 esac
15801
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 `cat $LEX_OUTPUT_ROOT.c`
15805 _ACEOF
15806 if ac_fn_c_try_link "$LINENO"
15807 then :
15808 ac_found=:
15809 fi
15810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15811 conftest$ac_exeext conftest.$ac_ext
15812 if $ac_found; then
15813 break
15814 fi
15815 done
15816 LIBS="$ac_save_LIBS"
15817 ;;
15818 esac
15819 fi
15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
15821 printf "%s\n" "$ac_cv_lib_lex" >&6; }
15822 if test "$ac_cv_lib_lex" = 'not found'
15823 then :
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
15825 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
15826 LEX=: LEXLIB=
15827 elif test "$ac_cv_lib_lex" = 'none needed'
15828 then :
15829 LEXLIB=''
15830 else case e in #(
15831 e) LEXLIB=$ac_cv_lib_lex ;;
15832 esac
15833 fi
15834 ac_save_LIBS="$LIBS"
15835 LIBS=
15836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
15837 printf %s "checking for library containing yywrap... " >&6; }
15838 if test ${ac_cv_search_yywrap+y}
15839 then :
15840 printf %s "(cached) " >&6
15841 else case e in #(
15842 e) ac_func_search_save_LIBS=$LIBS
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15845
15846 /* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply.
15849 The 'extern "C"' is for builds by C++ compilers;
15850 although this is not generally supported in C code supporting it here
15851 has little cost and some practical benefit (sr 110532). */
15852 #ifdef __cplusplus
15853 extern "C"
15854 #endif
15855 char yywrap (void);
15856 int
15857 main (void)
15858 {
15859 return yywrap ();
15860 ;
15861 return 0;
15862 }
15863 _ACEOF
15864 for ac_lib in '' fl l
15865 do
15866 if test -z "$ac_lib"; then
15867 ac_res="none required"
15868 else
15869 ac_res=-l$ac_lib
15870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15871 fi
15872 if ac_fn_c_try_link "$LINENO"
15873 then :
15874 ac_cv_search_yywrap=$ac_res
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15877 conftest$ac_exeext
15878 if test ${ac_cv_search_yywrap+y}
15879 then :
15880 break
15881 fi
15882 done
15883 if test ${ac_cv_search_yywrap+y}
15884 then :
15885
15886 else case e in #(
15887 e) ac_cv_search_yywrap=no ;;
15888 esac
15889 fi
15890 rm conftest.$ac_ext
15891 LIBS=$ac_func_search_save_LIBS ;;
15892 esac
15893 fi
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
15895 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
15896 ac_res=$ac_cv_search_yywrap
15897 if test "$ac_res" != no
15898 then :
15899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15900 LEXLIB="$LIBS"
15901 fi
15902
15903 LIBS="$ac_save_LIBS" ;;
15904 esac
15905 fi
15906
15907
15908 if test "$LEX" != :
15909 then :
15910
15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
15912 printf %s "checking whether yytext is a pointer... " >&6; }
15913 if test ${ac_cv_prog_lex_yytext_pointer+y}
15914 then :
15915 printf %s "(cached) " >&6
15916 else case e in #(
15917 e) # POSIX says lex can declare yytext either as a pointer or an array; the
15918 # default is implementation-dependent. Figure out which it is, since
15919 # not all implementations provide the %pointer and %array declarations.
15920 ac_cv_prog_lex_yytext_pointer=no
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15923
15924 #define YYTEXT_POINTER 1
15925 `cat $LEX_OUTPUT_ROOT.c`
15926 _ACEOF
15927 if ac_fn_c_try_compile "$LINENO"
15928 then :
15929 ac_cv_prog_lex_yytext_pointer=yes
15930 fi
15931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15932 ;;
15933 esac
15934 fi
15935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
15936 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
15937 if test $ac_cv_prog_lex_yytext_pointer = yes; then
15938
15939 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
15940
15941 fi
15942
15943 fi
15944 rm -f conftest.l $LEX_OUTPUT_ROOT.c
15945
15946 fi
15947
15948 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
15949
15950
15951 kpse_save_CPPFLAGS=$CPPFLAGS
15952 kpse_save_LIBS=$LIBS
15953
15954 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15955 kpse_BLD=`(cd "./../../." && pwd)`
15956 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15957
15958 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15959 : ${CONFIG_LT=./config.lt}
15960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15961 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15962 as_write_fail=0
15963 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15964 #! $SHELL
15965 # Generated by $as_me.
15966 # Run this file to recreate a libtool stub with the current configuration.
15967 SHELL=\${CONFIG_SHELL-$SHELL}
15968 export SHELL
15969 _ASEOF
15970 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15971 ## -------------------- ##
15972 ## M4sh Initialization. ##
15973 ## -------------------- ##
15974
15975 # Be more Bourne compatible
15976 DUALCASE=1; export DUALCASE # for MKS sh
15977 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15978 then :
15979 emulate sh
15980 NULLCMD=:
15981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15982 # is contrary to our usage. Disable this feature.
15983 alias -g '${1+"$@"}'='"$@"'
15984 setopt NO_GLOB_SUBST
15985 else case e in #(
15986 e) case `(set -o) 2>/dev/null` in #(
15987 *posix*) :
15988 set -o posix ;; #(
15989 *) :
15990 ;;
15991 esac ;;
15992 esac
15993 fi
15994
15995
15996
15997 # Reset variables that may have inherited troublesome values from
15998 # the environment.
15999
16000 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16001 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16002 # side effect of setting IFS to empty, thus disabling word splitting.)
16003 # Quoting is to prevent editors from complaining about space-tab.
16004 as_nl='
16005 '
16006 export as_nl
16007 IFS=" "" $as_nl"
16008
16009 PS1='$ '
16010 PS2='> '
16011 PS4='+ '
16012
16013 # Ensure predictable behavior from utilities with locale-dependent output.
16014 LC_ALL=C
16015 export LC_ALL
16016 LANGUAGE=C
16017 export LANGUAGE
16018
16019 # We cannot yet rely on "unset" to work, but we need these variables
16020 # to be unset--not just set to an empty or harmless value--now, to
16021 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16022 # also avoids known problems related to "unset" and subshell syntax
16023 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16024 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16025 do eval test \${$as_var+y} \
16026 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16027 done
16028
16029 # Ensure that fds 0, 1, and 2 are open.
16030 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16031 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16032 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16033
16034 # The user is always right.
16035 if ${PATH_SEPARATOR+false} :; then
16036 PATH_SEPARATOR=:
16037 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16038 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16039 PATH_SEPARATOR=';'
16040 }
16041 fi
16042
16043
16044 # Find who we are. Look in the path if we contain no directory separator.
16045 as_myself=
16046 case $0 in #((
16047 *[\\/]* ) as_myself=$0 ;;
16048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16049 for as_dir in $PATH
16050 do
16051 IFS=$as_save_IFS
16052 case $as_dir in #(((
16053 '') as_dir=./ ;;
16054 */) ;;
16055 *) as_dir=$as_dir/ ;;
16056 esac
16057 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16058 done
16059 IFS=$as_save_IFS
16060
16061 ;;
16062 esac
16063 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16064 # in which case we are not to be found in the path.
16065 if test "x$as_myself" = x; then
16066 as_myself=$0
16067 fi
16068 if test ! -f "$as_myself"; then
16069 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16070 exit 1
16071 fi
16072
16073
16074
16075 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16076 # ----------------------------------------
16077 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16078 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16079 # script with STATUS, using 1 if that was 0.
16080 as_fn_error ()
16081 {
16082 as_status=$1; test $as_status -eq 0 && as_status=1
16083 if test "$4"; then
16084 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16086 fi
16087 printf "%s\n" "$as_me: error: $2" >&2
16088 as_fn_exit $as_status
16089 } # as_fn_error
16090
16091
16092 # as_fn_set_status STATUS
16093 # -----------------------
16094 # Set $? to STATUS, without forking.
16095 as_fn_set_status ()
16096 {
16097 return $1
16098 } # as_fn_set_status
16099
16100 # as_fn_exit STATUS
16101 # -----------------
16102 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16103 as_fn_exit ()
16104 {
16105 set +e
16106 as_fn_set_status $1
16107 exit $1
16108 } # as_fn_exit
16109
16110 # as_fn_unset VAR
16111 # ---------------
16112 # Portably unset VAR.
16113 as_fn_unset ()
16114 {
16115 { eval $1=; unset $1;}
16116 }
16117 as_unset=as_fn_unset
16118
16119 # as_fn_append VAR VALUE
16120 # ----------------------
16121 # Append the text in VALUE to the end of the definition contained in VAR. Take
16122 # advantage of any shell optimizations that allow amortized linear growth over
16123 # repeated appends, instead of the typical quadratic growth present in naive
16124 # implementations.
16125 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16126 then :
16127 eval 'as_fn_append ()
16128 {
16129 eval $1+=\$2
16130 }'
16131 else case e in #(
16132 e) as_fn_append ()
16133 {
16134 eval $1=\$$1\$2
16135 } ;;
16136 esac
16137 fi # as_fn_append
16138
16139 # as_fn_arith ARG...
16140 # ------------------
16141 # Perform arithmetic evaluation on the ARGs, and store the result in the
16142 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16143 # must be portable across $(()) and expr.
16144 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16145 then :
16146 eval 'as_fn_arith ()
16147 {
16148 as_val=$(( $* ))
16149 }'
16150 else case e in #(
16151 e) as_fn_arith ()
16152 {
16153 as_val=`expr "$@" || test $? -eq 1`
16154 } ;;
16155 esac
16156 fi # as_fn_arith
16157
16158
16159 if expr a : '\(a\)' >/dev/null 2>&1 &&
16160 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16161 as_expr=expr
16162 else
16163 as_expr=false
16164 fi
16165
16166 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16167 as_basename=basename
16168 else
16169 as_basename=false
16170 fi
16171
16172 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16173 as_dirname=dirname
16174 else
16175 as_dirname=false
16176 fi
16177
16178 as_me=`$as_basename -- "$0" ||
16179 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16180 X"$0" : 'X\(//\)$' \| \
16181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16182 printf "%s\n" X/"$0" |
16183 sed '/^.*\/\([^/][^/]*\)\/*$/{
16184 s//\1/
16185 q
16186 }
16187 /^X\/\(\/\/\)$/{
16188 s//\1/
16189 q
16190 }
16191 /^X\/\(\/\).*/{
16192 s//\1/
16193 q
16194 }
16195 s/.*/./; q'`
16196
16197 # Avoid depending upon Character Ranges.
16198 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16199 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16200 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16201 as_cr_digits='0123456789'
16202 as_cr_alnum=$as_cr_Letters$as_cr_digits
16203
16204
16205 # Determine whether it's possible to make 'echo' print without a newline.
16206 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16207 # for compatibility with existing Makefiles.
16208 ECHO_C= ECHO_N= ECHO_T=
16209 case `echo -n x` in #(((((
16210 -n*)
16211 case `echo 'xy\c'` in
16212 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16213 xy) ECHO_C='\c';;
16214 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16215 ECHO_T=' ';;
16216 esac;;
16217 *)
16218 ECHO_N='-n';;
16219 esac
16220
16221 # For backward compatibility with old third-party macros, we provide
16222 # the shell variables $as_echo and $as_echo_n. New code should use
16223 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16224 as_echo='printf %s\n'
16225 as_echo_n='printf %s'
16226
16227 rm -f conf$$ conf$$.exe conf$$.file
16228 if test -d conf$$.dir; then
16229 rm -f conf$$.dir/conf$$.file
16230 else
16231 rm -f conf$$.dir
16232 mkdir conf$$.dir 2>/dev/null
16233 fi
16234 if (echo >conf$$.file) 2>/dev/null; then
16235 if ln -s conf$$.file conf$$ 2>/dev/null; then
16236 as_ln_s='ln -s'
16237 # ... but there are two gotchas:
16238 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16239 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16240 # In both cases, we have to default to 'cp -pR'.
16241 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16242 as_ln_s='cp -pR'
16243 elif ln conf$$.file conf$$ 2>/dev/null; then
16244 as_ln_s=ln
16245 else
16246 as_ln_s='cp -pR'
16247 fi
16248 else
16249 as_ln_s='cp -pR'
16250 fi
16251 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16252 rmdir conf$$.dir 2>/dev/null
16253
16254
16255 # as_fn_mkdir_p
16256 # -------------
16257 # Create "$as_dir" as a directory, including parents if necessary.
16258 as_fn_mkdir_p ()
16259 {
16260
16261 case $as_dir in #(
16262 -*) as_dir=./$as_dir;;
16263 esac
16264 test -d "$as_dir" || eval $as_mkdir_p || {
16265 as_dirs=
16266 while :; do
16267 case $as_dir in #(
16268 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16269 *) as_qdir=$as_dir;;
16270 esac
16271 as_dirs="'$as_qdir' $as_dirs"
16272 as_dir=`$as_dirname -- "$as_dir" ||
16273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16274 X"$as_dir" : 'X\(//\)[^/]' \| \
16275 X"$as_dir" : 'X\(//\)$' \| \
16276 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16277 printf "%s\n" X"$as_dir" |
16278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16279 s//\1/
16280 q
16281 }
16282 /^X\(\/\/\)[^/].*/{
16283 s//\1/
16284 q
16285 }
16286 /^X\(\/\/\)$/{
16287 s//\1/
16288 q
16289 }
16290 /^X\(\/\).*/{
16291 s//\1/
16292 q
16293 }
16294 s/.*/./; q'`
16295 test -d "$as_dir" && break
16296 done
16297 test -z "$as_dirs" || eval "mkdir $as_dirs"
16298 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16299
16300
16301 } # as_fn_mkdir_p
16302 if mkdir -p . 2>/dev/null; then
16303 as_mkdir_p='mkdir -p "$as_dir"'
16304 else
16305 test -d ./-p && rmdir ./-p
16306 as_mkdir_p=false
16307 fi
16308
16309
16310 # as_fn_executable_p FILE
16311 # -----------------------
16312 # Test if FILE is an executable regular file.
16313 as_fn_executable_p ()
16314 {
16315 test -f "$1" && test -x "$1"
16316 } # as_fn_executable_p
16317 as_test_x='test -x'
16318 as_executable_p=as_fn_executable_p
16319
16320 # Sed expression to map a string onto a valid CPP name.
16321 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16322 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16323
16324 # Sed expression to map a string onto a valid variable name.
16325 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16326 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16327
16328
16329 exec 6>&1
16330 ## --------------------------------- ##
16331 ## Main body of "$CONFIG_LT" script. ##
16332 ## --------------------------------- ##
16333 _ASEOF
16334 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16335
16336 cat >>"$CONFIG_LT" <<\_LTEOF
16337 lt_cl_silent=false
16338 exec 5>>config.log
16339 {
16340 echo
16341 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16342 ## Running $as_me. ##
16343 _ASBOX
16344 } >&5
16345
16346 lt_cl_help="\
16347 '$as_me' creates a local libtool stub from the current configuration,
16348 for use in further configure time tests before the real libtool is
16349 generated.
16350
16351 Usage: $0 [OPTIONS]
16352
16353 -h, --help print this help, then exit
16354 -V, --version print version number, then exit
16355 -q, --quiet do not print progress messages
16356 -d, --debug don't remove temporary files
16357
16358 Report bugs to <[email protected]>."
16359
16360 lt_cl_version="\
16361 detex (TeX Live) config.lt 2.8.11
16362 configured by $0, generated by GNU Autoconf 2.72.
16363
16364 Copyright (C) 2024 Free Software Foundation, Inc.
16365 This config.lt script is free software; the Free Software Foundation
16366 gives unlimited permission to copy, distribute and modify it."
16367
16368 while test 0 != $#
16369 do
16370 case $1 in
16371 --version | --v* | -V )
16372 echo "$lt_cl_version"; exit 0 ;;
16373 --help | --h* | -h )
16374 echo "$lt_cl_help"; exit 0 ;;
16375 --debug | --d* | -d )
16376 debug=: ;;
16377 --quiet | --q* | --silent | --s* | -q )
16378 lt_cl_silent=: ;;
16379
16380 -*) as_fn_error $? "unrecognized option: $1
16381 Try '$0 --help' for more information." "$LINENO" 5 ;;
16382
16383 *) as_fn_error $? "unrecognized argument: $1
16384 Try '$0 --help' for more information." "$LINENO" 5 ;;
16385 esac
16386 shift
16387 done
16388
16389 if $lt_cl_silent; then
16390 exec 6>/dev/null
16391 fi
16392 _LTEOF
16393
16394 cat >>"$CONFIG_LT" <<_LTEOF
16395
16396
16397 # The HP-UX ksh and POSIX shell print the target directory to stdout
16398 # if CDPATH is set.
16399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16400
16401 sed_quote_subst='$sed_quote_subst'
16402 double_quote_subst='$double_quote_subst'
16403 delay_variable_subst='$delay_variable_subst'
16404 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16405 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16406 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16407 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16408 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16409 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16410 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16411 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16412 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16413 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16414 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16415 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16416 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16417 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16418 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16419 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16420 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16421 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16422 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16423 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16424 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16425 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16426 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16427 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16428 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16429 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16430 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16431 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16432 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16433 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16434 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16435 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16436 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16437 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16438 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16439 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16440 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16441 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16442 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16443 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16444 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16445 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16446 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16447 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16448 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16449 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16450 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16451 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16452 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16453 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16454 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16455 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16456 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16457 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16458 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16459 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16460 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16461 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16462 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16463 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16464 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16465 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"`'
16466 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16467 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16468 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16469 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16470 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16471 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16472 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16473 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16474 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16475 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16476 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16477 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16478 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16479 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16480 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16481 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16482 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16483 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16484 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16485 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16486 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16487 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16488 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16489 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16490 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16491 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16492 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16493 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16494 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16495 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16496 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16497 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16498 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16499 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16500 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16501 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16502 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16503 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16504 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16505 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16506 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16507 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16508 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16509 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16510 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16511 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16512 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16513 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16514 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16515 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16516 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16517 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16518 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16519 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16520 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16521 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16522 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16523 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16524 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16525 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16526 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16527 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16528 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16529 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16530 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16531 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16532 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16533 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16534 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16535 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16536 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16537 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16538 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16539 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16540 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16541 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16542
16543 LTCC='$LTCC'
16544 LTCFLAGS='$LTCFLAGS'
16545 compiler='$compiler_DEFAULT'
16546
16547 # A function that is used when there is no print builtin or printf.
16548 func_fallback_echo ()
16549 {
16550 eval 'cat <<_LTECHO_EOF
16551 \$1
16552 _LTECHO_EOF'
16553 }
16554
16555 # Quote evaled strings.
16556 for var in AS \
16557 DLLTOOL \
16558 OBJDUMP \
16559 SHELL \
16560 ECHO \
16561 PATH_SEPARATOR \
16562 SED \
16563 GREP \
16564 EGREP \
16565 FGREP \
16566 LD \
16567 NM \
16568 LN_S \
16569 lt_SP2NL \
16570 lt_NL2SP \
16571 reload_flag \
16572 FILECMD \
16573 deplibs_check_method \
16574 file_magic_cmd \
16575 file_magic_glob \
16576 want_nocaseglob \
16577 sharedlib_from_linklib_cmd \
16578 AR \
16579 archiver_list_spec \
16580 STRIP \
16581 RANLIB \
16582 CC \
16583 CFLAGS \
16584 compiler \
16585 lt_cv_sys_global_symbol_pipe \
16586 lt_cv_sys_global_symbol_to_cdecl \
16587 lt_cv_sys_global_symbol_to_import \
16588 lt_cv_sys_global_symbol_to_c_name_address \
16589 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16590 lt_cv_nm_interface \
16591 nm_file_list_spec \
16592 lt_cv_truncate_bin \
16593 lt_prog_compiler_no_builtin_flag \
16594 lt_prog_compiler_pic \
16595 lt_prog_compiler_wl \
16596 lt_prog_compiler_static \
16597 lt_cv_prog_compiler_c_o \
16598 need_locks \
16599 MANIFEST_TOOL \
16600 DSYMUTIL \
16601 NMEDIT \
16602 LIPO \
16603 OTOOL \
16604 OTOOL64 \
16605 shrext_cmds \
16606 export_dynamic_flag_spec \
16607 whole_archive_flag_spec \
16608 compiler_needs_object \
16609 with_gnu_ld \
16610 allow_undefined_flag \
16611 no_undefined_flag \
16612 hardcode_libdir_flag_spec \
16613 hardcode_libdir_separator \
16614 exclude_expsyms \
16615 include_expsyms \
16616 file_list_spec \
16617 variables_saved_for_relink \
16618 libname_spec \
16619 library_names_spec \
16620 soname_spec \
16621 install_override_mode \
16622 finish_eval \
16623 old_striplib \
16624 striplib; do
16625 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16626 *[\\\\\\\`\\"\\\$]*)
16627 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16628 ;;
16629 *)
16630 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16631 ;;
16632 esac
16633 done
16634
16635 # Double-quote double-evaled strings.
16636 for var in reload_cmds \
16637 old_postinstall_cmds \
16638 old_postuninstall_cmds \
16639 old_archive_cmds \
16640 extract_expsyms_cmds \
16641 old_archive_from_new_cmds \
16642 old_archive_from_expsyms_cmds \
16643 archive_cmds \
16644 archive_expsym_cmds \
16645 module_cmds \
16646 module_expsym_cmds \
16647 export_symbols_cmds \
16648 prelink_cmds \
16649 postlink_cmds \
16650 postinstall_cmds \
16651 postuninstall_cmds \
16652 finish_cmds \
16653 sys_lib_search_path_spec \
16654 configure_time_dlsearch_path \
16655 configure_time_lt_sys_library_path; do
16656 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16657 *[\\\\\\\`\\"\\\$]*)
16658 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16659 ;;
16660 *)
16661 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16662 ;;
16663 esac
16664 done
16665
16666 ac_aux_dir='$ac_aux_dir'
16667
16668 # See if we are running on zsh, and set the options that allow our
16669 # commands through without removal of \ escapes INIT.
16670 if test -n "\${ZSH_VERSION+set}"; then
16671 setopt NO_GLOB_SUBST
16672 fi
16673
16674
16675 PACKAGE='$PACKAGE'
16676 VERSION='$VERSION'
16677 RM='$RM'
16678 ofile='$ofile'
16679
16680
16681
16682 _LTEOF
16683
16684 cat >>"$CONFIG_LT" <<\_LTEOF
16685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16686 printf "%s\n" "$as_me: creating $ofile" >&6;}
16687
16688
16689 # See if we are running on zsh, and set the options that allow our
16690 # commands through without removal of \ escapes.
16691 if test -n "${ZSH_VERSION+set}"; then
16692 setopt NO_GLOB_SUBST
16693 fi
16694
16695 cfgfile=${ofile}T
16696 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16697 $RM "$cfgfile"
16698
16699 cat <<_LT_EOF >> "$cfgfile"
16700 #! $SHELL
16701 # Generated automatically by $as_me ($PACKAGE) $VERSION
16702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16703
16704 # Provide generalized library-building support services.
16705 # Written by Gordon Matzigkeit, 1996
16706
16707 # Copyright (C) 2024 Free Software Foundation, Inc.
16708 # This is free software; see the source for copying conditions. There is NO
16709 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16710
16711 # GNU Libtool is free software; you can redistribute it and/or modify
16712 # it under the terms of the GNU General Public License as published by
16713 # the Free Software Foundation; either version 2 of the License, or
16714 # (at your option) any later version.
16715 #
16716 # As a special exception to the GNU General Public License, if you
16717 # distribute this file as part of a program or library that is built
16718 # using GNU Libtool, you may include this file under the same
16719 # distribution terms that you use for the rest of that program.
16720 #
16721 # GNU Libtool is distributed in the hope that it will be useful, but
16722 # WITHOUT ANY WARRANTY; without even the implied warranty of
16723 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16724 # GNU General Public License for more details.
16725 #
16726 # You should have received a copy of the GNU General Public License
16727 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16728
16729
16730 # The names of the tagged configurations supported by this script.
16731 available_tags=''
16732
16733 # Configured defaults for sys_lib_dlsearch_path munging.
16734 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16735
16736 # ### BEGIN LIBTOOL CONFIG
16737
16738 # Which release of libtool.m4 was used?
16739 macro_version=$macro_version
16740 macro_revision=$macro_revision
16741
16742 # Assembler program.
16743 AS=$lt_AS
16744
16745 # DLL creation program.
16746 DLLTOOL=$lt_DLLTOOL
16747
16748 # Object dumper program.
16749 OBJDUMP=$lt_OBJDUMP
16750
16751 # Whether or not to build shared libraries.
16752 build_libtool_libs=$enable_shared
16753
16754 # Whether or not to build static libraries.
16755 build_old_libs=$enable_static
16756
16757 # What type of objects to build.
16758 pic_mode=$pic_mode
16759
16760 # Whether or not to optimize for fast installation.
16761 fast_install=$enable_fast_install
16762
16763 # Shared archive member basename,for filename based shared library versioning on AIX.
16764 shared_archive_member_spec=$shared_archive_member_spec
16765
16766 # Shell to use when invoking shell scripts.
16767 SHELL=$lt_SHELL
16768
16769 # An echo program that protects backslashes.
16770 ECHO=$lt_ECHO
16771
16772 # The PATH separator for the build system.
16773 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16774
16775 # The host system.
16776 host_alias=$host_alias
16777 host=$host
16778 host_os=$host_os
16779
16780 # The build system.
16781 build_alias=$build_alias
16782 build=$build
16783 build_os=$build_os
16784
16785 # A sed program that does not truncate output.
16786 SED=$lt_SED
16787
16788 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16789 Xsed="\$SED -e 1s/^X//"
16790
16791 # A grep program that handles long lines.
16792 GREP=$lt_GREP
16793
16794 # An ERE matcher.
16795 EGREP=$lt_EGREP
16796
16797 # A literal string matcher.
16798 FGREP=$lt_FGREP
16799
16800 # A BSD- or MS-compatible name lister.
16801 NM=$lt_NM
16802
16803 # Whether we need soft or hard links.
16804 LN_S=$lt_LN_S
16805
16806 # What is the maximum length of a command?
16807 max_cmd_len=$max_cmd_len
16808
16809 # Object file suffix (normally "o").
16810 objext=$ac_objext
16811
16812 # Executable file suffix (normally "").
16813 exeext=$exeext
16814
16815 # whether the shell understands "unset".
16816 lt_unset=$lt_unset
16817
16818 # turn spaces into newlines.
16819 SP2NL=$lt_lt_SP2NL
16820
16821 # turn newlines into spaces.
16822 NL2SP=$lt_lt_NL2SP
16823
16824 # convert \$build file names to \$host format.
16825 to_host_file_cmd=$lt_cv_to_host_file_cmd
16826
16827 # convert \$build files to toolchain format.
16828 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16829
16830 # A file(cmd) program that detects file types.
16831 FILECMD=$lt_FILECMD
16832
16833 # Method to check whether dependent libraries are shared objects.
16834 deplibs_check_method=$lt_deplibs_check_method
16835
16836 # Command to use when deplibs_check_method = "file_magic".
16837 file_magic_cmd=$lt_file_magic_cmd
16838
16839 # How to find potential files when deplibs_check_method = "file_magic".
16840 file_magic_glob=$lt_file_magic_glob
16841
16842 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16843 want_nocaseglob=$lt_want_nocaseglob
16844
16845 # Command to associate shared and link libraries.
16846 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16847
16848 # The archiver.
16849 AR=$lt_AR
16850
16851 # Flags to create an archive (by configure).
16852 lt_ar_flags=$lt_ar_flags
16853
16854 # Flags to create an archive.
16855 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16856
16857 # How to feed a file listing to the archiver.
16858 archiver_list_spec=$lt_archiver_list_spec
16859
16860 # A symbol stripping program.
16861 STRIP=$lt_STRIP
16862
16863 # Commands used to install an old-style archive.
16864 RANLIB=$lt_RANLIB
16865 old_postinstall_cmds=$lt_old_postinstall_cmds
16866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16867
16868 # Whether to use a lock for old archive extraction.
16869 lock_old_archive_extraction=$lock_old_archive_extraction
16870
16871 # A C compiler.
16872 LTCC=$lt_CC
16873
16874 # LTCC compiler flags.
16875 LTCFLAGS=$lt_CFLAGS
16876
16877 # Take the output of nm and produce a listing of raw symbols and C names.
16878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16879
16880 # Transform the output of nm in a proper C declaration.
16881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16882
16883 # Transform the output of nm into a list of symbols to manually relocate.
16884 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16885
16886 # Transform the output of nm in a C name address pair.
16887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16888
16889 # Transform the output of nm in a C name address pair when lib prefix is needed.
16890 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16891
16892 # The name lister interface.
16893 nm_interface=$lt_lt_cv_nm_interface
16894
16895 # Specify filename containing input files for \$NM.
16896 nm_file_list_spec=$lt_nm_file_list_spec
16897
16898 # The root where to search for dependent libraries,and where our libraries should be installed.
16899 lt_sysroot=$lt_sysroot
16900
16901 # Command to truncate a binary pipe.
16902 lt_truncate_bin=$lt_lt_cv_truncate_bin
16903
16904 # The name of the directory that contains temporary libtool files.
16905 objdir=$objdir
16906
16907 # Used to examine libraries when file_magic_cmd begins with "file".
16908 MAGIC_CMD=$MAGIC_CMD
16909
16910 # Must we lock files when doing compilation?
16911 need_locks=$lt_need_locks
16912
16913 # Manifest tool.
16914 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16915
16916 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16917 DSYMUTIL=$lt_DSYMUTIL
16918
16919 # Tool to change global to local symbols on Mac OS X.
16920 NMEDIT=$lt_NMEDIT
16921
16922 # Tool to manipulate fat objects and archives on Mac OS X.
16923 LIPO=$lt_LIPO
16924
16925 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16926 OTOOL=$lt_OTOOL
16927
16928 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16929 OTOOL64=$lt_OTOOL64
16930
16931 # Old archive suffix (normally "a").
16932 libext=$libext
16933
16934 # Shared library suffix (normally ".so").
16935 shrext_cmds=$lt_shrext_cmds
16936
16937 # The commands to extract the exported symbol list from a shared archive.
16938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16939
16940 # Variables whose values should be saved in libtool wrapper scripts and
16941 # restored at link time.
16942 variables_saved_for_relink=$lt_variables_saved_for_relink
16943
16944 # Do we need the "lib" prefix for modules?
16945 need_lib_prefix=$need_lib_prefix
16946
16947 # Do we need a version for libraries?
16948 need_version=$need_version
16949
16950 # Library versioning type.
16951 version_type=$version_type
16952
16953 # Shared library runtime path variable.
16954 runpath_var=$runpath_var
16955
16956 # Shared library path variable.
16957 shlibpath_var=$shlibpath_var
16958
16959 # Is shlibpath searched before the hard-coded library search path?
16960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16961
16962 # Format of library name prefix.
16963 libname_spec=$lt_libname_spec
16964
16965 # List of archive names. First name is the real one, the rest are links.
16966 # The last name is the one that the linker finds with -lNAME
16967 library_names_spec=$lt_library_names_spec
16968
16969 # The coded name of the library, if different from the real name.
16970 soname_spec=$lt_soname_spec
16971
16972 # Permission mode override for installation of shared libraries.
16973 install_override_mode=$lt_install_override_mode
16974
16975 # Command to use after installation of a shared archive.
16976 postinstall_cmds=$lt_postinstall_cmds
16977
16978 # Command to use after uninstallation of a shared archive.
16979 postuninstall_cmds=$lt_postuninstall_cmds
16980
16981 # Commands used to finish a libtool library installation in a directory.
16982 finish_cmds=$lt_finish_cmds
16983
16984 # As "finish_cmds", except a single script fragment to be evaled but
16985 # not shown.
16986 finish_eval=$lt_finish_eval
16987
16988 # Whether we should hardcode library paths into libraries.
16989 hardcode_into_libs=$hardcode_into_libs
16990
16991 # Compile-time system search path for libraries.
16992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16993
16994 # Detected run-time system search path for libraries.
16995 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16996
16997 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16998 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16999
17000 # Whether dlopen is supported.
17001 dlopen_support=$enable_dlopen
17002
17003 # Whether dlopen of programs is supported.
17004 dlopen_self=$enable_dlopen_self
17005
17006 # Whether dlopen of statically linked programs is supported.
17007 dlopen_self_static=$enable_dlopen_self_static
17008
17009 # Commands to strip libraries.
17010 old_striplib=$lt_old_striplib
17011 striplib=$lt_striplib
17012
17013
17014 # The linker used to build libraries.
17015 LD=$lt_LD
17016
17017 # How to create reloadable object files.
17018 reload_flag=$lt_reload_flag
17019 reload_cmds=$lt_reload_cmds
17020
17021 # Commands used to build an old-style archive.
17022 old_archive_cmds=$lt_old_archive_cmds
17023
17024 # A language specific compiler.
17025 CC=$lt_compiler
17026
17027 # Is the compiler the GNU compiler?
17028 with_gcc=$GCC
17029
17030 # Compiler flag to turn off builtin functions.
17031 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17032
17033 # Additional compiler flags for building library objects.
17034 pic_flag=$lt_lt_prog_compiler_pic
17035
17036 # How to pass a linker flag through the compiler.
17037 wl=$lt_lt_prog_compiler_wl
17038
17039 # Compiler flag to prevent dynamic linking.
17040 link_static_flag=$lt_lt_prog_compiler_static
17041
17042 # Does compiler simultaneously support -c and -o options?
17043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17044
17045 # Whether or not to add -lc for building shared libraries.
17046 build_libtool_need_lc=$archive_cmds_need_lc
17047
17048 # Whether or not to disallow shared libs when runtime libs are static.
17049 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17050
17051 # Compiler flag to allow reflexive dlopens.
17052 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17053
17054 # Compiler flag to generate shared objects directly from archives.
17055 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17056
17057 # Whether the compiler copes with passing no objects directly.
17058 compiler_needs_object=$lt_compiler_needs_object
17059
17060 # Create an old-style archive from a shared archive.
17061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17062
17063 # Create a temporary old-style archive to link instead of a shared archive.
17064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17065
17066 # Commands used to build a shared archive.
17067 archive_cmds=$lt_archive_cmds
17068 archive_expsym_cmds=$lt_archive_expsym_cmds
17069
17070 # Commands used to build a loadable module if different from building
17071 # a shared archive.
17072 module_cmds=$lt_module_cmds
17073 module_expsym_cmds=$lt_module_expsym_cmds
17074
17075 # Whether we are building with GNU ld or not.
17076 with_gnu_ld=$lt_with_gnu_ld
17077
17078 # Flag that allows shared libraries with undefined symbols to be built.
17079 allow_undefined_flag=$lt_allow_undefined_flag
17080
17081 # Flag that enforces no undefined symbols.
17082 no_undefined_flag=$lt_no_undefined_flag
17083
17084 # Flag to hardcode \$libdir into a binary during linking.
17085 # This must work even if \$libdir does not exist
17086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17087
17088 # Whether we need a single "-rpath" flag with a separated argument.
17089 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17090
17091 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17092 # DIR into the resulting binary.
17093 hardcode_direct=$hardcode_direct
17094
17095 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17096 # DIR into the resulting binary and the resulting library dependency is
17097 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17098 # library is relocated.
17099 hardcode_direct_absolute=$hardcode_direct_absolute
17100
17101 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17102 # into the resulting binary.
17103 hardcode_minus_L=$hardcode_minus_L
17104
17105 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17106 # into the resulting binary.
17107 hardcode_shlibpath_var=$hardcode_shlibpath_var
17108
17109 # Set to "yes" if building a shared library automatically hardcodes DIR
17110 # into the library and all subsequent libraries and executables linked
17111 # against it.
17112 hardcode_automatic=$hardcode_automatic
17113
17114 # Set to yes if linker adds runtime paths of dependent libraries
17115 # to runtime path list.
17116 inherit_rpath=$inherit_rpath
17117
17118 # Whether libtool must link a program against all its dependency libraries.
17119 link_all_deplibs=$link_all_deplibs
17120
17121 # Set to "yes" if exported symbols are required.
17122 always_export_symbols=$always_export_symbols
17123
17124 # The commands to list exported symbols.
17125 export_symbols_cmds=$lt_export_symbols_cmds
17126
17127 # Symbols that should not be listed in the preloaded symbols.
17128 exclude_expsyms=$lt_exclude_expsyms
17129
17130 # Symbols that must always be exported.
17131 include_expsyms=$lt_include_expsyms
17132
17133 # Commands necessary for linking programs (against libraries) with templates.
17134 prelink_cmds=$lt_prelink_cmds
17135
17136 # Commands necessary for finishing linking programs.
17137 postlink_cmds=$lt_postlink_cmds
17138
17139 # Specify filename containing input files.
17140 file_list_spec=$lt_file_list_spec
17141
17142 # How to hardcode a shared library path into an executable.
17143 hardcode_action=$hardcode_action
17144
17145 # ### END LIBTOOL CONFIG
17146
17147 _LT_EOF
17148
17149 cat <<'_LT_EOF' >> "$cfgfile"
17150
17151 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17152
17153 # func_munge_path_list VARIABLE PATH
17154 # -----------------------------------
17155 # VARIABLE is name of variable containing _space_ separated list of
17156 # directories to be munged by the contents of PATH, which is string
17157 # having a format:
17158 # "DIR[:DIR]:"
17159 # string "DIR[ DIR]" will be prepended to VARIABLE
17160 # ":DIR[:DIR]"
17161 # string "DIR[ DIR]" will be appended to VARIABLE
17162 # "DIRP[:DIRP]::[DIRA:]DIRA"
17163 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17164 # "DIRA[ DIRA]" will be appended to VARIABLE
17165 # "DIR[:DIR]"
17166 # VARIABLE will be replaced by "DIR[ DIR]"
17167 func_munge_path_list ()
17168 {
17169 case x$2 in
17170 x)
17171 ;;
17172 *:)
17173 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17174 ;;
17175 x:*)
17176 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17177 ;;
17178 *::*)
17179 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17180 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17181 ;;
17182 *)
17183 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17184 ;;
17185 esac
17186 }
17187
17188
17189 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17190 func_cc_basename ()
17191 {
17192 for cc_temp in $*""; do
17193 case $cc_temp in
17194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17196 \-*) ;;
17197 *) break;;
17198 esac
17199 done
17200 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17201 }
17202
17203
17204 # ### END FUNCTIONS SHARED WITH CONFIGURE
17205
17206 _LT_EOF
17207
17208 case $host_os in
17209 aix3*)
17210 cat <<\_LT_EOF >> "$cfgfile"
17211 # AIX sometimes has problems with the GCC collect2 program. For some
17212 # reason, if we set the COLLECT_NAMES environment variable, the problems
17213 # vanish in a puff of smoke.
17214 if test set != "${COLLECT_NAMES+set}"; then
17215 COLLECT_NAMES=
17216 export COLLECT_NAMES
17217 fi
17218 _LT_EOF
17219 ;;
17220 esac
17221
17222
17223
17224 ltmain=$ac_aux_dir/ltmain.sh
17225
17226
17227 # We use sed instead of cat because bash on DJGPP gets confused if
17228 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17229 # text mode, it properly converts lines to CR/LF. This bash problem
17230 # is reportedly fixed, but why not run on old versions too?
17231 $SED '$q' "$ltmain" >> "$cfgfile" \
17232 || (rm -f "$cfgfile"; exit 1)
17233
17234 mv -f "$cfgfile" "$ofile" ||
17235 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17236 chmod +x "$ofile"
17237
17238
17239 as_fn_exit 0
17240 _LTEOF
17241 chmod +x "$CONFIG_LT"
17242
17243 # configure is writing to config.log, but config.lt does its own redirection,
17244 # appending to config.log, which fails on DOS, as config.log is still kept
17245 # open by configure. Here we exec the FD to /dev/null, effectively closing
17246 # config.log, so it can be properly (re)opened and appended to by config.lt.
17247 lt_cl_success=:
17248 test yes = "$silent" &&
17249 lt_config_lt_args="$lt_config_lt_args --quiet"
17250 exec 5>/dev/null
17251 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17252 exec 5>>config.log
17253 $lt_cl_success || as_fn_exit 1
17254
17255 #
17256 #
17257 ac_ext=c
17258 ac_cpp='$CPP $CPPFLAGS'
17259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17262 ac_link="./libtool --mode=link --tag=CC $ac_link"
17263
17264 if test -n "$ac_tool_prefix"; then
17265 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17266 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17268 printf %s "checking for $ac_word... " >&6; }
17269 if test ${ac_cv_prog_PKG_CONFIG+y}
17270 then :
17271 printf %s "(cached) " >&6
17272 else case e in #(
17273 e) if test -n "$PKG_CONFIG"; then
17274 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17275 else
17276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17277 for as_dir in $PATH
17278 do
17279 IFS=$as_save_IFS
17280 case $as_dir in #(((
17281 '') as_dir=./ ;;
17282 */) ;;
17283 *) as_dir=$as_dir/ ;;
17284 esac
17285 for ac_exec_ext in '' $ac_executable_extensions; do
17286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17287 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17289 break 2
17290 fi
17291 done
17292 done
17293 IFS=$as_save_IFS
17294
17295 fi ;;
17296 esac
17297 fi
17298 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17299 if test -n "$PKG_CONFIG"; then
17300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17301 printf "%s\n" "$PKG_CONFIG" >&6; }
17302 else
17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 printf "%s\n" "no" >&6; }
17305 fi
17306
17307
17308 fi
17309 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17310 ac_ct_PKG_CONFIG=$PKG_CONFIG
17311 # Extract the first word of "pkg-config", so it can be a program name with args.
17312 set dummy pkg-config; ac_word=$2
17313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17314 printf %s "checking for $ac_word... " >&6; }
17315 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17316 then :
17317 printf %s "(cached) " >&6
17318 else case e in #(
17319 e) if test -n "$ac_ct_PKG_CONFIG"; then
17320 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17321 else
17322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17323 for as_dir in $PATH
17324 do
17325 IFS=$as_save_IFS
17326 case $as_dir in #(((
17327 '') as_dir=./ ;;
17328 */) ;;
17329 *) as_dir=$as_dir/ ;;
17330 esac
17331 for ac_exec_ext in '' $ac_executable_extensions; do
17332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17333 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17335 break 2
17336 fi
17337 done
17338 done
17339 IFS=$as_save_IFS
17340
17341 fi ;;
17342 esac
17343 fi
17344 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17345 if test -n "$ac_ct_PKG_CONFIG"; then
17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17347 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17348 else
17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17350 printf "%s\n" "no" >&6; }
17351 fi
17352
17353 if test "x$ac_ct_PKG_CONFIG" = x; then
17354 PKG_CONFIG="false"
17355 else
17356 case $cross_compiling:$ac_tool_warned in
17357 yes:)
17358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17359 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17360 ac_tool_warned=yes ;;
17361 esac
17362 PKG_CONFIG=$ac_ct_PKG_CONFIG
17363 fi
17364 else
17365 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17366 fi
17367
17368 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17369 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
17370 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17371
17372 # Check whether --with-system-kpathsea was given.
17373 if test ${with_system_kpathsea+y}
17374 then :
17375 withval=$with_system_kpathsea;
17376 fi
17377 if test "x$with_system_kpathsea" = xyes; then
17378 if $PKG_CONFIG kpathsea; then
17379 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17380 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17381 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17382 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17383 fi
17384 else
17385 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17386 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17387 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17388 KPATHSEA_RULE='# Rebuild libkpathsea
17389 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17390 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17391 ${top_builddir}/../kpathsea/paths.h:
17392 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17393 fi
17394
17395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17396 printf %s "checking if libkpathsea supports debugging... " >&6; }
17397 if test ${kpse_cv_kpse_debug+y}
17398 then :
17399 printf %s "(cached) " >&6
17400 else case e in #(
17401 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17402 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17403
17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h. */
17406 #include <kpathsea/kpathsea.h>
17407 int
17408 main (void)
17409 {
17410 FILE *f = fopen("f", "r")
17411 ;
17412 return 0;
17413 }
17414 _ACEOF
17415 if ac_fn_c_try_link "$LINENO"
17416 then :
17417 kpse_cv_kpse_debug=yes
17418 else case e in #(
17419 e) kpse_cv_kpse_debug=no ;;
17420 esac
17421 fi
17422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17423 conftest$ac_exeext conftest.$ac_ext
17424 CPPFLAGS=$kpse_save_CPPFLAGS
17425 LIBS=$kpse_save_LIBS
17426 ;;
17427 esac
17428 fi
17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17430 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17431 if test "x$kpse_cv_kpse_debug" != xyes
17432 then :
17433 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17434 fi
17435
17436
17437 DETEX_TREE=detex-src
17438
17439
17440 ac_config_files="$ac_config_files Makefile"
17441
17442
17443 cat >confcache <<\_ACEOF
17444 # This file is a shell script that caches the results of configure
17445 # tests run on this system so they can be shared between configure
17446 # scripts and configure runs, see configure's option --config-cache.
17447 # It is not useful on other systems. If it contains results you don't
17448 # want to keep, you may remove or edit it.
17449 #
17450 # config.status only pays attention to the cache file if you give it
17451 # the --recheck option to rerun configure.
17452 #
17453 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17454 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17455 # following values.
17456
17457 _ACEOF
17458
17459 # The following way of writing the cache mishandles newlines in values,
17460 # but we know of no workaround that is simple, portable, and efficient.
17461 # So, we kill variables containing newlines.
17462 # Ultrix sh set writes to stderr and can't be redirected directly,
17463 # and sets the high bit in the cache file unless we assign to the vars.
17464 (
17465 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17466 eval ac_val=\$$ac_var
17467 case $ac_val in #(
17468 *${as_nl}*)
17469 case $ac_var in #(
17470 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17471 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17472 esac
17473 case $ac_var in #(
17474 _ | IFS | as_nl) ;; #(
17475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17476 *) { eval $ac_var=; unset $ac_var;} ;;
17477 esac ;;
17478 esac
17479 done
17480
17481 (set) 2>&1 |
17482 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17483 *${as_nl}ac_space=\ *)
17484 # 'set' does not quote correctly, so add quotes: double-quote
17485 # substitution turns \\\\ into \\, and sed turns \\ into \.
17486 sed -n \
17487 "s/'/'\\\\''/g;
17488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17489 ;; #(
17490 *)
17491 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17493 ;;
17494 esac |
17495 sort
17496 ) |
17497 sed '
17498 /^ac_cv_env_/b end
17499 t clear
17500 :clear
17501 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17502 t end
17503 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17504 :end' >>confcache
17505 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17506 if test -w "$cache_file"; then
17507 if test "x$cache_file" != "x/dev/null"; then
17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17509 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17510 if test ! -f "$cache_file" || test -h "$cache_file"; then
17511 cat confcache >"$cache_file"
17512 else
17513 case $cache_file in #(
17514 */* | ?:*)
17515 mv -f confcache "$cache_file"$$ &&
17516 mv -f "$cache_file"$$ "$cache_file" ;; #(
17517 *)
17518 mv -f confcache "$cache_file" ;;
17519 esac
17520 fi
17521 fi
17522 else
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17524 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17525 fi
17526 fi
17527 rm -f confcache
17528
17529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17530 # Let make expand exec_prefix.
17531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17532
17533 DEFS=-DHAVE_CONFIG_H
17534
17535 ac_libobjs=
17536 ac_ltlibobjs=
17537 U=
17538 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17539 # 1. Remove the extension, and $U if already installed.
17540 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17541 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17542 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17543 # will be set to the directory where LIBOBJS objects are built.
17544 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17545 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17546 done
17547 LIBOBJS=$ac_libobjs
17548
17549 LTLIBOBJS=$ac_ltlibobjs
17550
17551
17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17553 printf %s "checking that generated files are newer than configure... " >&6; }
17554 if test -n "$am_sleep_pid"; then
17555 # Hide warnings about reused PIDs.
17556 wait $am_sleep_pid 2>/dev/null
17557 fi
17558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17559 printf "%s\n" "done" >&6; }
17560 case $enable_silent_rules in # (((
17561 yes) AM_DEFAULT_VERBOSITY=0;;
17562 no) AM_DEFAULT_VERBOSITY=1;;
17563 esac
17564 if test $am_cv_make_support_nested_variables = yes; then
17565 AM_V='$(V)'
17566 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17567 else
17568 AM_V=$AM_DEFAULT_VERBOSITY
17569 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17570 fi
17571
17572 if test -n "$EXEEXT"; then
17573 am__EXEEXT_TRUE=
17574 am__EXEEXT_FALSE='#'
17575 else
17576 am__EXEEXT_TRUE='#'
17577 am__EXEEXT_FALSE=
17578 fi
17579
17580 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17581 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17583 fi
17584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17585 as_fn_error $? "conditional \"AMDEP\" was never defined.
17586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17587 fi
17588 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17589 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17591 fi
17592 # Check whether --enable-year2038 was given.
17593 if test ${enable_year2038+y}
17594 then :
17595 enableval=$enable_year2038;
17596 fi
17597
17598
17599 : "${CONFIG_STATUS=./config.status}"
17600 ac_write_fail=0
17601 ac_clean_files_save=$ac_clean_files
17602 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17604 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17605 as_write_fail=0
17606 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17607 #! $SHELL
17608 # Generated by $as_me.
17609 # Run this file to recreate the current configuration.
17610 # Compiler output produced by configure, useful for debugging
17611 # configure, is in config.log if it exists.
17612
17613 debug=false
17614 ac_cs_recheck=false
17615 ac_cs_silent=false
17616
17617 SHELL=\${CONFIG_SHELL-$SHELL}
17618 export SHELL
17619 _ASEOF
17620 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17621 ## -------------------- ##
17622 ## M4sh Initialization. ##
17623 ## -------------------- ##
17624
17625 # Be more Bourne compatible
17626 DUALCASE=1; export DUALCASE # for MKS sh
17627 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17628 then :
17629 emulate sh
17630 NULLCMD=:
17631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17632 # is contrary to our usage. Disable this feature.
17633 alias -g '${1+"$@"}'='"$@"'
17634 setopt NO_GLOB_SUBST
17635 else case e in #(
17636 e) case `(set -o) 2>/dev/null` in #(
17637 *posix*) :
17638 set -o posix ;; #(
17639 *) :
17640 ;;
17641 esac ;;
17642 esac
17643 fi
17644
17645
17646
17647 # Reset variables that may have inherited troublesome values from
17648 # the environment.
17649
17650 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17651 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17652 # side effect of setting IFS to empty, thus disabling word splitting.)
17653 # Quoting is to prevent editors from complaining about space-tab.
17654 as_nl='
17655 '
17656 export as_nl
17657 IFS=" "" $as_nl"
17658
17659 PS1='$ '
17660 PS2='> '
17661 PS4='+ '
17662
17663 # Ensure predictable behavior from utilities with locale-dependent output.
17664 LC_ALL=C
17665 export LC_ALL
17666 LANGUAGE=C
17667 export LANGUAGE
17668
17669 # We cannot yet rely on "unset" to work, but we need these variables
17670 # to be unset--not just set to an empty or harmless value--now, to
17671 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17672 # also avoids known problems related to "unset" and subshell syntax
17673 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17674 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17675 do eval test \${$as_var+y} \
17676 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17677 done
17678
17679 # Ensure that fds 0, 1, and 2 are open.
17680 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17681 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17682 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17683
17684 # The user is always right.
17685 if ${PATH_SEPARATOR+false} :; then
17686 PATH_SEPARATOR=:
17687 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17688 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17689 PATH_SEPARATOR=';'
17690 }
17691 fi
17692
17693
17694 # Find who we are. Look in the path if we contain no directory separator.
17695 as_myself=
17696 case $0 in #((
17697 *[\\/]* ) as_myself=$0 ;;
17698 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17699 for as_dir in $PATH
17700 do
17701 IFS=$as_save_IFS
17702 case $as_dir in #(((
17703 '') as_dir=./ ;;
17704 */) ;;
17705 *) as_dir=$as_dir/ ;;
17706 esac
17707 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17708 done
17709 IFS=$as_save_IFS
17710
17711 ;;
17712 esac
17713 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17714 # in which case we are not to be found in the path.
17715 if test "x$as_myself" = x; then
17716 as_myself=$0
17717 fi
17718 if test ! -f "$as_myself"; then
17719 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17720 exit 1
17721 fi
17722
17723
17724
17725 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17726 # ----------------------------------------
17727 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17728 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17729 # script with STATUS, using 1 if that was 0.
17730 as_fn_error ()
17731 {
17732 as_status=$1; test $as_status -eq 0 && as_status=1
17733 if test "$4"; then
17734 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17736 fi
17737 printf "%s\n" "$as_me: error: $2" >&2
17738 as_fn_exit $as_status
17739 } # as_fn_error
17740
17741
17742 # as_fn_set_status STATUS
17743 # -----------------------
17744 # Set $? to STATUS, without forking.
17745 as_fn_set_status ()
17746 {
17747 return $1
17748 } # as_fn_set_status
17749
17750 # as_fn_exit STATUS
17751 # -----------------
17752 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17753 as_fn_exit ()
17754 {
17755 set +e
17756 as_fn_set_status $1
17757 exit $1
17758 } # as_fn_exit
17759
17760 # as_fn_unset VAR
17761 # ---------------
17762 # Portably unset VAR.
17763 as_fn_unset ()
17764 {
17765 { eval $1=; unset $1;}
17766 }
17767 as_unset=as_fn_unset
17768
17769 # as_fn_append VAR VALUE
17770 # ----------------------
17771 # Append the text in VALUE to the end of the definition contained in VAR. Take
17772 # advantage of any shell optimizations that allow amortized linear growth over
17773 # repeated appends, instead of the typical quadratic growth present in naive
17774 # implementations.
17775 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17776 then :
17777 eval 'as_fn_append ()
17778 {
17779 eval $1+=\$2
17780 }'
17781 else case e in #(
17782 e) as_fn_append ()
17783 {
17784 eval $1=\$$1\$2
17785 } ;;
17786 esac
17787 fi # as_fn_append
17788
17789 # as_fn_arith ARG...
17790 # ------------------
17791 # Perform arithmetic evaluation on the ARGs, and store the result in the
17792 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17793 # must be portable across $(()) and expr.
17794 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17795 then :
17796 eval 'as_fn_arith ()
17797 {
17798 as_val=$(( $* ))
17799 }'
17800 else case e in #(
17801 e) as_fn_arith ()
17802 {
17803 as_val=`expr "$@" || test $? -eq 1`
17804 } ;;
17805 esac
17806 fi # as_fn_arith
17807
17808
17809 if expr a : '\(a\)' >/dev/null 2>&1 &&
17810 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17811 as_expr=expr
17812 else
17813 as_expr=false
17814 fi
17815
17816 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17817 as_basename=basename
17818 else
17819 as_basename=false
17820 fi
17821
17822 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17823 as_dirname=dirname
17824 else
17825 as_dirname=false
17826 fi
17827
17828 as_me=`$as_basename -- "$0" ||
17829 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17830 X"$0" : 'X\(//\)$' \| \
17831 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17832 printf "%s\n" X/"$0" |
17833 sed '/^.*\/\([^/][^/]*\)\/*$/{
17834 s//\1/
17835 q
17836 }
17837 /^X\/\(\/\/\)$/{
17838 s//\1/
17839 q
17840 }
17841 /^X\/\(\/\).*/{
17842 s//\1/
17843 q
17844 }
17845 s/.*/./; q'`
17846
17847 # Avoid depending upon Character Ranges.
17848 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17849 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17850 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17851 as_cr_digits='0123456789'
17852 as_cr_alnum=$as_cr_Letters$as_cr_digits
17853
17854
17855 # Determine whether it's possible to make 'echo' print without a newline.
17856 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17857 # for compatibility with existing Makefiles.
17858 ECHO_C= ECHO_N= ECHO_T=
17859 case `echo -n x` in #(((((
17860 -n*)
17861 case `echo 'xy\c'` in
17862 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17863 xy) ECHO_C='\c';;
17864 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17865 ECHO_T=' ';;
17866 esac;;
17867 *)
17868 ECHO_N='-n';;
17869 esac
17870
17871 # For backward compatibility with old third-party macros, we provide
17872 # the shell variables $as_echo and $as_echo_n. New code should use
17873 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17874 as_echo='printf %s\n'
17875 as_echo_n='printf %s'
17876
17877 rm -f conf$$ conf$$.exe conf$$.file
17878 if test -d conf$$.dir; then
17879 rm -f conf$$.dir/conf$$.file
17880 else
17881 rm -f conf$$.dir
17882 mkdir conf$$.dir 2>/dev/null
17883 fi
17884 if (echo >conf$$.file) 2>/dev/null; then
17885 if ln -s conf$$.file conf$$ 2>/dev/null; then
17886 as_ln_s='ln -s'
17887 # ... but there are two gotchas:
17888 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17889 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17890 # In both cases, we have to default to 'cp -pR'.
17891 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17892 as_ln_s='cp -pR'
17893 elif ln conf$$.file conf$$ 2>/dev/null; then
17894 as_ln_s=ln
17895 else
17896 as_ln_s='cp -pR'
17897 fi
17898 else
17899 as_ln_s='cp -pR'
17900 fi
17901 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17902 rmdir conf$$.dir 2>/dev/null
17903
17904
17905 # as_fn_mkdir_p
17906 # -------------
17907 # Create "$as_dir" as a directory, including parents if necessary.
17908 as_fn_mkdir_p ()
17909 {
17910
17911 case $as_dir in #(
17912 -*) as_dir=./$as_dir;;
17913 esac
17914 test -d "$as_dir" || eval $as_mkdir_p || {
17915 as_dirs=
17916 while :; do
17917 case $as_dir in #(
17918 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17919 *) as_qdir=$as_dir;;
17920 esac
17921 as_dirs="'$as_qdir' $as_dirs"
17922 as_dir=`$as_dirname -- "$as_dir" ||
17923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17924 X"$as_dir" : 'X\(//\)[^/]' \| \
17925 X"$as_dir" : 'X\(//\)$' \| \
17926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17927 printf "%s\n" X"$as_dir" |
17928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17929 s//\1/
17930 q
17931 }
17932 /^X\(\/\/\)[^/].*/{
17933 s//\1/
17934 q
17935 }
17936 /^X\(\/\/\)$/{
17937 s//\1/
17938 q
17939 }
17940 /^X\(\/\).*/{
17941 s//\1/
17942 q
17943 }
17944 s/.*/./; q'`
17945 test -d "$as_dir" && break
17946 done
17947 test -z "$as_dirs" || eval "mkdir $as_dirs"
17948 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17949
17950
17951 } # as_fn_mkdir_p
17952 if mkdir -p . 2>/dev/null; then
17953 as_mkdir_p='mkdir -p "$as_dir"'
17954 else
17955 test -d ./-p && rmdir ./-p
17956 as_mkdir_p=false
17957 fi
17958
17959
17960 # as_fn_executable_p FILE
17961 # -----------------------
17962 # Test if FILE is an executable regular file.
17963 as_fn_executable_p ()
17964 {
17965 test -f "$1" && test -x "$1"
17966 } # as_fn_executable_p
17967 as_test_x='test -x'
17968 as_executable_p=as_fn_executable_p
17969
17970 # Sed expression to map a string onto a valid CPP name.
17971 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17972 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17973
17974 # Sed expression to map a string onto a valid variable name.
17975 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17976 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17977
17978
17979 exec 6>&1
17980 ## ----------------------------------- ##
17981 ## Main body of $CONFIG_STATUS script. ##
17982 ## ----------------------------------- ##
17983 _ASEOF
17984 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17985
17986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17987 # Save the log message, to keep $0 and so on meaningful, and to
17988 # report actual input values of CONFIG_FILES etc. instead of their
17989 # values after options handling.
17990 ac_log="
17991 This file was extended by detex (TeX Live) $as_me 2.8.11, which was
17992 generated by GNU Autoconf 2.72. Invocation command line was
17993
17994 CONFIG_FILES = $CONFIG_FILES
17995 CONFIG_HEADERS = $CONFIG_HEADERS
17996 CONFIG_LINKS = $CONFIG_LINKS
17997 CONFIG_COMMANDS = $CONFIG_COMMANDS
17998 $ $0 $@
17999
18000 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18001 "
18002
18003 _ACEOF
18004
18005 case $ac_config_files in *"
18006 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18007 esac
18008
18009 case $ac_config_headers in *"
18010 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18011 esac
18012
18013
18014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18015 # Files that config.status was made for.
18016 config_files="$ac_config_files"
18017 config_headers="$ac_config_headers"
18018 config_commands="$ac_config_commands"
18019
18020 _ACEOF
18021
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023 ac_cs_usage="\
18024 '$as_me' instantiates files and other configuration actions
18025 from templates according to the current configuration. Unless the files
18026 and actions are specified as TAGs, all are instantiated by default.
18027
18028 Usage: $0 [OPTION]... [TAG]...
18029
18030 -h, --help print this help, then exit
18031 -V, --version print version number and configuration settings, then exit
18032 --config print configuration, then exit
18033 -q, --quiet, --silent
18034 do not print progress messages
18035 -d, --debug don't remove temporary files
18036 --recheck update $as_me by reconfiguring in the same conditions
18037 --file=FILE[:TEMPLATE]
18038 instantiate the configuration file FILE
18039 --header=FILE[:TEMPLATE]
18040 instantiate the configuration header FILE
18041
18042 Configuration files:
18043 $config_files
18044
18045 Configuration headers:
18046 $config_headers
18047
18048 Configuration commands:
18049 $config_commands
18050
18051 Report bugs to <[email protected]>."
18052
18053 _ACEOF
18054 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18055 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18057 ac_cs_config='$ac_cs_config_escaped'
18058 ac_cs_version="\\
18059 detex (TeX Live) config.status 2.8.11
18060 configured by $0, generated by GNU Autoconf 2.72,
18061 with options \\"\$ac_cs_config\\"
18062
18063 Copyright (C) 2023 Free Software Foundation, Inc.
18064 This config.status script is free software; the Free Software Foundation
18065 gives unlimited permission to copy, distribute and modify it."
18066
18067 ac_pwd='$ac_pwd'
18068 srcdir='$srcdir'
18069 INSTALL='$INSTALL'
18070 MKDIR_P='$MKDIR_P'
18071 AWK='$AWK'
18072 test -n "\$AWK" || AWK=awk
18073 _ACEOF
18074
18075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18076 # The default lists apply if the user does not specify any file.
18077 ac_need_defaults=:
18078 while test $# != 0
18079 do
18080 case $1 in
18081 --*=?*)
18082 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18083 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18084 ac_shift=:
18085 ;;
18086 --*=)
18087 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18088 ac_optarg=
18089 ac_shift=:
18090 ;;
18091 *)
18092 ac_option=$1
18093 ac_optarg=$2
18094 ac_shift=shift
18095 ;;
18096 esac
18097
18098 case $ac_option in
18099 # Handling of the options.
18100 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18101 ac_cs_recheck=: ;;
18102 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18103 printf "%s\n" "$ac_cs_version"; exit ;;
18104 --config | --confi | --conf | --con | --co | --c )
18105 printf "%s\n" "$ac_cs_config"; exit ;;
18106 --debug | --debu | --deb | --de | --d | -d )
18107 debug=: ;;
18108 --file | --fil | --fi | --f )
18109 $ac_shift
18110 case $ac_optarg in
18111 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18112 '') as_fn_error $? "missing file argument" ;;
18113 esac
18114 as_fn_append CONFIG_FILES " '$ac_optarg'"
18115 ac_need_defaults=false;;
18116 --header | --heade | --head | --hea )
18117 $ac_shift
18118 case $ac_optarg in
18119 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18120 esac
18121 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18122 ac_need_defaults=false;;
18123 --he | --h)
18124 # Conflict between --help and --header
18125 as_fn_error $? "ambiguous option: '$1'
18126 Try '$0 --help' for more information.";;
18127 --help | --hel | -h )
18128 printf "%s\n" "$ac_cs_usage"; exit ;;
18129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18131 ac_cs_silent=: ;;
18132
18133 # This is an error.
18134 -*) as_fn_error $? "unrecognized option: '$1'
18135 Try '$0 --help' for more information." ;;
18136
18137 *) as_fn_append ac_config_targets " $1"
18138 ac_need_defaults=false ;;
18139
18140 esac
18141 shift
18142 done
18143
18144 ac_configure_extra_args=
18145
18146 if $ac_cs_silent; then
18147 exec 6>/dev/null
18148 ac_configure_extra_args="$ac_configure_extra_args --silent"
18149 fi
18150
18151 _ACEOF
18152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18153 if \$ac_cs_recheck; then
18154 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18155 shift
18156 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18157 CONFIG_SHELL='$SHELL'
18158 export CONFIG_SHELL
18159 exec "\$@"
18160 fi
18161
18162 _ACEOF
18163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18164 exec 5>>config.log
18165 {
18166 echo
18167 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18168 ## Running $as_me. ##
18169 _ASBOX
18170 printf "%s\n" "$ac_log"
18171 } >&5
18172
18173 _ACEOF
18174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18175 #
18176 # INIT-COMMANDS
18177 #
18178 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18179
18180
18181 # The HP-UX ksh and POSIX shell print the target directory to stdout
18182 # if CDPATH is set.
18183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18184
18185 sed_quote_subst='$sed_quote_subst'
18186 double_quote_subst='$double_quote_subst'
18187 delay_variable_subst='$delay_variable_subst'
18188 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18189 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18190 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18191 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18192 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18193 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18194 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18195 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18196 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18197 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18198 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18199 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18200 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18201 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18202 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18203 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18204 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18205 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18206 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18207 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18208 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18209 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18210 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18211 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18212 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18213 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18214 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18215 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18216 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18217 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18218 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18219 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18220 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18221 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18222 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18223 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18224 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18225 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18226 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18227 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18228 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18229 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18230 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18231 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18232 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18233 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18234 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18235 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18236 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18237 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18238 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18239 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18240 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18241 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18242 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18243 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18244 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18245 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18246 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18247 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18248 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18249 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"`'
18250 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18251 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18252 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18253 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18254 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18255 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18256 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18257 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18258 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18259 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18260 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18261 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18262 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18263 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18264 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18265 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18266 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18267 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18268 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18269 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18270 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18271 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18272 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18273 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18274 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18275 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18276 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18277 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18278 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18279 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18280 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18281 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18282 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18283 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18284 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18285 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18286 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18287 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18288 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18289 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18290 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18291 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18292 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18293 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18294 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18295 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18296 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18297 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18298 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18299 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18300 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18301 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18302 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18303 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18304 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18305 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18306 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18307 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18308 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18309 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18310 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18311 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18312 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18313 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18314 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18315 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18316 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18317 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18318 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18319 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18320 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18321 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18322 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18323 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18324 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18325 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18326
18327 LTCC='$LTCC'
18328 LTCFLAGS='$LTCFLAGS'
18329 compiler='$compiler_DEFAULT'
18330
18331 # A function that is used when there is no print builtin or printf.
18332 func_fallback_echo ()
18333 {
18334 eval 'cat <<_LTECHO_EOF
18335 \$1
18336 _LTECHO_EOF'
18337 }
18338
18339 # Quote evaled strings.
18340 for var in AS \
18341 DLLTOOL \
18342 OBJDUMP \
18343 SHELL \
18344 ECHO \
18345 PATH_SEPARATOR \
18346 SED \
18347 GREP \
18348 EGREP \
18349 FGREP \
18350 LD \
18351 NM \
18352 LN_S \
18353 lt_SP2NL \
18354 lt_NL2SP \
18355 reload_flag \
18356 FILECMD \
18357 deplibs_check_method \
18358 file_magic_cmd \
18359 file_magic_glob \
18360 want_nocaseglob \
18361 sharedlib_from_linklib_cmd \
18362 AR \
18363 archiver_list_spec \
18364 STRIP \
18365 RANLIB \
18366 CC \
18367 CFLAGS \
18368 compiler \
18369 lt_cv_sys_global_symbol_pipe \
18370 lt_cv_sys_global_symbol_to_cdecl \
18371 lt_cv_sys_global_symbol_to_import \
18372 lt_cv_sys_global_symbol_to_c_name_address \
18373 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18374 lt_cv_nm_interface \
18375 nm_file_list_spec \
18376 lt_cv_truncate_bin \
18377 lt_prog_compiler_no_builtin_flag \
18378 lt_prog_compiler_pic \
18379 lt_prog_compiler_wl \
18380 lt_prog_compiler_static \
18381 lt_cv_prog_compiler_c_o \
18382 need_locks \
18383 MANIFEST_TOOL \
18384 DSYMUTIL \
18385 NMEDIT \
18386 LIPO \
18387 OTOOL \
18388 OTOOL64 \
18389 shrext_cmds \
18390 export_dynamic_flag_spec \
18391 whole_archive_flag_spec \
18392 compiler_needs_object \
18393 with_gnu_ld \
18394 allow_undefined_flag \
18395 no_undefined_flag \
18396 hardcode_libdir_flag_spec \
18397 hardcode_libdir_separator \
18398 exclude_expsyms \
18399 include_expsyms \
18400 file_list_spec \
18401 variables_saved_for_relink \
18402 libname_spec \
18403 library_names_spec \
18404 soname_spec \
18405 install_override_mode \
18406 finish_eval \
18407 old_striplib \
18408 striplib; do
18409 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18410 *[\\\\\\\`\\"\\\$]*)
18411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18412 ;;
18413 *)
18414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18415 ;;
18416 esac
18417 done
18418
18419 # Double-quote double-evaled strings.
18420 for var in reload_cmds \
18421 old_postinstall_cmds \
18422 old_postuninstall_cmds \
18423 old_archive_cmds \
18424 extract_expsyms_cmds \
18425 old_archive_from_new_cmds \
18426 old_archive_from_expsyms_cmds \
18427 archive_cmds \
18428 archive_expsym_cmds \
18429 module_cmds \
18430 module_expsym_cmds \
18431 export_symbols_cmds \
18432 prelink_cmds \
18433 postlink_cmds \
18434 postinstall_cmds \
18435 postuninstall_cmds \
18436 finish_cmds \
18437 sys_lib_search_path_spec \
18438 configure_time_dlsearch_path \
18439 configure_time_lt_sys_library_path; do
18440 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18441 *[\\\\\\\`\\"\\\$]*)
18442 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18443 ;;
18444 *)
18445 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18446 ;;
18447 esac
18448 done
18449
18450 ac_aux_dir='$ac_aux_dir'
18451
18452 # See if we are running on zsh, and set the options that allow our
18453 # commands through without removal of \ escapes INIT.
18454 if test -n "\${ZSH_VERSION+set}"; then
18455 setopt NO_GLOB_SUBST
18456 fi
18457
18458
18459 PACKAGE='$PACKAGE'
18460 VERSION='$VERSION'
18461 RM='$RM'
18462 ofile='$ofile'
18463
18464 ac_aux_dir='$ac_aux_dir'
18465
18466
18467
18468 _ACEOF
18469
18470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18471
18472 # Handling of arguments.
18473 for ac_config_target in $ac_config_targets
18474 do
18475 case $ac_config_target in
18476 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18477 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18478 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
18479 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18480
18481 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18482 esac
18483 done
18484
18485
18486 # If the user did not use the arguments to specify the items to instantiate,
18487 # then the envvar interface is used. Set only those that are not.
18488 # We use the long form for the default assignment because of an extremely
18489 # bizarre bug on SunOS 4.1.3.
18490 if $ac_need_defaults; then
18491 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18492 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18493 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18494 fi
18495
18496 # Have a temporary directory for convenience. Make it in the build tree
18497 # simply because there is no reason against having it here, and in addition,
18498 # creating and moving files from /tmp can sometimes cause problems.
18499 # Hook for its removal unless debugging.
18500 # Note that there is a small window in which the directory will not be cleaned:
18501 # after its creation but before its name has been assigned to '$tmp'.
18502 $debug ||
18503 {
18504 tmp= ac_tmp=
18505 trap 'exit_status=$?
18506 : "${ac_tmp:=$tmp}"
18507 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18508 ' 0
18509 trap 'as_fn_exit 1' 1 2 13 15
18510 }
18511 # Create a (secure) tmp directory for tmp files.
18512
18513 {
18514 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18515 test -d "$tmp"
18516 } ||
18517 {
18518 tmp=./conf$$-$RANDOM
18519 (umask 077 && mkdir "$tmp")
18520 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18521 ac_tmp=$tmp
18522
18523 # Set up the scripts for CONFIG_FILES section.
18524 # No need to generate them if there are no CONFIG_FILES.
18525 # This happens for instance with './config.status config.h'.
18526 if test -n "$CONFIG_FILES"; then
18527
18528
18529 ac_cr=`echo X | tr X '\015'`
18530 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18531 # But we know of no other shell where ac_cr would be empty at this
18532 # point, so we can use a bashism as a fallback.
18533 if test "x$ac_cr" = x; then
18534 eval ac_cr=\$\'\\r\'
18535 fi
18536 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18537 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18538 ac_cs_awk_cr='\\r'
18539 else
18540 ac_cs_awk_cr=$ac_cr
18541 fi
18542
18543 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18544 _ACEOF
18545
18546
18547 {
18548 echo "cat >conf$$subs.awk <<_ACEOF" &&
18549 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18550 echo "_ACEOF"
18551 } >conf$$subs.sh ||
18552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18553 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18554 ac_delim='%!_!# '
18555 for ac_last_try in false false false false false :; do
18556 . ./conf$$subs.sh ||
18557 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18558
18559 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18560 if test $ac_delim_n = $ac_delim_num; then
18561 break
18562 elif $ac_last_try; then
18563 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18564 else
18565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18566 fi
18567 done
18568 rm -f conf$$subs.sh
18569
18570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18571 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18572 _ACEOF
18573 sed -n '
18574 h
18575 s/^/S["/; s/!.*/"]=/
18576 p
18577 g
18578 s/^[^!]*!//
18579 :repl
18580 t repl
18581 s/'"$ac_delim"'$//
18582 t delim
18583 :nl
18584 h
18585 s/\(.\{148\}\)..*/\1/
18586 t more1
18587 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18588 p
18589 n
18590 b repl
18591 :more1
18592 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18593 p
18594 g
18595 s/.\{148\}//
18596 t nl
18597 :delim
18598 h
18599 s/\(.\{148\}\)..*/\1/
18600 t more2
18601 s/["\\]/\\&/g; s/^/"/; s/$/"/
18602 p
18603 b
18604 :more2
18605 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18606 p
18607 g
18608 s/.\{148\}//
18609 t delim
18610 ' <conf$$subs.awk | sed '
18611 /^[^""]/{
18612 N
18613 s/\n//
18614 }
18615 ' >>$CONFIG_STATUS || ac_write_fail=1
18616 rm -f conf$$subs.awk
18617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18618 _ACAWK
18619 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18620 for (key in S) S_is_set[key] = 1
18621 FS = ""
18622
18623 }
18624 {
18625 line = $ 0
18626 nfields = split(line, field, "@")
18627 substed = 0
18628 len = length(field[1])
18629 for (i = 2; i < nfields; i++) {
18630 key = field[i]
18631 keylen = length(key)
18632 if (S_is_set[key]) {
18633 value = S[key]
18634 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18635 len += length(value) + length(field[++i])
18636 substed = 1
18637 } else
18638 len += 1 + keylen
18639 }
18640
18641 print line
18642 }
18643
18644 _ACAWK
18645 _ACEOF
18646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18647 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18648 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18649 else
18650 cat
18651 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18652 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18653 _ACEOF
18654
18655 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18656 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18657 # trailing colons and then remove the whole line if VPATH becomes empty
18658 # (actually we leave an empty line to preserve line numbers).
18659 if test "x$srcdir" = x.; then
18660 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18661 h
18662 s///
18663 s/^/:/
18664 s/[ ]*$/:/
18665 s/:\$(srcdir):/:/g
18666 s/:\${srcdir}:/:/g
18667 s/:@srcdir@:/:/g
18668 s/^:*//
18669 s/:*$//
18670 x
18671 s/\(=[ ]*\).*/\1/
18672 G
18673 s/\n//
18674 s/^[^=]*=[ ]*$//
18675 }'
18676 fi
18677
18678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18679 fi # test -n "$CONFIG_FILES"
18680
18681 # Set up the scripts for CONFIG_HEADERS section.
18682 # No need to generate them if there are no CONFIG_HEADERS.
18683 # This happens for instance with './config.status Makefile'.
18684 if test -n "$CONFIG_HEADERS"; then
18685 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18686 BEGIN {
18687 _ACEOF
18688
18689 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18690 # here-document in config.status, that substitutes the proper values into
18691 # config.h.in to produce config.h.
18692
18693 # Create a delimiter string that does not exist in confdefs.h, to ease
18694 # handling of long lines.
18695 ac_delim='%!_!# '
18696 for ac_last_try in false false :; do
18697 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18698 if test -z "$ac_tt"; then
18699 break
18700 elif $ac_last_try; then
18701 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18702 else
18703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18704 fi
18705 done
18706
18707 # For the awk script, D is an array of macro values keyed by name,
18708 # likewise P contains macro parameters if any. Preserve backslash
18709 # newline sequences.
18710
18711 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18712 sed -n '
18713 s/.\{148\}/&'"$ac_delim"'/g
18714 t rset
18715 :rset
18716 s/^[ ]*#[ ]*define[ ][ ]*/ /
18717 t def
18718 d
18719 :def
18720 s/\\$//
18721 t bsnl
18722 s/["\\]/\\&/g
18723 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18724 D["\1"]=" \3"/p
18725 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18726 d
18727 :bsnl
18728 s/["\\]/\\&/g
18729 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18730 D["\1"]=" \3\\\\\\n"\\/p
18731 t cont
18732 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18733 t cont
18734 d
18735 :cont
18736 n
18737 s/.\{148\}/&'"$ac_delim"'/g
18738 t clear
18739 :clear
18740 s/\\$//
18741 t bsnlc
18742 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18743 d
18744 :bsnlc
18745 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18746 b cont
18747 ' <confdefs.h | sed '
18748 s/'"$ac_delim"'/"\\\
18749 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18750
18751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18752 for (key in D) D_is_set[key] = 1
18753 FS = ""
18754 }
18755 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18756 line = \$ 0
18757 split(line, arg, " ")
18758 if (arg[1] == "#") {
18759 defundef = arg[2]
18760 mac1 = arg[3]
18761 } else {
18762 defundef = substr(arg[1], 2)
18763 mac1 = arg[2]
18764 }
18765 split(mac1, mac2, "(") #)
18766 macro = mac2[1]
18767 prefix = substr(line, 1, index(line, defundef) - 1)
18768 if (D_is_set[macro]) {
18769 # Preserve the white space surrounding the "#".
18770 print prefix "define", macro P[macro] D[macro]
18771 next
18772 } else {
18773 # Replace #undef with comments. This is necessary, for example,
18774 # in the case of _POSIX_SOURCE, which is predefined and required
18775 # on some systems where configure will not decide to define it.
18776 if (defundef == "undef") {
18777 print "/*", prefix defundef, macro, "*/"
18778 next
18779 }
18780 }
18781 }
18782 { print }
18783 _ACAWK
18784 _ACEOF
18785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18786 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18787 fi # test -n "$CONFIG_HEADERS"
18788
18789
18790 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18791 shift
18792 for ac_tag
18793 do
18794 case $ac_tag in
18795 :[FHLC]) ac_mode=$ac_tag; continue;;
18796 esac
18797 case $ac_mode$ac_tag in
18798 :[FHL]*:*);;
18799 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18800 :[FH]-) ac_tag=-:-;;
18801 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18802 esac
18803 ac_save_IFS=$IFS
18804 IFS=:
18805 set x $ac_tag
18806 IFS=$ac_save_IFS
18807 shift
18808 ac_file=$1
18809 shift
18810
18811 case $ac_mode in
18812 :L) ac_source=$1;;
18813 :[FH])
18814 ac_file_inputs=
18815 for ac_f
18816 do
18817 case $ac_f in
18818 -) ac_f="$ac_tmp/stdin";;
18819 *) # Look for the file first in the build tree, then in the source tree
18820 # (if the path is not absolute). The absolute path cannot be DOS-style,
18821 # because $ac_f cannot contain ':'.
18822 test -f "$ac_f" ||
18823 case $ac_f in
18824 [\\/$]*) false;;
18825 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18826 esac ||
18827 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18828 esac
18829 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18830 as_fn_append ac_file_inputs " '$ac_f'"
18831 done
18832
18833 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18834 # use $as_me), people would be surprised to read:
18835 # /* config.h. Generated by config.status. */
18836 configure_input='Generated from '`
18837 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18838 `' by configure.'
18839 if test x"$ac_file" != x-; then
18840 configure_input="$ac_file. $configure_input"
18841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18842 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18843 fi
18844 # Neutralize special characters interpreted by sed in replacement strings.
18845 case $configure_input in #(
18846 *\&* | *\|* | *\\* )
18847 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18848 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18849 *) ac_sed_conf_input=$configure_input;;
18850 esac
18851
18852 case $ac_tag in
18853 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18855 esac
18856 ;;
18857 esac
18858
18859 ac_dir=`$as_dirname -- "$ac_file" ||
18860 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18861 X"$ac_file" : 'X\(//\)[^/]' \| \
18862 X"$ac_file" : 'X\(//\)$' \| \
18863 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18864 printf "%s\n" X"$ac_file" |
18865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18866 s//\1/
18867 q
18868 }
18869 /^X\(\/\/\)[^/].*/{
18870 s//\1/
18871 q
18872 }
18873 /^X\(\/\/\)$/{
18874 s//\1/
18875 q
18876 }
18877 /^X\(\/\).*/{
18878 s//\1/
18879 q
18880 }
18881 s/.*/./; q'`
18882 as_dir="$ac_dir"; as_fn_mkdir_p
18883 ac_builddir=.
18884
18885 case "$ac_dir" in
18886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18887 *)
18888 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18889 # A ".." for each directory in $ac_dir_suffix.
18890 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18891 case $ac_top_builddir_sub in
18892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18894 esac ;;
18895 esac
18896 ac_abs_top_builddir=$ac_pwd
18897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18898 # for backward compatibility:
18899 ac_top_builddir=$ac_top_build_prefix
18900
18901 case $srcdir in
18902 .) # We are building in place.
18903 ac_srcdir=.
18904 ac_top_srcdir=$ac_top_builddir_sub
18905 ac_abs_top_srcdir=$ac_pwd ;;
18906 [\\/]* | ?:[\\/]* ) # Absolute name.
18907 ac_srcdir=$srcdir$ac_dir_suffix;
18908 ac_top_srcdir=$srcdir
18909 ac_abs_top_srcdir=$srcdir ;;
18910 *) # Relative name.
18911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18912 ac_top_srcdir=$ac_top_build_prefix$srcdir
18913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18914 esac
18915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18916
18917
18918 case $ac_mode in
18919 :F)
18920 #
18921 # CONFIG_FILE
18922 #
18923
18924 case $INSTALL in
18925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18926 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18927 esac
18928 ac_MKDIR_P=$MKDIR_P
18929 case $MKDIR_P in
18930 [\\/$]* | ?:[\\/]* ) ;;
18931 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18932 esac
18933 _ACEOF
18934
18935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18936 # If the template does not know about datarootdir, expand it.
18937 # FIXME: This hack should be removed a few years after 2.60.
18938 ac_datarootdir_hack=; ac_datarootdir_seen=
18939 ac_sed_dataroot='
18940 /datarootdir/ {
18941 p
18942 q
18943 }
18944 /@datadir@/p
18945 /@docdir@/p
18946 /@infodir@/p
18947 /@localedir@/p
18948 /@mandir@/p'
18949 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18950 *datarootdir*) ac_datarootdir_seen=yes;;
18951 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18953 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18954 _ACEOF
18955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18956 ac_datarootdir_hack='
18957 s&@datadir@&$datadir&g
18958 s&@docdir@&$docdir&g
18959 s&@infodir@&$infodir&g
18960 s&@localedir@&$localedir&g
18961 s&@mandir@&$mandir&g
18962 s&\\\${datarootdir}&$datarootdir&g' ;;
18963 esac
18964 _ACEOF
18965
18966 # Neutralize VPATH when '$srcdir' = '.'.
18967 # Shell code in configure.ac might set extrasub.
18968 # FIXME: do we really want to maintain this feature?
18969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18970 ac_sed_extra="$ac_vpsub
18971 $extrasub
18972 _ACEOF
18973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18974 :t
18975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18976 s|@configure_input@|$ac_sed_conf_input|;t t
18977 s&@top_builddir@&$ac_top_builddir_sub&;t t
18978 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18979 s&@srcdir@&$ac_srcdir&;t t
18980 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18981 s&@top_srcdir@&$ac_top_srcdir&;t t
18982 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18983 s&@builddir@&$ac_builddir&;t t
18984 s&@abs_builddir@&$ac_abs_builddir&;t t
18985 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18986 s&@INSTALL@&$ac_INSTALL&;t t
18987 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18988 $ac_datarootdir_hack
18989 "
18990 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18991 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18992
18993 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18994 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18996 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18998 which seems to be undefined. Please make sure it is defined" >&5
18999 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19000 which seems to be undefined. Please make sure it is defined" >&2;}
19001
19002 rm -f "$ac_tmp/stdin"
19003 case $ac_file in
19004 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19005 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19006 esac \
19007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19008 ;;
19009 :H)
19010 #
19011 # CONFIG_HEADER
19012 #
19013 if test x"$ac_file" != x-; then
19014 {
19015 printf "%s\n" "/* $configure_input */" >&1 \
19016 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19017 } >"$ac_tmp/config.h" \
19018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19019 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19021 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19022 else
19023 rm -f "$ac_file"
19024 mv "$ac_tmp/config.h" "$ac_file" \
19025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19026 fi
19027 else
19028 printf "%s\n" "/* $configure_input */" >&1 \
19029 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19030 || as_fn_error $? "could not create -" "$LINENO" 5
19031 fi
19032 # Compute "$ac_file"'s index in $config_headers.
19033 _am_arg="$ac_file"
19034 _am_stamp_count=1
19035 for _am_header in $config_headers :; do
19036 case $_am_header in
19037 $_am_arg | $_am_arg:* )
19038 break ;;
19039 * )
19040 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19041 esac
19042 done
19043 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19044 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19045 X"$_am_arg" : 'X\(//\)[^/]' \| \
19046 X"$_am_arg" : 'X\(//\)$' \| \
19047 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19048 printf "%s\n" X"$_am_arg" |
19049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19050 s//\1/
19051 q
19052 }
19053 /^X\(\/\/\)[^/].*/{
19054 s//\1/
19055 q
19056 }
19057 /^X\(\/\/\)$/{
19058 s//\1/
19059 q
19060 }
19061 /^X\(\/\).*/{
19062 s//\1/
19063 q
19064 }
19065 s/.*/./; q'`/stamp-h$_am_stamp_count
19066 ;;
19067
19068 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19069 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19070 ;;
19071 esac
19072
19073
19074 case $ac_file$ac_mode in
19075 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19076 # Older Autoconf quotes --file arguments for eval, but not when files
19077 # are listed without --file. Let's play safe and only enable the eval
19078 # if we detect the quoting.
19079 # TODO: see whether this extra hack can be removed once we start
19080 # requiring Autoconf 2.70 or later.
19081 case $CONFIG_FILES in #(
19082 *\'*) :
19083 eval set x "$CONFIG_FILES" ;; #(
19084 *) :
19085 set x $CONFIG_FILES ;; #(
19086 *) :
19087 ;;
19088 esac
19089 shift
19090 # Used to flag and report bootstrapping failures.
19091 am_rc=0
19092 for am_mf
19093 do
19094 # Strip MF so we end up with the name of the file.
19095 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19096 # Check whether this is an Automake generated Makefile which includes
19097 # dependency-tracking related rules and includes.
19098 # Grep'ing the whole file directly is not great: AIX grep has a line
19099 # limit of 2048, but all sed's we know have understand at least 4000.
19100 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19101 || continue
19102 am_dirpart=`$as_dirname -- "$am_mf" ||
19103 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19104 X"$am_mf" : 'X\(//\)[^/]' \| \
19105 X"$am_mf" : 'X\(//\)$' \| \
19106 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19107 printf "%s\n" X"$am_mf" |
19108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19109 s//\1/
19110 q
19111 }
19112 /^X\(\/\/\)[^/].*/{
19113 s//\1/
19114 q
19115 }
19116 /^X\(\/\/\)$/{
19117 s//\1/
19118 q
19119 }
19120 /^X\(\/\).*/{
19121 s//\1/
19122 q
19123 }
19124 s/.*/./; q'`
19125 am_filepart=`$as_basename -- "$am_mf" ||
19126 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19127 X"$am_mf" : 'X\(//\)$' \| \
19128 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19129 printf "%s\n" X/"$am_mf" |
19130 sed '/^.*\/\([^/][^/]*\)\/*$/{
19131 s//\1/
19132 q
19133 }
19134 /^X\/\(\/\/\)$/{
19135 s//\1/
19136 q
19137 }
19138 /^X\/\(\/\).*/{
19139 s//\1/
19140 q
19141 }
19142 s/.*/./; q'`
19143 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19144 && sed -e '/# am--include-marker/d' "$am_filepart" \
19145 | $MAKE -f - am--depfiles" >&5
19146 (cd "$am_dirpart" \
19147 && sed -e '/# am--include-marker/d' "$am_filepart" \
19148 | $MAKE -f - am--depfiles) >&5 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } || am_rc=$?
19152 done
19153 if test $am_rc -ne 0; then
19154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19155 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19156 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19157 for automatic dependency tracking. If GNU make was not used, consider
19158 re-running the configure script with MAKE=\"gmake\" (or whatever is
19159 necessary). You can also try re-running configure with the
19160 '--disable-dependency-tracking' option to at least be able to build
19161 the package (albeit without support for automatic dependency tracking).
19162 See 'config.log' for more details" "$LINENO" 5; }
19163 fi
19164 { am_dirpart=; unset am_dirpart;}
19165 { am_filepart=; unset am_filepart;}
19166 { am_mf=; unset am_mf;}
19167 { am_rc=; unset am_rc;}
19168 rm -f conftest-deps.mk
19169 }
19170 ;;
19171 "libtool":C)
19172
19173 # See if we are running on zsh, and set the options that allow our
19174 # commands through without removal of \ escapes.
19175 if test -n "${ZSH_VERSION+set}"; then
19176 setopt NO_GLOB_SUBST
19177 fi
19178
19179 cfgfile=${ofile}T
19180 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19181 $RM "$cfgfile"
19182
19183 cat <<_LT_EOF >> "$cfgfile"
19184 #! $SHELL
19185 # Generated automatically by $as_me ($PACKAGE) $VERSION
19186 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19187
19188 # Provide generalized library-building support services.
19189 # Written by Gordon Matzigkeit, 1996
19190
19191 # Copyright (C) 2024 Free Software Foundation, Inc.
19192 # This is free software; see the source for copying conditions. There is NO
19193 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19194
19195 # GNU Libtool is free software; you can redistribute it and/or modify
19196 # it under the terms of the GNU General Public License as published by
19197 # the Free Software Foundation; either version 2 of the License, or
19198 # (at your option) any later version.
19199 #
19200 # As a special exception to the GNU General Public License, if you
19201 # distribute this file as part of a program or library that is built
19202 # using GNU Libtool, you may include this file under the same
19203 # distribution terms that you use for the rest of that program.
19204 #
19205 # GNU Libtool is distributed in the hope that it will be useful, but
19206 # WITHOUT ANY WARRANTY; without even the implied warranty of
19207 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19208 # GNU General Public License for more details.
19209 #
19210 # You should have received a copy of the GNU General Public License
19211 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19212
19213
19214 # The names of the tagged configurations supported by this script.
19215 available_tags=''
19216
19217 # Configured defaults for sys_lib_dlsearch_path munging.
19218 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19219
19220 # ### BEGIN LIBTOOL CONFIG
19221
19222 # Which release of libtool.m4 was used?
19223 macro_version=$macro_version
19224 macro_revision=$macro_revision
19225
19226 # Assembler program.
19227 AS=$lt_AS
19228
19229 # DLL creation program.
19230 DLLTOOL=$lt_DLLTOOL
19231
19232 # Object dumper program.
19233 OBJDUMP=$lt_OBJDUMP
19234
19235 # Whether or not to build shared libraries.
19236 build_libtool_libs=$enable_shared
19237
19238 # Whether or not to build static libraries.
19239 build_old_libs=$enable_static
19240
19241 # What type of objects to build.
19242 pic_mode=$pic_mode
19243
19244 # Whether or not to optimize for fast installation.
19245 fast_install=$enable_fast_install
19246
19247 # Shared archive member basename,for filename based shared library versioning on AIX.
19248 shared_archive_member_spec=$shared_archive_member_spec
19249
19250 # Shell to use when invoking shell scripts.
19251 SHELL=$lt_SHELL
19252
19253 # An echo program that protects backslashes.
19254 ECHO=$lt_ECHO
19255
19256 # The PATH separator for the build system.
19257 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19258
19259 # The host system.
19260 host_alias=$host_alias
19261 host=$host
19262 host_os=$host_os
19263
19264 # The build system.
19265 build_alias=$build_alias
19266 build=$build
19267 build_os=$build_os
19268
19269 # A sed program that does not truncate output.
19270 SED=$lt_SED
19271
19272 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19273 Xsed="\$SED -e 1s/^X//"
19274
19275 # A grep program that handles long lines.
19276 GREP=$lt_GREP
19277
19278 # An ERE matcher.
19279 EGREP=$lt_EGREP
19280
19281 # A literal string matcher.
19282 FGREP=$lt_FGREP
19283
19284 # A BSD- or MS-compatible name lister.
19285 NM=$lt_NM
19286
19287 # Whether we need soft or hard links.
19288 LN_S=$lt_LN_S
19289
19290 # What is the maximum length of a command?
19291 max_cmd_len=$max_cmd_len
19292
19293 # Object file suffix (normally "o").
19294 objext=$ac_objext
19295
19296 # Executable file suffix (normally "").
19297 exeext=$exeext
19298
19299 # whether the shell understands "unset".
19300 lt_unset=$lt_unset
19301
19302 # turn spaces into newlines.
19303 SP2NL=$lt_lt_SP2NL
19304
19305 # turn newlines into spaces.
19306 NL2SP=$lt_lt_NL2SP
19307
19308 # convert \$build file names to \$host format.
19309 to_host_file_cmd=$lt_cv_to_host_file_cmd
19310
19311 # convert \$build files to toolchain format.
19312 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19313
19314 # A file(cmd) program that detects file types.
19315 FILECMD=$lt_FILECMD
19316
19317 # Method to check whether dependent libraries are shared objects.
19318 deplibs_check_method=$lt_deplibs_check_method
19319
19320 # Command to use when deplibs_check_method = "file_magic".
19321 file_magic_cmd=$lt_file_magic_cmd
19322
19323 # How to find potential files when deplibs_check_method = "file_magic".
19324 file_magic_glob=$lt_file_magic_glob
19325
19326 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19327 want_nocaseglob=$lt_want_nocaseglob
19328
19329 # Command to associate shared and link libraries.
19330 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19331
19332 # The archiver.
19333 AR=$lt_AR
19334
19335 # Flags to create an archive (by configure).
19336 lt_ar_flags=$lt_ar_flags
19337
19338 # Flags to create an archive.
19339 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19340
19341 # How to feed a file listing to the archiver.
19342 archiver_list_spec=$lt_archiver_list_spec
19343
19344 # A symbol stripping program.
19345 STRIP=$lt_STRIP
19346
19347 # Commands used to install an old-style archive.
19348 RANLIB=$lt_RANLIB
19349 old_postinstall_cmds=$lt_old_postinstall_cmds
19350 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19351
19352 # Whether to use a lock for old archive extraction.
19353 lock_old_archive_extraction=$lock_old_archive_extraction
19354
19355 # A C compiler.
19356 LTCC=$lt_CC
19357
19358 # LTCC compiler flags.
19359 LTCFLAGS=$lt_CFLAGS
19360
19361 # Take the output of nm and produce a listing of raw symbols and C names.
19362 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19363
19364 # Transform the output of nm in a proper C declaration.
19365 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19366
19367 # Transform the output of nm into a list of symbols to manually relocate.
19368 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19369
19370 # Transform the output of nm in a C name address pair.
19371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19372
19373 # Transform the output of nm in a C name address pair when lib prefix is needed.
19374 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19375
19376 # The name lister interface.
19377 nm_interface=$lt_lt_cv_nm_interface
19378
19379 # Specify filename containing input files for \$NM.
19380 nm_file_list_spec=$lt_nm_file_list_spec
19381
19382 # The root where to search for dependent libraries,and where our libraries should be installed.
19383 lt_sysroot=$lt_sysroot
19384
19385 # Command to truncate a binary pipe.
19386 lt_truncate_bin=$lt_lt_cv_truncate_bin
19387
19388 # The name of the directory that contains temporary libtool files.
19389 objdir=$objdir
19390
19391 # Used to examine libraries when file_magic_cmd begins with "file".
19392 MAGIC_CMD=$MAGIC_CMD
19393
19394 # Must we lock files when doing compilation?
19395 need_locks=$lt_need_locks
19396
19397 # Manifest tool.
19398 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19399
19400 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19401 DSYMUTIL=$lt_DSYMUTIL
19402
19403 # Tool to change global to local symbols on Mac OS X.
19404 NMEDIT=$lt_NMEDIT
19405
19406 # Tool to manipulate fat objects and archives on Mac OS X.
19407 LIPO=$lt_LIPO
19408
19409 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19410 OTOOL=$lt_OTOOL
19411
19412 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19413 OTOOL64=$lt_OTOOL64
19414
19415 # Old archive suffix (normally "a").
19416 libext=$libext
19417
19418 # Shared library suffix (normally ".so").
19419 shrext_cmds=$lt_shrext_cmds
19420
19421 # The commands to extract the exported symbol list from a shared archive.
19422 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19423
19424 # Variables whose values should be saved in libtool wrapper scripts and
19425 # restored at link time.
19426 variables_saved_for_relink=$lt_variables_saved_for_relink
19427
19428 # Do we need the "lib" prefix for modules?
19429 need_lib_prefix=$need_lib_prefix
19430
19431 # Do we need a version for libraries?
19432 need_version=$need_version
19433
19434 # Library versioning type.
19435 version_type=$version_type
19436
19437 # Shared library runtime path variable.
19438 runpath_var=$runpath_var
19439
19440 # Shared library path variable.
19441 shlibpath_var=$shlibpath_var
19442
19443 # Is shlibpath searched before the hard-coded library search path?
19444 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19445
19446 # Format of library name prefix.
19447 libname_spec=$lt_libname_spec
19448
19449 # List of archive names. First name is the real one, the rest are links.
19450 # The last name is the one that the linker finds with -lNAME
19451 library_names_spec=$lt_library_names_spec
19452
19453 # The coded name of the library, if different from the real name.
19454 soname_spec=$lt_soname_spec
19455
19456 # Permission mode override for installation of shared libraries.
19457 install_override_mode=$lt_install_override_mode
19458
19459 # Command to use after installation of a shared archive.
19460 postinstall_cmds=$lt_postinstall_cmds
19461
19462 # Command to use after uninstallation of a shared archive.
19463 postuninstall_cmds=$lt_postuninstall_cmds
19464
19465 # Commands used to finish a libtool library installation in a directory.
19466 finish_cmds=$lt_finish_cmds
19467
19468 # As "finish_cmds", except a single script fragment to be evaled but
19469 # not shown.
19470 finish_eval=$lt_finish_eval
19471
19472 # Whether we should hardcode library paths into libraries.
19473 hardcode_into_libs=$hardcode_into_libs
19474
19475 # Compile-time system search path for libraries.
19476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19477
19478 # Detected run-time system search path for libraries.
19479 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19480
19481 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19482 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19483
19484 # Whether dlopen is supported.
19485 dlopen_support=$enable_dlopen
19486
19487 # Whether dlopen of programs is supported.
19488 dlopen_self=$enable_dlopen_self
19489
19490 # Whether dlopen of statically linked programs is supported.
19491 dlopen_self_static=$enable_dlopen_self_static
19492
19493 # Commands to strip libraries.
19494 old_striplib=$lt_old_striplib
19495 striplib=$lt_striplib
19496
19497
19498 # The linker used to build libraries.
19499 LD=$lt_LD
19500
19501 # How to create reloadable object files.
19502 reload_flag=$lt_reload_flag
19503 reload_cmds=$lt_reload_cmds
19504
19505 # Commands used to build an old-style archive.
19506 old_archive_cmds=$lt_old_archive_cmds
19507
19508 # A language specific compiler.
19509 CC=$lt_compiler
19510
19511 # Is the compiler the GNU compiler?
19512 with_gcc=$GCC
19513
19514 # Compiler flag to turn off builtin functions.
19515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19516
19517 # Additional compiler flags for building library objects.
19518 pic_flag=$lt_lt_prog_compiler_pic
19519
19520 # How to pass a linker flag through the compiler.
19521 wl=$lt_lt_prog_compiler_wl
19522
19523 # Compiler flag to prevent dynamic linking.
19524 link_static_flag=$lt_lt_prog_compiler_static
19525
19526 # Does compiler simultaneously support -c and -o options?
19527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19528
19529 # Whether or not to add -lc for building shared libraries.
19530 build_libtool_need_lc=$archive_cmds_need_lc
19531
19532 # Whether or not to disallow shared libs when runtime libs are static.
19533 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19534
19535 # Compiler flag to allow reflexive dlopens.
19536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19537
19538 # Compiler flag to generate shared objects directly from archives.
19539 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19540
19541 # Whether the compiler copes with passing no objects directly.
19542 compiler_needs_object=$lt_compiler_needs_object
19543
19544 # Create an old-style archive from a shared archive.
19545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19546
19547 # Create a temporary old-style archive to link instead of a shared archive.
19548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19549
19550 # Commands used to build a shared archive.
19551 archive_cmds=$lt_archive_cmds
19552 archive_expsym_cmds=$lt_archive_expsym_cmds
19553
19554 # Commands used to build a loadable module if different from building
19555 # a shared archive.
19556 module_cmds=$lt_module_cmds
19557 module_expsym_cmds=$lt_module_expsym_cmds
19558
19559 # Whether we are building with GNU ld or not.
19560 with_gnu_ld=$lt_with_gnu_ld
19561
19562 # Flag that allows shared libraries with undefined symbols to be built.
19563 allow_undefined_flag=$lt_allow_undefined_flag
19564
19565 # Flag that enforces no undefined symbols.
19566 no_undefined_flag=$lt_no_undefined_flag
19567
19568 # Flag to hardcode \$libdir into a binary during linking.
19569 # This must work even if \$libdir does not exist
19570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19571
19572 # Whether we need a single "-rpath" flag with a separated argument.
19573 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19574
19575 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19576 # DIR into the resulting binary.
19577 hardcode_direct=$hardcode_direct
19578
19579 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19580 # DIR into the resulting binary and the resulting library dependency is
19581 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19582 # library is relocated.
19583 hardcode_direct_absolute=$hardcode_direct_absolute
19584
19585 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19586 # into the resulting binary.
19587 hardcode_minus_L=$hardcode_minus_L
19588
19589 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19590 # into the resulting binary.
19591 hardcode_shlibpath_var=$hardcode_shlibpath_var
19592
19593 # Set to "yes" if building a shared library automatically hardcodes DIR
19594 # into the library and all subsequent libraries and executables linked
19595 # against it.
19596 hardcode_automatic=$hardcode_automatic
19597
19598 # Set to yes if linker adds runtime paths of dependent libraries
19599 # to runtime path list.
19600 inherit_rpath=$inherit_rpath
19601
19602 # Whether libtool must link a program against all its dependency libraries.
19603 link_all_deplibs=$link_all_deplibs
19604
19605 # Set to "yes" if exported symbols are required.
19606 always_export_symbols=$always_export_symbols
19607
19608 # The commands to list exported symbols.
19609 export_symbols_cmds=$lt_export_symbols_cmds
19610
19611 # Symbols that should not be listed in the preloaded symbols.
19612 exclude_expsyms=$lt_exclude_expsyms
19613
19614 # Symbols that must always be exported.
19615 include_expsyms=$lt_include_expsyms
19616
19617 # Commands necessary for linking programs (against libraries) with templates.
19618 prelink_cmds=$lt_prelink_cmds
19619
19620 # Commands necessary for finishing linking programs.
19621 postlink_cmds=$lt_postlink_cmds
19622
19623 # Specify filename containing input files.
19624 file_list_spec=$lt_file_list_spec
19625
19626 # How to hardcode a shared library path into an executable.
19627 hardcode_action=$hardcode_action
19628
19629 # ### END LIBTOOL CONFIG
19630
19631 _LT_EOF
19632
19633 cat <<'_LT_EOF' >> "$cfgfile"
19634
19635 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19636
19637 # func_munge_path_list VARIABLE PATH
19638 # -----------------------------------
19639 # VARIABLE is name of variable containing _space_ separated list of
19640 # directories to be munged by the contents of PATH, which is string
19641 # having a format:
19642 # "DIR[:DIR]:"
19643 # string "DIR[ DIR]" will be prepended to VARIABLE
19644 # ":DIR[:DIR]"
19645 # string "DIR[ DIR]" will be appended to VARIABLE
19646 # "DIRP[:DIRP]::[DIRA:]DIRA"
19647 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19648 # "DIRA[ DIRA]" will be appended to VARIABLE
19649 # "DIR[:DIR]"
19650 # VARIABLE will be replaced by "DIR[ DIR]"
19651 func_munge_path_list ()
19652 {
19653 case x$2 in
19654 x)
19655 ;;
19656 *:)
19657 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19658 ;;
19659 x:*)
19660 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19661 ;;
19662 *::*)
19663 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19664 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19665 ;;
19666 *)
19667 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19668 ;;
19669 esac
19670 }
19671
19672
19673 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19674 func_cc_basename ()
19675 {
19676 for cc_temp in $*""; do
19677 case $cc_temp in
19678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19680 \-*) ;;
19681 *) break;;
19682 esac
19683 done
19684 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19685 }
19686
19687
19688 # ### END FUNCTIONS SHARED WITH CONFIGURE
19689
19690 _LT_EOF
19691
19692 case $host_os in
19693 aix3*)
19694 cat <<\_LT_EOF >> "$cfgfile"
19695 # AIX sometimes has problems with the GCC collect2 program. For some
19696 # reason, if we set the COLLECT_NAMES environment variable, the problems
19697 # vanish in a puff of smoke.
19698 if test set != "${COLLECT_NAMES+set}"; then
19699 COLLECT_NAMES=
19700 export COLLECT_NAMES
19701 fi
19702 _LT_EOF
19703 ;;
19704 esac
19705
19706
19707
19708 ltmain=$ac_aux_dir/ltmain.sh
19709
19710
19711 # We use sed instead of cat because bash on DJGPP gets confused if
19712 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19713 # text mode, it properly converts lines to CR/LF. This bash problem
19714 # is reportedly fixed, but why not run on old versions too?
19715 $SED '$q' "$ltmain" >> "$cfgfile" \
19716 || (rm -f "$cfgfile"; exit 1)
19717
19718 mv -f "$cfgfile" "$ofile" ||
19719 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19720 chmod +x "$ofile"
19721
19722 ;;
19723
19724 esac
19725 done # for ac_tag
19726
19727
19728 as_fn_exit 0
19729 _ACEOF
19730 ac_clean_files=$ac_clean_files_save
19731
19732 test $ac_write_fail = 0 ||
19733 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19734
19735
19736 # configure is writing to config.log, and then calls config.status.
19737 # config.status does its own redirection, appending to config.log.
19738 # Unfortunately, on DOS this fails, as config.log is still kept open
19739 # by configure, so config.status won't be able to write to it; its
19740 # output is simply discarded. So we exec the FD to /dev/null,
19741 # effectively closing config.log, so it can be properly (re)opened and
19742 # appended to by config.status. When coming back to configure, we
19743 # need to make the FD available again.
19744 if test "$no_create" != yes; then
19745 ac_cs_success=:
19746 ac_config_status_args=
19747 test "$silent" = yes &&
19748 ac_config_status_args="$ac_config_status_args --quiet"
19749 exec 5>/dev/null
19750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19751 exec 5>>config.log
19752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19753 # would make configure fail if this is the last instruction.
19754 $ac_cs_success || as_fn_exit 1
19755 fi
19756 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19758 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19759 fi
19760
19761