Debian Codegraph @

texk/tex4htk/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 tex4ht (TeX Live) 20080225.
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='tex4ht (TeX Live)'
616 PACKAGE_TARNAME='tex4ht--tex-live-'
617 PACKAGE_VERSION='20080225'
618 PACKAGE_STRING='tex4ht (TeX Live) 20080225'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="tex4ht.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 WIN32_WRAP_FALSE
661 WIN32_WRAP_TRUE
662 WIN_WRAPPER
663 WIN32_FALSE
664 WIN32_TRUE
665 KPATHSEA_RULE
666 KPATHSEA_DEPEND
667 KPATHSEA_LIBS
668 KPATHSEA_INCLUDES
669 PKG_CONFIG
670 LT_SYS_LIBRARY_PATH
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 MANIFEST_TOOL
677 RANLIB
678 FILECMD
679 LN_S
680 NM
681 ac_ct_DUMPBIN
682 DUMPBIN
683 LD
684 FGREP
685 EGREP
686 GREP
687 SED
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 LIBTOOL
697 OBJDUMP
698 DLLTOOL
699 AS
700 ac_ct_AR
701 AR
702 WARNING_CFLAGS
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 MAINT
720 MAINTAINER_MODE_FALSE
721 MAINTAINER_MODE_TRUE
722 am__xargs_n
723 am__rm_f_notfound
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 CSCOPE
729 ETAGS
730 CTAGS
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 runstatedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL
793 am__quote'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_maintainer_mode
799 enable_dependency_tracking
800 enable_compiler_warnings
801 enable_shared
802 enable_static
803 enable_pic
804 with_pic
805 enable_fast_install
806 enable_aix_soname
807 with_aix_soname
808 with_gnu_ld
809 with_sysroot
810 enable_libtool_lock
811 enable_largefile
812 with_system_kpathsea
813 enable_year2038
814 '
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CC
819 CFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
823 LT_SYS_LIBRARY_PATH'
824
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 runstatedir='${localstatedir}/run'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
882 ac_prev=
883 continue
884 fi
885
886 case $ac_option in
887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *=) ac_optarg= ;;
889 *) ac_optarg=yes ;;
890 esac
891
892 case $ac_dashdash$ac_option in
893 --)
894 ac_dashdash=yes ;;
895
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 bindir=$ac_optarg ;;
900
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
905
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
912
913 --config-cache | -C)
914 cache_file=config.cache ;;
915
916 -datadir | --datadir | --datadi | --datad)
917 ac_prev=datadir ;;
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
920
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
927
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: '$ac_useropt'"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
943
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
948
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
953
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: '$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
969
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
978
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
982
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
989
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
994
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1000
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1007
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1012
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1017
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1024
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1029
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1036
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1041
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1045
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1049
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1053
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1062
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1067
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1074
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1081
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1098
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1103
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1108
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1112
1113 -runstatedir | --runstatedir | --runstatedi | --runstated \
1114 | --runstate | --runstat | --runsta | --runst | --runs \
1115 | --run | --ru | --r)
1116 ac_prev=runstatedir ;;
1117 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1118 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1119 | --run=* | --ru=* | --r=*)
1120 runstatedir=$ac_optarg ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: '$ac_useropt'"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: '$ac_useropt'"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: '$ac_option'
1218 Try '$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir runstatedir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: '$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 printf "%s\n" X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 'configure' configures tex4ht (TeX Live) 20080225 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print 'checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for '--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or '..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, 'make install' will install all the files in
1399 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than '$ac_default_prefix' using '--prefix',
1401 for instance '--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root
1422 [DATAROOTDIR/doc/tex4ht--tex-live-]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1428
1429 cat <<\_ACEOF
1430
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of tex4ht (TeX Live) 20080225:";;
1445 esac
1446 cat <<\_ACEOF
1447
1448 Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
1457 --enable-dependency-tracking
1458 do not reject slow dependency extractors
1459 --disable-dependency-tracking
1460 speeds up one-time build
1461 --enable-compiler-warnings=[no|min|yes|max|all]
1462 Turn on compiler warnings [default: yes if
1463 maintainer-mode, min otherwise]
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-static[=PKGS] build static libraries [default=yes]
1466 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --enable-aix-soname=aix|svr4|both
1471 shared library versioning (aka "SONAME") variant to
1472 provide on AIX, [default=aix].
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --disable-largefile omit support for large files
1475 --enable-year2038 support timestamps after 2038
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1482 compiler's sysroot if not specified).
1483 --with-system-kpathsea use installed kpathsea headers and library (requires
1484 pkg-config)
1485
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 LT_SYS_LIBRARY_PATH
1495 User-defined run-time library search path.
1496
1497 Use these variables to override the choices made by 'configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 Report bugs to <[email protected]>.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for configure.gnu first; this name is used for a wrapper for
1547 # Metaconfig's "Configure" on case-insensitive file systems.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 tex4ht (TeX Live) configure 20080225
1565 generated by GNU Autoconf 2.72
1566
1567 Copyright (C) 2023 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570 _ACEOF
1571 exit
1572 fi
1573
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1577
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest.beam
1585 if { { ac_try="$ac_compile"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 printf "%s\n" "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext
1604 then :
1605 ac_retval=0
1606 else case e in #(
1607 e) printf "%s\n" "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1 ;;
1611 esac
1612 fi
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_compile
1617
1618 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists and can be compiled using the include files in
1621 # INCLUDES, setting the cache variable VAR accordingly.
1622 ac_fn_c_check_header_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 printf %s "checking for $2... " >&6; }
1627 if eval test \${$3+y}
1628 then :
1629 printf %s "(cached) " >&6
1630 else case e in #(
1631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1633 $4
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"
1637 then :
1638 eval "$3=yes"
1639 else case e in #(
1640 e) eval "$3=no" ;;
1641 esac
1642 fi
1643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1644 esac
1645 fi
1646 eval ac_res=\$$3
1647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 printf "%s\n" "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651 } # ac_fn_c_check_header_compile
1652
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_link ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1660 if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 printf "%s\n" "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest$ac_exeext && {
1679 test "$cross_compiling" = yes ||
1680 test -x conftest$ac_exeext
1681 }
1682 then :
1683 ac_retval=0
1684 else case e in #(
1685 e) printf "%s\n" "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1 ;;
1689 esac
1690 fi
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_link
1700
1701 # ac_fn_c_check_func LINENO FUNC VAR
1702 # ----------------------------------
1703 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1704 ac_fn_c_check_func ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 printf %s "checking for $2... " >&6; }
1709 if eval test \${$3+y}
1710 then :
1711 printf %s "(cached) " >&6
1712 else case e in #(
1713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1717 #define $2 innocuous_$2
1718
1719 /* System header to define __stub macros and hopefully few prototypes,
1720 which can conflict with char $2 (void); below. */
1721
1722 #include <limits.h>
1723 #undef $2
1724
1725 /* Override any GCC internal prototype to avoid an error.
1726 Use char because int might match the return type of a GCC
1727 builtin and then its argument prototype would still apply. */
1728 #ifdef __cplusplus
1729 extern "C"
1730 #endif
1731 char $2 (void);
1732 /* The GNU C library defines this for functions which it implements
1733 to always fail with ENOSYS. Some functions are actually named
1734 something starting with __ and the normal name is an alias. */
1735 #if defined __stub_$2 || defined __stub___$2
1736 choke me
1737 #endif
1738
1739 int
1740 main (void)
1741 {
1742 return $2 ();
1743 ;
1744 return 0;
1745 }
1746 _ACEOF
1747 if ac_fn_c_try_link "$LINENO"
1748 then :
1749 eval "$3=yes"
1750 else case e in #(
1751 e) eval "$3=no" ;;
1752 esac
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1755 conftest$ac_exeext conftest.$ac_ext ;;
1756 esac
1757 fi
1758 eval ac_res=\$$3
1759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 printf "%s\n" "$ac_res" >&6; }
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763 } # ac_fn_c_check_func
1764
1765 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1766 # -------------------------------------------
1767 # Tests whether TYPE exists after having included INCLUDES, setting cache
1768 # variable VAR accordingly.
1769 ac_fn_c_check_type ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 printf %s "checking for $2... " >&6; }
1774 if eval test \${$3+y}
1775 then :
1776 printf %s "(cached) " >&6
1777 else case e in #(
1778 e) eval "$3=no"
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 $4
1782 int
1783 main (void)
1784 {
1785 if (sizeof ($2))
1786 return 0;
1787 ;
1788 return 0;
1789 }
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"
1792 then :
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 $4
1796 int
1797 main (void)
1798 {
1799 if (sizeof (($2)))
1800 return 0;
1801 ;
1802 return 0;
1803 }
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"
1806 then :
1807
1808 else case e in #(
1809 e) eval "$3=yes" ;;
1810 esac
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1815 esac
1816 fi
1817 eval ac_res=\$$3
1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 printf "%s\n" "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_type
1823
1824 # ac_fn_c_find_intX_t LINENO BITS VAR
1825 # -----------------------------------
1826 # Finds a signed integer type with width BITS, setting cache variable VAR
1827 # accordingly.
1828 ac_fn_c_find_intX_t ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1832 printf %s "checking for int$2_t... " >&6; }
1833 if eval test \${$3+y}
1834 then :
1835 printf %s "(cached) " >&6
1836 else case e in #(
1837 e) eval "$3=no"
1838 # Order is important - never check a type that is potentially smaller
1839 # than half of the expected target width.
1840 for ac_type in int$2_t 'int' 'long int' \
1841 'long long int' 'short int' 'signed char'; do
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 $ac_includes_default
1845 enum { N = $2 / 2 - 1 };
1846 int
1847 main (void)
1848 {
1849 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1850 test_array [0] = 0;
1851 return test_array [0];
1852
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"
1858 then :
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $ac_includes_default
1862 enum { N = $2 / 2 - 1 };
1863 int
1864 main (void)
1865 {
1866 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1867 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1868 test_array [0] = 0;
1869 return test_array [0];
1870
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"
1876 then :
1877
1878 else case e in #(
1879 e) case $ac_type in #(
1880 int$2_t) :
1881 eval "$3=yes" ;; #(
1882 *) :
1883 eval "$3=\$ac_type" ;;
1884 esac ;;
1885 esac
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1890 if eval test \"x\$"$3"\" = x"no"
1891 then :
1892
1893 else case e in #(
1894 e) break ;;
1895 esac
1896 fi
1897 done ;;
1898 esac
1899 fi
1900 eval ac_res=\$$3
1901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 printf "%s\n" "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_find_intX_t
1906
1907 # ac_fn_c_find_uintX_t LINENO BITS VAR
1908 # ------------------------------------
1909 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1910 # accordingly.
1911 ac_fn_c_find_uintX_t ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1915 printf %s "checking for uint$2_t... " >&6; }
1916 if eval test \${$3+y}
1917 then :
1918 printf %s "(cached) " >&6
1919 else case e in #(
1920 e) eval "$3=no"
1921 # Order is important - never check a type that is potentially smaller
1922 # than half of the expected target width.
1923 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1924 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 $ac_includes_default
1928 int
1929 main (void)
1930 {
1931 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1932 test_array [0] = 0;
1933 return test_array [0];
1934
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"
1940 then :
1941 case $ac_type in #(
1942 uint$2_t) :
1943 eval "$3=yes" ;; #(
1944 *) :
1945 eval "$3=\$ac_type" ;;
1946 esac
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1949 if eval test \"x\$"$3"\" = x"no"
1950 then :
1951
1952 else case e in #(
1953 e) break ;;
1954 esac
1955 fi
1956 done ;;
1957 esac
1958 fi
1959 eval ac_res=\$$3
1960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 printf "%s\n" "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964 } # ac_fn_c_find_uintX_t
1965
1966 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1967 # ------------------------------------------------------------------
1968 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1969 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1970 ac_fn_check_decl ()
1971 {
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 as_decl_name=`echo $2|sed 's/ *(.*//'`
1974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1975 printf %s "checking whether $as_decl_name is declared... " >&6; }
1976 if eval test \${$3+y}
1977 then :
1978 printf %s "(cached) " >&6
1979 else case e in #(
1980 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1981 eval ac_save_FLAGS=\$$6
1982 as_fn_append $6 " $5"
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1985 $4
1986 int
1987 main (void)
1988 {
1989 #ifndef $as_decl_name
1990 #ifdef __cplusplus
1991 (void) $as_decl_use;
1992 #else
1993 (void) $as_decl_name;
1994 #endif
1995 #endif
1996
1997 ;
1998 return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"
2002 then :
2003 eval "$3=yes"
2004 else case e in #(
2005 e) eval "$3=no" ;;
2006 esac
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2009 eval $6=\$ac_save_FLAGS
2010 ;;
2011 esac
2012 fi
2013 eval ac_res=\$$3
2014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 printf "%s\n" "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018 } # ac_fn_check_decl
2019
2020 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2021 # ----------------------------------------------------
2022 # Tries to find if the field MEMBER exists in type AGGR, after including
2023 # INCLUDES, setting cache variable VAR accordingly.
2024 ac_fn_c_check_member ()
2025 {
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2028 printf %s "checking for $2.$3... " >&6; }
2029 if eval test \${$4+y}
2030 then :
2031 printf %s "(cached) " >&6
2032 else case e in #(
2033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $5
2036 int
2037 main (void)
2038 {
2039 static $2 ac_aggr;
2040 if (ac_aggr.$3)
2041 return 0;
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"
2047 then :
2048 eval "$4=yes"
2049 else case e in #(
2050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 $5
2053 int
2054 main (void)
2055 {
2056 static $2 ac_aggr;
2057 if (sizeof ac_aggr.$3)
2058 return 0;
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"
2064 then :
2065 eval "$4=yes"
2066 else case e in #(
2067 e) eval "$4=no" ;;
2068 esac
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2071 esac
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2074 esac
2075 fi
2076 eval ac_res=\$$4
2077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 printf "%s\n" "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_member
2082
2083 # ac_fn_c_try_run LINENO
2084 # ----------------------
2085 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2086 # executables *can* be run.
2087 ac_fn_c_try_run ()
2088 {
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if { { ac_try="$ac_link"
2091 case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094 esac
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 printf "%s\n" "$ac_try_echo"; } >&5
2097 (eval "$ac_link") 2>&5
2098 ac_status=$?
2099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2101 { { case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104 esac
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 printf "%s\n" "$ac_try_echo"; } >&5
2107 (eval "$ac_try") 2>&5
2108 ac_status=$?
2109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; }; }
2111 then :
2112 ac_retval=0
2113 else case e in #(
2114 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2115 printf "%s\n" "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_retval=$ac_status ;;
2119 esac
2120 fi
2121 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 as_fn_set_status $ac_retval
2124
2125 } # ac_fn_c_try_run
2126
2127 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2128 # --------------------------------------------
2129 # Tries to find the compile-time value of EXPR in a program that includes
2130 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2131 # computed
2132 ac_fn_c_compute_int ()
2133 {
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if test "$cross_compiling" = yes; then
2136 # Depending upon the size, compute the lo and hi bounds.
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 $4
2140 int
2141 main (void)
2142 {
2143 static int test_array [1 - 2 * !(($2) >= 0)];
2144 test_array [0] = 0;
2145 return test_array [0];
2146
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"
2152 then :
2153 ac_lo=0 ac_mid=0
2154 while :; do
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 $4
2158 int
2159 main (void)
2160 {
2161 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 test_array [0] = 0;
2163 return test_array [0];
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"
2170 then :
2171 ac_hi=$ac_mid; break
2172 else case e in #(
2173 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2174 if test $ac_lo -le $ac_mid; then
2175 ac_lo= ac_hi=
2176 break
2177 fi
2178 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2179 esac
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2182 done
2183 else case e in #(
2184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 $4
2187 int
2188 main (void)
2189 {
2190 static int test_array [1 - 2 * !(($2) < 0)];
2191 test_array [0] = 0;
2192 return test_array [0];
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"
2199 then :
2200 ac_hi=-1 ac_mid=-1
2201 while :; do
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 int
2206 main (void)
2207 {
2208 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2209 test_array [0] = 0;
2210 return test_array [0];
2211
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"
2217 then :
2218 ac_lo=$ac_mid; break
2219 else case e in #(
2220 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2221 if test $ac_mid -le $ac_hi; then
2222 ac_lo= ac_hi=
2223 break
2224 fi
2225 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2226 esac
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2229 done
2230 else case e in #(
2231 e) ac_lo= ac_hi= ;;
2232 esac
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2235 esac
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2238 # Binary search between lo and hi bounds.
2239 while test "x$ac_lo" != "x$ac_hi"; do
2240 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243 $4
2244 int
2245 main (void)
2246 {
2247 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2248 test_array [0] = 0;
2249 return test_array [0];
2250
2251 ;
2252 return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"
2256 then :
2257 ac_hi=$ac_mid
2258 else case e in #(
2259 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2260 esac
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2263 done
2264 case $ac_lo in #((
2265 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2266 '') ac_retval=1 ;;
2267 esac
2268 else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 $4
2272 static long int longval (void) { return $2; }
2273 static unsigned long int ulongval (void) { return $2; }
2274 #include <stdio.h>
2275 #include <stdlib.h>
2276 int
2277 main (void)
2278 {
2279
2280 FILE *f = fopen ("conftest.val", "w");
2281 if (! f)
2282 return 1;
2283 if (($2) < 0)
2284 {
2285 long int i = longval ();
2286 if (i != ($2))
2287 return 1;
2288 fprintf (f, "%ld", i);
2289 }
2290 else
2291 {
2292 unsigned long int i = ulongval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%lu", i);
2296 }
2297 /* Do not output a trailing newline, as this causes \r\n confusion
2298 on some platforms. */
2299 return ferror (f) || fclose (f) != 0;
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_run "$LINENO"
2306 then :
2307 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2308 else case e in #(
2309 e) ac_retval=1 ;;
2310 esac
2311 fi
2312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2313 conftest.$ac_objext conftest.beam conftest.$ac_ext
2314 rm -f conftest.val
2315
2316 fi
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 as_fn_set_status $ac_retval
2319
2320 } # ac_fn_c_compute_int
2321 ac_configure_args_raw=
2322 for ac_arg
2323 do
2324 case $ac_arg in
2325 *\'*)
2326 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 esac
2328 as_fn_append ac_configure_args_raw " '$ac_arg'"
2329 done
2330
2331 case $ac_configure_args_raw in
2332 *$as_nl*)
2333 ac_safe_unquote= ;;
2334 *)
2335 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2336 ac_unsafe_a="$ac_unsafe_z#~"
2337 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2338 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2339 esac
2340
2341 cat >config.log <<_ACEOF
2342 This file contains any messages produced by compilers while
2343 running configure, to aid debugging if configure makes a mistake.
2344
2345 It was created by tex4ht (TeX Live) $as_me 20080225, which was
2346 generated by GNU Autoconf 2.72. Invocation command line was
2347
2348 $ $0$ac_configure_args_raw
2349
2350 _ACEOF
2351 exec 5>>config.log
2352 {
2353 cat <<_ASUNAME
2354 ## --------- ##
2355 ## Platform. ##
2356 ## --------- ##
2357
2358 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2359 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2360 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2361 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2362 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2363
2364 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2365 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2366
2367 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2368 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2369 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2370 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2371 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2372 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2373 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2374
2375 _ASUNAME
2376
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380 IFS=$as_save_IFS
2381 case $as_dir in #(((
2382 '') as_dir=./ ;;
2383 */) ;;
2384 *) as_dir=$as_dir/ ;;
2385 esac
2386 printf "%s\n" "PATH: $as_dir"
2387 done
2388 IFS=$as_save_IFS
2389
2390 } >&5
2391
2392 cat >&5 <<_ACEOF
2393
2394
2395 ## ----------- ##
2396 ## Core tests. ##
2397 ## ----------- ##
2398
2399 _ACEOF
2400
2401
2402 # Keep a trace of the command line.
2403 # Strip out --no-create and --no-recursion so they do not pile up.
2404 # Strip out --silent because we don't want to record it for future runs.
2405 # Also quote any args containing shell meta-characters.
2406 # Make two passes to allow for proper duplicate-argument suppression.
2407 ac_configure_args=
2408 ac_configure_args0=
2409 ac_configure_args1=
2410 ac_must_keep_next=false
2411 for ac_pass in 1 2
2412 do
2413 for ac_arg
2414 do
2415 case $ac_arg in
2416 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2418 | -silent | --silent | --silen | --sile | --sil)
2419 continue ;;
2420 *\'*)
2421 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 esac
2423 case $ac_pass in
2424 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2425 2)
2426 as_fn_append ac_configure_args1 " '$ac_arg'"
2427 if test $ac_must_keep_next = true; then
2428 ac_must_keep_next=false # Got value, back to normal.
2429 else
2430 case $ac_arg in
2431 *=* | --config-cache | -C | -disable-* | --disable-* \
2432 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2433 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2434 | -with-* | --with-* | -without-* | --without-* | --x)
2435 case "$ac_configure_args0 " in
2436 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2437 esac
2438 ;;
2439 -* ) ac_must_keep_next=true ;;
2440 esac
2441 fi
2442 as_fn_append ac_configure_args " '$ac_arg'"
2443 ;;
2444 esac
2445 done
2446 done
2447 { ac_configure_args0=; unset ac_configure_args0;}
2448 { ac_configure_args1=; unset ac_configure_args1;}
2449
2450 # When interrupted or exit'd, cleanup temporary files, and complete
2451 # config.log. We remove comments because anyway the quotes in there
2452 # would cause problems or look ugly.
2453 # WARNING: Use '\'' to represent an apostrophe within the trap.
2454 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2455 trap 'exit_status=$?
2456 # Sanitize IFS.
2457 IFS=" "" $as_nl"
2458 # Save into config.log some information that might help in debugging.
2459 {
2460 echo
2461
2462 printf "%s\n" "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
2465 echo
2466 # The following way of writing the cache mishandles newlines in values,
2467 (
2468 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469 eval ac_val=\$$ac_var
2470 case $ac_val in #(
2471 *${as_nl}*)
2472 case $ac_var in #(
2473 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2475 esac
2476 case $ac_var in #(
2477 _ | IFS | as_nl) ;; #(
2478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479 *) { eval $ac_var=; unset $ac_var;} ;;
2480 esac ;;
2481 esac
2482 done
2483 (set) 2>&1 |
2484 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485 *${as_nl}ac_space=\ *)
2486 sed -n \
2487 "s/'\''/'\''\\\\'\'''\''/g;
2488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2489 ;; #(
2490 *)
2491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492 ;;
2493 esac |
2494 sort
2495 )
2496 echo
2497
2498 printf "%s\n" "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
2501 echo
2502 for ac_var in $ac_subst_vars
2503 do
2504 eval ac_val=\$$ac_var
2505 case $ac_val in
2506 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 esac
2508 printf "%s\n" "$ac_var='\''$ac_val'\''"
2509 done | sort
2510 echo
2511
2512 if test -n "$ac_subst_files"; then
2513 printf "%s\n" "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
2516 echo
2517 for ac_var in $ac_subst_files
2518 do
2519 eval ac_val=\$$ac_var
2520 case $ac_val in
2521 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522 esac
2523 printf "%s\n" "$ac_var='\''$ac_val'\''"
2524 done | sort
2525 echo
2526 fi
2527
2528 if test -s confdefs.h; then
2529 printf "%s\n" "## ----------- ##
2530 ## confdefs.h. ##
2531 ## ----------- ##"
2532 echo
2533 cat confdefs.h
2534 echo
2535 fi
2536 test "$ac_signal" != 0 &&
2537 printf "%s\n" "$as_me: caught signal $ac_signal"
2538 printf "%s\n" "$as_me: exit $exit_status"
2539 } >&5
2540 rm -f core *.core core.conftest.* &&
2541 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2542 exit $exit_status
2543 ' 0
2544 for ac_signal in 1 2 13 15; do
2545 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546 done
2547 ac_signal=0
2548
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2551
2552 printf "%s\n" "/* confdefs.h */" > confdefs.h
2553
2554 # Predefined preprocessor variables.
2555
2556 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2557
2558 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2559
2560 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2561
2562 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2563
2564 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2565
2566 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2567
2568
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2571 if test -n "$CONFIG_SITE"; then
2572 ac_site_files="$CONFIG_SITE"
2573 elif test "x$prefix" != xNONE; then
2574 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2575 else
2576 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2577 fi
2578
2579 for ac_site_file in $ac_site_files
2580 do
2581 case $ac_site_file in #(
2582 */*) :
2583 ;; #(
2584 *) :
2585 ac_site_file=./$ac_site_file ;;
2586 esac
2587 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2589 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2590 sed 's/^/| /' "$ac_site_file" >&5
2591 . "$ac_site_file" \
2592 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2593 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2594 as_fn_error $? "failed to load site script $ac_site_file
2595 See 'config.log' for more details" "$LINENO" 5; }
2596 fi
2597 done
2598
2599 if test -r "$cache_file"; then
2600 # Some versions of bash will fail to source /dev/null (special files
2601 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2602 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2604 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2605 case $cache_file in
2606 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2607 *) . "./$cache_file";;
2608 esac
2609 fi
2610 else
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2612 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2613 >$cache_file
2614 fi
2615
2616 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2617 # Test code for whether the C compiler supports C89 (global declarations)
2618 ac_c_conftest_c89_globals='
2619 /* Does the compiler advertise C89 conformance?
2620 Do not test the value of __STDC__, because some compilers set it to 0
2621 while being otherwise adequately conformant. */
2622 #if !defined __STDC__
2623 # error "Compiler does not advertise C89 conformance"
2624 #endif
2625
2626 #include <stddef.h>
2627 #include <stdarg.h>
2628 struct stat;
2629 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2630 struct buf { int x; };
2631 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2632 static char *e (char **p, int i)
2633 {
2634 return p[i];
2635 }
2636 static char *f (char * (*g) (char **, int), char **p, ...)
2637 {
2638 char *s;
2639 va_list v;
2640 va_start (v,p);
2641 s = g (p, va_arg (v,int));
2642 va_end (v);
2643 return s;
2644 }
2645
2646 /* C89 style stringification. */
2647 #define noexpand_stringify(a) #a
2648 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2649
2650 /* C89 style token pasting. Exercises some of the corner cases that
2651 e.g. old MSVC gets wrong, but not very hard. */
2652 #define noexpand_concat(a,b) a##b
2653 #define expand_concat(a,b) noexpand_concat(a,b)
2654 extern int vA;
2655 extern int vbee;
2656 #define aye A
2657 #define bee B
2658 int *pvA = &expand_concat(v,aye);
2659 int *pvbee = &noexpand_concat(v,bee);
2660
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not \xHH hex character constants.
2663 These do not provoke an error unfortunately, instead are silently treated
2664 as an "x". The following induces an error, until -std is added to get
2665 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2666 array size at least. It is necessary to write \x00 == 0 to get something
2667 that is true only with -std. */
2668 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2669
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671 inside strings and character constants. */
2672 #define FOO(x) '\''x'\''
2673 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2674
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2679 int, int);'
2680
2681 # Test code for whether the C compiler supports C89 (body of main).
2682 ac_c_conftest_c89_main='
2683 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2684 '
2685
2686 # Test code for whether the C compiler supports C99 (global declarations)
2687 ac_c_conftest_c99_globals='
2688 /* Does the compiler advertise C99 conformance? */
2689 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2690 # error "Compiler does not advertise C99 conformance"
2691 #endif
2692
2693 // See if C++-style comments work.
2694
2695 #include <stdbool.h>
2696 extern int puts (const char *);
2697 extern int printf (const char *, ...);
2698 extern int dprintf (int, const char *, ...);
2699 extern void *malloc (size_t);
2700 extern void free (void *);
2701
2702 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2703 // dprintf is used instead of fprintf to avoid needing to declare
2704 // FILE and stderr.
2705 #define debug(...) dprintf (2, __VA_ARGS__)
2706 #define showlist(...) puts (#__VA_ARGS__)
2707 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2708 static void
2709 test_varargs_macros (void)
2710 {
2711 int x = 1234;
2712 int y = 5678;
2713 debug ("Flag");
2714 debug ("X = %d\n", x);
2715 showlist (The first, second, and third items.);
2716 report (x>y, "x is %d but y is %d", x, y);
2717 }
2718
2719 // Check long long types.
2720 #define BIG64 18446744073709551615ull
2721 #define BIG32 4294967295ul
2722 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2723 #if !BIG_OK
2724 #error "your preprocessor is broken"
2725 #endif
2726 #if BIG_OK
2727 #else
2728 #error "your preprocessor is broken"
2729 #endif
2730 static long long int bignum = -9223372036854775807LL;
2731 static unsigned long long int ubignum = BIG64;
2732
2733 struct incomplete_array
2734 {
2735 int datasize;
2736 double data[];
2737 };
2738
2739 struct named_init {
2740 int number;
2741 const wchar_t *name;
2742 double average;
2743 };
2744
2745 typedef const char *ccp;
2746
2747 static inline int
2748 test_restrict (ccp restrict text)
2749 {
2750 // Iterate through items via the restricted pointer.
2751 // Also check for declarations in for loops.
2752 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2753 continue;
2754 return 0;
2755 }
2756
2757 // Check varargs and va_copy.
2758 static bool
2759 test_varargs (const char *format, ...)
2760 {
2761 va_list args;
2762 va_start (args, format);
2763 va_list args_copy;
2764 va_copy (args_copy, args);
2765
2766 const char *str = "";
2767 int number = 0;
2768 float fnumber = 0;
2769
2770 while (*format)
2771 {
2772 switch (*format++)
2773 {
2774 case '\''s'\'': // string
2775 str = va_arg (args_copy, const char *);
2776 break;
2777 case '\''d'\'': // int
2778 number = va_arg (args_copy, int);
2779 break;
2780 case '\''f'\'': // float
2781 fnumber = va_arg (args_copy, double);
2782 break;
2783 default:
2784 break;
2785 }
2786 }
2787 va_end (args_copy);
2788 va_end (args);
2789
2790 return *str && number && fnumber;
2791 }
2792 '
2793
2794 # Test code for whether the C compiler supports C99 (body of main).
2795 ac_c_conftest_c99_main='
2796 // Check bool.
2797 _Bool success = false;
2798 success |= (argc != 0);
2799
2800 // Check restrict.
2801 if (test_restrict ("String literal") == 0)
2802 success = true;
2803 char *restrict newvar = "Another string";
2804
2805 // Check varargs.
2806 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2807 test_varargs_macros ();
2808
2809 // Check flexible array members.
2810 struct incomplete_array *ia =
2811 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2812 ia->datasize = 10;
2813 for (int i = 0; i < ia->datasize; ++i)
2814 ia->data[i] = i * 1.234;
2815 // Work around memory leak warnings.
2816 free (ia);
2817
2818 // Check named initializers.
2819 struct named_init ni = {
2820 .number = 34,
2821 .name = L"Test wide string",
2822 .average = 543.34343,
2823 };
2824
2825 ni.number = 58;
2826
2827 int dynamic_array[ni.number];
2828 dynamic_array[0] = argv[0][0];
2829 dynamic_array[ni.number - 1] = 543;
2830
2831 // work around unused variable warnings
2832 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2833 || dynamic_array[ni.number - 1] != 543);
2834 '
2835
2836 # Test code for whether the C compiler supports C11 (global declarations)
2837 ac_c_conftest_c11_globals='
2838 /* Does the compiler advertise C11 conformance? */
2839 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2840 # error "Compiler does not advertise C11 conformance"
2841 #endif
2842
2843 // Check _Alignas.
2844 char _Alignas (double) aligned_as_double;
2845 char _Alignas (0) no_special_alignment;
2846 extern char aligned_as_int;
2847 char _Alignas (0) _Alignas (int) aligned_as_int;
2848
2849 // Check _Alignof.
2850 enum
2851 {
2852 int_alignment = _Alignof (int),
2853 int_array_alignment = _Alignof (int[100]),
2854 char_alignment = _Alignof (char)
2855 };
2856 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2857
2858 // Check _Noreturn.
2859 int _Noreturn does_not_return (void) { for (;;) continue; }
2860
2861 // Check _Static_assert.
2862 struct test_static_assert
2863 {
2864 int x;
2865 _Static_assert (sizeof (int) <= sizeof (long int),
2866 "_Static_assert does not work in struct");
2867 long int y;
2868 };
2869
2870 // Check UTF-8 literals.
2871 #define u8 syntax error!
2872 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2873
2874 // Check duplicate typedefs.
2875 typedef long *long_ptr;
2876 typedef long int *long_ptr;
2877 typedef long_ptr long_ptr;
2878
2879 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2880 struct anonymous
2881 {
2882 union {
2883 struct { int i; int j; };
2884 struct { int k; long int l; } w;
2885 };
2886 int m;
2887 } v1;
2888 '
2889
2890 # Test code for whether the C compiler supports C11 (body of main).
2891 ac_c_conftest_c11_main='
2892 _Static_assert ((offsetof (struct anonymous, i)
2893 == offsetof (struct anonymous, w.k)),
2894 "Anonymous union alignment botch");
2895 v1.i = 2;
2896 v1.w.k = 5;
2897 ok |= v1.i != 5;
2898 '
2899
2900 # Test code for whether the C compiler supports C11 (complete).
2901 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2902 ${ac_c_conftest_c99_globals}
2903 ${ac_c_conftest_c11_globals}
2904
2905 int
2906 main (int argc, char **argv)
2907 {
2908 int ok = 0;
2909 ${ac_c_conftest_c89_main}
2910 ${ac_c_conftest_c99_main}
2911 ${ac_c_conftest_c11_main}
2912 return ok;
2913 }
2914 "
2915
2916 # Test code for whether the C compiler supports C99 (complete).
2917 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2918 ${ac_c_conftest_c99_globals}
2919
2920 int
2921 main (int argc, char **argv)
2922 {
2923 int ok = 0;
2924 ${ac_c_conftest_c89_main}
2925 ${ac_c_conftest_c99_main}
2926 return ok;
2927 }
2928 "
2929
2930 # Test code for whether the C compiler supports C89 (complete).
2931 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2932
2933 int
2934 main (int argc, char **argv)
2935 {
2936 int ok = 0;
2937 ${ac_c_conftest_c89_main}
2938 return ok;
2939 }
2940 "
2941
2942 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2943 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2944 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2945 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2946 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2947 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2948 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2949 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2950 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2951 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2952
2953 # Auxiliary files required by this configure script.
2954 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2955
2956 # Locations in which to look for auxiliary files.
2957 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2958
2959 # Search for a directory containing all of the required auxiliary files,
2960 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2961 # If we don't find one directory that contains all the files we need,
2962 # we report the set of missing files from the *first* directory in
2963 # $ac_aux_dir_candidates and give up.
2964 ac_missing_aux_files=""
2965 ac_first_candidate=:
2966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 as_found=false
2969 for as_dir in $ac_aux_dir_candidates
2970 do
2971 IFS=$as_save_IFS
2972 case $as_dir in #(((
2973 '') as_dir=./ ;;
2974 */) ;;
2975 *) as_dir=$as_dir/ ;;
2976 esac
2977 as_found=:
2978
2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2980 ac_aux_dir_found=yes
2981 ac_install_sh=
2982 for ac_aux in $ac_aux_files
2983 do
2984 # As a special case, if "install-sh" is required, that requirement
2985 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2986 # and $ac_install_sh is set appropriately for whichever one is found.
2987 if test x"$ac_aux" = x"install-sh"
2988 then
2989 if test -f "${as_dir}install-sh"; then
2990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2991 ac_install_sh="${as_dir}install-sh -c"
2992 elif test -f "${as_dir}install.sh"; then
2993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2994 ac_install_sh="${as_dir}install.sh -c"
2995 elif test -f "${as_dir}shtool"; then
2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2997 ac_install_sh="${as_dir}shtool install -c"
2998 else
2999 ac_aux_dir_found=no
3000 if $ac_first_candidate; then
3001 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3002 else
3003 break
3004 fi
3005 fi
3006 else
3007 if test -f "${as_dir}${ac_aux}"; then
3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3009 else
3010 ac_aux_dir_found=no
3011 if $ac_first_candidate; then
3012 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3013 else
3014 break
3015 fi
3016 fi
3017 fi
3018 done
3019 if test "$ac_aux_dir_found" = yes; then
3020 ac_aux_dir="$as_dir"
3021 break
3022 fi
3023 ac_first_candidate=false
3024
3025 as_found=false
3026 done
3027 IFS=$as_save_IFS
3028 if $as_found
3029 then :
3030
3031 else case e in #(
3032 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3033 esac
3034 fi
3035
3036
3037 # These three variables are undocumented and unsupported,
3038 # and are intended to be withdrawn in a future Autoconf release.
3039 # They can cause serious problems if a builder's source tree is in a directory
3040 # whose full name contains unusual characters.
3041 if test -f "${ac_aux_dir}config.guess"; then
3042 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3043 fi
3044 if test -f "${ac_aux_dir}config.sub"; then
3045 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3046 fi
3047 if test -f "$ac_aux_dir/configure"; then
3048 ac_configure="$SHELL ${ac_aux_dir}configure"
3049 fi
3050
3051 # Check that the precious variables saved in the cache have kept the same
3052 # value.
3053 ac_cache_corrupted=false
3054 for ac_var in $ac_precious_vars; do
3055 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3056 eval ac_new_set=\$ac_env_${ac_var}_set
3057 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3058 eval ac_new_val=\$ac_env_${ac_var}_value
3059 case $ac_old_set,$ac_new_set in
3060 set,)
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3062 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3063 ac_cache_corrupted=: ;;
3064 ,set)
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3066 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3067 ac_cache_corrupted=: ;;
3068 ,);;
3069 *)
3070 if test "x$ac_old_val" != "x$ac_new_val"; then
3071 # differences in whitespace do not lead to failure.
3072 ac_old_val_w=`echo x $ac_old_val`
3073 ac_new_val_w=`echo x $ac_new_val`
3074 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3076 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3077 ac_cache_corrupted=:
3078 else
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3080 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3081 eval $ac_var=\$ac_old_val
3082 fi
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3084 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3086 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3087 fi;;
3088 esac
3089 # Pass precious variables to config.status.
3090 if test "$ac_new_set" = set; then
3091 case $ac_new_val in
3092 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3093 *) ac_arg=$ac_var=$ac_new_val ;;
3094 esac
3095 case " $ac_configure_args " in
3096 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3097 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3098 esac
3099 fi
3100 done
3101 if $ac_cache_corrupted; then
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3103 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3105 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3106 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3107 and start over" "$LINENO" 5
3108 fi
3109 ## -------------------- ##
3110 ## Main body of script. ##
3111 ## -------------------- ##
3112
3113 ac_ext=c
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118
3119
3120
3121
3122
3123
3124
3125 am__api_version='1.18'
3126
3127
3128
3129 # Find a good install program. We prefer a C program (faster),
3130 # so one script is as good as another. But avoid the broken or
3131 # incompatible versions:
3132 # SysV /etc/install, /usr/sbin/install
3133 # SunOS /usr/etc/install
3134 # IRIX /sbin/install
3135 # AIX /bin/install
3136 # AmigaOS /C/install, which installs bootblocks on floppy discs
3137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3140 # OS/2's system install, which has a completely different semantic
3141 # ./install, which can be erroneously created by make from ./install.sh.
3142 # Reject install programs that cannot install multiple files.
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3144 printf %s "checking for a BSD-compatible install... " >&6; }
3145 if test -z "$INSTALL"; then
3146 if test ${ac_cv_path_install+y}
3147 then :
3148 printf %s "(cached) " >&6
3149 else case e in #(
3150 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 case $as_dir in #(((
3155 '') as_dir=./ ;;
3156 */) ;;
3157 *) as_dir=$as_dir/ ;;
3158 esac
3159 # Account for fact that we put trailing slashes in our PATH walk.
3160 case $as_dir in #((
3161 ./ | /[cC]/* | \
3162 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3163 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3164 /usr/ucb/* ) ;;
3165 *)
3166 # OSF1 and SCO ODT 3.0 have their own names for install.
3167 # Don't use installbsd from OSF since it installs stuff as root
3168 # by default.
3169 for ac_prog in ginstall scoinst install; do
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3172 if test $ac_prog = install &&
3173 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3174 # AIX install. It has an incompatible calling convention.
3175 :
3176 elif test $ac_prog = install &&
3177 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3178 # program-specific install script used by HP pwplus--don't use.
3179 :
3180 else
3181 rm -rf conftest.one conftest.two conftest.dir
3182 echo one > conftest.one
3183 echo two > conftest.two
3184 mkdir conftest.dir
3185 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3186 test -s conftest.one && test -s conftest.two &&
3187 test -s conftest.dir/conftest.one &&
3188 test -s conftest.dir/conftest.two
3189 then
3190 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3191 break 3
3192 fi
3193 fi
3194 fi
3195 done
3196 done
3197 ;;
3198 esac
3199
3200 done
3201 IFS=$as_save_IFS
3202
3203 rm -rf conftest.one conftest.two conftest.dir
3204 ;;
3205 esac
3206 fi
3207 if test ${ac_cv_path_install+y}; then
3208 INSTALL=$ac_cv_path_install
3209 else
3210 # As a last resort, use the slow shell script. Don't cache a
3211 # value for INSTALL within a source directory, because that will
3212 # break other packages using the cache if that directory is
3213 # removed, or if the value is a relative name.
3214 INSTALL=$ac_install_sh
3215 fi
3216 fi
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3218 printf "%s\n" "$INSTALL" >&6; }
3219
3220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3221 # It thinks the first close brace ends the variable substitution.
3222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3223
3224 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3225
3226 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3227
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3229 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3230 if test ${am_cv_sleep_fractional_seconds+y}
3231 then :
3232 printf %s "(cached) " >&6
3233 else case e in #(
3234 e) if sleep 0.001 2>/dev/null
3235 then :
3236 am_cv_sleep_fractional_seconds=yes
3237 else case e in #(
3238 e) am_cv_sleep_fractional_seconds=no ;;
3239 esac
3240 fi
3241 ;;
3242 esac
3243 fi
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3245 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3246
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3248 printf %s "checking filesystem timestamp resolution... " >&6; }
3249 if test ${am_cv_filesystem_timestamp_resolution+y}
3250 then :
3251 printf %s "(cached) " >&6
3252 else case e in #(
3253 e) # Default to the worst case.
3254 am_cv_filesystem_timestamp_resolution=2
3255
3256 # Only try to go finer than 1 sec if sleep can do it.
3257 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3258 # - 1 sec is not much of a win compared to 2 sec, and
3259 # - it takes 2 seconds to perform the test whether 1 sec works.
3260 #
3261 # Instead, just use the default 2s on platforms that have 1s resolution,
3262 # accept the extra 1s delay when using $sleep in the Automake tests, in
3263 # exchange for not incurring the 2s delay for running the test for all
3264 # packages.
3265 #
3266 am_try_resolutions=
3267 if test "$am_cv_sleep_fractional_seconds" = yes; then
3268 # Even a millisecond often causes a bunch of false positives,
3269 # so just try a hundredth of a second. The time saved between .001 and
3270 # .01 is not terribly consequential.
3271 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3272 fi
3273
3274 # In order to catch current-generation FAT out, we must *modify* files
3275 # that already exist; the *creation* timestamp is finer. Use names
3276 # that make ls -t sort them differently when they have equal
3277 # timestamps than when they have distinct timestamps, keeping
3278 # in mind that ls -t prints the *newest* file first.
3279 rm -f conftest.ts?
3280 : > conftest.ts1
3281 : > conftest.ts2
3282 : > conftest.ts3
3283
3284 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3285 # clobber the current shell's arguments. (Outer-level square brackets
3286 # are removed by m4; they're present so that m4 does not expand
3287 # <dollar><star>; be careful, easy to get confused.)
3288 if (
3289 set X `ls -t conftest.ts[12]` &&
3290 {
3291 test "$*" != "X conftest.ts1 conftest.ts2" ||
3292 test "$*" != "X conftest.ts2 conftest.ts1";
3293 }
3294 ); then :; else
3295 # If neither matched, then we have a broken ls. This can happen
3296 # if, for instance, CONFIG_SHELL is bash and it inherits a
3297 # broken ls alias from the environment. This has actually
3298 # happened. Such a system could not be considered "sane".
3299 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3301 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3302 as_fn_error $? "ls -t produces unexpected output.
3303 Make sure there is not a broken ls alias in your environment.
3304 See 'config.log' for more details" "$LINENO" 5; }
3305 fi
3306
3307 for am_try_res in $am_try_resolutions; do
3308 # Any one fine-grained sleep might happen to cross the boundary
3309 # between two values of a coarser actual resolution, but if we do
3310 # two fine-grained sleeps in a row, at least one of them will fall
3311 # entirely within a coarse interval.
3312 echo alpha > conftest.ts1
3313 sleep $am_try_res
3314 echo beta > conftest.ts2
3315 sleep $am_try_res
3316 echo gamma > conftest.ts3
3317
3318 # We assume that 'ls -t' will make use of high-resolution
3319 # timestamps if the operating system supports them at all.
3320 if (set X `ls -t conftest.ts?` &&
3321 test "$2" = conftest.ts3 &&
3322 test "$3" = conftest.ts2 &&
3323 test "$4" = conftest.ts1); then
3324 #
3325 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3326 # because we don't need to test make.
3327 make_ok=true
3328 if test $am_try_res != 1; then
3329 # But if we've succeeded so far with a subsecond resolution, we
3330 # have one more thing to check: make. It can happen that
3331 # everything else supports the subsecond mtimes, but make doesn't;
3332 # notably on macOS, which ships make 3.81 from 2006 (the last one
3333 # released under GPLv2). https://bugs.gnu.org/68808
3334 #
3335 # We test $MAKE if it is defined in the environment, else "make".
3336 # It might get overridden later, but our hope is that in practice
3337 # it does not matter: it is the system "make" which is (by far)
3338 # the most likely to be broken, whereas if the user overrides it,
3339 # probably they did so with a better, or at least not worse, make.
3340 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3341 #
3342 # Create a Makefile (real tab character here):
3343 rm -f conftest.mk
3344 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3345 echo ' touch conftest.ts2' >>conftest.mk
3346 #
3347 # Now, running
3348 # touch conftest.ts1; touch conftest.ts2; make
3349 # should touch ts1 because ts2 is newer. This could happen by luck,
3350 # but most often, it will fail if make's support is insufficient. So
3351 # test for several consecutive successes.
3352 #
3353 # (We reuse conftest.ts[12] because we still want to modify existing
3354 # files, not create new ones, per above.)
3355 n=0
3356 make=${MAKE-make}
3357 until test $n -eq 3; do
3358 echo one > conftest.ts1
3359 sleep $am_try_res
3360 echo two > conftest.ts2 # ts2 should now be newer than ts1
3361 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3362 make_ok=false
3363 break # out of $n loop
3364 fi
3365 n=`expr $n + 1`
3366 done
3367 fi
3368 #
3369 if $make_ok; then
3370 # Everything we know to check worked out, so call this resolution good.
3371 am_cv_filesystem_timestamp_resolution=$am_try_res
3372 break # out of $am_try_res loop
3373 fi
3374 # Otherwise, we'll go on to check the next resolution.
3375 fi
3376 done
3377 rm -f conftest.ts?
3378 # (end _am_filesystem_timestamp_resolution)
3379 ;;
3380 esac
3381 fi
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3383 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3384
3385 # This check should not be cached, as it may vary across builds of
3386 # different projects.
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3388 printf %s "checking whether build environment is sane... " >&6; }
3389 # Reject unsafe characters in $srcdir or the absolute working directory
3390 # name. Accept space and tab only in the latter.
3391 am_lf='
3392 '
3393 case `pwd` in
3394 *[\\\"\#\$\&\'\`$am_lf]*)
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 printf "%s\n" "no" >&6; }
3397 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3398 esac
3399 case $srcdir in
3400 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 printf "%s\n" "no" >&6; }
3403 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3404 esac
3405
3406 # Do 'set' in a subshell so we don't clobber the current shell's
3407 # arguments. Must try -L first in case configure is actually a
3408 # symlink; some systems play weird games with the mod time of symlinks
3409 # (eg FreeBSD returns the mod time of the symlink's containing
3410 # directory).
3411 am_build_env_is_sane=no
3412 am_has_slept=no
3413 rm -f conftest.file
3414 for am_try in 1 2; do
3415 echo "timestamp, slept: $am_has_slept" > conftest.file
3416 if (
3417 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3418 if test "$*" = "X"; then
3419 # -L didn't work.
3420 set X `ls -t "$srcdir/configure" conftest.file`
3421 fi
3422 test "$2" = conftest.file
3423 ); then
3424 am_build_env_is_sane=yes
3425 break
3426 fi
3427 # Just in case.
3428 sleep "$am_cv_filesystem_timestamp_resolution"
3429 am_has_slept=yes
3430 done
3431
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3433 printf "%s\n" "$am_build_env_is_sane" >&6; }
3434 if test "$am_build_env_is_sane" = no; then
3435 as_fn_error $? "newly created file is older than distributed files!
3436 Check your system clock" "$LINENO" 5
3437 fi
3438
3439 # If we didn't sleep, we still need to ensure time stamps of config.status and
3440 # generated files are strictly newer.
3441 am_sleep_pid=
3442 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3443 then :
3444
3445 else case e in #(
3446 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3447 am_sleep_pid=$!
3448 ;;
3449 esac
3450 fi
3451
3452 rm -f conftest.file
3453
3454 test "$program_prefix" != NONE &&
3455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3456 # Use a double $ so make ignores it.
3457 test "$program_suffix" != NONE &&
3458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3459 # Double any \ or $.
3460 # By default was 's,x,x', remove it if useless.
3461 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3462 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3463
3464
3465 # Expand $ac_aux_dir to an absolute path.
3466 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3467
3468
3469 if test x"${MISSING+set}" != xset; then
3470 MISSING="\${SHELL} '$am_aux_dir/missing'"
3471 fi
3472 # Use eval to expand $SHELL
3473 if eval "$MISSING --is-lightweight"; then
3474 am_missing_run="$MISSING "
3475 else
3476 am_missing_run=
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3478 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3479 fi
3480
3481 if test x"${install_sh+set}" != xset; then
3482 case $am_aux_dir in
3483 *\ * | *\ *)
3484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3485 *)
3486 install_sh="\${SHELL} $am_aux_dir/install-sh"
3487 esac
3488 fi
3489
3490 # Installed binaries are usually stripped using 'strip' when the user
3491 # run "make install-strip". However 'strip' might not be the right
3492 # tool to use in cross-compilation environments, therefore Automake
3493 # will honor the 'STRIP' environment variable to overrule this program.
3494 if test "$cross_compiling" != no; then
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}strip; ac_word=$2
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 printf %s "checking for $ac_word... " >&6; }
3500 if test ${ac_cv_prog_STRIP+y}
3501 then :
3502 printf %s "(cached) " >&6
3503 else case e in #(
3504 e) if test -n "$STRIP"; then
3505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510 IFS=$as_save_IFS
3511 case $as_dir in #(((
3512 '') as_dir=./ ;;
3513 */) ;;
3514 *) as_dir=$as_dir/ ;;
3515 esac
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522 done
3523 done
3524 IFS=$as_save_IFS
3525
3526 fi ;;
3527 esac
3528 fi
3529 STRIP=$ac_cv_prog_STRIP
3530 if test -n "$STRIP"; then
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3532 printf "%s\n" "$STRIP" >&6; }
3533 else
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 printf "%s\n" "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 if test -z "$ac_cv_prog_STRIP"; then
3541 ac_ct_STRIP=$STRIP
3542 # Extract the first word of "strip", so it can be a program name with args.
3543 set dummy strip; ac_word=$2
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 printf %s "checking for $ac_word... " >&6; }
3546 if test ${ac_cv_prog_ac_ct_STRIP+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else case e in #(
3550 e) if test -n "$ac_ct_STRIP"; then
3551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_STRIP="strip"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi ;;
3573 esac
3574 fi
3575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3576 if test -n "$ac_ct_STRIP"; then
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3578 printf "%s\n" "$ac_ct_STRIP" >&6; }
3579 else
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 printf "%s\n" "no" >&6; }
3582 fi
3583
3584 if test "x$ac_ct_STRIP" = x; then
3585 STRIP=":"
3586 else
3587 case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 STRIP=$ac_ct_STRIP
3594 fi
3595 else
3596 STRIP="$ac_cv_prog_STRIP"
3597 fi
3598
3599 fi
3600 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3601
3602
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3604 printf %s "checking for a race-free mkdir -p... " >&6; }
3605 if test -z "$MKDIR_P"; then
3606 if test ${ac_cv_path_mkdir+y}
3607 then :
3608 printf %s "(cached) " >&6
3609 else case e in #(
3610 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3612 do
3613 IFS=$as_save_IFS
3614 case $as_dir in #(((
3615 '') as_dir=./ ;;
3616 */) ;;
3617 *) as_dir=$as_dir/ ;;
3618 esac
3619 for ac_prog in mkdir gmkdir; do
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3622 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3623 'mkdir ('*'coreutils) '* | \
3624 *'BusyBox '* | \
3625 'mkdir (fileutils) '4.1*)
3626 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3627 break 3;;
3628 esac
3629 done
3630 done
3631 done
3632 IFS=$as_save_IFS
3633 ;;
3634 esac
3635 fi
3636
3637 test -d ./--version && rmdir ./--version
3638 if test ${ac_cv_path_mkdir+y}; then
3639 MKDIR_P="$ac_cv_path_mkdir -p"
3640 else
3641 # As a last resort, use plain mkdir -p,
3642 # in the hope it doesn't have the bugs of ancient mkdir.
3643 MKDIR_P='mkdir -p'
3644 fi
3645 fi
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3647 printf "%s\n" "$MKDIR_P" >&6; }
3648
3649 for ac_prog in gawk mawk nawk awk
3650 do
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652 set dummy $ac_prog; ac_word=$2
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 printf %s "checking for $ac_word... " >&6; }
3655 if test ${ac_cv_prog_AWK+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else case e in #(
3659 e) if test -n "$AWK"; then
3660 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665 IFS=$as_save_IFS
3666 case $as_dir in #(((
3667 '') as_dir=./ ;;
3668 */) ;;
3669 *) as_dir=$as_dir/ ;;
3670 esac
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_AWK="$ac_prog"
3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi ;;
3682 esac
3683 fi
3684 AWK=$ac_cv_prog_AWK
3685 if test -n "$AWK"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3687 printf "%s\n" "$AWK" >&6; }
3688 else
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3691 fi
3692
3693
3694 test -n "$AWK" && break
3695 done
3696
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3698 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3699 set x ${MAKE-make}
3700 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3701 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3702 then :
3703 printf %s "(cached) " >&6
3704 else case e in #(
3705 e) cat >conftest.make <<\_ACEOF
3706 SHELL = /bin/sh
3707 all:
3708 @echo '@@@%%%=$(MAKE)=@@@%%%'
3709 _ACEOF
3710 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3711 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3712 *@@@%%%=?*=@@@%%%*)
3713 eval ac_cv_prog_make_${ac_make}_set=yes;;
3714 *)
3715 eval ac_cv_prog_make_${ac_make}_set=no;;
3716 esac
3717 rm -f conftest.make ;;
3718 esac
3719 fi
3720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 printf "%s\n" "yes" >&6; }
3723 SET_MAKE=
3724 else
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 printf "%s\n" "no" >&6; }
3727 SET_MAKE="MAKE=${MAKE-make}"
3728 fi
3729
3730 rm -rf .tst 2>/dev/null
3731 mkdir .tst 2>/dev/null
3732 if test -d .tst; then
3733 am__leading_dot=.
3734 else
3735 am__leading_dot=_
3736 fi
3737 rmdir .tst 2>/dev/null
3738
3739 AM_DEFAULT_VERBOSITY=1
3740 # Check whether --enable-silent-rules was given.
3741 if test ${enable_silent_rules+y}
3742 then :
3743 enableval=$enable_silent_rules;
3744 fi
3745
3746 am_make=${MAKE-make}
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3748 printf %s "checking whether $am_make supports nested variables... " >&6; }
3749 if test ${am_cv_make_support_nested_variables+y}
3750 then :
3751 printf %s "(cached) " >&6
3752 else case e in #(
3753 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3754 BAR0=false
3755 BAR1=true
3756 V=1
3757 am__doit:
3758 @$(TRUE)
3759 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3760 am_cv_make_support_nested_variables=yes
3761 else
3762 am_cv_make_support_nested_variables=no
3763 fi ;;
3764 esac
3765 fi
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3767 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3768 AM_BACKSLASH='\'
3769
3770 am__rm_f_notfound=
3771 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3772 then :
3773
3774 else case e in #(
3775 e) am__rm_f_notfound='""' ;;
3776 esac
3777 fi
3778
3779
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3781 printf %s "checking xargs -n works... " >&6; }
3782 if test ${am_cv_xargs_n_works+y}
3783 then :
3784 printf %s "(cached) " >&6
3785 else case e in #(
3786 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3787 3"
3788 then :
3789 am_cv_xargs_n_works=yes
3790 else case e in #(
3791 e) am_cv_xargs_n_works=no ;;
3792 esac
3793 fi ;;
3794 esac
3795 fi
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3797 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3798 if test "$am_cv_xargs_n_works" = yes
3799 then :
3800 am__xargs_n='xargs -n'
3801 else case e in #(
3802 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3803 ;;
3804 esac
3805 fi
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816 DEPDIR="${am__leading_dot}deps"
3817
3818 ac_config_commands="$ac_config_commands depfiles"
3819
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3821 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3822 cat > confinc.mk << 'END'
3823 am__doit:
3824 @echo this is the am__doit target >confinc.out
3825 .PHONY: am__doit
3826 END
3827 am__include="#"
3828 am__quote=
3829 # BSD make does it like this.
3830 echo '.include "confinc.mk" # ignored' > confmf.BSD
3831 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3832 echo 'include confinc.mk # ignored' > confmf.GNU
3833 _am_result=no
3834 for s in GNU BSD; do
3835 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3836 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }
3840 case $?:`cat confinc.out 2>/dev/null` in #(
3841 '0:this is the am__doit target') :
3842 case $s in #(
3843 BSD) :
3844 am__include='.include' am__quote='"' ;; #(
3845 *) :
3846 am__include='include' am__quote='' ;;
3847 esac ;; #(
3848 *) :
3849 ;;
3850 esac
3851 if test "$am__include" != "#"; then
3852 _am_result="yes ($s style)"
3853 break
3854 fi
3855 done
3856 rm -f confinc.* confmf.*
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3858 printf "%s\n" "${_am_result}" >&6; }
3859
3860 # Check whether --enable-dependency-tracking was given.
3861 if test ${enable_dependency_tracking+y}
3862 then :
3863 enableval=$enable_dependency_tracking;
3864 fi
3865
3866 if test "x$enable_dependency_tracking" != xno; then
3867 am_depcomp="$ac_aux_dir/depcomp"
3868 AMDEPBACKSLASH='\'
3869 am__nodep='_no'
3870 fi
3871 if test "x$enable_dependency_tracking" != xno; then
3872 AMDEP_TRUE=
3873 AMDEP_FALSE='#'
3874 else
3875 AMDEP_TRUE='#'
3876 AMDEP_FALSE=
3877 fi
3878
3879
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 printf %s "checking for $ac_word... " >&6; }
3890 if test ${ac_cv_prog_CC+y}
3891 then :
3892 printf %s "(cached) " >&6
3893 else case e in #(
3894 e) if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900 IFS=$as_save_IFS
3901 case $as_dir in #(((
3902 '') as_dir=./ ;;
3903 */) ;;
3904 *) as_dir=$as_dir/ ;;
3905 esac
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914 IFS=$as_save_IFS
3915
3916 fi ;;
3917 esac
3918 fi
3919 CC=$ac_cv_prog_CC
3920 if test -n "$CC"; then
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 printf "%s\n" "$CC" >&6; }
3923 else
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 printf "%s\n" "no" >&6; }
3926 fi
3927
3928
3929 fi
3930 if test -z "$ac_cv_prog_CC"; then
3931 ac_ct_CC=$CC
3932 # Extract the first word of "gcc", so it can be a program name with args.
3933 set dummy gcc; ac_word=$2
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 printf %s "checking for $ac_word... " >&6; }
3936 if test ${ac_cv_prog_ac_ct_CC+y}
3937 then :
3938 printf %s "(cached) " >&6
3939 else case e in #(
3940 e) if test -n "$ac_ct_CC"; then
3941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946 IFS=$as_save_IFS
3947 case $as_dir in #(((
3948 '') as_dir=./ ;;
3949 */) ;;
3950 *) as_dir=$as_dir/ ;;
3951 esac
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_ac_ct_CC="gcc"
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi ;;
3963 esac
3964 fi
3965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3966 if test -n "$ac_ct_CC"; then
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3968 printf "%s\n" "$ac_ct_CC" >&6; }
3969 else
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 printf "%s\n" "no" >&6; }
3972 fi
3973
3974 if test "x$ac_ct_CC" = x; then
3975 CC=""
3976 else
3977 case $cross_compiling:$ac_tool_warned in
3978 yes:)
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981 ac_tool_warned=yes ;;
3982 esac
3983 CC=$ac_ct_CC
3984 fi
3985 else
3986 CC="$ac_cv_prog_CC"
3987 fi
3988
3989 if test -z "$CC"; then
3990 if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}cc; ac_word=$2
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 printf %s "checking for $ac_word... " >&6; }
3995 if test ${ac_cv_prog_CC+y}
3996 then :
3997 printf %s "(cached) " >&6
3998 else case e in #(
3999 e) if test -n "$CC"; then
4000 ac_cv_prog_CC="$CC" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005 IFS=$as_save_IFS
4006 case $as_dir in #(((
4007 '') as_dir=./ ;;
4008 */) ;;
4009 *) as_dir=$as_dir/ ;;
4010 esac
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_CC="${ac_tool_prefix}cc"
4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017 done
4018 done
4019 IFS=$as_save_IFS
4020
4021 fi ;;
4022 esac
4023 fi
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 printf "%s\n" "$CC" >&6; }
4028 else
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 printf "%s\n" "no" >&6; }
4031 fi
4032
4033
4034 fi
4035 fi
4036 if test -z "$CC"; then
4037 # Extract the first word of "cc", so it can be a program name with args.
4038 set dummy cc; ac_word=$2
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 printf %s "checking for $ac_word... " >&6; }
4041 if test ${ac_cv_prog_CC+y}
4042 then :
4043 printf %s "(cached) " >&6
4044 else case e in #(
4045 e) if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047 else
4048 ac_prog_rejected=no
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052 IFS=$as_save_IFS
4053 case $as_dir in #(((
4054 '') as_dir=./ ;;
4055 */) ;;
4056 *) as_dir=$as_dir/ ;;
4057 esac
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4060 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4061 ac_prog_rejected=yes
4062 continue
4063 fi
4064 ac_cv_prog_CC="cc"
4065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4066 break 2
4067 fi
4068 done
4069 done
4070 IFS=$as_save_IFS
4071
4072 if test $ac_prog_rejected = yes; then
4073 # We found a bogon in the path, so make sure we never use it.
4074 set dummy $ac_cv_prog_CC
4075 shift
4076 if test $# != 0; then
4077 # We chose a different compiler from the bogus one.
4078 # However, it has the same basename, so the bogon will be chosen
4079 # first if we set CC to just the basename; use the full file name.
4080 shift
4081 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4082 fi
4083 fi
4084 fi ;;
4085 esac
4086 fi
4087 CC=$ac_cv_prog_CC
4088 if test -n "$CC"; then
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4090 printf "%s\n" "$CC" >&6; }
4091 else
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 printf "%s\n" "no" >&6; }
4094 fi
4095
4096
4097 fi
4098 if test -z "$CC"; then
4099 if test -n "$ac_tool_prefix"; then
4100 for ac_prog in cl.exe
4101 do
4102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 printf %s "checking for $ac_word... " >&6; }
4106 if test ${ac_cv_prog_CC+y}
4107 then :
4108 printf %s "(cached) " >&6
4109 else case e in #(
4110 e) if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116 IFS=$as_save_IFS
4117 case $as_dir in #(((
4118 '') as_dir=./ ;;
4119 */) ;;
4120 *) as_dir=$as_dir/ ;;
4121 esac
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4126 break 2
4127 fi
4128 done
4129 done
4130 IFS=$as_save_IFS
4131
4132 fi ;;
4133 esac
4134 fi
4135 CC=$ac_cv_prog_CC
4136 if test -n "$CC"; then
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4138 printf "%s\n" "$CC" >&6; }
4139 else
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 printf "%s\n" "no" >&6; }
4142 fi
4143
4144
4145 test -n "$CC" && break
4146 done
4147 fi
4148 if test -z "$CC"; then
4149 ac_ct_CC=$CC
4150 for ac_prog in cl.exe
4151 do
4152 # Extract the first word of "$ac_prog", so it can be a program name with args.
4153 set dummy $ac_prog; ac_word=$2
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 printf %s "checking for $ac_word... " >&6; }
4156 if test ${ac_cv_prog_ac_ct_CC+y}
4157 then :
4158 printf %s "(cached) " >&6
4159 else case e in #(
4160 e) if test -n "$ac_ct_CC"; then
4161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166 IFS=$as_save_IFS
4167 case $as_dir in #(((
4168 '') as_dir=./ ;;
4169 */) ;;
4170 *) as_dir=$as_dir/ ;;
4171 esac
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_CC="$ac_prog"
4175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178 done
4179 done
4180 IFS=$as_save_IFS
4181
4182 fi ;;
4183 esac
4184 fi
4185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4186 if test -n "$ac_ct_CC"; then
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4188 printf "%s\n" "$ac_ct_CC" >&6; }
4189 else
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 printf "%s\n" "no" >&6; }
4192 fi
4193
4194
4195 test -n "$ac_ct_CC" && break
4196 done
4197
4198 if test "x$ac_ct_CC" = x; then
4199 CC=""
4200 else
4201 case $cross_compiling:$ac_tool_warned in
4202 yes:)
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205 ac_tool_warned=yes ;;
4206 esac
4207 CC=$ac_ct_CC
4208 fi
4209 fi
4210
4211 fi
4212 if test -z "$CC"; then
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}clang; ac_word=$2
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 printf %s "checking for $ac_word... " >&6; }
4218 if test ${ac_cv_prog_CC+y}
4219 then :
4220 printf %s "(cached) " >&6
4221 else case e in #(
4222 e) if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228 IFS=$as_save_IFS
4229 case $as_dir in #(((
4230 '') as_dir=./ ;;
4231 */) ;;
4232 *) as_dir=$as_dir/ ;;
4233 esac
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_CC="${ac_tool_prefix}clang"
4237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4238 break 2
4239 fi
4240 done
4241 done
4242 IFS=$as_save_IFS
4243
4244 fi ;;
4245 esac
4246 fi
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 printf "%s\n" "$CC" >&6; }
4251 else
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 printf "%s\n" "no" >&6; }
4254 fi
4255
4256
4257 fi
4258 if test -z "$ac_cv_prog_CC"; then
4259 ac_ct_CC=$CC
4260 # Extract the first word of "clang", so it can be a program name with args.
4261 set dummy clang; ac_word=$2
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 printf %s "checking for $ac_word... " >&6; }
4264 if test ${ac_cv_prog_ac_ct_CC+y}
4265 then :
4266 printf %s "(cached) " >&6
4267 else case e in #(
4268 e) if test -n "$ac_ct_CC"; then
4269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 case $as_dir in #(((
4276 '') as_dir=./ ;;
4277 */) ;;
4278 *) as_dir=$as_dir/ ;;
4279 esac
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_ac_ct_CC="clang"
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi ;;
4291 esac
4292 fi
4293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4294 if test -n "$ac_ct_CC"; then
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4296 printf "%s\n" "$ac_ct_CC" >&6; }
4297 else
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 printf "%s\n" "no" >&6; }
4300 fi
4301
4302 if test "x$ac_ct_CC" = x; then
4303 CC=""
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311 CC=$ac_ct_CC
4312 fi
4313 else
4314 CC="$ac_cv_prog_CC"
4315 fi
4316
4317 fi
4318
4319
4320 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4321 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4322 as_fn_error $? "no acceptable C compiler found in \$PATH
4323 See 'config.log' for more details" "$LINENO" 5; }
4324
4325 # Provide some information about the compiler.
4326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4327 set X $ac_compile
4328 ac_compiler=$2
4329 for ac_option in --version -v -V -qversion -version; do
4330 { { ac_try="$ac_compiler $ac_option >&5"
4331 case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 printf "%s\n" "$ac_try_echo"; } >&5
4337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4338 ac_status=$?
4339 if test -s conftest.err; then
4340 sed '10a\
4341 ... rest of stderr output deleted ...
4342 10q' conftest.err >conftest.er1
4343 cat conftest.er1 >&5
4344 fi
4345 rm -f conftest.er1 conftest.err
4346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4348 done
4349
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352
4353 int
4354 main (void)
4355 {
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 ac_clean_files_save=$ac_clean_files
4362 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4363 # Try to create an executable without -o first, disregard a.out.
4364 # It will help us diagnose broken compilers, and finding out an intuition
4365 # of exeext.
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4367 printf %s "checking whether the C compiler works... " >&6; }
4368 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4369
4370 # The possible output files:
4371 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4372
4373 ac_rmfiles=
4374 for ac_file in $ac_files
4375 do
4376 case $ac_file in
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4378 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4379 esac
4380 done
4381 rm -f $ac_rmfiles
4382
4383 if { { ac_try="$ac_link_default"
4384 case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 printf "%s\n" "$ac_try_echo"; } >&5
4390 (eval "$ac_link_default") 2>&5
4391 ac_status=$?
4392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }
4394 then :
4395 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4396 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4397 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4398 # so that the user can short-circuit this test for compilers unknown to
4399 # Autoconf.
4400 for ac_file in $ac_files ''
4401 do
4402 test -f "$ac_file" || continue
4403 case $ac_file in
4404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4405 ;;
4406 [ab].out )
4407 # We found the default executable, but exeext='' is most
4408 # certainly right.
4409 break;;
4410 *.* )
4411 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4412 then :; else
4413 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4414 fi
4415 # We set ac_cv_exeext here because the later test for it is not
4416 # safe: cross compilers may not add the suffix if given an '-o'
4417 # argument, so we may need to know it at that point already.
4418 # Even if this section looks crufty: it has the advantage of
4419 # actually working.
4420 break;;
4421 * )
4422 break;;
4423 esac
4424 done
4425 test "$ac_cv_exeext" = no && ac_cv_exeext=
4426
4427 else case e in #(
4428 e) ac_file='' ;;
4429 esac
4430 fi
4431 if test -z "$ac_file"
4432 then :
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 printf "%s\n" "no" >&6; }
4435 printf "%s\n" "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4439 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4440 as_fn_error 77 "C compiler cannot create executables
4441 See 'config.log' for more details" "$LINENO" 5; }
4442 else case e in #(
4443 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 printf "%s\n" "yes" >&6; } ;;
4445 esac
4446 fi
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4448 printf %s "checking for C compiler default output file name... " >&6; }
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4450 printf "%s\n" "$ac_file" >&6; }
4451 ac_exeext=$ac_cv_exeext
4452
4453 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4454 ac_clean_files=$ac_clean_files_save
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4456 printf %s "checking for suffix of executables... " >&6; }
4457 if { { ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 printf "%s\n" "$ac_try_echo"; } >&5
4464 (eval "$ac_link") 2>&5
4465 ac_status=$?
4466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }
4468 then :
4469 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4470 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4471 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4472 # 'rm'.
4473 for ac_file in conftest.exe conftest conftest.*; do
4474 test -f "$ac_file" || continue
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4478 break;;
4479 * ) break;;
4480 esac
4481 done
4482 else case e in #(
4483 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4484 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4485 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4486 See 'config.log' for more details" "$LINENO" 5; } ;;
4487 esac
4488 fi
4489 rm -f conftest conftest$ac_cv_exeext
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4491 printf "%s\n" "$ac_cv_exeext" >&6; }
4492
4493 rm -f conftest.$ac_ext
4494 EXEEXT=$ac_cv_exeext
4495 ac_exeext=$EXEEXT
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <stdio.h>
4499 int
4500 main (void)
4501 {
4502 FILE *f = fopen ("conftest.out", "w");
4503 if (!f)
4504 return 1;
4505 return ferror (f) || fclose (f) != 0;
4506
4507 ;
4508 return 0;
4509 }
4510 _ACEOF
4511 ac_clean_files="$ac_clean_files conftest.out"
4512 # Check that the compiler produces executables we can run. If not, either
4513 # the compiler is broken, or we cross compile.
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4515 printf %s "checking whether we are cross compiling... " >&6; }
4516 if test "$cross_compiling" != yes; then
4517 { { ac_try="$ac_link"
4518 case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521 esac
4522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4523 printf "%s\n" "$ac_try_echo"; } >&5
4524 (eval "$ac_link") 2>&5
4525 ac_status=$?
4526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527 test $ac_status = 0; }
4528 if { ac_try='./conftest$ac_cv_exeext'
4529 { { case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 printf "%s\n" "$ac_try_echo"; } >&5
4535 (eval "$ac_try") 2>&5
4536 ac_status=$?
4537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538 test $ac_status = 0; }; }; then
4539 cross_compiling=no
4540 else
4541 if test "$cross_compiling" = maybe; then
4542 cross_compiling=yes
4543 else
4544 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4545 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4546 as_fn_error 77 "cannot run C compiled programs.
4547 If you meant to cross compile, use '--host'.
4548 See 'config.log' for more details" "$LINENO" 5; }
4549 fi
4550 fi
4551 fi
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4553 printf "%s\n" "$cross_compiling" >&6; }
4554
4555 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4556 conftest.o conftest.obj conftest.out
4557 ac_clean_files=$ac_clean_files_save
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4559 printf %s "checking for suffix of object files... " >&6; }
4560 if test ${ac_cv_objext+y}
4561 then :
4562 printf %s "(cached) " >&6
4563 else case e in #(
4564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main (void)
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.o conftest.obj
4576 if { { ac_try="$ac_compile"
4577 case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582 printf "%s\n" "$ac_try_echo"; } >&5
4583 (eval "$ac_compile") 2>&5
4584 ac_status=$?
4585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4587 then :
4588 for ac_file in conftest.o conftest.obj conftest.*; do
4589 test -f "$ac_file" || continue;
4590 case $ac_file in
4591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4593 break;;
4594 esac
4595 done
4596 else case e in #(
4597 e) printf "%s\n" "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4601 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4602 as_fn_error $? "cannot compute suffix of object files: cannot compile
4603 See 'config.log' for more details" "$LINENO" 5; } ;;
4604 esac
4605 fi
4606 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4607 esac
4608 fi
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4610 printf "%s\n" "$ac_cv_objext" >&6; }
4611 OBJEXT=$ac_cv_objext
4612 ac_objext=$OBJEXT
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4614 printf %s "checking whether the compiler supports GNU C... " >&6; }
4615 if test ${ac_cv_c_compiler_gnu+y}
4616 then :
4617 printf %s "(cached) " >&6
4618 else case e in #(
4619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621
4622 int
4623 main (void)
4624 {
4625 #ifndef __GNUC__
4626 choke me
4627 #endif
4628
4629 ;
4630 return 0;
4631 }
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"
4634 then :
4635 ac_compiler_gnu=yes
4636 else case e in #(
4637 e) ac_compiler_gnu=no ;;
4638 esac
4639 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4642 ;;
4643 esac
4644 fi
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4646 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649 if test $ac_compiler_gnu = yes; then
4650 GCC=yes
4651 else
4652 GCC=
4653 fi
4654 ac_test_CFLAGS=${CFLAGS+y}
4655 ac_save_CFLAGS=$CFLAGS
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4657 printf %s "checking whether $CC accepts -g... " >&6; }
4658 if test ${ac_cv_prog_cc_g+y}
4659 then :
4660 printf %s "(cached) " >&6
4661 else case e in #(
4662 e) ac_save_c_werror_flag=$ac_c_werror_flag
4663 ac_c_werror_flag=yes
4664 ac_cv_prog_cc_g=no
4665 CFLAGS="-g"
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668
4669 int
4670 main (void)
4671 {
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 if ac_fn_c_try_compile "$LINENO"
4678 then :
4679 ac_cv_prog_cc_g=yes
4680 else case e in #(
4681 e) CFLAGS=""
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684
4685 int
4686 main (void)
4687 {
4688
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_compile "$LINENO"
4694 then :
4695
4696 else case e in #(
4697 e) ac_c_werror_flag=$ac_save_c_werror_flag
4698 CFLAGS="-g"
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701
4702 int
4703 main (void)
4704 {
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_c_try_compile "$LINENO"
4711 then :
4712 ac_cv_prog_cc_g=yes
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4715 esac
4716 fi
4717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4718 esac
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4721 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4722 esac
4723 fi
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4725 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4726 if test $ac_test_CFLAGS; then
4727 CFLAGS=$ac_save_CFLAGS
4728 elif test $ac_cv_prog_cc_g = yes; then
4729 if test "$GCC" = yes; then
4730 CFLAGS="-g -O2"
4731 else
4732 CFLAGS="-g"
4733 fi
4734 else
4735 if test "$GCC" = yes; then
4736 CFLAGS="-O2"
4737 else
4738 CFLAGS=
4739 fi
4740 fi
4741 ac_prog_cc_stdc=no
4742 if test x$ac_prog_cc_stdc = xno
4743 then :
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4745 printf %s "checking for $CC option to enable C11 features... " >&6; }
4746 if test ${ac_cv_prog_cc_c11+y}
4747 then :
4748 printf %s "(cached) " >&6
4749 else case e in #(
4750 e) ac_cv_prog_cc_c11=no
4751 ac_save_CC=$CC
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 $ac_c_conftest_c11_program
4755 _ACEOF
4756 for ac_arg in '' -std=gnu11
4757 do
4758 CC="$ac_save_CC $ac_arg"
4759 if ac_fn_c_try_compile "$LINENO"
4760 then :
4761 ac_cv_prog_cc_c11=$ac_arg
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.beam
4764 test "x$ac_cv_prog_cc_c11" != "xno" && break
4765 done
4766 rm -f conftest.$ac_ext
4767 CC=$ac_save_CC ;;
4768 esac
4769 fi
4770
4771 if test "x$ac_cv_prog_cc_c11" = xno
4772 then :
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4774 printf "%s\n" "unsupported" >&6; }
4775 else case e in #(
4776 e) if test "x$ac_cv_prog_cc_c11" = x
4777 then :
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4779 printf "%s\n" "none needed" >&6; }
4780 else case e in #(
4781 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4782 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4783 CC="$CC $ac_cv_prog_cc_c11" ;;
4784 esac
4785 fi
4786 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4787 ac_prog_cc_stdc=c11 ;;
4788 esac
4789 fi
4790 fi
4791 if test x$ac_prog_cc_stdc = xno
4792 then :
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4794 printf %s "checking for $CC option to enable C99 features... " >&6; }
4795 if test ${ac_cv_prog_cc_c99+y}
4796 then :
4797 printf %s "(cached) " >&6
4798 else case e in #(
4799 e) ac_cv_prog_cc_c99=no
4800 ac_save_CC=$CC
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 $ac_c_conftest_c99_program
4804 _ACEOF
4805 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4806 do
4807 CC="$ac_save_CC $ac_arg"
4808 if ac_fn_c_try_compile "$LINENO"
4809 then :
4810 ac_cv_prog_cc_c99=$ac_arg
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.beam
4813 test "x$ac_cv_prog_cc_c99" != "xno" && break
4814 done
4815 rm -f conftest.$ac_ext
4816 CC=$ac_save_CC ;;
4817 esac
4818 fi
4819
4820 if test "x$ac_cv_prog_cc_c99" = xno
4821 then :
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4823 printf "%s\n" "unsupported" >&6; }
4824 else case e in #(
4825 e) if test "x$ac_cv_prog_cc_c99" = x
4826 then :
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4828 printf "%s\n" "none needed" >&6; }
4829 else case e in #(
4830 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4831 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4832 CC="$CC $ac_cv_prog_cc_c99" ;;
4833 esac
4834 fi
4835 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4836 ac_prog_cc_stdc=c99 ;;
4837 esac
4838 fi
4839 fi
4840 if test x$ac_prog_cc_stdc = xno
4841 then :
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4843 printf %s "checking for $CC option to enable C89 features... " >&6; }
4844 if test ${ac_cv_prog_cc_c89+y}
4845 then :
4846 printf %s "(cached) " >&6
4847 else case e in #(
4848 e) ac_cv_prog_cc_c89=no
4849 ac_save_CC=$CC
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852 $ac_c_conftest_c89_program
4853 _ACEOF
4854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4855 do
4856 CC="$ac_save_CC $ac_arg"
4857 if ac_fn_c_try_compile "$LINENO"
4858 then :
4859 ac_cv_prog_cc_c89=$ac_arg
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.beam
4862 test "x$ac_cv_prog_cc_c89" != "xno" && break
4863 done
4864 rm -f conftest.$ac_ext
4865 CC=$ac_save_CC ;;
4866 esac
4867 fi
4868
4869 if test "x$ac_cv_prog_cc_c89" = xno
4870 then :
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4872 printf "%s\n" "unsupported" >&6; }
4873 else case e in #(
4874 e) if test "x$ac_cv_prog_cc_c89" = x
4875 then :
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4877 printf "%s\n" "none needed" >&6; }
4878 else case e in #(
4879 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4880 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4881 CC="$CC $ac_cv_prog_cc_c89" ;;
4882 esac
4883 fi
4884 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4885 ac_prog_cc_stdc=c89 ;;
4886 esac
4887 fi
4888 fi
4889
4890 ac_ext=c
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895
4896
4897 ac_ext=c
4898 ac_cpp='$CPP $CPPFLAGS'
4899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4903 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4904 if test ${am_cv_prog_cc_c_o+y}
4905 then :
4906 printf %s "(cached) " >&6
4907 else case e in #(
4908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910
4911 int
4912 main (void)
4913 {
4914
4915 ;
4916 return 0;
4917 }
4918 _ACEOF
4919 # Make sure it works both with $CC and with simple cc.
4920 # Following AC_PROG_CC_C_O, we do the test twice because some
4921 # compilers refuse to overwrite an existing .o file with -o,
4922 # though they will create one.
4923 am_cv_prog_cc_c_o=yes
4924 for am_i in 1 2; do
4925 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4926 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } \
4930 && test -f conftest2.$ac_objext; then
4931 : OK
4932 else
4933 am_cv_prog_cc_c_o=no
4934 break
4935 fi
4936 done
4937 # aligned with autoconf, so not including core; see bug#72225.
4938 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4939 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4940 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4941 unset am_i ;;
4942 esac
4943 fi
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4945 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4946 if test "$am_cv_prog_cc_c_o" != yes; then
4947 # Losing compiler, so override with the script.
4948 # FIXME: It is wrong to rewrite CC.
4949 # But if we don't then we get into trouble of one sort or another.
4950 # A longer-term fix would be to have automake use am__CC in this case,
4951 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4952 CC="$am_aux_dir/compile $CC"
4953 fi
4954 ac_ext=c
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959
4960
4961 depcc="$CC" am_compiler_list=
4962
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4964 printf %s "checking dependency style of $depcc... " >&6; }
4965 if test ${am_cv_CC_dependencies_compiler_type+y}
4966 then :
4967 printf %s "(cached) " >&6
4968 else case e in #(
4969 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4970 # We make a subdir and do the tests there. Otherwise we can end up
4971 # making bogus files that we don't know about and never remove. For
4972 # instance it was reported that on HP-UX the gcc test will end up
4973 # making a dummy file named 'D' -- because '-MD' means "put the output
4974 # in D".
4975 rm -rf conftest.dir
4976 mkdir conftest.dir
4977 # Copy depcomp to subdir because otherwise we won't find it if we're
4978 # using a relative directory.
4979 cp "$am_depcomp" conftest.dir
4980 cd conftest.dir
4981 # We will build objects and dependencies in a subdirectory because
4982 # it helps to detect inapplicable dependency modes. For instance
4983 # both Tru64's cc and ICC support -MD to output dependencies as a
4984 # side effect of compilation, but ICC will put the dependencies in
4985 # the current directory while Tru64 will put them in the object
4986 # directory.
4987 mkdir sub
4988
4989 am_cv_CC_dependencies_compiler_type=none
4990 if test "$am_compiler_list" = ""; then
4991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4992 fi
4993 am__universal=false
4994 case " $depcc " in #(
4995 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4996 esac
4997
4998 for depmode in $am_compiler_list; do
4999 # Setup a source with many dependencies, because some compilers
5000 # like to wrap large dependency lists on column 80 (with \), and
5001 # we should not choose a depcomp mode which is confused by this.
5002 #
5003 # We need to recreate these files for each test, as the compiler may
5004 # overwrite some of them when testing with obscure command lines.
5005 # This happens at least with the AIX C compiler.
5006 : > sub/conftest.c
5007 for i in 1 2 3 4 5 6; do
5008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5009 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5010 # Solaris 10 /bin/sh.
5011 echo '/* dummy */' > sub/conftst$i.h
5012 done
5013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5014
5015 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5016 # mode. It turns out that the SunPro C++ compiler does not properly
5017 # handle '-M -o', and we need to detect this. Also, some Intel
5018 # versions had trouble with output in subdirs.
5019 am__obj=sub/conftest.${OBJEXT-o}
5020 am__minus_obj="-o $am__obj"
5021 case $depmode in
5022 gcc)
5023 # This depmode causes a compiler race in universal mode.
5024 test "$am__universal" = false || continue
5025 ;;
5026 nosideeffect)
5027 # After this tag, mechanisms are not by side-effect, so they'll
5028 # only be used when explicitly requested.
5029 if test "x$enable_dependency_tracking" = xyes; then
5030 continue
5031 else
5032 break
5033 fi
5034 ;;
5035 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5036 # This compiler won't grok '-c -o', but also, the minuso test has
5037 # not run yet. These depmodes are late enough in the game, and
5038 # so weak that their functioning should not be impacted.
5039 am__obj=conftest.${OBJEXT-o}
5040 am__minus_obj=
5041 ;;
5042 none) break ;;
5043 esac
5044 if depmode=$depmode \
5045 source=sub/conftest.c object=$am__obj \
5046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5047 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5048 >/dev/null 2>conftest.err &&
5049 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5051 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5053 # icc doesn't choke on unknown options, it will just issue warnings
5054 # or remarks (even with -Werror). So we grep stderr for any message
5055 # that says an option was ignored or not supported.
5056 # When given -MP, icc 7.0 and 7.1 complain thus:
5057 # icc: Command line warning: ignoring option '-M'; no argument required
5058 # The diagnosis changed in icc 8.0:
5059 # icc: Command line remark: option '-MP' not supported
5060 if (grep 'ignoring option' conftest.err ||
5061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5062 am_cv_CC_dependencies_compiler_type=$depmode
5063 break
5064 fi
5065 fi
5066 done
5067
5068 cd ..
5069 rm -rf conftest.dir
5070 else
5071 am_cv_CC_dependencies_compiler_type=none
5072 fi
5073 ;;
5074 esac
5075 fi
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5077 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5078 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5079
5080 if
5081 test "x$enable_dependency_tracking" != xno \
5082 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5083 am__fastdepCC_TRUE=
5084 am__fastdepCC_FALSE='#'
5085 else
5086 am__fastdepCC_TRUE='#'
5087 am__fastdepCC_FALSE=
5088 fi
5089
5090
5091
5092 ac_header= ac_cache=
5093 for ac_item in $ac_header_c_list
5094 do
5095 if test $ac_cache; then
5096 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5097 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5098 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5099 fi
5100 ac_header= ac_cache=
5101 elif test $ac_header; then
5102 ac_cache=$ac_item
5103 else
5104 ac_header=$ac_item
5105 fi
5106 done
5107
5108
5109
5110
5111
5112
5113
5114
5115 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5116 then :
5117
5118 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5119
5120 fi
5121
5122
5123
5124
5125
5126
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5128 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5129 if test ${ac_cv_safe_to_define___extensions__+y}
5130 then :
5131 printf %s "(cached) " >&6
5132 else case e in #(
5133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135
5136 # define __EXTENSIONS__ 1
5137 $ac_includes_default
5138 int
5139 main (void)
5140 {
5141
5142 ;
5143 return 0;
5144 }
5145 _ACEOF
5146 if ac_fn_c_try_compile "$LINENO"
5147 then :
5148 ac_cv_safe_to_define___extensions__=yes
5149 else case e in #(
5150 e) ac_cv_safe_to_define___extensions__=no ;;
5151 esac
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5154 esac
5155 fi
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5157 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5158
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5160 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5161 if test ${ac_cv_should_define__xopen_source+y}
5162 then :
5163 printf %s "(cached) " >&6
5164 else case e in #(
5165 e) ac_cv_should_define__xopen_source=no
5166 if test $ac_cv_header_wchar_h = yes
5167 then :
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170
5171 #include <wchar.h>
5172 mbstate_t x;
5173 int
5174 main (void)
5175 {
5176
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"
5182 then :
5183
5184 else case e in #(
5185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187
5188 #define _XOPEN_SOURCE 500
5189 #include <wchar.h>
5190 mbstate_t x;
5191 int
5192 main (void)
5193 {
5194
5195 ;
5196 return 0;
5197 }
5198 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"
5200 then :
5201 ac_cv_should_define__xopen_source=yes
5202 fi
5203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5204 esac
5205 fi
5206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5207 fi ;;
5208 esac
5209 fi
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5211 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5212
5213 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5214
5215 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5216
5217 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5218
5219 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5220
5221 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5222
5223 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5224
5225 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5226
5227 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5228
5229 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5230
5231 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5232
5233 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5234
5235 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5236
5237 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5238
5239 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5240
5241 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5242
5243 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5244
5245 if test $ac_cv_header_minix_config_h = yes
5246 then :
5247 MINIX=yes
5248 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5249
5250 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5251
5252 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5253
5254 else case e in #(
5255 e) MINIX= ;;
5256 esac
5257 fi
5258 if test $ac_cv_safe_to_define___extensions__ = yes
5259 then :
5260 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5261
5262 fi
5263 if test $ac_cv_should_define__xopen_source = yes
5264 then :
5265 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5266
5267 fi
5268
5269 # Check whether --enable-compiler-warnings was given.
5270 if test ${enable_compiler_warnings+y}
5271 then :
5272 enableval=$enable_compiler_warnings;
5273 fi
5274 case $enable_compiler_warnings in #(
5275 no | min | yes | max | all) :
5276 ;; #(
5277 *) :
5278 if test "x$enable_maintainer_mode" = xyes
5279 then :
5280 enable_compiler_warnings=yes
5281 else case e in #(
5282 e) enable_compiler_warnings=min ;;
5283 esac
5284 fi ;;
5285 esac
5286
5287 case `pwd` in
5288 *\ * | *\ *)
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5290 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5291 esac
5292
5293
5294
5295 macro_version='2.5.4'
5296 macro_revision='2.5.4'
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 ltmain=$ac_aux_dir/ltmain.sh
5312
5313
5314
5315 # Make sure we can run config.sub.
5316 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5317 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5318
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5320 printf %s "checking build system type... " >&6; }
5321 if test ${ac_cv_build+y}
5322 then :
5323 printf %s "(cached) " >&6
5324 else case e in #(
5325 e) ac_build_alias=$build_alias
5326 test "x$ac_build_alias" = x &&
5327 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5328 test "x$ac_build_alias" = x &&
5329 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5330 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5331 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5332 ;;
5333 esac
5334 fi
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5336 printf "%s\n" "$ac_cv_build" >&6; }
5337 case $ac_cv_build in
5338 *-*-*) ;;
5339 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5340 esac
5341 build=$ac_cv_build
5342 ac_save_IFS=$IFS; IFS='-'
5343 set x $ac_cv_build
5344 shift
5345 build_cpu=$1
5346 build_vendor=$2
5347 shift; shift
5348 # Remember, the first character of IFS is used to create $*,
5349 # except with old shells:
5350 build_os=$*
5351 IFS=$ac_save_IFS
5352 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5353
5354
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5356 printf %s "checking host system type... " >&6; }
5357 if test ${ac_cv_host+y}
5358 then :
5359 printf %s "(cached) " >&6
5360 else case e in #(
5361 e) if test "x$host_alias" = x; then
5362 ac_cv_host=$ac_cv_build
5363 else
5364 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5365 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5366 fi
5367 ;;
5368 esac
5369 fi
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5371 printf "%s\n" "$ac_cv_host" >&6; }
5372 case $ac_cv_host in
5373 *-*-*) ;;
5374 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5375 esac
5376 host=$ac_cv_host
5377 ac_save_IFS=$IFS; IFS='-'
5378 set x $ac_cv_host
5379 shift
5380 host_cpu=$1
5381 host_vendor=$2
5382 shift; shift
5383 # Remember, the first character of IFS is used to create $*,
5384 # except with old shells:
5385 host_os=$*
5386 IFS=$ac_save_IFS
5387 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5388
5389
5390 # Backslashify metacharacters that are still active within
5391 # double-quoted strings.
5392 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5393
5394 # Same as above, but do not quote variable references.
5395 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5396
5397 # Sed substitution to delay expansion of an escaped shell variable in a
5398 # double_quote_subst'ed string.
5399 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5400
5401 # Sed substitution to delay expansion of an escaped single quote.
5402 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5403
5404 # Sed substitution to avoid accidental globbing in evaled expressions
5405 no_glob_subst='s/\*/\\\*/g'
5406
5407 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5408 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5409 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5410
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5412 printf %s "checking how to print strings... " >&6; }
5413 # Test print first, because it will be a builtin if present.
5414 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5415 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5416 ECHO='print -r --'
5417 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5418 ECHO='printf %s\n'
5419 else
5420 # Use this function as a fallback that always works.
5421 func_fallback_echo ()
5422 {
5423 eval 'cat <<_LTECHO_EOF
5424 $1
5425 _LTECHO_EOF'
5426 }
5427 ECHO='func_fallback_echo'
5428 fi
5429
5430 # func_echo_all arg...
5431 # Invoke $ECHO with all args, space-separated.
5432 func_echo_all ()
5433 {
5434 $ECHO ""
5435 }
5436
5437 case $ECHO in
5438 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5439 printf "%s\n" "printf" >&6; } ;;
5440 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5441 printf "%s\n" "print -r" >&6; } ;;
5442 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5443 printf "%s\n" "cat" >&6; } ;;
5444 esac
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5460 printf %s "checking for a sed that does not truncate output... " >&6; }
5461 if test ${ac_cv_path_SED+y}
5462 then :
5463 printf %s "(cached) " >&6
5464 else case e in #(
5465 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5466 for ac_i in 1 2 3 4 5 6 7; do
5467 ac_script="$ac_script$as_nl$ac_script"
5468 done
5469 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5470 { ac_script=; unset ac_script;}
5471 if test -z "$SED"; then
5472 ac_path_SED_found=false
5473 # Loop through the user's path and test for each of PROGNAME-LIST
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 case $as_dir in #(((
5479 '') as_dir=./ ;;
5480 */) ;;
5481 *) as_dir=$as_dir/ ;;
5482 esac
5483 for ac_prog in sed gsed
5484 do
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5487 as_fn_executable_p "$ac_path_SED" || continue
5488 # Check for GNU ac_path_SED and select it if it is found.
5489 # Check for GNU $ac_path_SED
5490 case `"$ac_path_SED" --version 2>&1` in #(
5491 *GNU*)
5492 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5493 #(
5494 *)
5495 ac_count=0
5496 printf %s 0123456789 >"conftest.in"
5497 while :
5498 do
5499 cat "conftest.in" "conftest.in" >"conftest.tmp"
5500 mv "conftest.tmp" "conftest.in"
5501 cp "conftest.in" "conftest.nl"
5502 printf "%s\n" '' >> "conftest.nl"
5503 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5505 as_fn_arith $ac_count + 1 && ac_count=$as_val
5506 if test $ac_count -gt ${ac_path_SED_max-0}; then
5507 # Best one so far, save it but keep looking for a better one
5508 ac_cv_path_SED="$ac_path_SED"
5509 ac_path_SED_max=$ac_count
5510 fi
5511 # 10*(2^10) chars as input seems more than enough
5512 test $ac_count -gt 10 && break
5513 done
5514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5515 esac
5516
5517 $ac_path_SED_found && break 3
5518 done
5519 done
5520 done
5521 IFS=$as_save_IFS
5522 if test -z "$ac_cv_path_SED"; then
5523 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5524 fi
5525 else
5526 ac_cv_path_SED=$SED
5527 fi
5528 ;;
5529 esac
5530 fi
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5532 printf "%s\n" "$ac_cv_path_SED" >&6; }
5533 SED="$ac_cv_path_SED"
5534 rm -f conftest.sed
5535
5536 test -z "$SED" && SED=sed
5537 Xsed="$SED -e 1s/^X//"
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5550 printf %s "checking for grep that handles long lines and -e... " >&6; }
5551 if test ${ac_cv_path_GREP+y}
5552 then :
5553 printf %s "(cached) " >&6
5554 else case e in #(
5555 e) if test -z "$GREP"; then
5556 ac_path_GREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 do
5561 IFS=$as_save_IFS
5562 case $as_dir in #(((
5563 '') as_dir=./ ;;
5564 */) ;;
5565 *) as_dir=$as_dir/ ;;
5566 esac
5567 for ac_prog in grep ggrep
5568 do
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5571 as_fn_executable_p "$ac_path_GREP" || continue
5572 # Check for GNU ac_path_GREP and select it if it is found.
5573 # Check for GNU $ac_path_GREP
5574 case `"$ac_path_GREP" --version 2>&1` in #(
5575 *GNU*)
5576 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5577 #(
5578 *)
5579 ac_count=0
5580 printf %s 0123456789 >"conftest.in"
5581 while :
5582 do
5583 cat "conftest.in" "conftest.in" >"conftest.tmp"
5584 mv "conftest.tmp" "conftest.in"
5585 cp "conftest.in" "conftest.nl"
5586 printf "%s\n" 'GREP' >> "conftest.nl"
5587 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5589 as_fn_arith $ac_count + 1 && ac_count=$as_val
5590 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5591 # Best one so far, save it but keep looking for a better one
5592 ac_cv_path_GREP="$ac_path_GREP"
5593 ac_path_GREP_max=$ac_count
5594 fi
5595 # 10*(2^10) chars as input seems more than enough
5596 test $ac_count -gt 10 && break
5597 done
5598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5599 esac
5600
5601 $ac_path_GREP_found && break 3
5602 done
5603 done
5604 done
5605 IFS=$as_save_IFS
5606 if test -z "$ac_cv_path_GREP"; then
5607 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5608 fi
5609 else
5610 ac_cv_path_GREP=$GREP
5611 fi
5612 ;;
5613 esac
5614 fi
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5616 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5617 GREP="$ac_cv_path_GREP"
5618
5619
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5621 printf %s "checking for egrep... " >&6; }
5622 if test ${ac_cv_path_EGREP+y}
5623 then :
5624 printf %s "(cached) " >&6
5625 else case e in #(
5626 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5627 then ac_cv_path_EGREP="$GREP -E"
5628 else
5629 if test -z "$EGREP"; then
5630 ac_path_EGREP_found=false
5631 # Loop through the user's path and test for each of PROGNAME-LIST
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5634 do
5635 IFS=$as_save_IFS
5636 case $as_dir in #(((
5637 '') as_dir=./ ;;
5638 */) ;;
5639 *) as_dir=$as_dir/ ;;
5640 esac
5641 for ac_prog in egrep
5642 do
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5645 as_fn_executable_p "$ac_path_EGREP" || continue
5646 # Check for GNU ac_path_EGREP and select it if it is found.
5647 # Check for GNU $ac_path_EGREP
5648 case `"$ac_path_EGREP" --version 2>&1` in #(
5649 *GNU*)
5650 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5651 #(
5652 *)
5653 ac_count=0
5654 printf %s 0123456789 >"conftest.in"
5655 while :
5656 do
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 printf "%s\n" 'EGREP' >> "conftest.nl"
5661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 as_fn_arith $ac_count + 1 && ac_count=$as_val
5664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_EGREP="$ac_path_EGREP"
5667 ac_path_EGREP_max=$ac_count
5668 fi
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5671 done
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5674
5675 $ac_path_EGREP_found && break 3
5676 done
5677 done
5678 done
5679 IFS=$as_save_IFS
5680 if test -z "$ac_cv_path_EGREP"; then
5681 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5682 fi
5683 else
5684 ac_cv_path_EGREP=$EGREP
5685 fi
5686
5687 fi ;;
5688 esac
5689 fi
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5691 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5692 EGREP="$ac_cv_path_EGREP"
5693
5694 EGREP_TRADITIONAL=$EGREP
5695 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5696
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5698 printf %s "checking for fgrep... " >&6; }
5699 if test ${ac_cv_path_FGREP+y}
5700 then :
5701 printf %s "(cached) " >&6
5702 else case e in #(
5703 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5704 then ac_cv_path_FGREP="$GREP -F"
5705 else
5706 if test -z "$FGREP"; then
5707 ac_path_FGREP_found=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711 do
5712 IFS=$as_save_IFS
5713 case $as_dir in #(((
5714 '') as_dir=./ ;;
5715 */) ;;
5716 *) as_dir=$as_dir/ ;;
5717 esac
5718 for ac_prog in fgrep
5719 do
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5722 as_fn_executable_p "$ac_path_FGREP" || continue
5723 # Check for GNU ac_path_FGREP and select it if it is found.
5724 # Check for GNU $ac_path_FGREP
5725 case `"$ac_path_FGREP" --version 2>&1` in #(
5726 *GNU*)
5727 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5728 #(
5729 *)
5730 ac_count=0
5731 printf %s 0123456789 >"conftest.in"
5732 while :
5733 do
5734 cat "conftest.in" "conftest.in" >"conftest.tmp"
5735 mv "conftest.tmp" "conftest.in"
5736 cp "conftest.in" "conftest.nl"
5737 printf "%s\n" 'FGREP' >> "conftest.nl"
5738 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5740 as_fn_arith $ac_count + 1 && ac_count=$as_val
5741 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5742 # Best one so far, save it but keep looking for a better one
5743 ac_cv_path_FGREP="$ac_path_FGREP"
5744 ac_path_FGREP_max=$ac_count
5745 fi
5746 # 10*(2^10) chars as input seems more than enough
5747 test $ac_count -gt 10 && break
5748 done
5749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5750 esac
5751
5752 $ac_path_FGREP_found && break 3
5753 done
5754 done
5755 done
5756 IFS=$as_save_IFS
5757 if test -z "$ac_cv_path_FGREP"; then
5758 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5759 fi
5760 else
5761 ac_cv_path_FGREP=$FGREP
5762 fi
5763
5764 fi ;;
5765 esac
5766 fi
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5768 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5769 FGREP="$ac_cv_path_FGREP"
5770
5771
5772 test -z "$GREP" && GREP=grep
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792 # Check whether --with-gnu-ld was given.
5793 if test ${with_gnu_ld+y}
5794 then :
5795 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5796 else case e in #(
5797 e) with_gnu_ld=no ;;
5798 esac
5799 fi
5800
5801 ac_prog=ld
5802 if test yes = "$GCC"; then
5803 # Check if gcc -print-prog-name=ld gives a path.
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5805 printf %s "checking for ld used by $CC... " >&6; }
5806 case $host in
5807 *-*-mingw* | *-*-windows*)
5808 # gcc leaves a trailing carriage return, which upsets mingw
5809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5810 *)
5811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5812 esac
5813 case $ac_prog in
5814 # Accept absolute paths.
5815 [\\/]* | ?:[\\/]*)
5816 re_direlt='/[^/][^/]*/\.\./'
5817 # Canonicalize the pathname of ld
5818 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5819 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5820 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5821 done
5822 test -z "$LD" && LD=$ac_prog
5823 ;;
5824 "")
5825 # If it fails, then pretend we aren't using GCC.
5826 ac_prog=ld
5827 ;;
5828 *)
5829 # If it is relative, then search for the first ld in PATH.
5830 with_gnu_ld=unknown
5831 ;;
5832 esac
5833 elif test yes = "$with_gnu_ld"; then
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5835 printf %s "checking for GNU ld... " >&6; }
5836 else
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5838 printf %s "checking for non-GNU ld... " >&6; }
5839 fi
5840 if test ${lt_cv_path_LD+y}
5841 then :
5842 printf %s "(cached) " >&6
5843 else case e in #(
5844 e) if test -z "$LD"; then
5845 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5846 for ac_dir in $PATH; do
5847 IFS=$lt_save_ifs
5848 test -z "$ac_dir" && ac_dir=.
5849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5850 lt_cv_path_LD=$ac_dir/$ac_prog
5851 # Check to see if the program is GNU ld. I'd rather use --version,
5852 # but apparently some variants of GNU ld only accept -v.
5853 # Break only if it was the GNU/non-GNU ld that we prefer.
5854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5855 *GNU* | *'with BFD'*)
5856 test no != "$with_gnu_ld" && break
5857 ;;
5858 *)
5859 test yes != "$with_gnu_ld" && break
5860 ;;
5861 esac
5862 fi
5863 done
5864 IFS=$lt_save_ifs
5865 else
5866 lt_cv_path_LD=$LD # Let the user override the test with a path.
5867 fi ;;
5868 esac
5869 fi
5870
5871 LD=$lt_cv_path_LD
5872 if test -n "$LD"; then
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5874 printf "%s\n" "$LD" >&6; }
5875 else
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 printf "%s\n" "no" >&6; }
5878 fi
5879 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5881 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5882 if test ${lt_cv_prog_gnu_ld+y}
5883 then :
5884 printf %s "(cached) " >&6
5885 else case e in #(
5886 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5887 case `$LD -v 2>&1 </dev/null` in
5888 *GNU* | *'with BFD'*)
5889 lt_cv_prog_gnu_ld=yes
5890 ;;
5891 *)
5892 lt_cv_prog_gnu_ld=no
5893 ;;
5894 esac ;;
5895 esac
5896 fi
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5898 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5899 with_gnu_ld=$lt_cv_prog_gnu_ld
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5910 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5911 if test ${lt_cv_path_NM+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else case e in #(
5915 e) if test -n "$NM"; then
5916 # Let the user override the test.
5917 lt_cv_path_NM=$NM
5918 else
5919 lt_nm_to_check=${ac_tool_prefix}nm
5920 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5921 lt_nm_to_check="$lt_nm_to_check nm"
5922 fi
5923 for lt_tmp_nm in $lt_nm_to_check; do
5924 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5925 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5926 IFS=$lt_save_ifs
5927 test -z "$ac_dir" && ac_dir=.
5928 tmp_nm=$ac_dir/$lt_tmp_nm
5929 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5930 # Check to see if the nm accepts a BSD-compat flag.
5931 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5932 # nm: unknown option "B" ignored
5933 # Tru64's nm complains that /dev/null is an invalid object file
5934 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5935 case $build_os in
5936 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5937 *) lt_bad_file=/dev/null ;;
5938 esac
5939 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5940 *$lt_bad_file* | *'Invalid file or object type'*)
5941 lt_cv_path_NM="$tmp_nm -B"
5942 break 2
5943 ;;
5944 *)
5945 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5946 */dev/null*)
5947 lt_cv_path_NM="$tmp_nm -p"
5948 break 2
5949 ;;
5950 *)
5951 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5952 continue # so that we can try to find one that supports BSD flags
5953 ;;
5954 esac
5955 ;;
5956 esac
5957 fi
5958 done
5959 IFS=$lt_save_ifs
5960 done
5961 : ${lt_cv_path_NM=no}
5962 fi ;;
5963 esac
5964 fi
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5966 printf "%s\n" "$lt_cv_path_NM" >&6; }
5967 if test no != "$lt_cv_path_NM"; then
5968 NM=$lt_cv_path_NM
5969 else
5970 # Didn't find any BSD compatible name lister, look for dumpbin.
5971 if test -n "$DUMPBIN"; then :
5972 # Let the user override the test.
5973 else
5974 if test -n "$ac_tool_prefix"; then
5975 for ac_prog in dumpbin "link -dump"
5976 do
5977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 printf %s "checking for $ac_word... " >&6; }
5981 if test ${ac_cv_prog_DUMPBIN+y}
5982 then :
5983 printf %s "(cached) " >&6
5984 else case e in #(
5985 e) if test -n "$DUMPBIN"; then
5986 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991 IFS=$as_save_IFS
5992 case $as_dir in #(((
5993 '') as_dir=./ ;;
5994 */) ;;
5995 *) as_dir=$as_dir/ ;;
5996 esac
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi ;;
6008 esac
6009 fi
6010 DUMPBIN=$ac_cv_prog_DUMPBIN
6011 if test -n "$DUMPBIN"; then
6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6013 printf "%s\n" "$DUMPBIN" >&6; }
6014 else
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 printf "%s\n" "no" >&6; }
6017 fi
6018
6019
6020 test -n "$DUMPBIN" && break
6021 done
6022 fi
6023 if test -z "$DUMPBIN"; then
6024 ac_ct_DUMPBIN=$DUMPBIN
6025 for ac_prog in dumpbin "link -dump"
6026 do
6027 # Extract the first word of "$ac_prog", so it can be a program name with args.
6028 set dummy $ac_prog; ac_word=$2
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 printf %s "checking for $ac_word... " >&6; }
6031 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6032 then :
6033 printf %s "(cached) " >&6
6034 else case e in #(
6035 e) if test -n "$ac_ct_DUMPBIN"; then
6036 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 case $as_dir in #(((
6043 '') as_dir=./ ;;
6044 */) ;;
6045 *) as_dir=$as_dir/ ;;
6046 esac
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053 done
6054 done
6055 IFS=$as_save_IFS
6056
6057 fi ;;
6058 esac
6059 fi
6060 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6061 if test -n "$ac_ct_DUMPBIN"; then
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6063 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6064 else
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 printf "%s\n" "no" >&6; }
6067 fi
6068
6069
6070 test -n "$ac_ct_DUMPBIN" && break
6071 done
6072
6073 if test "x$ac_ct_DUMPBIN" = x; then
6074 DUMPBIN=":"
6075 else
6076 case $cross_compiling:$ac_tool_warned in
6077 yes:)
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6080 ac_tool_warned=yes ;;
6081 esac
6082 DUMPBIN=$ac_ct_DUMPBIN
6083 fi
6084 fi
6085
6086 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6087 *COFF*)
6088 DUMPBIN="$DUMPBIN -symbols -headers"
6089 ;;
6090 *)
6091 DUMPBIN=:
6092 ;;
6093 esac
6094 fi
6095
6096 if test : != "$DUMPBIN"; then
6097 NM=$DUMPBIN
6098 fi
6099 fi
6100 test -z "$NM" && NM=nm
6101
6102
6103
6104
6105
6106
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6108 printf %s "checking the name lister ($NM) interface... " >&6; }
6109 if test ${lt_cv_nm_interface+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else case e in #(
6113 e) lt_cv_nm_interface="BSD nm"
6114 echo "int some_variable = 0;" > conftest.$ac_ext
6115 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6116 (eval "$ac_compile" 2>conftest.err)
6117 cat conftest.err >&5
6118 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6119 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6120 cat conftest.err >&5
6121 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6122 cat conftest.out >&5
6123 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6124 lt_cv_nm_interface="MS dumpbin"
6125 fi
6126 rm -f conftest* ;;
6127 esac
6128 fi
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6130 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6133 printf %s "checking whether ln -s works... " >&6; }
6134 LN_S=$as_ln_s
6135 if test "$LN_S" = "ln -s"; then
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6137 printf "%s\n" "yes" >&6; }
6138 else
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6140 printf "%s\n" "no, using $LN_S" >&6; }
6141 fi
6142
6143 # find the maximum length of command line arguments
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6145 printf %s "checking the maximum length of command line arguments... " >&6; }
6146 if test ${lt_cv_sys_max_cmd_len+y}
6147 then :
6148 printf %s "(cached) " >&6
6149 else case e in #(
6150 e) i=0
6151 teststring=ABCD
6152
6153 case $build_os in
6154 msdosdjgpp*)
6155 # On DJGPP, this test can blow up pretty badly due to problems in libc
6156 # (any single argument exceeding 2000 bytes causes a buffer overrun
6157 # during glob expansion). Even if it were fixed, the result of this
6158 # check would be larger than it should be.
6159 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6160 ;;
6161
6162 gnu* | ironclad*)
6163 # Under GNU Hurd and Ironclad, this test is not required because there
6164 # is no limit to the length of command line arguments.
6165 # Libtool will interpret -1 as no limit whatsoever
6166 lt_cv_sys_max_cmd_len=-1;
6167 ;;
6168
6169 cygwin* | mingw* | windows* | cegcc*)
6170 # On Win9x/ME, this test blows up -- it succeeds, but takes
6171 # about 5 minutes as the teststring grows exponentially.
6172 # Worse, since 9x/ME are not pre-emptively multitasking,
6173 # you end up with a "frozen" computer, even though with patience
6174 # the test eventually succeeds (with a max line length of 256k).
6175 # Instead, let's just punt: use the minimum linelength reported by
6176 # all of the supported platforms: 8192 (on NT/2K/XP).
6177 lt_cv_sys_max_cmd_len=8192;
6178 ;;
6179
6180 mint*)
6181 # On MiNT this can take a long time and run out of memory.
6182 lt_cv_sys_max_cmd_len=8192;
6183 ;;
6184
6185 amigaos*)
6186 # On AmigaOS with pdksh, this test takes hours, literally.
6187 # So we just punt and use a minimum line length of 8192.
6188 lt_cv_sys_max_cmd_len=8192;
6189 ;;
6190
6191 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6192 # This has been around since 386BSD, at least. Likely further.
6193 if test -x /sbin/sysctl; then
6194 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6195 elif test -x /usr/sbin/sysctl; then
6196 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6197 else
6198 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6199 fi
6200 # And add a safety zone
6201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6203 ;;
6204
6205 interix*)
6206 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6207 lt_cv_sys_max_cmd_len=196608
6208 ;;
6209
6210 os2*)
6211 # The test takes a long time on OS/2.
6212 lt_cv_sys_max_cmd_len=8192
6213 ;;
6214
6215 osf*)
6216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6218 # nice to cause kernel panics so lets avoid the loop below.
6219 # First set a reasonable default.
6220 lt_cv_sys_max_cmd_len=16384
6221 #
6222 if test -x /sbin/sysconfig; then
6223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6224 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6225 esac
6226 fi
6227 ;;
6228 sco3.2v5*)
6229 lt_cv_sys_max_cmd_len=102400
6230 ;;
6231 sysv5* | sco5v6* | sysv4.2uw2*)
6232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6233 if test -n "$kargmax"; then
6234 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6235 else
6236 lt_cv_sys_max_cmd_len=32768
6237 fi
6238 ;;
6239 *)
6240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6241 if test -n "$lt_cv_sys_max_cmd_len" && \
6242 test undefined != "$lt_cv_sys_max_cmd_len"; then
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6245 else
6246 # Make teststring a little bigger before we do anything with it.
6247 # a 1K string should be a reasonable start.
6248 for i in 1 2 3 4 5 6 7 8; do
6249 teststring=$teststring$teststring
6250 done
6251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6252 # If test is not a shell built-in, we'll probably end up computing a
6253 # maximum length that is only half of the actual maximum length, but
6254 # we can't tell.
6255 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6256 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6257 test 17 != "$i" # 1/2 MB should be enough
6258 do
6259 i=`expr $i + 1`
6260 teststring=$teststring$teststring
6261 done
6262 # Only check the string length outside the loop.
6263 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6264 teststring=
6265 # Add a significant safety factor because C++ compilers can tack on
6266 # massive amounts of additional arguments before passing them to the
6267 # linker. It appears as though 1/2 is a usable value.
6268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6269 fi
6270 ;;
6271 esac
6272 ;;
6273 esac
6274 fi
6275
6276 if test -n "$lt_cv_sys_max_cmd_len"; then
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6278 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6279 else
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6281 printf "%s\n" "none" >&6; }
6282 fi
6283 max_cmd_len=$lt_cv_sys_max_cmd_len
6284
6285
6286
6287
6288
6289
6290 : ${CP="cp -f"}
6291 : ${MV="mv -f"}
6292 : ${RM="rm -f"}
6293
6294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6295 lt_unset=unset
6296 else
6297 lt_unset=false
6298 fi
6299
6300
6301
6302
6303
6304 # test EBCDIC or ASCII
6305 case `echo X|tr X '\101'` in
6306 A) # ASCII based system
6307 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6308 lt_SP2NL='tr \040 \012'
6309 lt_NL2SP='tr \015\012 \040\040'
6310 ;;
6311 *) # EBCDIC based system
6312 lt_SP2NL='tr \100 \n'
6313 lt_NL2SP='tr \r\n \100\100'
6314 ;;
6315 esac
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6326 printf %s "checking how to convert $build file names to $host format... " >&6; }
6327 if test ${lt_cv_to_host_file_cmd+y}
6328 then :
6329 printf %s "(cached) " >&6
6330 else case e in #(
6331 e) case $host in
6332 *-*-mingw* )
6333 case $build in
6334 *-*-mingw* | *-*-windows* ) # actually msys
6335 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6336 ;;
6337 *-*-cygwin* )
6338 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6339 ;;
6340 * ) # otherwise, assume *nix
6341 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6342 ;;
6343 esac
6344 ;;
6345 *-*-cygwin* )
6346 case $build in
6347 *-*-mingw* | *-*-windows* ) # actually msys
6348 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6349 ;;
6350 *-*-cygwin* )
6351 lt_cv_to_host_file_cmd=func_convert_file_noop
6352 ;;
6353 * ) # otherwise, assume *nix
6354 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6355 ;;
6356 esac
6357 ;;
6358 * ) # unhandled hosts (and "normal" native builds)
6359 lt_cv_to_host_file_cmd=func_convert_file_noop
6360 ;;
6361 esac
6362 ;;
6363 esac
6364 fi
6365
6366 to_host_file_cmd=$lt_cv_to_host_file_cmd
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6368 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6369
6370
6371
6372
6373
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6375 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6376 if test ${lt_cv_to_tool_file_cmd+y}
6377 then :
6378 printf %s "(cached) " >&6
6379 else case e in #(
6380 e) #assume ordinary cross tools, or native build.
6381 lt_cv_to_tool_file_cmd=func_convert_file_noop
6382 case $host in
6383 *-*-mingw* | *-*-windows* )
6384 case $build in
6385 *-*-mingw* | *-*-windows* ) # actually msys
6386 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6387 ;;
6388 esac
6389 ;;
6390 esac
6391 ;;
6392 esac
6393 fi
6394
6395 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6397 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6398
6399
6400
6401
6402
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6404 printf %s "checking for $LD option to reload object files... " >&6; }
6405 if test ${lt_cv_ld_reload_flag+y}
6406 then :
6407 printf %s "(cached) " >&6
6408 else case e in #(
6409 e) lt_cv_ld_reload_flag='-r' ;;
6410 esac
6411 fi
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6413 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6414 reload_flag=$lt_cv_ld_reload_flag
6415 case $reload_flag in
6416 "" | " "*) ;;
6417 *) reload_flag=" $reload_flag" ;;
6418 esac
6419 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6420 case $host_os in
6421 cygwin* | mingw* | windows* | pw32* | cegcc*)
6422 if test yes != "$GCC"; then
6423 reload_cmds=false
6424 fi
6425 ;;
6426 darwin*)
6427 if test yes = "$GCC"; then
6428 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6429 else
6430 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6431 fi
6432 ;;
6433 esac
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 # Extract the first word of "file", so it can be a program name with args.
6444 set dummy file; ac_word=$2
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 printf %s "checking for $ac_word... " >&6; }
6447 if test ${ac_cv_prog_FILECMD+y}
6448 then :
6449 printf %s "(cached) " >&6
6450 else case e in #(
6451 e) if test -n "$FILECMD"; then
6452 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 case $as_dir in #(((
6459 '') as_dir=./ ;;
6460 */) ;;
6461 *) as_dir=$as_dir/ ;;
6462 esac
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_FILECMD="file"
6466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6474 fi ;;
6475 esac
6476 fi
6477 FILECMD=$ac_cv_prog_FILECMD
6478 if test -n "$FILECMD"; then
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6480 printf "%s\n" "$FILECMD" >&6; }
6481 else
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 printf "%s\n" "no" >&6; }
6484 fi
6485
6486
6487
6488
6489
6490
6491
6492
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 printf %s "checking for $ac_word... " >&6; }
6498 if test ${ac_cv_prog_OBJDUMP+y}
6499 then :
6500 printf %s "(cached) " >&6
6501 else case e in #(
6502 e) if test -n "$OBJDUMP"; then
6503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 case $as_dir in #(((
6510 '') as_dir=./ ;;
6511 */) ;;
6512 *) as_dir=$as_dir/ ;;
6513 esac
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6523
6524 fi ;;
6525 esac
6526 fi
6527 OBJDUMP=$ac_cv_prog_OBJDUMP
6528 if test -n "$OBJDUMP"; then
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6530 printf "%s\n" "$OBJDUMP" >&6; }
6531 else
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 printf "%s\n" "no" >&6; }
6534 fi
6535
6536
6537 fi
6538 if test -z "$ac_cv_prog_OBJDUMP"; then
6539 ac_ct_OBJDUMP=$OBJDUMP
6540 # Extract the first word of "objdump", so it can be a program name with args.
6541 set dummy objdump; ac_word=$2
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 printf %s "checking for $ac_word... " >&6; }
6544 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6545 then :
6546 printf %s "(cached) " >&6
6547 else case e in #(
6548 e) if test -n "$ac_ct_OBJDUMP"; then
6549 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 case $as_dir in #(((
6556 '') as_dir=./ ;;
6557 */) ;;
6558 *) as_dir=$as_dir/ ;;
6559 esac
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566 done
6567 done
6568 IFS=$as_save_IFS
6569
6570 fi ;;
6571 esac
6572 fi
6573 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6574 if test -n "$ac_ct_OBJDUMP"; then
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6576 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6577 else
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 printf "%s\n" "no" >&6; }
6580 fi
6581
6582 if test "x$ac_ct_OBJDUMP" = x; then
6583 OBJDUMP="false"
6584 else
6585 case $cross_compiling:$ac_tool_warned in
6586 yes:)
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591 OBJDUMP=$ac_ct_OBJDUMP
6592 fi
6593 else
6594 OBJDUMP="$ac_cv_prog_OBJDUMP"
6595 fi
6596
6597 test -z "$OBJDUMP" && OBJDUMP=objdump
6598
6599
6600
6601
6602
6603
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6605 printf %s "checking how to recognize dependent libraries... " >&6; }
6606 if test ${lt_cv_deplibs_check_method+y}
6607 then :
6608 printf %s "(cached) " >&6
6609 else case e in #(
6610 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6611 lt_cv_file_magic_test_file=
6612 lt_cv_deplibs_check_method='unknown'
6613 # Need to set the preceding variable on all platforms that support
6614 # interlibrary dependencies.
6615 # 'none' -- dependencies not supported.
6616 # 'unknown' -- same as none, but documents that we really don't know.
6617 # 'pass_all' -- all dependencies passed with no checks.
6618 # 'file_magic [[regex]]' -- check by looking for files in library path
6619 # that responds to the $file_magic_cmd with a given extended regex.
6620 # If you have 'file' or equivalent on your system and you're not sure
6621 # whether 'pass_all' will *always* work, you probably want this one.
6622
6623 case $host_os in
6624 aix[4-9]*)
6625 lt_cv_deplibs_check_method=pass_all
6626 ;;
6627
6628 beos*)
6629 lt_cv_deplibs_check_method=pass_all
6630 ;;
6631
6632 bsdi[45]*)
6633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6634 lt_cv_file_magic_cmd='$FILECMD -L'
6635 lt_cv_file_magic_test_file=/shlib/libc.so
6636 ;;
6637
6638 cygwin*)
6639 # func_win32_libid is a shell function defined in ltmain.sh
6640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6641 lt_cv_file_magic_cmd='func_win32_libid'
6642 ;;
6643
6644 mingw* | windows* | pw32*)
6645 # Base MSYS/MinGW do not provide the 'file' command needed by
6646 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6647 # unless we find 'file', for example because we are cross-compiling.
6648 if ( file / ) >/dev/null 2>&1; then
6649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6650 lt_cv_file_magic_cmd='func_win32_libid'
6651 else
6652 # Keep this pattern in sync with the one in func_win32_libid.
6653 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6654 lt_cv_file_magic_cmd='$OBJDUMP -f'
6655 fi
6656 ;;
6657
6658 cegcc*)
6659 # use the weaker test based on 'objdump'. See mingw*.
6660 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6661 lt_cv_file_magic_cmd='$OBJDUMP -f'
6662 ;;
6663
6664 darwin* | rhapsody*)
6665 lt_cv_deplibs_check_method=pass_all
6666 ;;
6667
6668 freebsd* | dragonfly* | midnightbsd*)
6669 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6670 case $host_cpu in
6671 i*86 )
6672 # Not sure whether the presence of OpenBSD here was a mistake.
6673 # Let's accept both of them until this is cleared up.
6674 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6675 lt_cv_file_magic_cmd=$FILECMD
6676 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6677 ;;
6678 esac
6679 else
6680 lt_cv_deplibs_check_method=pass_all
6681 fi
6682 ;;
6683
6684 haiku*)
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687
6688 hpux10.20* | hpux11*)
6689 lt_cv_file_magic_cmd=$FILECMD
6690 case $host_cpu in
6691 ia64*)
6692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6693 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6694 ;;
6695 hppa*64*)
6696 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]'
6697 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6698 ;;
6699 *)
6700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6701 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6702 ;;
6703 esac
6704 ;;
6705
6706 interix[3-9]*)
6707 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6709 ;;
6710
6711 irix5* | irix6* | nonstopux*)
6712 case $LD in
6713 *-32|*"-32 ") libmagic=32-bit;;
6714 *-n32|*"-n32 ") libmagic=N32;;
6715 *-64|*"-64 ") libmagic=64-bit;;
6716 *) libmagic=never-match;;
6717 esac
6718 lt_cv_deplibs_check_method=pass_all
6719 ;;
6720
6721 # This must be glibc/ELF.
6722 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6723 lt_cv_deplibs_check_method=pass_all
6724 ;;
6725
6726 *-mlibc)
6727 lt_cv_deplibs_check_method=pass_all
6728 ;;
6729
6730 netbsd* | netbsdelf*-gnu)
6731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6733 else
6734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6735 fi
6736 ;;
6737
6738 newos6*)
6739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6740 lt_cv_file_magic_cmd=$FILECMD
6741 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6742 ;;
6743
6744 *nto* | *qnx*)
6745 lt_cv_deplibs_check_method=pass_all
6746 ;;
6747
6748 openbsd*)
6749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6751 else
6752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6753 fi
6754 ;;
6755
6756 osf3* | osf4* | osf5*)
6757 lt_cv_deplibs_check_method=pass_all
6758 ;;
6759
6760 rdos*)
6761 lt_cv_deplibs_check_method=pass_all
6762 ;;
6763
6764 serenity*)
6765 lt_cv_deplibs_check_method=pass_all
6766 ;;
6767
6768 solaris*)
6769 lt_cv_deplibs_check_method=pass_all
6770 ;;
6771
6772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6773 lt_cv_deplibs_check_method=pass_all
6774 ;;
6775
6776 sysv4 | sysv4.3*)
6777 case $host_vendor in
6778 motorola)
6779 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]'
6780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6781 ;;
6782 ncr)
6783 lt_cv_deplibs_check_method=pass_all
6784 ;;
6785 sequent)
6786 lt_cv_file_magic_cmd='/bin/file'
6787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6788 ;;
6789 sni)
6790 lt_cv_file_magic_cmd='/bin/file'
6791 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6792 lt_cv_file_magic_test_file=/lib/libc.so
6793 ;;
6794 siemens)
6795 lt_cv_deplibs_check_method=pass_all
6796 ;;
6797 pc)
6798 lt_cv_deplibs_check_method=pass_all
6799 ;;
6800 esac
6801 ;;
6802
6803 tpf*)
6804 lt_cv_deplibs_check_method=pass_all
6805 ;;
6806 os2*)
6807 lt_cv_deplibs_check_method=pass_all
6808 ;;
6809 esac
6810 ;;
6811 esac
6812 fi
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6814 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6815
6816 file_magic_glob=
6817 want_nocaseglob=no
6818 if test "$build" = "$host"; then
6819 case $host_os in
6820 mingw* | windows* | pw32*)
6821 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6822 want_nocaseglob=yes
6823 else
6824 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6825 fi
6826 ;;
6827 esac
6828 fi
6829
6830 file_magic_cmd=$lt_cv_file_magic_cmd
6831 deplibs_check_method=$lt_cv_deplibs_check_method
6832 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 printf %s "checking for $ac_word... " >&6; }
6860 if test ${ac_cv_prog_DLLTOOL+y}
6861 then :
6862 printf %s "(cached) " >&6
6863 else case e in #(
6864 e) if test -n "$DLLTOOL"; then
6865 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 case $as_dir in #(((
6872 '') as_dir=./ ;;
6873 */) ;;
6874 *) as_dir=$as_dir/ ;;
6875 esac
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi ;;
6887 esac
6888 fi
6889 DLLTOOL=$ac_cv_prog_DLLTOOL
6890 if test -n "$DLLTOOL"; then
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6892 printf "%s\n" "$DLLTOOL" >&6; }
6893 else
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 printf "%s\n" "no" >&6; }
6896 fi
6897
6898
6899 fi
6900 if test -z "$ac_cv_prog_DLLTOOL"; then
6901 ac_ct_DLLTOOL=$DLLTOOL
6902 # Extract the first word of "dlltool", so it can be a program name with args.
6903 set dummy dlltool; ac_word=$2
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 printf %s "checking for $ac_word... " >&6; }
6906 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6907 then :
6908 printf %s "(cached) " >&6
6909 else case e in #(
6910 e) if test -n "$ac_ct_DLLTOOL"; then
6911 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 case $as_dir in #(((
6918 '') as_dir=./ ;;
6919 */) ;;
6920 *) as_dir=$as_dir/ ;;
6921 esac
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6924 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932 fi ;;
6933 esac
6934 fi
6935 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6936 if test -n "$ac_ct_DLLTOOL"; then
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6938 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6939 else
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 printf "%s\n" "no" >&6; }
6942 fi
6943
6944 if test "x$ac_ct_DLLTOOL" = x; then
6945 DLLTOOL="false"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953 DLLTOOL=$ac_ct_DLLTOOL
6954 fi
6955 else
6956 DLLTOOL="$ac_cv_prog_DLLTOOL"
6957 fi
6958
6959 test -z "$DLLTOOL" && DLLTOOL=dlltool
6960
6961
6962
6963
6964
6965
6966
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6968 printf %s "checking how to associate runtime and link libraries... " >&6; }
6969 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6970 then :
6971 printf %s "(cached) " >&6
6972 else case e in #(
6973 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6974
6975 case $host_os in
6976 cygwin* | mingw* | windows* | pw32* | cegcc*)
6977 # two different shell functions defined in ltmain.sh;
6978 # decide which one to use based on capabilities of $DLLTOOL
6979 case `$DLLTOOL --help 2>&1` in
6980 *--identify-strict*)
6981 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6982 ;;
6983 *)
6984 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6985 ;;
6986 esac
6987 ;;
6988 *)
6989 # fallback: assume linklib IS sharedlib
6990 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6991 ;;
6992 esac
6993 ;;
6994 esac
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6997 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6998 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6999 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7000
7001
7002
7003
7004
7005
7006
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 printf %s "checking for $ac_word... " >&6; }
7012 if test ${ac_cv_prog_RANLIB+y}
7013 then :
7014 printf %s "(cached) " >&6
7015 else case e in #(
7016 e) if test -n "$RANLIB"; then
7017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022 IFS=$as_save_IFS
7023 case $as_dir in #(((
7024 '') as_dir=./ ;;
7025 */) ;;
7026 *) as_dir=$as_dir/ ;;
7027 esac
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038 fi ;;
7039 esac
7040 fi
7041 RANLIB=$ac_cv_prog_RANLIB
7042 if test -n "$RANLIB"; then
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7044 printf "%s\n" "$RANLIB" >&6; }
7045 else
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 printf "%s\n" "no" >&6; }
7048 fi
7049
7050
7051 fi
7052 if test -z "$ac_cv_prog_RANLIB"; then
7053 ac_ct_RANLIB=$RANLIB
7054 # Extract the first word of "ranlib", so it can be a program name with args.
7055 set dummy ranlib; ac_word=$2
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 printf %s "checking for $ac_word... " >&6; }
7058 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else case e in #(
7062 e) if test -n "$ac_ct_RANLIB"; then
7063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068 IFS=$as_save_IFS
7069 case $as_dir in #(((
7070 '') as_dir=./ ;;
7071 */) ;;
7072 *) as_dir=$as_dir/ ;;
7073 esac
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_ac_ct_RANLIB="ranlib"
7077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi ;;
7085 esac
7086 fi
7087 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7088 if test -n "$ac_ct_RANLIB"; then
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7090 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7091 else
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 printf "%s\n" "no" >&6; }
7094 fi
7095
7096 if test "x$ac_ct_RANLIB" = x; then
7097 RANLIB=":"
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105 RANLIB=$ac_ct_RANLIB
7106 fi
7107 else
7108 RANLIB="$ac_cv_prog_RANLIB"
7109 fi
7110
7111 if test -n "$ac_tool_prefix"; then
7112 for ac_prog in ar
7113 do
7114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 printf %s "checking for $ac_word... " >&6; }
7118 if test ${ac_cv_prog_AR+y}
7119 then :
7120 printf %s "(cached) " >&6
7121 else case e in #(
7122 e) if test -n "$AR"; then
7123 ac_cv_prog_AR="$AR" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128 IFS=$as_save_IFS
7129 case $as_dir in #(((
7130 '') as_dir=./ ;;
7131 */) ;;
7132 *) as_dir=$as_dir/ ;;
7133 esac
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi ;;
7145 esac
7146 fi
7147 AR=$ac_cv_prog_AR
7148 if test -n "$AR"; then
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7150 printf "%s\n" "$AR" >&6; }
7151 else
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 printf "%s\n" "no" >&6; }
7154 fi
7155
7156
7157 test -n "$AR" && break
7158 done
7159 fi
7160 if test -z "$AR"; then
7161 ac_ct_AR=$AR
7162 for ac_prog in ar
7163 do
7164 # Extract the first word of "$ac_prog", so it can be a program name with args.
7165 set dummy $ac_prog; ac_word=$2
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 printf %s "checking for $ac_word... " >&6; }
7168 if test ${ac_cv_prog_ac_ct_AR+y}
7169 then :
7170 printf %s "(cached) " >&6
7171 else case e in #(
7172 e) if test -n "$ac_ct_AR"; then
7173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 case $as_dir in #(((
7180 '') as_dir=./ ;;
7181 */) ;;
7182 *) as_dir=$as_dir/ ;;
7183 esac
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_AR="$ac_prog"
7187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi ;;
7195 esac
7196 fi
7197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7198 if test -n "$ac_ct_AR"; then
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7200 printf "%s\n" "$ac_ct_AR" >&6; }
7201 else
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 printf "%s\n" "no" >&6; }
7204 fi
7205
7206
7207 test -n "$ac_ct_AR" && break
7208 done
7209
7210 if test "x$ac_ct_AR" = x; then
7211 AR="false"
7212 else
7213 case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219 AR=$ac_ct_AR
7220 fi
7221 fi
7222
7223 : ${AR=ar}
7224
7225
7226
7227
7228
7229
7230 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7231 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7232 # higher priority because that's what people were doing historically (setting
7233 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7234 # variable obsoleted/removed.
7235
7236 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7237 lt_ar_flags=$AR_FLAGS
7238
7239
7240
7241
7242
7243
7244 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7245 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7246
7247
7248
7249
7250
7251
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7253 printf %s "checking for archiver @FILE support... " >&6; }
7254 if test ${lt_cv_ar_at_file+y}
7255 then :
7256 printf %s "(cached) " >&6
7257 else case e in #(
7258 e) lt_cv_ar_at_file=no
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261
7262 int
7263 main (void)
7264 {
7265
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_compile "$LINENO"
7271 then :
7272 echo conftest.$ac_objext > conftest.lst
7273 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7275 (eval $lt_ar_try) 2>&5
7276 ac_status=$?
7277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7278 test $ac_status = 0; }
7279 if test 0 -eq "$ac_status"; then
7280 # Ensure the archiver fails upon bogus file names.
7281 rm -f conftest.$ac_objext libconftest.a
7282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7283 (eval $lt_ar_try) 2>&5
7284 ac_status=$?
7285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286 test $ac_status = 0; }
7287 if test 0 -ne "$ac_status"; then
7288 lt_cv_ar_at_file=@
7289 fi
7290 fi
7291 rm -f conftest.* libconftest.a
7292
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7295 ;;
7296 esac
7297 fi
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7299 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7300
7301 if test no = "$lt_cv_ar_at_file"; then
7302 archiver_list_spec=
7303 else
7304 archiver_list_spec=$lt_cv_ar_at_file
7305 fi
7306
7307
7308
7309
7310
7311
7312
7313 if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7315 set dummy ${ac_tool_prefix}strip; ac_word=$2
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 printf %s "checking for $ac_word... " >&6; }
7318 if test ${ac_cv_prog_STRIP+y}
7319 then :
7320 printf %s "(cached) " >&6
7321 else case e in #(
7322 e) if test -n "$STRIP"; then
7323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 case $as_dir in #(((
7330 '') as_dir=./ ;;
7331 */) ;;
7332 *) as_dir=$as_dir/ ;;
7333 esac
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7338 break 2
7339 fi
7340 done
7341 done
7342 IFS=$as_save_IFS
7343
7344 fi ;;
7345 esac
7346 fi
7347 STRIP=$ac_cv_prog_STRIP
7348 if test -n "$STRIP"; then
7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7350 printf "%s\n" "$STRIP" >&6; }
7351 else
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 printf "%s\n" "no" >&6; }
7354 fi
7355
7356
7357 fi
7358 if test -z "$ac_cv_prog_STRIP"; then
7359 ac_ct_STRIP=$STRIP
7360 # Extract the first word of "strip", so it can be a program name with args.
7361 set dummy strip; ac_word=$2
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 printf %s "checking for $ac_word... " >&6; }
7364 if test ${ac_cv_prog_ac_ct_STRIP+y}
7365 then :
7366 printf %s "(cached) " >&6
7367 else case e in #(
7368 e) if test -n "$ac_ct_STRIP"; then
7369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374 IFS=$as_save_IFS
7375 case $as_dir in #(((
7376 '') as_dir=./ ;;
7377 */) ;;
7378 *) as_dir=$as_dir/ ;;
7379 esac
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7382 ac_cv_prog_ac_ct_STRIP="strip"
7383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7384 break 2
7385 fi
7386 done
7387 done
7388 IFS=$as_save_IFS
7389
7390 fi ;;
7391 esac
7392 fi
7393 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7394 if test -n "$ac_ct_STRIP"; then
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7396 printf "%s\n" "$ac_ct_STRIP" >&6; }
7397 else
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 printf "%s\n" "no" >&6; }
7400 fi
7401
7402 if test "x$ac_ct_STRIP" = x; then
7403 STRIP=":"
7404 else
7405 case $cross_compiling:$ac_tool_warned in
7406 yes:)
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7408 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7409 ac_tool_warned=yes ;;
7410 esac
7411 STRIP=$ac_ct_STRIP
7412 fi
7413 else
7414 STRIP="$ac_cv_prog_STRIP"
7415 fi
7416
7417 test -z "$STRIP" && STRIP=:
7418
7419
7420
7421
7422
7423
7424
7425 test -z "$RANLIB" && RANLIB=:
7426
7427
7428
7429
7430
7431
7432 # Determine commands to create old-style static archives.
7433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7434 old_postinstall_cmds='chmod 644 $oldlib'
7435 old_postuninstall_cmds=
7436
7437 if test -n "$RANLIB"; then
7438 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7440 fi
7441
7442 case $host_os in
7443 darwin*)
7444 lock_old_archive_extraction=yes ;;
7445 *)
7446 lock_old_archive_extraction=no ;;
7447 esac
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487 # If no C compiler was specified, use CC.
7488 LTCC=${LTCC-"$CC"}
7489
7490 # If no C compiler flags were specified, use CFLAGS.
7491 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7492
7493 # Allow CC to be a program name with arguments.
7494 compiler=$CC
7495
7496
7497 # Check for command to grab the raw symbol name followed by C symbol from nm.
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7499 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7500 if test ${lt_cv_sys_global_symbol_pipe+y}
7501 then :
7502 printf %s "(cached) " >&6
7503 else case e in #(
7504 e)
7505 # These are sane defaults that work on at least a few old systems.
7506 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7507
7508 # Character class describing NM global symbol codes.
7509 symcode='[BCDEGRST]'
7510
7511 # Regexp to match symbols that can be accessed directly from C.
7512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7513
7514 # Define system-specific variables.
7515 case $host_os in
7516 aix*)
7517 symcode='[BCDT]'
7518 ;;
7519 cygwin* | mingw* | windows* | pw32* | cegcc*)
7520 symcode='[ABCDGISTW]'
7521 ;;
7522 hpux*)
7523 if test ia64 = "$host_cpu"; then
7524 symcode='[ABCDEGRST]'
7525 fi
7526 ;;
7527 irix* | nonstopux*)
7528 symcode='[BCDEGRST]'
7529 ;;
7530 osf*)
7531 symcode='[BCDEGQRST]'
7532 ;;
7533 solaris*)
7534 symcode='[BCDRT]'
7535 ;;
7536 sco3.2v5*)
7537 symcode='[DT]'
7538 ;;
7539 sysv4.2uw2*)
7540 symcode='[DT]'
7541 ;;
7542 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7543 symcode='[ABDT]'
7544 ;;
7545 sysv4)
7546 symcode='[DFNSTU]'
7547 ;;
7548 esac
7549
7550 # If we're using GNU nm, then use its standard symbol codes.
7551 case `$NM -V 2>&1` in
7552 *GNU* | *'with BFD'*)
7553 symcode='[ABCDGIRSTW]' ;;
7554 esac
7555
7556 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7557 # Gets list of data symbols to import.
7558 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7559 # Adjust the below global symbol transforms to fixup imported variables.
7560 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7561 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7562 lt_c_name_lib_hook="\
7563 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7564 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7565 else
7566 # Disable hooks by default.
7567 lt_cv_sys_global_symbol_to_import=
7568 lt_cdecl_hook=
7569 lt_c_name_hook=
7570 lt_c_name_lib_hook=
7571 fi
7572
7573 # Transform an extracted symbol line into a proper C declaration.
7574 # Some systems (esp. on ia64) link data and code symbols differently,
7575 # so use this general approach.
7576 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7577 $lt_cdecl_hook\
7578 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7579 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7580
7581 # Transform an extracted symbol line into symbol name and symbol address
7582 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7583 $lt_c_name_hook\
7584 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7585 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7586
7587 # Transform an extracted symbol line into symbol name with lib prefix and
7588 # symbol address.
7589 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7590 $lt_c_name_lib_hook\
7591 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7592 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7593 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7594
7595 # Handle CRLF in mingw tool chain
7596 opt_cr=
7597 case $build_os in
7598 mingw* | windows*)
7599 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7600 ;;
7601 esac
7602
7603 # Try without a prefix underscore, then with it.
7604 for ac_symprfx in "" "_"; do
7605
7606 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7607 symxfrm="\\1 $ac_symprfx\\2 \\2"
7608
7609 # Write the raw and C identifiers.
7610 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7611 # Fake it for dumpbin and say T for any non-static function,
7612 # D for any global variable and I for any imported variable.
7613 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7614 # which start with @ or ?.
7615 lt_cv_sys_global_symbol_pipe="$AWK '"\
7616 " {last_section=section; section=\$ 3};"\
7617 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7618 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7619 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7620 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7621 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7622 " \$ 0!~/External *\|/{next};"\
7623 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7624 " {if(hide[section]) next};"\
7625 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7626 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7627 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7628 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7629 " ' prfx=^$ac_symprfx"
7630 else
7631 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7632 fi
7633 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7634
7635 # Check to see that the pipe works correctly.
7636 pipe_works=no
7637
7638 rm -f conftest*
7639 cat > conftest.$ac_ext <<_LT_EOF
7640 #ifdef __cplusplus
7641 extern "C" {
7642 #endif
7643 char nm_test_var;
7644 void nm_test_func(void);
7645 void nm_test_func(void){}
7646 #ifdef __cplusplus
7647 }
7648 #endif
7649 int main(void){nm_test_var='a';nm_test_func();return(0);}
7650 _LT_EOF
7651
7652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7653 (eval $ac_compile) 2>&5
7654 ac_status=$?
7655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656 test $ac_status = 0; }; then
7657 # Now try to grab the symbols.
7658 nlist=conftest.nm
7659 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7660 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7661 # Try sorting and uniquifying the output.
7662 if sort "$nlist" | uniq > "$nlist"T; then
7663 mv -f "$nlist"T "$nlist"
7664 else
7665 rm -f "$nlist"T
7666 fi
7667
7668 # Make sure that we snagged all the symbols we need.
7669 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7670 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7671 cat <<_LT_EOF > conftest.$ac_ext
7672 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7673 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7674 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7675 relocations are performed -- see ld's documentation on pseudo-relocs. */
7676 # define LT_DLSYM_CONST
7677 #elif defined __osf__
7678 /* This system does not cope well with relocations in const data. */
7679 # define LT_DLSYM_CONST
7680 #else
7681 # define LT_DLSYM_CONST const
7682 #endif
7683
7684 #ifdef __cplusplus
7685 extern "C" {
7686 #endif
7687
7688 _LT_EOF
7689 # Now generate the symbol file.
7690 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7691
7692 cat <<_LT_EOF >> conftest.$ac_ext
7693
7694 /* The mapping between symbol names and symbols. */
7695 LT_DLSYM_CONST struct {
7696 const char *name;
7697 void *address;
7698 }
7699 lt__PROGRAM__LTX_preloaded_symbols[] =
7700 {
7701 { "@PROGRAM@", (void *) 0 },
7702 _LT_EOF
7703 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7704 cat <<\_LT_EOF >> conftest.$ac_ext
7705 {0, (void *) 0}
7706 };
7707
7708 /* This works around a problem in FreeBSD linker */
7709 #ifdef FREEBSD_WORKAROUND
7710 static const void *lt_preloaded_setup() {
7711 return lt__PROGRAM__LTX_preloaded_symbols;
7712 }
7713 #endif
7714
7715 #ifdef __cplusplus
7716 }
7717 #endif
7718 _LT_EOF
7719 # Now try linking the two files.
7720 mv conftest.$ac_objext conftstm.$ac_objext
7721 lt_globsym_save_LIBS=$LIBS
7722 lt_globsym_save_CFLAGS=$CFLAGS
7723 LIBS=conftstm.$ac_objext
7724 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7726 (eval $ac_link) 2>&5
7727 ac_status=$?
7728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7730 pipe_works=yes
7731 fi
7732 LIBS=$lt_globsym_save_LIBS
7733 CFLAGS=$lt_globsym_save_CFLAGS
7734 else
7735 echo "cannot find nm_test_func in $nlist" >&5
7736 fi
7737 else
7738 echo "cannot find nm_test_var in $nlist" >&5
7739 fi
7740 else
7741 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7742 fi
7743 else
7744 echo "$progname: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7746 fi
7747 rm -rf conftest* conftst*
7748
7749 # Do not use the global_symbol_pipe unless it works.
7750 if test yes = "$pipe_works"; then
7751 break
7752 else
7753 lt_cv_sys_global_symbol_pipe=
7754 fi
7755 done
7756 ;;
7757 esac
7758 fi
7759
7760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7761 lt_cv_sys_global_symbol_to_cdecl=
7762 fi
7763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7765 printf "%s\n" "failed" >&6; }
7766 else
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7768 printf "%s\n" "ok" >&6; }
7769 fi
7770
7771 # Response file support.
7772 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7773 nm_file_list_spec='@'
7774 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7775 nm_file_list_spec='@'
7776 fi
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7815 printf %s "checking for sysroot... " >&6; }
7816
7817 # Check whether --with-sysroot was given.
7818 if test ${with_sysroot+y}
7819 then :
7820 withval=$with_sysroot;
7821 else case e in #(
7822 e) with_sysroot=no ;;
7823 esac
7824 fi
7825
7826
7827 lt_sysroot=
7828 case $with_sysroot in #(
7829 yes)
7830 if test yes = "$GCC"; then
7831 # Trim trailing / since we'll always append absolute paths and we want
7832 # to avoid //, if only for less confusing output for the user.
7833 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7834 fi
7835 ;; #(
7836 /*)
7837 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7838 ;; #(
7839 no|'')
7840 ;; #(
7841 *)
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7843 printf "%s\n" "$with_sysroot" >&6; }
7844 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7845 ;;
7846 esac
7847
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7849 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7850
7851
7852
7853
7854
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7856 printf %s "checking for a working dd... " >&6; }
7857 if test ${ac_cv_path_lt_DD+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else case e in #(
7861 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7862 cat conftest.i conftest.i >conftest2.i
7863 : ${lt_DD:=$DD}
7864 if test -z "$lt_DD"; then
7865 ac_path_lt_DD_found=false
7866 # Loop through the user's path and test for each of PROGNAME-LIST
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 case $as_dir in #(((
7872 '') as_dir=./ ;;
7873 */) ;;
7874 *) as_dir=$as_dir/ ;;
7875 esac
7876 for ac_prog in dd
7877 do
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7880 as_fn_executable_p "$ac_path_lt_DD" || continue
7881 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7882 cmp -s conftest.i conftest.out \
7883 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7884 fi
7885 $ac_path_lt_DD_found && break 3
7886 done
7887 done
7888 done
7889 IFS=$as_save_IFS
7890 if test -z "$ac_cv_path_lt_DD"; then
7891 :
7892 fi
7893 else
7894 ac_cv_path_lt_DD=$lt_DD
7895 fi
7896
7897 rm -f conftest.i conftest2.i conftest.out ;;
7898 esac
7899 fi
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7901 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7902
7903
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7905 printf %s "checking how to truncate binary pipes... " >&6; }
7906 if test ${lt_cv_truncate_bin+y}
7907 then :
7908 printf %s "(cached) " >&6
7909 else case e in #(
7910 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7911 cat conftest.i conftest.i >conftest2.i
7912 lt_cv_truncate_bin=
7913 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7914 cmp -s conftest.i conftest.out \
7915 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7916 fi
7917 rm -f conftest.i conftest2.i conftest.out
7918 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7919 esac
7920 fi
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7922 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7923
7924
7925
7926
7927
7928
7929
7930 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7931 func_cc_basename ()
7932 {
7933 for cc_temp in $*""; do
7934 case $cc_temp in
7935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7937 \-*) ;;
7938 *) break;;
7939 esac
7940 done
7941 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7942 }
7943
7944 # Check whether --enable-libtool-lock was given.
7945 if test ${enable_libtool_lock+y}
7946 then :
7947 enableval=$enable_libtool_lock;
7948 fi
7949
7950 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7951
7952 # Some flags need to be propagated to the compiler or linker for good
7953 # libtool support.
7954 case $host in
7955 ia64-*-hpux*)
7956 # Find out what ABI is being produced by ac_compile, and set mode
7957 # options accordingly.
7958 echo 'int i;' > conftest.$ac_ext
7959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7960 (eval $ac_compile) 2>&5
7961 ac_status=$?
7962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; }; then
7964 case `$FILECMD conftest.$ac_objext` in
7965 *ELF-32*)
7966 HPUX_IA64_MODE=32
7967 ;;
7968 *ELF-64*)
7969 HPUX_IA64_MODE=64
7970 ;;
7971 esac
7972 fi
7973 rm -rf conftest*
7974 ;;
7975 *-*-irix6*)
7976 # Find out what ABI is being produced by ac_compile, and set linker
7977 # options accordingly.
7978 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7980 (eval $ac_compile) 2>&5
7981 ac_status=$?
7982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7983 test $ac_status = 0; }; then
7984 if test yes = "$lt_cv_prog_gnu_ld"; then
7985 case `$FILECMD conftest.$ac_objext` in
7986 *32-bit*)
7987 LD="${LD-ld} -melf32bsmip"
7988 ;;
7989 *N32*)
7990 LD="${LD-ld} -melf32bmipn32"
7991 ;;
7992 *64-bit*)
7993 LD="${LD-ld} -melf64bmip"
7994 ;;
7995 esac
7996 else
7997 case `$FILECMD conftest.$ac_objext` in
7998 *32-bit*)
7999 LD="${LD-ld} -32"
8000 ;;
8001 *N32*)
8002 LD="${LD-ld} -n32"
8003 ;;
8004 *64-bit*)
8005 LD="${LD-ld} -64"
8006 ;;
8007 esac
8008 fi
8009 fi
8010 rm -rf conftest*
8011 ;;
8012
8013 mips64*-*linux*)
8014 # Find out what ABI is being produced by ac_compile, and set linker
8015 # options accordingly.
8016 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8018 (eval $ac_compile) 2>&5
8019 ac_status=$?
8020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8021 test $ac_status = 0; }; then
8022 emul=elf
8023 case `$FILECMD conftest.$ac_objext` in
8024 *32-bit*)
8025 emul="${emul}32"
8026 ;;
8027 *64-bit*)
8028 emul="${emul}64"
8029 ;;
8030 esac
8031 case `$FILECMD conftest.$ac_objext` in
8032 *MSB*)
8033 emul="${emul}btsmip"
8034 ;;
8035 *LSB*)
8036 emul="${emul}ltsmip"
8037 ;;
8038 esac
8039 case `$FILECMD conftest.$ac_objext` in
8040 *N32*)
8041 emul="${emul}n32"
8042 ;;
8043 esac
8044 LD="${LD-ld} -m $emul"
8045 fi
8046 rm -rf conftest*
8047 ;;
8048
8049 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8050 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8051 # Find out what ABI is being produced by ac_compile, and set linker
8052 # options accordingly. Note that the listed cases only cover the
8053 # situations where additional linker options are needed (such as when
8054 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8055 # vice versa); the common cases where no linker options are needed do
8056 # not appear in the list.
8057 echo 'int i;' > conftest.$ac_ext
8058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8059 (eval $ac_compile) 2>&5
8060 ac_status=$?
8061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8062 test $ac_status = 0; }; then
8063 case `$FILECMD conftest.o` in
8064 *32-bit*)
8065 case $host in
8066 x86_64-*kfreebsd*-gnu)
8067 LD="${LD-ld} -m elf_i386_fbsd"
8068 ;;
8069 x86_64-*linux*|x86_64-gnu*)
8070 case `$FILECMD conftest.o` in
8071 *x86-64*)
8072 LD="${LD-ld} -m elf32_x86_64"
8073 ;;
8074 *)
8075 LD="${LD-ld} -m elf_i386"
8076 ;;
8077 esac
8078 ;;
8079 powerpc64le-*linux*)
8080 LD="${LD-ld} -m elf32lppclinux"
8081 ;;
8082 powerpc64-*linux*)
8083 LD="${LD-ld} -m elf32ppclinux"
8084 ;;
8085 s390x-*linux*)
8086 LD="${LD-ld} -m elf_s390"
8087 ;;
8088 sparc64-*linux*)
8089 LD="${LD-ld} -m elf32_sparc"
8090 ;;
8091 esac
8092 ;;
8093 *64-bit*)
8094 case $host in
8095 x86_64-*kfreebsd*-gnu)
8096 LD="${LD-ld} -m elf_x86_64_fbsd"
8097 ;;
8098 x86_64-*linux*|x86_64-gnu*)
8099 LD="${LD-ld} -m elf_x86_64"
8100 ;;
8101 powerpcle-*linux*)
8102 LD="${LD-ld} -m elf64lppc"
8103 ;;
8104 powerpc-*linux*)
8105 LD="${LD-ld} -m elf64ppc"
8106 ;;
8107 s390*-*linux*|s390*-*tpf*)
8108 LD="${LD-ld} -m elf64_s390"
8109 ;;
8110 sparc*-*linux*)
8111 LD="${LD-ld} -m elf64_sparc"
8112 ;;
8113 esac
8114 ;;
8115 esac
8116 fi
8117 rm -rf conftest*
8118 ;;
8119
8120 *-*-sco3.2v5*)
8121 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8122 SAVE_CFLAGS=$CFLAGS
8123 CFLAGS="$CFLAGS -belf"
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8125 printf %s "checking whether the C compiler needs -belf... " >&6; }
8126 if test ${lt_cv_cc_needs_belf+y}
8127 then :
8128 printf %s "(cached) " >&6
8129 else case e in #(
8130 e) ac_ext=c
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8138
8139 int
8140 main (void)
8141 {
8142
8143 ;
8144 return 0;
8145 }
8146 _ACEOF
8147 if ac_fn_c_try_link "$LINENO"
8148 then :
8149 lt_cv_cc_needs_belf=yes
8150 else case e in #(
8151 e) lt_cv_cc_needs_belf=no ;;
8152 esac
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8155 conftest$ac_exeext conftest.$ac_ext
8156 ac_ext=c
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161 ;;
8162 esac
8163 fi
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8165 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8166 if test yes != "$lt_cv_cc_needs_belf"; then
8167 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8168 CFLAGS=$SAVE_CFLAGS
8169 fi
8170 ;;
8171 *-*solaris*)
8172 # Find out what ABI is being produced by ac_compile, and set linker
8173 # options accordingly.
8174 echo 'int i;' > conftest.$ac_ext
8175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8176 (eval $ac_compile) 2>&5
8177 ac_status=$?
8178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8179 test $ac_status = 0; }; then
8180 case `$FILECMD conftest.o` in
8181 *64-bit*)
8182 case $lt_cv_prog_gnu_ld in
8183 yes*)
8184 case $host in
8185 i?86-*-solaris*|x86_64-*-solaris*)
8186 LD="${LD-ld} -m elf_x86_64"
8187 ;;
8188 sparc*-*-solaris*)
8189 LD="${LD-ld} -m elf64_sparc"
8190 ;;
8191 esac
8192 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8193 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8194 LD=${LD-ld}_sol2
8195 fi
8196 ;;
8197 *)
8198 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8199 LD="${LD-ld} -64"
8200 fi
8201 ;;
8202 esac
8203 ;;
8204 esac
8205 fi
8206 rm -rf conftest*
8207 ;;
8208 esac
8209
8210 need_locks=$enable_libtool_lock
8211
8212 if test -n "$ac_tool_prefix"; then
8213 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8214 set dummy ${ac_tool_prefix}mt; ac_word=$2
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 printf %s "checking for $ac_word... " >&6; }
8217 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8218 then :
8219 printf %s "(cached) " >&6
8220 else case e in #(
8221 e) if test -n "$MANIFEST_TOOL"; then
8222 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227 IFS=$as_save_IFS
8228 case $as_dir in #(((
8229 '') as_dir=./ ;;
8230 */) ;;
8231 *) as_dir=$as_dir/ ;;
8232 esac
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243 fi ;;
8244 esac
8245 fi
8246 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8247 if test -n "$MANIFEST_TOOL"; then
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8249 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8250 else
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 printf "%s\n" "no" >&6; }
8253 fi
8254
8255
8256 fi
8257 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8258 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8259 # Extract the first word of "mt", so it can be a program name with args.
8260 set dummy mt; ac_word=$2
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 printf %s "checking for $ac_word... " >&6; }
8263 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8264 then :
8265 printf %s "(cached) " >&6
8266 else case e in #(
8267 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8268 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273 IFS=$as_save_IFS
8274 case $as_dir in #(((
8275 '') as_dir=./ ;;
8276 */) ;;
8277 *) as_dir=$as_dir/ ;;
8278 esac
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8288
8289 fi ;;
8290 esac
8291 fi
8292 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8293 if test -n "$ac_ct_MANIFEST_TOOL"; then
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8295 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8296 else
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 printf "%s\n" "no" >&6; }
8299 fi
8300
8301 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8302 MANIFEST_TOOL=":"
8303 else
8304 case $cross_compiling:$ac_tool_warned in
8305 yes:)
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308 ac_tool_warned=yes ;;
8309 esac
8310 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8311 fi
8312 else
8313 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8314 fi
8315
8316 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8318 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8319 if test ${lt_cv_path_manifest_tool+y}
8320 then :
8321 printf %s "(cached) " >&6
8322 else case e in #(
8323 e) lt_cv_path_manifest_tool=no
8324 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8325 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8326 cat conftest.err >&5
8327 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8328 lt_cv_path_manifest_tool=yes
8329 fi
8330 rm -f conftest* ;;
8331 esac
8332 fi
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8334 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8335 if test yes != "$lt_cv_path_manifest_tool"; then
8336 MANIFEST_TOOL=:
8337 fi
8338
8339
8340
8341
8342
8343
8344 case $host_os in
8345 rhapsody* | darwin*)
8346 if test -n "$ac_tool_prefix"; then
8347 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8348 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 printf %s "checking for $ac_word... " >&6; }
8351 if test ${ac_cv_prog_DSYMUTIL+y}
8352 then :
8353 printf %s "(cached) " >&6
8354 else case e in #(
8355 e) if test -n "$DSYMUTIL"; then
8356 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361 IFS=$as_save_IFS
8362 case $as_dir in #(((
8363 '') as_dir=./ ;;
8364 */) ;;
8365 *) as_dir=$as_dir/ ;;
8366 esac
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373 done
8374 done
8375 IFS=$as_save_IFS
8376
8377 fi ;;
8378 esac
8379 fi
8380 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8381 if test -n "$DSYMUTIL"; then
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8383 printf "%s\n" "$DSYMUTIL" >&6; }
8384 else
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 printf "%s\n" "no" >&6; }
8387 fi
8388
8389
8390 fi
8391 if test -z "$ac_cv_prog_DSYMUTIL"; then
8392 ac_ct_DSYMUTIL=$DSYMUTIL
8393 # Extract the first word of "dsymutil", so it can be a program name with args.
8394 set dummy dsymutil; ac_word=$2
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 printf %s "checking for $ac_word... " >&6; }
8397 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8398 then :
8399 printf %s "(cached) " >&6
8400 else case e in #(
8401 e) if test -n "$ac_ct_DSYMUTIL"; then
8402 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407 IFS=$as_save_IFS
8408 case $as_dir in #(((
8409 '') as_dir=./ ;;
8410 */) ;;
8411 *) as_dir=$as_dir/ ;;
8412 esac
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8415 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8417 break 2
8418 fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8422
8423 fi ;;
8424 esac
8425 fi
8426 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8427 if test -n "$ac_ct_DSYMUTIL"; then
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8429 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8430 else
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 printf "%s\n" "no" >&6; }
8433 fi
8434
8435 if test "x$ac_ct_DSYMUTIL" = x; then
8436 DSYMUTIL=":"
8437 else
8438 case $cross_compiling:$ac_tool_warned in
8439 yes:)
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8441 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8442 ac_tool_warned=yes ;;
8443 esac
8444 DSYMUTIL=$ac_ct_DSYMUTIL
8445 fi
8446 else
8447 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8448 fi
8449
8450 if test -n "$ac_tool_prefix"; then
8451 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8452 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 printf %s "checking for $ac_word... " >&6; }
8455 if test ${ac_cv_prog_NMEDIT+y}
8456 then :
8457 printf %s "(cached) " >&6
8458 else case e in #(
8459 e) if test -n "$NMEDIT"; then
8460 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8461 else
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8464 do
8465 IFS=$as_save_IFS
8466 case $as_dir in #(((
8467 '') as_dir=./ ;;
8468 */) ;;
8469 *) as_dir=$as_dir/ ;;
8470 esac
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8473 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8475 break 2
8476 fi
8477 done
8478 done
8479 IFS=$as_save_IFS
8480
8481 fi ;;
8482 esac
8483 fi
8484 NMEDIT=$ac_cv_prog_NMEDIT
8485 if test -n "$NMEDIT"; then
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8487 printf "%s\n" "$NMEDIT" >&6; }
8488 else
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 printf "%s\n" "no" >&6; }
8491 fi
8492
8493
8494 fi
8495 if test -z "$ac_cv_prog_NMEDIT"; then
8496 ac_ct_NMEDIT=$NMEDIT
8497 # Extract the first word of "nmedit", so it can be a program name with args.
8498 set dummy nmedit; ac_word=$2
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 printf %s "checking for $ac_word... " >&6; }
8501 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8502 then :
8503 printf %s "(cached) " >&6
8504 else case e in #(
8505 e) if test -n "$ac_ct_NMEDIT"; then
8506 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511 IFS=$as_save_IFS
8512 case $as_dir in #(((
8513 '') as_dir=./ ;;
8514 */) ;;
8515 *) as_dir=$as_dir/ ;;
8516 esac
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8521 break 2
8522 fi
8523 done
8524 done
8525 IFS=$as_save_IFS
8526
8527 fi ;;
8528 esac
8529 fi
8530 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8531 if test -n "$ac_ct_NMEDIT"; then
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8533 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8534 else
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 printf "%s\n" "no" >&6; }
8537 fi
8538
8539 if test "x$ac_ct_NMEDIT" = x; then
8540 NMEDIT=":"
8541 else
8542 case $cross_compiling:$ac_tool_warned in
8543 yes:)
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8545 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8546 ac_tool_warned=yes ;;
8547 esac
8548 NMEDIT=$ac_ct_NMEDIT
8549 fi
8550 else
8551 NMEDIT="$ac_cv_prog_NMEDIT"
8552 fi
8553
8554 if test -n "$ac_tool_prefix"; then
8555 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8556 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 printf %s "checking for $ac_word... " >&6; }
8559 if test ${ac_cv_prog_LIPO+y}
8560 then :
8561 printf %s "(cached) " >&6
8562 else case e in #(
8563 e) if test -n "$LIPO"; then
8564 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8565 else
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8568 do
8569 IFS=$as_save_IFS
8570 case $as_dir in #(((
8571 '') as_dir=./ ;;
8572 */) ;;
8573 *) as_dir=$as_dir/ ;;
8574 esac
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581 done
8582 done
8583 IFS=$as_save_IFS
8584
8585 fi ;;
8586 esac
8587 fi
8588 LIPO=$ac_cv_prog_LIPO
8589 if test -n "$LIPO"; then
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8591 printf "%s\n" "$LIPO" >&6; }
8592 else
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 printf "%s\n" "no" >&6; }
8595 fi
8596
8597
8598 fi
8599 if test -z "$ac_cv_prog_LIPO"; then
8600 ac_ct_LIPO=$LIPO
8601 # Extract the first word of "lipo", so it can be a program name with args.
8602 set dummy lipo; ac_word=$2
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 printf %s "checking for $ac_word... " >&6; }
8605 if test ${ac_cv_prog_ac_ct_LIPO+y}
8606 then :
8607 printf %s "(cached) " >&6
8608 else case e in #(
8609 e) if test -n "$ac_ct_LIPO"; then
8610 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8611 else
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8614 do
8615 IFS=$as_save_IFS
8616 case $as_dir in #(((
8617 '') as_dir=./ ;;
8618 */) ;;
8619 *) as_dir=$as_dir/ ;;
8620 esac
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8623 ac_cv_prog_ac_ct_LIPO="lipo"
8624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8625 break 2
8626 fi
8627 done
8628 done
8629 IFS=$as_save_IFS
8630
8631 fi ;;
8632 esac
8633 fi
8634 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8635 if test -n "$ac_ct_LIPO"; then
8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8637 printf "%s\n" "$ac_ct_LIPO" >&6; }
8638 else
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 printf "%s\n" "no" >&6; }
8641 fi
8642
8643 if test "x$ac_ct_LIPO" = x; then
8644 LIPO=":"
8645 else
8646 case $cross_compiling:$ac_tool_warned in
8647 yes:)
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8649 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8650 ac_tool_warned=yes ;;
8651 esac
8652 LIPO=$ac_ct_LIPO
8653 fi
8654 else
8655 LIPO="$ac_cv_prog_LIPO"
8656 fi
8657
8658 if test -n "$ac_tool_prefix"; then
8659 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8660 set dummy ${ac_tool_prefix}otool; ac_word=$2
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 printf %s "checking for $ac_word... " >&6; }
8663 if test ${ac_cv_prog_OTOOL+y}
8664 then :
8665 printf %s "(cached) " >&6
8666 else case e in #(
8667 e) if test -n "$OTOOL"; then
8668 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8669 else
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8672 do
8673 IFS=$as_save_IFS
8674 case $as_dir in #(((
8675 '') as_dir=./ ;;
8676 */) ;;
8677 *) as_dir=$as_dir/ ;;
8678 esac
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8681 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685 done
8686 done
8687 IFS=$as_save_IFS
8688
8689 fi ;;
8690 esac
8691 fi
8692 OTOOL=$ac_cv_prog_OTOOL
8693 if test -n "$OTOOL"; then
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8695 printf "%s\n" "$OTOOL" >&6; }
8696 else
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 printf "%s\n" "no" >&6; }
8699 fi
8700
8701
8702 fi
8703 if test -z "$ac_cv_prog_OTOOL"; then
8704 ac_ct_OTOOL=$OTOOL
8705 # Extract the first word of "otool", so it can be a program name with args.
8706 set dummy otool; ac_word=$2
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 printf %s "checking for $ac_word... " >&6; }
8709 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8710 then :
8711 printf %s "(cached) " >&6
8712 else case e in #(
8713 e) if test -n "$ac_ct_OTOOL"; then
8714 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8718 do
8719 IFS=$as_save_IFS
8720 case $as_dir in #(((
8721 '') as_dir=./ ;;
8722 */) ;;
8723 *) as_dir=$as_dir/ ;;
8724 esac
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8727 ac_cv_prog_ac_ct_OTOOL="otool"
8728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8729 break 2
8730 fi
8731 done
8732 done
8733 IFS=$as_save_IFS
8734
8735 fi ;;
8736 esac
8737 fi
8738 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8739 if test -n "$ac_ct_OTOOL"; then
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8741 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8742 else
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 printf "%s\n" "no" >&6; }
8745 fi
8746
8747 if test "x$ac_ct_OTOOL" = x; then
8748 OTOOL=":"
8749 else
8750 case $cross_compiling:$ac_tool_warned in
8751 yes:)
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8753 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8754 ac_tool_warned=yes ;;
8755 esac
8756 OTOOL=$ac_ct_OTOOL
8757 fi
8758 else
8759 OTOOL="$ac_cv_prog_OTOOL"
8760 fi
8761
8762 if test -n "$ac_tool_prefix"; then
8763 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8764 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 printf %s "checking for $ac_word... " >&6; }
8767 if test ${ac_cv_prog_OTOOL64+y}
8768 then :
8769 printf %s "(cached) " >&6
8770 else case e in #(
8771 e) if test -n "$OTOOL64"; then
8772 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777 IFS=$as_save_IFS
8778 case $as_dir in #(((
8779 '') as_dir=./ ;;
8780 */) ;;
8781 *) as_dir=$as_dir/ ;;
8782 esac
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8785 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8787 break 2
8788 fi
8789 done
8790 done
8791 IFS=$as_save_IFS
8792
8793 fi ;;
8794 esac
8795 fi
8796 OTOOL64=$ac_cv_prog_OTOOL64
8797 if test -n "$OTOOL64"; then
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8799 printf "%s\n" "$OTOOL64" >&6; }
8800 else
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 printf "%s\n" "no" >&6; }
8803 fi
8804
8805
8806 fi
8807 if test -z "$ac_cv_prog_OTOOL64"; then
8808 ac_ct_OTOOL64=$OTOOL64
8809 # Extract the first word of "otool64", so it can be a program name with args.
8810 set dummy otool64; ac_word=$2
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 printf %s "checking for $ac_word... " >&6; }
8813 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8814 then :
8815 printf %s "(cached) " >&6
8816 else case e in #(
8817 e) if test -n "$ac_ct_OTOOL64"; then
8818 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8819 else
8820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8821 for as_dir in $PATH
8822 do
8823 IFS=$as_save_IFS
8824 case $as_dir in #(((
8825 '') as_dir=./ ;;
8826 */) ;;
8827 *) as_dir=$as_dir/ ;;
8828 esac
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_ac_ct_OTOOL64="otool64"
8832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835 done
8836 done
8837 IFS=$as_save_IFS
8838
8839 fi ;;
8840 esac
8841 fi
8842 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8843 if test -n "$ac_ct_OTOOL64"; then
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8845 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8846 else
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 printf "%s\n" "no" >&6; }
8849 fi
8850
8851 if test "x$ac_ct_OTOOL64" = x; then
8852 OTOOL64=":"
8853 else
8854 case $cross_compiling:$ac_tool_warned in
8855 yes:)
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8858 ac_tool_warned=yes ;;
8859 esac
8860 OTOOL64=$ac_ct_OTOOL64
8861 fi
8862 else
8863 OTOOL64="$ac_cv_prog_OTOOL64"
8864 fi
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8893 printf %s "checking for -single_module linker flag... " >&6; }
8894 if test ${lt_cv_apple_cc_single_mod+y}
8895 then :
8896 printf %s "(cached) " >&6
8897 else case e in #(
8898 e) lt_cv_apple_cc_single_mod=no
8899 if test -z "$LT_MULTI_MODULE"; then
8900 # By default we will add the -single_module flag. You can override
8901 # by either setting the environment variable LT_MULTI_MODULE
8902 # non-empty at configure time, or by adding -multi_module to the
8903 # link flags.
8904 rm -rf libconftest.dylib*
8905 echo "int foo(void){return 1;}" > conftest.c
8906 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8907 -dynamiclib -Wl,-single_module conftest.c" >&5
8908 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8909 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8910 _lt_result=$?
8911 # If there is a non-empty error log, and "single_module"
8912 # appears in it, assume the flag caused a linker warning
8913 if test -s conftest.err && $GREP single_module conftest.err; then
8914 cat conftest.err >&5
8915 # Otherwise, if the output was created with a 0 exit code from
8916 # the compiler, it worked.
8917 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8918 lt_cv_apple_cc_single_mod=yes
8919 else
8920 cat conftest.err >&5
8921 fi
8922 rm -rf libconftest.dylib*
8923 rm -f conftest.*
8924 fi ;;
8925 esac
8926 fi
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8928 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8929
8930 # Feature test to disable chained fixups since it is not
8931 # compatible with '-undefined dynamic_lookup'
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8933 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8934 if test ${lt_cv_support_no_fixup_chains+y}
8935 then :
8936 printf %s "(cached) " >&6
8937 else case e in #(
8938 e) save_LDFLAGS=$LDFLAGS
8939 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942
8943 int
8944 main (void)
8945 {
8946
8947 ;
8948 return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_link "$LINENO"
8952 then :
8953 lt_cv_support_no_fixup_chains=yes
8954 else case e in #(
8955 e) lt_cv_support_no_fixup_chains=no
8956 ;;
8957 esac
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8960 conftest$ac_exeext conftest.$ac_ext
8961 LDFLAGS=$save_LDFLAGS
8962
8963 ;;
8964 esac
8965 fi
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8967 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8968
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8970 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8971 if test ${lt_cv_ld_exported_symbols_list+y}
8972 then :
8973 printf %s "(cached) " >&6
8974 else case e in #(
8975 e) lt_cv_ld_exported_symbols_list=no
8976 save_LDFLAGS=$LDFLAGS
8977 echo "_main" > conftest.sym
8978 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981
8982 int
8983 main (void)
8984 {
8985
8986 ;
8987 return 0;
8988 }
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"
8991 then :
8992 lt_cv_ld_exported_symbols_list=yes
8993 else case e in #(
8994 e) lt_cv_ld_exported_symbols_list=no ;;
8995 esac
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8998 conftest$ac_exeext conftest.$ac_ext
8999 LDFLAGS=$save_LDFLAGS
9000 ;;
9001 esac
9002 fi
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9004 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9005
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9007 printf %s "checking for -force_load linker flag... " >&6; }
9008 if test ${lt_cv_ld_force_load+y}
9009 then :
9010 printf %s "(cached) " >&6
9011 else case e in #(
9012 e) lt_cv_ld_force_load=no
9013 cat > conftest.c << _LT_EOF
9014 int forced_loaded() { return 2;}
9015 _LT_EOF
9016 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9017 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9018 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9019 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9020 echo "$RANLIB libconftest.a" >&5
9021 $RANLIB libconftest.a 2>&5
9022 cat > conftest.c << _LT_EOF
9023 int main(void) { return 0;}
9024 _LT_EOF
9025 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9026 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9027 _lt_result=$?
9028 if test -s conftest.err && $GREP force_load conftest.err; then
9029 cat conftest.err >&5
9030 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9031 lt_cv_ld_force_load=yes
9032 else
9033 cat conftest.err >&5
9034 fi
9035 rm -f conftest.err libconftest.a conftest conftest.c
9036 rm -rf conftest.dSYM
9037 ;;
9038 esac
9039 fi
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9041 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9042 case $host_os in
9043 rhapsody* | darwin1.[012])
9044 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9045 darwin1.*)
9046 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9047 darwin*)
9048 case $MACOSX_DEPLOYMENT_TARGET,$host in
9049 10.[012],*|,*powerpc*-darwin[5-8]*)
9050 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9051 *)
9052 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9053 if test yes = "$lt_cv_support_no_fixup_chains"; then
9054 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9055 fi
9056 ;;
9057 esac
9058 ;;
9059 esac
9060 if test yes = "$lt_cv_apple_cc_single_mod"; then
9061 _lt_dar_single_mod='$single_module'
9062 fi
9063 _lt_dar_needs_single_mod=no
9064 case $host_os in
9065 rhapsody* | darwin1.*)
9066 _lt_dar_needs_single_mod=yes ;;
9067 darwin*)
9068 # When targeting Mac OS X 10.4 (darwin 8) or later,
9069 # -single_module is the default and -multi_module is unsupported.
9070 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9071 # target any OS version that needs -single_module.
9072 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9073 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9074 _lt_dar_needs_single_mod=yes ;;
9075 esac
9076 ;;
9077 esac
9078 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9079 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9080 else
9081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9082 fi
9083 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9084 _lt_dsymutil='~$DSYMUTIL $lib || :'
9085 else
9086 _lt_dsymutil=
9087 fi
9088 ;;
9089 esac
9090
9091 # func_munge_path_list VARIABLE PATH
9092 # -----------------------------------
9093 # VARIABLE is name of variable containing _space_ separated list of
9094 # directories to be munged by the contents of PATH, which is string
9095 # having a format:
9096 # "DIR[:DIR]:"
9097 # string "DIR[ DIR]" will be prepended to VARIABLE
9098 # ":DIR[:DIR]"
9099 # string "DIR[ DIR]" will be appended to VARIABLE
9100 # "DIRP[:DIRP]::[DIRA:]DIRA"
9101 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9102 # "DIRA[ DIRA]" will be appended to VARIABLE
9103 # "DIR[:DIR]"
9104 # VARIABLE will be replaced by "DIR[ DIR]"
9105 func_munge_path_list ()
9106 {
9107 case x$2 in
9108 x)
9109 ;;
9110 *:)
9111 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9112 ;;
9113 x:*)
9114 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9115 ;;
9116 *::*)
9117 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9118 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9119 ;;
9120 *)
9121 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9122 ;;
9123 esac
9124 }
9125
9126 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9127 "
9128 if test "x$ac_cv_header_dlfcn_h" = xyes
9129 then :
9130 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9131
9132 fi
9133
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9135 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9136 if test ${ac_cv_c_undeclared_builtin_options+y}
9137 then :
9138 printf %s "(cached) " >&6
9139 else case e in #(
9140 e) ac_save_CFLAGS=$CFLAGS
9141 ac_cv_c_undeclared_builtin_options='cannot detect'
9142 for ac_arg in '' -fno-builtin; do
9143 CFLAGS="$ac_save_CFLAGS $ac_arg"
9144 # This test program should *not* compile successfully.
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147
9148 int
9149 main (void)
9150 {
9151 (void) strchr;
9152 ;
9153 return 0;
9154 }
9155 _ACEOF
9156 if ac_fn_c_try_compile "$LINENO"
9157 then :
9158
9159 else case e in #(
9160 e) # This test program should compile successfully.
9161 # No library function is consistently available on
9162 # freestanding implementations, so test against a dummy
9163 # declaration. Include always-available headers on the
9164 # off chance that they somehow elicit warnings.
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9167 #include <float.h>
9168 #include <limits.h>
9169 #include <stdarg.h>
9170 #include <stddef.h>
9171 extern void ac_decl (int, char *);
9172
9173 int
9174 main (void)
9175 {
9176 (void) ac_decl (0, (char *) 0);
9177 (void) ac_decl;
9178
9179 ;
9180 return 0;
9181 }
9182 _ACEOF
9183 if ac_fn_c_try_compile "$LINENO"
9184 then :
9185 if test x"$ac_arg" = x
9186 then :
9187 ac_cv_c_undeclared_builtin_options='none needed'
9188 else case e in #(
9189 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9190 esac
9191 fi
9192 break
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9195 esac
9196 fi
9197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9198 done
9199 CFLAGS=$ac_save_CFLAGS
9200 ;;
9201 esac
9202 fi
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9204 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9205 case $ac_cv_c_undeclared_builtin_options in #(
9206 'cannot detect') :
9207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9208 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9209 as_fn_error $? "cannot make $CC report undeclared builtins
9210 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9211 'none needed') :
9212 ac_c_undeclared_builtin_options='' ;; #(
9213 *) :
9214 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9215 esac
9216
9217 echo 'tldbg:KPSE_COMMON called (pkg=tex4htk, amopt=)' >&5
9218 echo 'tldbg:KPSE_BASIC called (pkg=tex4htk, amopt=)' >&5
9219
9220 #
9221 # am_init_automake
9222 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9223 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9224 # is not polluted with repeated "-I."
9225 am__isrc=' -I$(srcdir)'
9226 # test to see if srcdir already configured
9227 if test -f $srcdir/config.status; then
9228 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9229 fi
9230 fi
9231
9232 # test whether we have cygpath
9233 if test -z "$CYGPATH_W"; then
9234 if (cygpath --version) >/dev/null 2>/dev/null; then
9235 CYGPATH_W='cygpath -w'
9236 else
9237 CYGPATH_W=echo
9238 fi
9239 fi
9240
9241
9242 # Define the identity of the package.
9243 PACKAGE='tex4ht--tex-live-'
9244 VERSION='20080225'
9245
9246
9247 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9248
9249
9250 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9251
9252 # Some tools Automake needs.
9253
9254 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9255
9256
9257 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9258
9259
9260 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9261
9262
9263 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9264
9265
9266 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9267
9268 # For better backward compatibility. To be removed once Automake 1.9.x
9269 # dies out for good. For more background, see:
9270 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9271 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9272 mkdir_p='$(MKDIR_P)'
9273
9274 # We need awk for the "check" target (and possibly the TAP driver). The
9275 # system "awk" is bad on some platforms.
9276 # Always define AMTAR for backward compatibility. Yes, it's still used
9277 # in the wild :-( We should find a proper way to deprecate it ...
9278 AMTAR='$${TAR-tar}'
9279
9280
9281 # We'll loop over all known methods to create a tar archive until one works.
9282 _am_tools='gnutar plaintar pax cpio none'
9283
9284 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9285 # There is notably a 21 bits limit for the UID and the GID. In fact,
9286 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9287 # and bug#13588).
9288 am_max_uid=2097151 # 2^21 - 1
9289 am_max_gid=$am_max_uid
9290 # The $UID and $GID variables are not portable, so we need to resort
9291 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9292 # below are definitely unexpected, so allow the users to see them
9293 # (that is, avoid stderr redirection).
9294 am_uid=`id -u || echo unknown`
9295 am_gid=`id -g || echo unknown`
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9297 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9298 if test x$am_uid = xunknown; then
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9300 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9301 elif test $am_uid -le $am_max_uid; then
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9303 printf "%s\n" "yes" >&6; }
9304 else
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 printf "%s\n" "no" >&6; }
9307 _am_tools=none
9308 fi
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9310 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9311 if test x$gm_gid = xunknown; then
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9313 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9314 elif test $am_gid -le $am_max_gid; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9316 printf "%s\n" "yes" >&6; }
9317 else
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 printf "%s\n" "no" >&6; }
9320 _am_tools=none
9321 fi
9322
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9324 printf %s "checking how to create a ustar tar archive... " >&6; }
9325
9326 # Go ahead even if we have the value already cached. We do so because we
9327 # need to set the values for the 'am__tar' and 'am__untar' variables.
9328 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9329
9330 for _am_tool in $_am_tools; do
9331 case $_am_tool in
9332 gnutar)
9333 for _am_tar in tar gnutar gtar; do
9334 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9335 ($_am_tar --version) >&5 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && break
9339 done
9340 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9341 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9342 am__untar="$_am_tar -xf -"
9343 ;;
9344 plaintar)
9345 # Must skip GNU tar: if it does not support --format= it doesn't create
9346 # ustar tarball either.
9347 (tar --version) >/dev/null 2>&1 && continue
9348 am__tar='tar chf - "$$tardir"'
9349 am__tar_='tar chf - "$tardir"'
9350 am__untar='tar xf -'
9351 ;;
9352 pax)
9353 am__tar='pax -L -x ustar -w "$$tardir"'
9354 am__tar_='pax -L -x ustar -w "$tardir"'
9355 am__untar='pax -r'
9356 ;;
9357 cpio)
9358 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9359 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9360 am__untar='cpio -i -H ustar -d'
9361 ;;
9362 none)
9363 am__tar=false
9364 am__tar_=false
9365 am__untar=false
9366 ;;
9367 esac
9368
9369 # If the value was cached, stop now. We just wanted to have am__tar
9370 # and am__untar set.
9371 test -n "${am_cv_prog_tar_ustar}" && break
9372
9373 # tar/untar a dummy directory, and stop if the command works.
9374 rm -rf conftest.dir
9375 mkdir conftest.dir
9376 echo GrepMe > conftest.dir/file
9377 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9378 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }
9382 rm -rf conftest.dir
9383 if test -s conftest.tar; then
9384 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9385 ($am__untar <conftest.tar) >&5 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }
9389 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9390 (cat conftest.dir/file) >&5 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }
9394 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9395 fi
9396 done
9397 rm -rf conftest.dir
9398
9399 if test ${am_cv_prog_tar_ustar+y}
9400 then :
9401 printf %s "(cached) " >&6
9402 else case e in #(
9403 e) am_cv_prog_tar_ustar=$_am_tool ;;
9404 esac
9405 fi
9406
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9408 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9409
9410
9411
9412
9413
9414 # Variables for tags utilities; see am/tags.am
9415 if test -z "$CTAGS"; then
9416 CTAGS=ctags
9417 fi
9418
9419 if test -z "$ETAGS"; then
9420 ETAGS=etags
9421 fi
9422
9423 if test -z "$CSCOPE"; then
9424 CSCOPE=cscope
9425 fi
9426
9427
9428
9429
9430
9431
9432
9433
9434 # am_maintainer_mode
9435
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9437 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9438 # Check whether --enable-maintainer-mode was given.
9439 if test ${enable_maintainer_mode+y}
9440 then :
9441 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9442 else case e in #(
9443 e) USE_MAINTAINER_MODE=no ;;
9444 esac
9445 fi
9446
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9448 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9449 if test $USE_MAINTAINER_MODE = yes; then
9450 MAINTAINER_MODE_TRUE=
9451 MAINTAINER_MODE_FALSE='#'
9452 else
9453 MAINTAINER_MODE_TRUE='#'
9454 MAINTAINER_MODE_FALSE=
9455 fi
9456
9457 MAINT=$MAINTAINER_MODE_TRUE
9458
9459
9460
9461 # See comments in kpse-setup.m4 about system extensions.
9462
9463
9464 # Check whether prototypes work.
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9466 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9467 if test ${kb_cv_c_prototypes+y}
9468 then :
9469 printf %s "(cached) " >&6
9470 else case e in #(
9471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473 #include <stdarg.h>
9474 int
9475 main (void)
9476 {
9477 extern void foo(int i,...);
9478 ;
9479 return 0;
9480 }
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"
9483 then :
9484 kb_cv_c_prototypes=yes
9485 else case e in #(
9486 e) kb_cv_c_prototypes=no ;;
9487 esac
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9490 conftest$ac_exeext conftest.$ac_ext ;;
9491 esac
9492 fi
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9494 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9495 if test "x$kb_cv_c_prototypes" = xno; then
9496 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9497 fi
9498
9499 # kpse_compiler_warnings options.
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9501 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9502 if test ${kpse_cv_warning_cflags+y}
9503 then :
9504 printf %s "(cached) " >&6
9505 else case e in #(
9506 e) if test "x$GCC" = xyes; then
9507 kpse_cv_warning_cflags=
9508 if test "x$enable_compiler_warnings" != xno; then
9509 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9510 case `$CC -dumpversion` in #(
9511 3.4.* | 4.* | 5.*) :
9512 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9513 *) :
9514 ;;
9515 esac
9516 case `$CC -dumpversion` in #(
9517 3.[234].* | 4.* | 5.*) :
9518 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9519 *) :
9520 ;;
9521 esac
9522 if test "x$enable_compiler_warnings" != xmin; then
9523 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9524 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9525 if test "x$enable_compiler_warnings" != xyes; then
9526 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9527 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9528 case `$CC -dumpversion` in #(
9529 3.4.* | 4.* | 5.*) :
9530 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9531 *) :
9532 ;;
9533 esac
9534 if test "x$enable_compiler_warnings" != xmax; then
9535 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9536 fi
9537 fi
9538 fi
9539 fi
9540 elif test "x$enable_compiler_warnings" = xno; then
9541 kpse_cv_warning_cflags=
9542 else
9543 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9544 fi ;;
9545 esac
9546 fi
9547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9548 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9549 WARNING_CFLAGS=$kpse_cv_warning_cflags
9550
9551
9552
9553
9554
9555
9556
9557 # end of kpse_basic macro.
9558 echo 'tldbg:KPSE_BASIC done (pkg=tex4htk, amopt=)' >&5
9559
9560 # am_prog_ar must be called before lt_init.
9561
9562 if test -n "$ac_tool_prefix"; then
9563 for ac_prog in ar lib "link -lib"
9564 do
9565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 printf %s "checking for $ac_word... " >&6; }
9569 if test ${ac_cv_prog_AR+y}
9570 then :
9571 printf %s "(cached) " >&6
9572 else case e in #(
9573 e) if test -n "$AR"; then
9574 ac_cv_prog_AR="$AR" # Let the user override the test.
9575 else
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $PATH
9578 do
9579 IFS=$as_save_IFS
9580 case $as_dir in #(((
9581 '') as_dir=./ ;;
9582 */) ;;
9583 *) as_dir=$as_dir/ ;;
9584 esac
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9587 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9589 break 2
9590 fi
9591 done
9592 done
9593 IFS=$as_save_IFS
9594
9595 fi ;;
9596 esac
9597 fi
9598 AR=$ac_cv_prog_AR
9599 if test -n "$AR"; then
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9601 printf "%s\n" "$AR" >&6; }
9602 else
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 printf "%s\n" "no" >&6; }
9605 fi
9606
9607
9608 test -n "$AR" && break
9609 done
9610 fi
9611 if test -z "$AR"; then
9612 ac_ct_AR=$AR
9613 for ac_prog in ar lib "link -lib"
9614 do
9615 # Extract the first word of "$ac_prog", so it can be a program name with args.
9616 set dummy $ac_prog; ac_word=$2
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 printf %s "checking for $ac_word... " >&6; }
9619 if test ${ac_cv_prog_ac_ct_AR+y}
9620 then :
9621 printf %s "(cached) " >&6
9622 else case e in #(
9623 e) if test -n "$ac_ct_AR"; then
9624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9625 else
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9628 do
9629 IFS=$as_save_IFS
9630 case $as_dir in #(((
9631 '') as_dir=./ ;;
9632 */) ;;
9633 *) as_dir=$as_dir/ ;;
9634 esac
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9637 ac_cv_prog_ac_ct_AR="$ac_prog"
9638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9639 break 2
9640 fi
9641 done
9642 done
9643 IFS=$as_save_IFS
9644
9645 fi ;;
9646 esac
9647 fi
9648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9649 if test -n "$ac_ct_AR"; then
9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9651 printf "%s\n" "$ac_ct_AR" >&6; }
9652 else
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654 printf "%s\n" "no" >&6; }
9655 fi
9656
9657
9658 test -n "$ac_ct_AR" && break
9659 done
9660
9661 if test "x$ac_ct_AR" = x; then
9662 AR="false"
9663 else
9664 case $cross_compiling:$ac_tool_warned in
9665 yes:)
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9667 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9668 ac_tool_warned=yes ;;
9669 esac
9670 AR=$ac_ct_AR
9671 fi
9672 fi
9673
9674 : ${AR=ar}
9675 : ${ARFLAGS=cr}
9676
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9678 printf %s "checking the archiver ($AR) interface... " >&6; }
9679 if test ${am_cv_ar_interface+y}
9680 then :
9681 printf %s "(cached) " >&6
9682 else case e in #(
9683 e) ac_ext=c
9684 ac_cpp='$CPP $CPPFLAGS'
9685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9688
9689 am_cv_ar_interface=ar
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 int some_variable = 0;
9693 _ACEOF
9694 if ac_fn_c_try_compile "$LINENO"
9695 then :
9696 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9698 (eval $am_ar_try) 2>&5
9699 ac_status=$?
9700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9701 test $ac_status = 0; }
9702 if test "$ac_status" -eq 0; then
9703 am_cv_ar_interface=ar
9704 else
9705 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9707 (eval $am_ar_try) 2>&5
9708 ac_status=$?
9709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9710 test $ac_status = 0; }
9711 if test "$ac_status" -eq 0; then
9712 am_cv_ar_interface=lib
9713 else
9714 am_cv_ar_interface=unknown
9715 fi
9716 fi
9717 rm -f conftest.lib libconftest.a
9718
9719 fi
9720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9721 ac_ext=c
9722 ac_cpp='$CPP $CPPFLAGS'
9723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9726 ;;
9727 esac
9728 fi
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9730 printf "%s\n" "$am_cv_ar_interface" >&6; }
9731
9732 case $am_cv_ar_interface in
9733 ar)
9734 ;;
9735 lib)
9736 # Microsoft lib, so override with the ar-lib wrapper script.
9737 # FIXME: It is wrong to rewrite AR.
9738 # But if we don't then we get into trouble of one sort or another.
9739 # A longer-term fix would be to have automake use am__AR in this case,
9740 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9741 # similar.
9742 AR="$am_aux_dir/ar-lib $AR"
9743 ;;
9744 unknown)
9745 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9746 ;;
9747 esac
9748
9749 # (end am_prog_ar)
9750 # starting lt_prereq + lt_init.
9751
9752
9753
9754
9755
9756 # Set options
9757 enable_win32_dll=yes
9758
9759 case $host in
9760 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9761 if test -n "$ac_tool_prefix"; then
9762 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9763 set dummy ${ac_tool_prefix}as; ac_word=$2
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 printf %s "checking for $ac_word... " >&6; }
9766 if test ${ac_cv_prog_AS+y}
9767 then :
9768 printf %s "(cached) " >&6
9769 else case e in #(
9770 e) if test -n "$AS"; then
9771 ac_cv_prog_AS="$AS" # Let the user override the test.
9772 else
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9775 do
9776 IFS=$as_save_IFS
9777 case $as_dir in #(((
9778 '') as_dir=./ ;;
9779 */) ;;
9780 *) as_dir=$as_dir/ ;;
9781 esac
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9784 ac_cv_prog_AS="${ac_tool_prefix}as"
9785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788 done
9789 done
9790 IFS=$as_save_IFS
9791
9792 fi ;;
9793 esac
9794 fi
9795 AS=$ac_cv_prog_AS
9796 if test -n "$AS"; then
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9798 printf "%s\n" "$AS" >&6; }
9799 else
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 printf "%s\n" "no" >&6; }
9802 fi
9803
9804
9805 fi
9806 if test -z "$ac_cv_prog_AS"; then
9807 ac_ct_AS=$AS
9808 # Extract the first word of "as", so it can be a program name with args.
9809 set dummy as; ac_word=$2
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 printf %s "checking for $ac_word... " >&6; }
9812 if test ${ac_cv_prog_ac_ct_AS+y}
9813 then :
9814 printf %s "(cached) " >&6
9815 else case e in #(
9816 e) if test -n "$ac_ct_AS"; then
9817 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9818 else
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $PATH
9821 do
9822 IFS=$as_save_IFS
9823 case $as_dir in #(((
9824 '') as_dir=./ ;;
9825 */) ;;
9826 *) as_dir=$as_dir/ ;;
9827 esac
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9830 ac_cv_prog_ac_ct_AS="as"
9831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9832 break 2
9833 fi
9834 done
9835 done
9836 IFS=$as_save_IFS
9837
9838 fi ;;
9839 esac
9840 fi
9841 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9842 if test -n "$ac_ct_AS"; then
9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9844 printf "%s\n" "$ac_ct_AS" >&6; }
9845 else
9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 printf "%s\n" "no" >&6; }
9848 fi
9849
9850 if test "x$ac_ct_AS" = x; then
9851 AS="false"
9852 else
9853 case $cross_compiling:$ac_tool_warned in
9854 yes:)
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9857 ac_tool_warned=yes ;;
9858 esac
9859 AS=$ac_ct_AS
9860 fi
9861 else
9862 AS="$ac_cv_prog_AS"
9863 fi
9864
9865 if test -n "$ac_tool_prefix"; then
9866 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9867 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 printf %s "checking for $ac_word... " >&6; }
9870 if test ${ac_cv_prog_DLLTOOL+y}
9871 then :
9872 printf %s "(cached) " >&6
9873 else case e in #(
9874 e) if test -n "$DLLTOOL"; then
9875 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9876 else
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9879 do
9880 IFS=$as_save_IFS
9881 case $as_dir in #(((
9882 '') as_dir=./ ;;
9883 */) ;;
9884 *) as_dir=$as_dir/ ;;
9885 esac
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9888 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9890 break 2
9891 fi
9892 done
9893 done
9894 IFS=$as_save_IFS
9895
9896 fi ;;
9897 esac
9898 fi
9899 DLLTOOL=$ac_cv_prog_DLLTOOL
9900 if test -n "$DLLTOOL"; then
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9902 printf "%s\n" "$DLLTOOL" >&6; }
9903 else
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 printf "%s\n" "no" >&6; }
9906 fi
9907
9908
9909 fi
9910 if test -z "$ac_cv_prog_DLLTOOL"; then
9911 ac_ct_DLLTOOL=$DLLTOOL
9912 # Extract the first word of "dlltool", so it can be a program name with args.
9913 set dummy dlltool; ac_word=$2
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915 printf %s "checking for $ac_word... " >&6; }
9916 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9917 then :
9918 printf %s "(cached) " >&6
9919 else case e in #(
9920 e) if test -n "$ac_ct_DLLTOOL"; then
9921 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9922 else
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9925 do
9926 IFS=$as_save_IFS
9927 case $as_dir in #(((
9928 '') as_dir=./ ;;
9929 */) ;;
9930 *) as_dir=$as_dir/ ;;
9931 esac
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9934 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9936 break 2
9937 fi
9938 done
9939 done
9940 IFS=$as_save_IFS
9941
9942 fi ;;
9943 esac
9944 fi
9945 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9946 if test -n "$ac_ct_DLLTOOL"; then
9947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9948 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9949 else
9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 printf "%s\n" "no" >&6; }
9952 fi
9953
9954 if test "x$ac_ct_DLLTOOL" = x; then
9955 DLLTOOL="false"
9956 else
9957 case $cross_compiling:$ac_tool_warned in
9958 yes:)
9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9961 ac_tool_warned=yes ;;
9962 esac
9963 DLLTOOL=$ac_ct_DLLTOOL
9964 fi
9965 else
9966 DLLTOOL="$ac_cv_prog_DLLTOOL"
9967 fi
9968
9969 if test -n "$ac_tool_prefix"; then
9970 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9971 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973 printf %s "checking for $ac_word... " >&6; }
9974 if test ${ac_cv_prog_OBJDUMP+y}
9975 then :
9976 printf %s "(cached) " >&6
9977 else case e in #(
9978 e) if test -n "$OBJDUMP"; then
9979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9980 else
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9983 do
9984 IFS=$as_save_IFS
9985 case $as_dir in #(((
9986 '') as_dir=./ ;;
9987 */) ;;
9988 *) as_dir=$as_dir/ ;;
9989 esac
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9992 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9994 break 2
9995 fi
9996 done
9997 done
9998 IFS=$as_save_IFS
9999
10000 fi ;;
10001 esac
10002 fi
10003 OBJDUMP=$ac_cv_prog_OBJDUMP
10004 if test -n "$OBJDUMP"; then
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10006 printf "%s\n" "$OBJDUMP" >&6; }
10007 else
10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 printf "%s\n" "no" >&6; }
10010 fi
10011
10012
10013 fi
10014 if test -z "$ac_cv_prog_OBJDUMP"; then
10015 ac_ct_OBJDUMP=$OBJDUMP
10016 # Extract the first word of "objdump", so it can be a program name with args.
10017 set dummy objdump; ac_word=$2
10018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 printf %s "checking for $ac_word... " >&6; }
10020 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10021 then :
10022 printf %s "(cached) " >&6
10023 else case e in #(
10024 e) if test -n "$ac_ct_OBJDUMP"; then
10025 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10026 else
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10029 do
10030 IFS=$as_save_IFS
10031 case $as_dir in #(((
10032 '') as_dir=./ ;;
10033 */) ;;
10034 *) as_dir=$as_dir/ ;;
10035 esac
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10038 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042 done
10043 done
10044 IFS=$as_save_IFS
10045
10046 fi ;;
10047 esac
10048 fi
10049 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10050 if test -n "$ac_ct_OBJDUMP"; then
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10052 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10053 else
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 printf "%s\n" "no" >&6; }
10056 fi
10057
10058 if test "x$ac_ct_OBJDUMP" = x; then
10059 OBJDUMP="false"
10060 else
10061 case $cross_compiling:$ac_tool_warned in
10062 yes:)
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10064 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10065 ac_tool_warned=yes ;;
10066 esac
10067 OBJDUMP=$ac_ct_OBJDUMP
10068 fi
10069 else
10070 OBJDUMP="$ac_cv_prog_OBJDUMP"
10071 fi
10072
10073 ;;
10074 esac
10075
10076 test -z "$AS" && AS=as
10077
10078
10079
10080
10081
10082 test -z "$DLLTOOL" && DLLTOOL=dlltool
10083
10084
10085
10086
10087
10088 test -z "$OBJDUMP" && OBJDUMP=objdump
10089
10090
10091
10092
10093
10094
10095
10096 enable_dlopen=no
10097
10098
10099
10100 # Check whether --enable-shared was given.
10101 if test ${enable_shared+y}
10102 then :
10103 enableval=$enable_shared; p=${PACKAGE-default}
10104 case $enableval in
10105 yes) enable_shared=yes ;;
10106 no) enable_shared=no ;;
10107 *)
10108 enable_shared=no
10109 # Look at the argument we got. We use all the common list separators.
10110 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10111 for pkg in $enableval; do
10112 IFS=$lt_save_ifs
10113 if test "X$pkg" = "X$p"; then
10114 enable_shared=yes
10115 fi
10116 done
10117 IFS=$lt_save_ifs
10118 ;;
10119 esac
10120 else case e in #(
10121 e) enable_shared=yes ;;
10122 esac
10123 fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133 # Check whether --enable-static was given.
10134 if test ${enable_static+y}
10135 then :
10136 enableval=$enable_static; p=${PACKAGE-default}
10137 case $enableval in
10138 yes) enable_static=yes ;;
10139 no) enable_static=no ;;
10140 *)
10141 enable_static=no
10142 # Look at the argument we got. We use all the common list separators.
10143 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10144 for pkg in $enableval; do
10145 IFS=$lt_save_ifs
10146 if test "X$pkg" = "X$p"; then
10147 enable_static=yes
10148 fi
10149 done
10150 IFS=$lt_save_ifs
10151 ;;
10152 esac
10153 else case e in #(
10154 e) enable_static=yes ;;
10155 esac
10156 fi
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166 # Check whether --enable-pic was given.
10167 if test ${enable_pic+y}
10168 then :
10169 enableval=$enable_pic; lt_p=${PACKAGE-default}
10170 case $enableval in
10171 yes|no) pic_mode=$enableval ;;
10172 *)
10173 pic_mode=default
10174 # Look at the argument we got. We use all the common list separators.
10175 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10176 for lt_pkg in $enableval; do
10177 IFS=$lt_save_ifs
10178 if test "X$lt_pkg" = "X$lt_p"; then
10179 pic_mode=yes
10180 fi
10181 done
10182 IFS=$lt_save_ifs
10183 ;;
10184 esac
10185 else case e in #(
10186 e) # Check whether --with-pic was given.
10187 if test ${with_pic+y}
10188 then :
10189 withval=$with_pic; lt_p=${PACKAGE-default}
10190 case $withval in
10191 yes|no) pic_mode=$withval ;;
10192 *)
10193 pic_mode=default
10194 # Look at the argument we got. We use all the common list separators.
10195 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10196 for lt_pkg in $withval; do
10197 IFS=$lt_save_ifs
10198 if test "X$lt_pkg" = "X$lt_p"; then
10199 pic_mode=yes
10200 fi
10201 done
10202 IFS=$lt_save_ifs
10203 ;;
10204 esac
10205 else case e in #(
10206 e) pic_mode=default ;;
10207 esac
10208 fi
10209
10210 ;;
10211 esac
10212 fi
10213
10214
10215
10216
10217
10218
10219
10220
10221 # Check whether --enable-fast-install was given.
10222 if test ${enable_fast_install+y}
10223 then :
10224 enableval=$enable_fast_install; p=${PACKAGE-default}
10225 case $enableval in
10226 yes) enable_fast_install=yes ;;
10227 no) enable_fast_install=no ;;
10228 *)
10229 enable_fast_install=no
10230 # Look at the argument we got. We use all the common list separators.
10231 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10232 for pkg in $enableval; do
10233 IFS=$lt_save_ifs
10234 if test "X$pkg" = "X$p"; then
10235 enable_fast_install=yes
10236 fi
10237 done
10238 IFS=$lt_save_ifs
10239 ;;
10240 esac
10241 else case e in #(
10242 e) enable_fast_install=yes ;;
10243 esac
10244 fi
10245
10246
10247
10248
10249
10250
10251
10252
10253 shared_archive_member_spec=
10254 case $host,$enable_shared in
10255 power*-*-aix[5-9]*,yes)
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10257 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10258 # Check whether --enable-aix-soname was given.
10259 if test ${enable_aix_soname+y}
10260 then :
10261 enableval=$enable_aix_soname; case $enableval in
10262 aix|svr4|both)
10263 ;;
10264 *)
10265 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10266 ;;
10267 esac
10268 lt_cv_with_aix_soname=$enable_aix_soname
10269 else case e in #(
10270 e) # Check whether --with-aix-soname was given.
10271 if test ${with_aix_soname+y}
10272 then :
10273 withval=$with_aix_soname; case $withval in
10274 aix|svr4|both)
10275 ;;
10276 *)
10277 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10278 ;;
10279 esac
10280 lt_cv_with_aix_soname=$with_aix_soname
10281 else case e in #(
10282 e) if test ${lt_cv_with_aix_soname+y}
10283 then :
10284 printf %s "(cached) " >&6
10285 else case e in #(
10286 e) lt_cv_with_aix_soname=aix ;;
10287 esac
10288 fi
10289 ;;
10290 esac
10291 fi
10292
10293 enable_aix_soname=$lt_cv_with_aix_soname ;;
10294 esac
10295 fi
10296
10297 with_aix_soname=$enable_aix_soname
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10299 printf "%s\n" "$with_aix_soname" >&6; }
10300 if test aix != "$with_aix_soname"; then
10301 # For the AIX way of multilib, we name the shared archive member
10302 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10303 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10304 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10305 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10306 if test 64 = "${OBJECT_MODE-32}"; then
10307 shared_archive_member_spec=shr_64
10308 else
10309 shared_archive_member_spec=shr
10310 fi
10311 fi
10312 ;;
10313 *)
10314 with_aix_soname=aix
10315 ;;
10316 esac
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327 # This can be used to rebuild libtool when needed
10328 LIBTOOL_DEPS=$ltmain
10329
10330 # Always use our own libtool.
10331 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362 test -z "$LN_S" && LN_S="ln -s"
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377 if test -n "${ZSH_VERSION+set}"; then
10378 setopt NO_GLOB_SUBST
10379 fi
10380
10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10382 printf %s "checking for objdir... " >&6; }
10383 if test ${lt_cv_objdir+y}
10384 then :
10385 printf %s "(cached) " >&6
10386 else case e in #(
10387 e) rm -f .libs 2>/dev/null
10388 mkdir .libs 2>/dev/null
10389 if test -d .libs; then
10390 lt_cv_objdir=.libs
10391 else
10392 # MS-DOS does not allow filenames that begin with a dot.
10393 lt_cv_objdir=_libs
10394 fi
10395 rmdir .libs 2>/dev/null ;;
10396 esac
10397 fi
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10399 printf "%s\n" "$lt_cv_objdir" >&6; }
10400 objdir=$lt_cv_objdir
10401
10402
10403
10404
10405
10406 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10407
10408
10409
10410
10411 case $host_os in
10412 aix3*)
10413 # AIX sometimes has problems with the GCC collect2 program. For some
10414 # reason, if we set the COLLECT_NAMES environment variable, the problems
10415 # vanish in a puff of smoke.
10416 if test set != "${COLLECT_NAMES+set}"; then
10417 COLLECT_NAMES=
10418 export COLLECT_NAMES
10419 fi
10420 ;;
10421 esac
10422
10423 # Global variables:
10424 ofile=libtool
10425 can_build_shared=yes
10426
10427 # All known linkers require a '.a' archive for static linking (except MSVC and
10428 # ICC, which need '.lib').
10429 libext=a
10430
10431 with_gnu_ld=$lt_cv_prog_gnu_ld
10432
10433 old_CC=$CC
10434 old_CFLAGS=$CFLAGS
10435
10436 # Set sane defaults for various variables
10437 test -z "$CC" && CC=cc
10438 test -z "$LTCC" && LTCC=$CC
10439 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10440 test -z "$LD" && LD=ld
10441 test -z "$ac_objext" && ac_objext=o
10442
10443 func_cc_basename $compiler
10444 cc_basename=$func_cc_basename_result
10445
10446
10447 # Only perform the check for file, if the check method requires it
10448 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10449 case $deplibs_check_method in
10450 file_magic*)
10451 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10453 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10454 if test ${lt_cv_path_MAGIC_CMD+y}
10455 then :
10456 printf %s "(cached) " >&6
10457 else case e in #(
10458 e) case $MAGIC_CMD in
10459 [\\/*] | ?:[\\/]*)
10460 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10461 ;;
10462 *)
10463 lt_save_MAGIC_CMD=$MAGIC_CMD
10464 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10465 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10466 for ac_dir in $ac_dummy; do
10467 IFS=$lt_save_ifs
10468 test -z "$ac_dir" && ac_dir=.
10469 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10470 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10471 if test -n "$file_magic_test_file"; then
10472 case $deplibs_check_method in
10473 "file_magic "*)
10474 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10475 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10476 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10477 $EGREP "$file_magic_regex" > /dev/null; then
10478 :
10479 else
10480 cat <<_LT_EOF 1>&2
10481
10482 *** Warning: the command libtool uses to detect shared libraries,
10483 *** $file_magic_cmd, produces output that libtool cannot recognize.
10484 *** The result is that libtool may fail to recognize shared libraries
10485 *** as such. This will affect the creation of libtool libraries that
10486 *** depend on shared libraries, but programs linked with such libtool
10487 *** libraries will work regardless of this problem. Nevertheless, you
10488 *** may want to report the problem to your system manager and/or to
10489 *** [email protected]
10490
10491 _LT_EOF
10492 fi ;;
10493 esac
10494 fi
10495 break
10496 fi
10497 done
10498 IFS=$lt_save_ifs
10499 MAGIC_CMD=$lt_save_MAGIC_CMD
10500 ;;
10501 esac ;;
10502 esac
10503 fi
10504
10505 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10506 if test -n "$MAGIC_CMD"; then
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10508 printf "%s\n" "$MAGIC_CMD" >&6; }
10509 else
10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 printf "%s\n" "no" >&6; }
10512 fi
10513
10514
10515
10516
10517
10518 if test -z "$lt_cv_path_MAGIC_CMD"; then
10519 if test -n "$ac_tool_prefix"; then
10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10521 printf %s "checking for file... " >&6; }
10522 if test ${lt_cv_path_MAGIC_CMD+y}
10523 then :
10524 printf %s "(cached) " >&6
10525 else case e in #(
10526 e) case $MAGIC_CMD in
10527 [\\/*] | ?:[\\/]*)
10528 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10529 ;;
10530 *)
10531 lt_save_MAGIC_CMD=$MAGIC_CMD
10532 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10534 for ac_dir in $ac_dummy; do
10535 IFS=$lt_save_ifs
10536 test -z "$ac_dir" && ac_dir=.
10537 if test -f "$ac_dir/file"; then
10538 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10539 if test -n "$file_magic_test_file"; then
10540 case $deplibs_check_method in
10541 "file_magic "*)
10542 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10543 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10545 $EGREP "$file_magic_regex" > /dev/null; then
10546 :
10547 else
10548 cat <<_LT_EOF 1>&2
10549
10550 *** Warning: the command libtool uses to detect shared libraries,
10551 *** $file_magic_cmd, produces output that libtool cannot recognize.
10552 *** The result is that libtool may fail to recognize shared libraries
10553 *** as such. This will affect the creation of libtool libraries that
10554 *** depend on shared libraries, but programs linked with such libtool
10555 *** libraries will work regardless of this problem. Nevertheless, you
10556 *** may want to report the problem to your system manager and/or to
10557 *** [email protected]
10558
10559 _LT_EOF
10560 fi ;;
10561 esac
10562 fi
10563 break
10564 fi
10565 done
10566 IFS=$lt_save_ifs
10567 MAGIC_CMD=$lt_save_MAGIC_CMD
10568 ;;
10569 esac ;;
10570 esac
10571 fi
10572
10573 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10574 if test -n "$MAGIC_CMD"; then
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10576 printf "%s\n" "$MAGIC_CMD" >&6; }
10577 else
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579 printf "%s\n" "no" >&6; }
10580 fi
10581
10582
10583 else
10584 MAGIC_CMD=:
10585 fi
10586 fi
10587
10588 fi
10589 ;;
10590 esac
10591
10592 # Use C for the default configuration in the libtool script
10593
10594 lt_save_CC=$CC
10595 ac_ext=c
10596 ac_cpp='$CPP $CPPFLAGS'
10597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10600
10601
10602 # Source file extension for C test sources.
10603 ac_ext=c
10604
10605 # Object file extension for compiled C test sources.
10606 objext=o
10607 objext=$objext
10608
10609 # Code to be used in simple compile tests
10610 lt_simple_compile_test_code="int some_variable = 0;"
10611
10612 # Code to be used in simple link tests
10613 lt_simple_link_test_code='int main(void){return(0);}'
10614
10615
10616
10617
10618
10619
10620
10621 # If no C compiler was specified, use CC.
10622 LTCC=${LTCC-"$CC"}
10623
10624 # If no C compiler flags were specified, use CFLAGS.
10625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10626
10627 # Allow CC to be a program name with arguments.
10628 compiler=$CC
10629
10630 # Save the default compiler, since it gets overwritten when the other
10631 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10632 compiler_DEFAULT=$CC
10633
10634 # save warnings/boilerplate of simple test code
10635 ac_outfile=conftest.$ac_objext
10636 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10637 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10638 _lt_compiler_boilerplate=`cat conftest.err`
10639 $RM conftest*
10640
10641 ac_outfile=conftest.$ac_objext
10642 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10643 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10644 _lt_linker_boilerplate=`cat conftest.err`
10645 $RM -r conftest*
10646
10647
10648 ## CAVEAT EMPTOR:
10649 ## There is no encapsulation within the following macros, do not change
10650 ## the running order or otherwise move them around unless you know exactly
10651 ## what you are doing...
10652 if test -n "$compiler"; then
10653
10654 lt_prog_compiler_no_builtin_flag=
10655
10656 if test yes = "$GCC"; then
10657 case $cc_basename in
10658 nvcc*)
10659 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10660 *)
10661 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10662 esac
10663
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10665 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10666 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10667 then :
10668 printf %s "(cached) " >&6
10669 else case e in #(
10670 e) lt_cv_prog_compiler_rtti_exceptions=no
10671 ac_outfile=conftest.$ac_objext
10672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10673 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10674 # Insert the option either (1) after the last *FLAGS variable, or
10675 # (2) before a word containing "conftest.", or (3) at the end.
10676 # Note that $ac_compile itself does not contain backslashes and begins
10677 # with a dollar sign (not a hyphen), so the echo should work correctly.
10678 # The option is referenced via a variable to avoid confusing sed.
10679 lt_compile=`echo "$ac_compile" | $SED \
10680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10682 -e 's:$: $lt_compiler_flag:'`
10683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10684 (eval "$lt_compile" 2>conftest.err)
10685 ac_status=$?
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 if (exit $ac_status) && test -s "$ac_outfile"; then
10689 # The compiler can only warn and ignore the option if not recognized
10690 # So say no if there are warnings other than the usual output.
10691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10694 lt_cv_prog_compiler_rtti_exceptions=yes
10695 fi
10696 fi
10697 $RM conftest*
10698 ;;
10699 esac
10700 fi
10701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10702 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10703
10704 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10705 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10706 else
10707 :
10708 fi
10709
10710 fi
10711
10712
10713
10714
10715
10716
10717 lt_prog_compiler_wl=
10718 lt_prog_compiler_pic=
10719 lt_prog_compiler_static=
10720
10721
10722 if test yes = "$GCC"; then
10723 lt_prog_compiler_wl='-Wl,'
10724 lt_prog_compiler_static='-static'
10725
10726 case $host_os in
10727 aix*)
10728 # All AIX code is PIC.
10729 if test ia64 = "$host_cpu"; then
10730 # AIX 5 now supports IA64 processor
10731 lt_prog_compiler_static='-Bstatic'
10732 fi
10733 lt_prog_compiler_pic='-fPIC'
10734 ;;
10735
10736 amigaos*)
10737 case $host_cpu in
10738 powerpc)
10739 # see comment about AmigaOS4 .so support
10740 lt_prog_compiler_pic='-fPIC'
10741 ;;
10742 m68k)
10743 # FIXME: we need at least 68020 code to build shared libraries, but
10744 # adding the '-m68020' flag to GCC prevents building anything better,
10745 # like '-m68040'.
10746 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10747 ;;
10748 esac
10749 ;;
10750
10751 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10752 # PIC is the default for these OSes.
10753 ;;
10754
10755 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10756 # This hack is so that the source file can tell whether it is being
10757 # built for inclusion in a dll (and should export symbols for example).
10758 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10759 # (--disable-auto-import) libraries
10760 lt_prog_compiler_pic='-DDLL_EXPORT'
10761 case $host_os in
10762 os2*)
10763 lt_prog_compiler_static='$wl-static'
10764 ;;
10765 esac
10766 ;;
10767
10768 darwin* | rhapsody*)
10769 # PIC is the default on this platform
10770 # Common symbols not allowed in MH_DYLIB files
10771 lt_prog_compiler_pic='-fno-common'
10772 ;;
10773
10774 haiku*)
10775 # PIC is the default for Haiku.
10776 # The "-static" flag exists, but is broken.
10777 lt_prog_compiler_static=
10778 ;;
10779
10780 hpux*)
10781 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10782 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10783 # sets the default TLS model and affects inlining.
10784 case $host_cpu in
10785 hppa*64*)
10786 # +Z the default
10787 ;;
10788 *)
10789 lt_prog_compiler_pic='-fPIC'
10790 ;;
10791 esac
10792 ;;
10793
10794 interix[3-9]*)
10795 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10796 # Instead, we relocate shared libraries at runtime.
10797 ;;
10798
10799 msdosdjgpp*)
10800 # Just because we use GCC doesn't mean we suddenly get shared libraries
10801 # on systems that don't support them.
10802 lt_prog_compiler_can_build_shared=no
10803 enable_shared=no
10804 ;;
10805
10806 *nto* | *qnx*)
10807 # QNX uses GNU C++, but need to define -shared option too, otherwise
10808 # it will coredump.
10809 lt_prog_compiler_pic='-fPIC -shared'
10810 ;;
10811
10812 sysv4*MP*)
10813 if test -d /usr/nec; then
10814 lt_prog_compiler_pic=-Kconform_pic
10815 fi
10816 ;;
10817
10818 *)
10819 lt_prog_compiler_pic='-fPIC'
10820 ;;
10821 esac
10822
10823 case $cc_basename in
10824 nvcc*) # Cuda Compiler Driver 2.2
10825 lt_prog_compiler_wl='-Xlinker '
10826 if test -n "$lt_prog_compiler_pic"; then
10827 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10828 fi
10829 ;;
10830 esac
10831 else
10832 # PORTME Check for flag to pass linker flags through the system compiler.
10833 case $host_os in
10834 aix*)
10835 lt_prog_compiler_wl='-Wl,'
10836 if test ia64 = "$host_cpu"; then
10837 # AIX 5 now supports IA64 processor
10838 lt_prog_compiler_static='-Bstatic'
10839 else
10840 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10841 fi
10842 ;;
10843
10844 darwin* | rhapsody*)
10845 # PIC is the default on this platform
10846 # Common symbols not allowed in MH_DYLIB files
10847 lt_prog_compiler_pic='-fno-common'
10848 case $cc_basename in
10849 nagfor*)
10850 # NAG Fortran compiler
10851 lt_prog_compiler_wl='-Wl,-Wl,,'
10852 lt_prog_compiler_pic='-PIC'
10853 lt_prog_compiler_static='-Bstatic'
10854 ;;
10855 esac
10856 ;;
10857
10858 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10859 # This hack is so that the source file can tell whether it is being
10860 # built for inclusion in a dll (and should export symbols for example).
10861 lt_prog_compiler_pic='-DDLL_EXPORT'
10862 case $host_os in
10863 os2*)
10864 lt_prog_compiler_static='$wl-static'
10865 ;;
10866 esac
10867 ;;
10868
10869 hpux9* | hpux10* | hpux11*)
10870 lt_prog_compiler_wl='-Wl,'
10871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10872 # not for PA HP-UX.
10873 case $host_cpu in
10874 hppa*64*|ia64*)
10875 # +Z the default
10876 ;;
10877 *)
10878 lt_prog_compiler_pic='+Z'
10879 ;;
10880 esac
10881 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10882 lt_prog_compiler_static='$wl-a ${wl}archive'
10883 ;;
10884
10885 irix5* | irix6* | nonstopux*)
10886 lt_prog_compiler_wl='-Wl,'
10887 # PIC (with -KPIC) is the default.
10888 lt_prog_compiler_static='-non_shared'
10889 ;;
10890
10891 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10892 case $cc_basename in
10893 # old Intel for x86_64, which still supported -KPIC.
10894 ecc*)
10895 lt_prog_compiler_wl='-Wl,'
10896 lt_prog_compiler_pic='-KPIC'
10897 lt_prog_compiler_static='-static'
10898 ;;
10899 *flang* | ftn | f18* | f95*)
10900 # Flang compiler.
10901 lt_prog_compiler_wl='-Wl,'
10902 lt_prog_compiler_pic='-fPIC'
10903 lt_prog_compiler_static='-static'
10904 ;;
10905 # icc used to be incompatible with GCC.
10906 # ICC 10 doesn't accept -KPIC any more.
10907 icc* | ifort*)
10908 lt_prog_compiler_wl='-Wl,'
10909 lt_prog_compiler_pic='-fPIC'
10910 lt_prog_compiler_static='-static'
10911 ;;
10912 # Lahey Fortran 8.1.
10913 lf95*)
10914 lt_prog_compiler_wl='-Wl,'
10915 lt_prog_compiler_pic='--shared'
10916 lt_prog_compiler_static='--static'
10917 ;;
10918 nagfor*)
10919 # NAG Fortran compiler
10920 lt_prog_compiler_wl='-Wl,-Wl,,'
10921 lt_prog_compiler_pic='-PIC'
10922 lt_prog_compiler_static='-Bstatic'
10923 ;;
10924 tcc*)
10925 # Fabrice Bellard et al's Tiny C Compiler
10926 lt_prog_compiler_wl='-Wl,'
10927 lt_prog_compiler_pic='-fPIC'
10928 lt_prog_compiler_static='-static'
10929 ;;
10930 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10931 # Portland Group compilers (*not* the Pentium gcc compiler,
10932 # which looks to be a dead project)
10933 lt_prog_compiler_wl='-Wl,'
10934 lt_prog_compiler_pic='-fpic'
10935 lt_prog_compiler_static='-Bstatic'
10936 ;;
10937 ccc*)
10938 lt_prog_compiler_wl='-Wl,'
10939 # All Alpha code is PIC.
10940 lt_prog_compiler_static='-non_shared'
10941 ;;
10942 xl* | bgxl* | bgf* | mpixl*)
10943 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10944 lt_prog_compiler_wl='-Wl,'
10945 lt_prog_compiler_pic='-qpic'
10946 lt_prog_compiler_static='-qstaticlink'
10947 ;;
10948 *)
10949 case `$CC -V 2>&1 | $SED 5q` in
10950 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10951 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10952 lt_prog_compiler_pic='-KPIC'
10953 lt_prog_compiler_static='-Bstatic'
10954 lt_prog_compiler_wl=''
10955 ;;
10956 *Sun\ F* | *Sun*Fortran*)
10957 lt_prog_compiler_pic='-KPIC'
10958 lt_prog_compiler_static='-Bstatic'
10959 lt_prog_compiler_wl='-Qoption ld '
10960 ;;
10961 *Sun\ C*)
10962 # Sun C 5.9
10963 lt_prog_compiler_pic='-KPIC'
10964 lt_prog_compiler_static='-Bstatic'
10965 lt_prog_compiler_wl='-Wl,'
10966 ;;
10967 *Intel*\ [CF]*Compiler*)
10968 lt_prog_compiler_wl='-Wl,'
10969 lt_prog_compiler_pic='-fPIC'
10970 lt_prog_compiler_static='-static'
10971 ;;
10972 *Portland\ Group*)
10973 lt_prog_compiler_wl='-Wl,'
10974 lt_prog_compiler_pic='-fpic'
10975 lt_prog_compiler_static='-Bstatic'
10976 ;;
10977 esac
10978 ;;
10979 esac
10980 ;;
10981
10982 newsos6)
10983 lt_prog_compiler_pic='-KPIC'
10984 lt_prog_compiler_static='-Bstatic'
10985 ;;
10986
10987 *-mlibc)
10988 lt_prog_compiler_wl='-Wl,'
10989 lt_prog_compiler_pic='-fPIC'
10990 lt_prog_compiler_static='-static'
10991 ;;
10992
10993 *nto* | *qnx*)
10994 # QNX uses GNU C++, but need to define -shared option too, otherwise
10995 # it will coredump.
10996 lt_prog_compiler_pic='-fPIC -shared'
10997 ;;
10998
10999 osf3* | osf4* | osf5*)
11000 lt_prog_compiler_wl='-Wl,'
11001 # All OSF/1 code is PIC.
11002 lt_prog_compiler_static='-non_shared'
11003 ;;
11004
11005 rdos*)
11006 lt_prog_compiler_static='-non_shared'
11007 ;;
11008
11009 serenity*)
11010 ;;
11011
11012 solaris*)
11013 lt_prog_compiler_pic='-KPIC'
11014 lt_prog_compiler_static='-Bstatic'
11015 case $cc_basename in
11016 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11017 lt_prog_compiler_wl='-Qoption ld ';;
11018 *)
11019 lt_prog_compiler_wl='-Wl,';;
11020 esac
11021 ;;
11022
11023 sunos4*)
11024 lt_prog_compiler_wl='-Qoption ld '
11025 lt_prog_compiler_pic='-PIC'
11026 lt_prog_compiler_static='-Bstatic'
11027 ;;
11028
11029 sysv4 | sysv4.2uw2* | sysv4.3*)
11030 lt_prog_compiler_wl='-Wl,'
11031 lt_prog_compiler_pic='-KPIC'
11032 lt_prog_compiler_static='-Bstatic'
11033 ;;
11034
11035 sysv4*MP*)
11036 if test -d /usr/nec; then
11037 lt_prog_compiler_pic='-Kconform_pic'
11038 lt_prog_compiler_static='-Bstatic'
11039 fi
11040 ;;
11041
11042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11043 lt_prog_compiler_wl='-Wl,'
11044 lt_prog_compiler_pic='-KPIC'
11045 lt_prog_compiler_static='-Bstatic'
11046 ;;
11047
11048 unicos*)
11049 lt_prog_compiler_wl='-Wl,'
11050 lt_prog_compiler_can_build_shared=no
11051 ;;
11052
11053 uts4*)
11054 lt_prog_compiler_pic='-pic'
11055 lt_prog_compiler_static='-Bstatic'
11056 ;;
11057
11058 *)
11059 lt_prog_compiler_can_build_shared=no
11060 ;;
11061 esac
11062 fi
11063
11064 case $host_os in
11065 # For platforms that do not support PIC, -DPIC is meaningless:
11066 *djgpp*)
11067 lt_prog_compiler_pic=
11068 ;;
11069 *)
11070 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11071 ;;
11072 esac
11073
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11075 printf %s "checking for $compiler option to produce PIC... " >&6; }
11076 if test ${lt_cv_prog_compiler_pic+y}
11077 then :
11078 printf %s "(cached) " >&6
11079 else case e in #(
11080 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11081 esac
11082 fi
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11084 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11085 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11086
11087 #
11088 # Check to make sure the PIC flag actually works.
11089 #
11090 if test -n "$lt_prog_compiler_pic"; then
11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11092 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11093 if test ${lt_cv_prog_compiler_pic_works+y}
11094 then :
11095 printf %s "(cached) " >&6
11096 else case e in #(
11097 e) lt_cv_prog_compiler_pic_works=no
11098 ac_outfile=conftest.$ac_objext
11099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11101 # Insert the option either (1) after the last *FLAGS variable, or
11102 # (2) before a word containing "conftest.", or (3) at the end.
11103 # Note that $ac_compile itself does not contain backslashes and begins
11104 # with a dollar sign (not a hyphen), so the echo should work correctly.
11105 # The option is referenced via a variable to avoid confusing sed.
11106 lt_compile=`echo "$ac_compile" | $SED \
11107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11109 -e 's:$: $lt_compiler_flag:'`
11110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11111 (eval "$lt_compile" 2>conftest.err)
11112 ac_status=$?
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 if (exit $ac_status) && test -s "$ac_outfile"; then
11116 # The compiler can only warn and ignore the option if not recognized
11117 # So say no if there are warnings other than the usual output.
11118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11121 lt_cv_prog_compiler_pic_works=yes
11122 fi
11123 fi
11124 $RM conftest*
11125 ;;
11126 esac
11127 fi
11128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11129 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11130
11131 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11132 case $lt_prog_compiler_pic in
11133 "" | " "*) ;;
11134 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11135 esac
11136 else
11137 lt_prog_compiler_pic=
11138 lt_prog_compiler_can_build_shared=no
11139 fi
11140
11141 fi
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153 #
11154 # Check to make sure the static flag actually works.
11155 #
11156 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11158 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11159 if test ${lt_cv_prog_compiler_static_works+y}
11160 then :
11161 printf %s "(cached) " >&6
11162 else case e in #(
11163 e) lt_cv_prog_compiler_static_works=no
11164 save_LDFLAGS=$LDFLAGS
11165 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11166 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11168 # The linker can only warn and ignore the option if not recognized
11169 # So say no if there are warnings
11170 if test -s conftest.err; then
11171 # Append any errors to the config.log.
11172 cat conftest.err 1>&5
11173 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11175 if diff conftest.exp conftest.er2 >/dev/null; then
11176 lt_cv_prog_compiler_static_works=yes
11177 fi
11178 else
11179 lt_cv_prog_compiler_static_works=yes
11180 fi
11181 fi
11182 $RM -r conftest*
11183 LDFLAGS=$save_LDFLAGS
11184 ;;
11185 esac
11186 fi
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11188 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11189
11190 if test yes = "$lt_cv_prog_compiler_static_works"; then
11191 :
11192 else
11193 lt_prog_compiler_static=
11194 fi
11195
11196
11197
11198
11199
11200
11201
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11203 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11204 if test ${lt_cv_prog_compiler_c_o+y}
11205 then :
11206 printf %s "(cached) " >&6
11207 else case e in #(
11208 e) lt_cv_prog_compiler_c_o=no
11209 $RM -r conftest 2>/dev/null
11210 mkdir conftest
11211 cd conftest
11212 mkdir out
11213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11214
11215 lt_compiler_flag="-o out/conftest2.$ac_objext"
11216 # Insert the option either (1) after the last *FLAGS variable, or
11217 # (2) before a word containing "conftest.", or (3) at the end.
11218 # Note that $ac_compile itself does not contain backslashes and begins
11219 # with a dollar sign (not a hyphen), so the echo should work correctly.
11220 lt_compile=`echo "$ac_compile" | $SED \
11221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11223 -e 's:$: $lt_compiler_flag:'`
11224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11225 (eval "$lt_compile" 2>out/conftest.err)
11226 ac_status=$?
11227 cat out/conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11230 then
11231 # The compiler can only warn and ignore the option if not recognized
11232 # So say no if there are warnings
11233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11236 lt_cv_prog_compiler_c_o=yes
11237 fi
11238 fi
11239 chmod u+w . 2>&5
11240 $RM conftest*
11241 # SGI C++ compiler will create directory out/ii_files/ for
11242 # template instantiation
11243 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11244 $RM out/* && rmdir out
11245 cd ..
11246 $RM -r conftest
11247 $RM conftest*
11248 ;;
11249 esac
11250 fi
11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11252 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11253
11254
11255
11256
11257
11258
11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11260 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11261 if test ${lt_cv_prog_compiler_c_o+y}
11262 then :
11263 printf %s "(cached) " >&6
11264 else case e in #(
11265 e) lt_cv_prog_compiler_c_o=no
11266 $RM -r conftest 2>/dev/null
11267 mkdir conftest
11268 cd conftest
11269 mkdir out
11270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11271
11272 lt_compiler_flag="-o out/conftest2.$ac_objext"
11273 # Insert the option either (1) after the last *FLAGS variable, or
11274 # (2) before a word containing "conftest.", or (3) at the end.
11275 # Note that $ac_compile itself does not contain backslashes and begins
11276 # with a dollar sign (not a hyphen), so the echo should work correctly.
11277 lt_compile=`echo "$ac_compile" | $SED \
11278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11280 -e 's:$: $lt_compiler_flag:'`
11281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11282 (eval "$lt_compile" 2>out/conftest.err)
11283 ac_status=$?
11284 cat out/conftest.err >&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11287 then
11288 # The compiler can only warn and ignore the option if not recognized
11289 # So say no if there are warnings
11290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11293 lt_cv_prog_compiler_c_o=yes
11294 fi
11295 fi
11296 chmod u+w . 2>&5
11297 $RM conftest*
11298 # SGI C++ compiler will create directory out/ii_files/ for
11299 # template instantiation
11300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11301 $RM out/* && rmdir out
11302 cd ..
11303 $RM -r conftest
11304 $RM conftest*
11305 ;;
11306 esac
11307 fi
11308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11309 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11310
11311
11312
11313
11314 hard_links=nottested
11315 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11316 # do not overwrite the value of need_locks provided by the user
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11318 printf %s "checking if we can lock with hard links... " >&6; }
11319 hard_links=yes
11320 $RM conftest*
11321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11322 touch conftest.a
11323 ln conftest.a conftest.b 2>&5 || hard_links=no
11324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11326 printf "%s\n" "$hard_links" >&6; }
11327 if test no = "$hard_links"; then
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11329 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11330 need_locks=warn
11331 fi
11332 else
11333 need_locks=no
11334 fi
11335
11336
11337
11338
11339
11340
11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11342 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11343
11344 runpath_var=
11345 allow_undefined_flag=
11346 always_export_symbols=no
11347 archive_cmds=
11348 archive_expsym_cmds=
11349 compiler_needs_object=no
11350 enable_shared_with_static_runtimes=no
11351 export_dynamic_flag_spec=
11352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11353 hardcode_automatic=no
11354 hardcode_direct=no
11355 hardcode_direct_absolute=no
11356 hardcode_libdir_flag_spec=
11357 hardcode_libdir_separator=
11358 hardcode_minus_L=no
11359 hardcode_shlibpath_var=unsupported
11360 inherit_rpath=no
11361 link_all_deplibs=unknown
11362 module_cmds=
11363 module_expsym_cmds=
11364 old_archive_from_new_cmds=
11365 old_archive_from_expsyms_cmds=
11366 thread_safe_flag_spec=
11367 whole_archive_flag_spec=
11368 # include_expsyms should be a list of space-separated symbols to be *always*
11369 # included in the symbol list
11370 include_expsyms=
11371 # exclude_expsyms can be an extended regexp of symbols to exclude
11372 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11373 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11374 # as well as any symbol that contains 'd'.
11375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11377 # platforms (ab)use it in PIC code, but their linkers get confused if
11378 # the symbol is explicitly referenced. Since portable code cannot
11379 # rely on this symbol name, it's probably fine to never include it in
11380 # preloaded symbol tables.
11381 # Exclude shared library initialization/finalization symbols.
11382 extract_expsyms_cmds=
11383
11384 case $host_os in
11385 cygwin* | mingw* | windows* | pw32* | cegcc*)
11386 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11387 # When not using gcc, we currently assume that we are using
11388 # Microsoft Visual C++ or Intel C++ Compiler.
11389 if test yes != "$GCC"; then
11390 with_gnu_ld=no
11391 fi
11392 ;;
11393 interix*)
11394 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11395 with_gnu_ld=yes
11396 ;;
11397 esac
11398
11399 ld_shlibs=yes
11400
11401 # On some targets, GNU ld is compatible enough with the native linker
11402 # that we're better off using the native interface for both.
11403 lt_use_gnu_ld_interface=no
11404 if test yes = "$with_gnu_ld"; then
11405 case $host_os in
11406 aix*)
11407 # The AIX port of GNU ld has always aspired to compatibility
11408 # with the native linker. However, as the warning in the GNU ld
11409 # block says, versions before 2.19.5* couldn't really create working
11410 # shared libraries, regardless of the interface used.
11411 case `$LD -v 2>&1` in
11412 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11413 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11414 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11415 *)
11416 lt_use_gnu_ld_interface=yes
11417 ;;
11418 esac
11419 ;;
11420 *)
11421 lt_use_gnu_ld_interface=yes
11422 ;;
11423 esac
11424 fi
11425
11426 if test yes = "$lt_use_gnu_ld_interface"; then
11427 # If archive_cmds runs LD, not CC, wlarc should be empty
11428 wlarc='$wl'
11429
11430 # Set some defaults for GNU ld with shared library support. These
11431 # are reset later if shared libraries are not supported. Putting them
11432 # here allows them to be overridden if necessary.
11433 runpath_var=LD_RUN_PATH
11434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11435 export_dynamic_flag_spec='$wl--export-dynamic'
11436 # ancient GNU ld didn't support --whole-archive et. al.
11437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11438 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11439 else
11440 whole_archive_flag_spec=
11441 fi
11442 supports_anon_versioning=no
11443 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11444 *GNU\ gold*) supports_anon_versioning=yes ;;
11445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11448 *\ 2.11.*) ;; # other 2.11 versions
11449 *) supports_anon_versioning=yes ;;
11450 esac
11451
11452 # See if GNU ld supports shared libraries.
11453 case $host_os in
11454 aix[3-9]*)
11455 # On AIX/PPC, the GNU linker is very broken
11456 if test ia64 != "$host_cpu"; then
11457 ld_shlibs=no
11458 cat <<_LT_EOF 1>&2
11459
11460 *** Warning: the GNU linker, at least up to release 2.19, is reported
11461 *** to be unable to reliably create shared libraries on AIX.
11462 *** Therefore, libtool is disabling shared libraries support. If you
11463 *** really care for shared libraries, you may want to install binutils
11464 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11465 *** You will then need to restart the configuration process.
11466
11467 _LT_EOF
11468 fi
11469 ;;
11470
11471 amigaos*)
11472 case $host_cpu in
11473 powerpc)
11474 # see comment about AmigaOS4 .so support
11475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11476 archive_expsym_cmds=''
11477 ;;
11478 m68k)
11479 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)'
11480 hardcode_libdir_flag_spec='-L$libdir'
11481 hardcode_minus_L=yes
11482 ;;
11483 esac
11484 ;;
11485
11486 beos*)
11487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11488 allow_undefined_flag=unsupported
11489 # Joseph Beckenbach <[email protected]> says some releases of gcc
11490 # support --undefined. This deserves some investigation. FIXME
11491 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11492 else
11493 ld_shlibs=no
11494 fi
11495 ;;
11496
11497 cygwin* | mingw* | windows* | pw32* | cegcc*)
11498 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11499 # as there is no search path for DLLs.
11500 hardcode_libdir_flag_spec='-L$libdir'
11501 export_dynamic_flag_spec='$wl--export-all-symbols'
11502 allow_undefined_flag=unsupported
11503 always_export_symbols=no
11504 enable_shared_with_static_runtimes=yes
11505 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'
11506 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11507 file_list_spec='@'
11508
11509 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11511 # If the export-symbols file already is a .def file, use it as
11512 # is; otherwise, prepend EXPORTS...
11513 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11514 cp $export_symbols $output_objdir/$soname.def;
11515 else
11516 echo EXPORTS > $output_objdir/$soname.def;
11517 cat $export_symbols >> $output_objdir/$soname.def;
11518 fi~
11519 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11520 else
11521 ld_shlibs=no
11522 fi
11523 ;;
11524
11525 haiku*)
11526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11527 link_all_deplibs=no
11528 ;;
11529
11530 os2*)
11531 hardcode_libdir_flag_spec='-L$libdir'
11532 hardcode_minus_L=yes
11533 allow_undefined_flag=unsupported
11534 shrext_cmds=.dll
11535 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11538 $ECHO EXPORTS >> $output_objdir/$libname.def~
11539 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11540 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11541 emximp -o $lib $output_objdir/$libname.def'
11542 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11545 $ECHO EXPORTS >> $output_objdir/$libname.def~
11546 prefix_cmds="$SED"~
11547 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11548 prefix_cmds="$prefix_cmds -e 1d";
11549 fi~
11550 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11551 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11552 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11553 emximp -o $lib $output_objdir/$libname.def'
11554 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11555 enable_shared_with_static_runtimes=yes
11556 file_list_spec='@'
11557 ;;
11558
11559 interix[3-9]*)
11560 hardcode_direct=no
11561 hardcode_shlibpath_var=no
11562 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11563 export_dynamic_flag_spec='$wl-E'
11564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11565 # Instead, shared libraries are loaded at an image base (0x10000000 by
11566 # default) and relocated if they conflict, which is a slow very memory
11567 # consuming and fragmenting process. To avoid this, we pick a random,
11568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11569 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11571 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'
11572 ;;
11573
11574 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11575 tmp_diet=no
11576 if test linux-dietlibc = "$host_os"; then
11577 case $cc_basename in
11578 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11579 esac
11580 fi
11581 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11582 && test no = "$tmp_diet"
11583 then
11584 tmp_addflag=' $pic_flag'
11585 tmp_sharedflag='-shared'
11586 case $cc_basename,$host_cpu in
11587 pgcc*) # Portland Group C compiler
11588 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'
11589 tmp_addflag=' $pic_flag'
11590 ;;
11591 pgf77* | pgf90* | pgf95* | pgfortran*)
11592 # Portland Group f77 and f90 compilers
11593 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'
11594 tmp_addflag=' $pic_flag -Mnomain' ;;
11595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11596 tmp_addflag=' -i_dynamic' ;;
11597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11598 tmp_addflag=' -i_dynamic -nofor_main' ;;
11599 ifc* | ifort*) # Intel Fortran compiler
11600 tmp_addflag=' -nofor_main' ;;
11601 lf95*) # Lahey Fortran 8.1
11602 whole_archive_flag_spec=
11603 tmp_sharedflag='--shared' ;;
11604 nagfor*) # NAGFOR 5.3
11605 tmp_sharedflag='-Wl,-shared' ;;
11606 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11607 tmp_sharedflag='-qmkshrobj'
11608 tmp_addflag= ;;
11609 nvcc*) # Cuda Compiler Driver 2.2
11610 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'
11611 compiler_needs_object=yes
11612 ;;
11613 esac
11614 case `$CC -V 2>&1 | $SED 5q` in
11615 *Sun\ C*) # Sun C 5.9
11616 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'
11617 compiler_needs_object=yes
11618 tmp_sharedflag='-G' ;;
11619 *Sun\ F*) # Sun Fortran 8.3
11620 tmp_sharedflag='-G' ;;
11621 esac
11622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11623
11624 if test yes = "$supports_anon_versioning"; then
11625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11626 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11627 echo "local: *; };" >> $output_objdir/$libname.ver~
11628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11629 fi
11630
11631 case $cc_basename in
11632 tcc*)
11633 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11634 export_dynamic_flag_spec='-rdynamic'
11635 ;;
11636 xlf* | bgf* | bgxlf* | mpixlf*)
11637 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11638 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11640 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11641 if test yes = "$supports_anon_versioning"; then
11642 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11643 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11644 echo "local: *; };" >> $output_objdir/$libname.ver~
11645 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11646 fi
11647 ;;
11648 esac
11649 else
11650 ld_shlibs=no
11651 fi
11652 ;;
11653
11654 *-mlibc)
11655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11657 ;;
11658
11659 netbsd* | netbsdelf*-gnu)
11660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11662 wlarc=
11663 else
11664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11666 fi
11667 ;;
11668
11669 solaris*)
11670 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11671 ld_shlibs=no
11672 cat <<_LT_EOF 1>&2
11673
11674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11675 *** create shared libraries on Solaris systems. Therefore, libtool
11676 *** is disabling shared libraries support. We urge you to upgrade GNU
11677 *** binutils to release 2.9.1 or newer. Another option is to modify
11678 *** your PATH or compiler configuration so that the native linker is
11679 *** used, and then restart.
11680
11681 _LT_EOF
11682 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11684 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11685 else
11686 ld_shlibs=no
11687 fi
11688 ;;
11689
11690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11691 case `$LD -v 2>&1` in
11692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11693 ld_shlibs=no
11694 cat <<_LT_EOF 1>&2
11695
11696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11697 *** reliably create shared libraries on SCO systems. Therefore, libtool
11698 *** is disabling shared libraries support. We urge you to upgrade GNU
11699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11700 *** your PATH or compiler configuration so that the native linker is
11701 *** used, and then restart.
11702
11703 _LT_EOF
11704 ;;
11705 *)
11706 # For security reasons, it is highly recommended that you always
11707 # use absolute paths for naming shared libraries, and exclude the
11708 # DT_RUNPATH tag from executables and libraries. But doing so
11709 # requires that you compile everything twice, which is a pain.
11710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11711 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11714 else
11715 ld_shlibs=no
11716 fi
11717 ;;
11718 esac
11719 ;;
11720
11721 sunos4*)
11722 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11723 wlarc=
11724 hardcode_direct=yes
11725 hardcode_shlibpath_var=no
11726 ;;
11727
11728 *)
11729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11731 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11732 else
11733 ld_shlibs=no
11734 fi
11735 ;;
11736 esac
11737
11738 if test no = "$ld_shlibs"; then
11739 runpath_var=
11740 hardcode_libdir_flag_spec=
11741 export_dynamic_flag_spec=
11742 whole_archive_flag_spec=
11743 fi
11744 else
11745 # PORTME fill in a description of your system's linker (not GNU ld)
11746 case $host_os in
11747 aix3*)
11748 allow_undefined_flag=unsupported
11749 always_export_symbols=yes
11750 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'
11751 # Note: this linker hardcodes the directories in LIBPATH if there
11752 # are no directories specified by -L.
11753 hardcode_minus_L=yes
11754 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11755 # Neither direct hardcoding nor static linking is supported with a
11756 # broken collect2.
11757 hardcode_direct=unsupported
11758 fi
11759 ;;
11760
11761 aix[4-9]*)
11762 if test ia64 = "$host_cpu"; then
11763 # On IA64, the linker does run time linking by default, so we don't
11764 # have to do anything special.
11765 aix_use_runtimelinking=no
11766 exp_sym_flag='-Bexport'
11767 no_entry_flag=
11768 else
11769 # If we're using GNU nm, then we don't want the "-C" option.
11770 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11771 # Without the "-l" option, or with the "-B" option, AIX nm treats
11772 # weak defined symbols like other global defined symbols, whereas
11773 # GNU nm marks them as "W".
11774 # While the 'weak' keyword is ignored in the Export File, we need
11775 # it in the Import File for the 'aix-soname' feature, so we have
11776 # to replace the "-B" option with "-P" for AIX nm.
11777 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11778 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'
11779 else
11780 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'
11781 fi
11782 aix_use_runtimelinking=no
11783
11784 # Test if we are trying to use run time linking or normal
11785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11786 # have runtime linking enabled, and use it for executables.
11787 # For shared libraries, we enable/disable runtime linking
11788 # depending on the kind of the shared library created -
11789 # when "with_aix_soname,aix_use_runtimelinking" is:
11790 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11791 # "aix,yes" lib.so shared, rtl:yes, for executables
11792 # lib.a static archive
11793 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11794 # lib.a(lib.so.V) shared, rtl:no, for executables
11795 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11796 # lib.a(lib.so.V) shared, rtl:no
11797 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11798 # lib.a static archive
11799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11800 for ld_flag in $LDFLAGS; do
11801 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11802 aix_use_runtimelinking=yes
11803 break
11804 fi
11805 done
11806 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11807 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11808 # so we don't have lib.a shared libs to link our executables.
11809 # We have to force runtime linking in this case.
11810 aix_use_runtimelinking=yes
11811 LDFLAGS="$LDFLAGS -Wl,-brtl"
11812 fi
11813 ;;
11814 esac
11815
11816 exp_sym_flag='-bexport'
11817 no_entry_flag='-bnoentry'
11818 fi
11819
11820 # When large executables or shared objects are built, AIX ld can
11821 # have problems creating the table of contents. If linking a library
11822 # or program results in "error TOC overflow" add -mminimal-toc to
11823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11825
11826 archive_cmds=''
11827 hardcode_direct=yes
11828 hardcode_direct_absolute=yes
11829 hardcode_libdir_separator=':'
11830 link_all_deplibs=yes
11831 file_list_spec='$wl-f,'
11832 case $with_aix_soname,$aix_use_runtimelinking in
11833 aix,*) ;; # traditional, no import file
11834 svr4,* | *,yes) # use import file
11835 # The Import File defines what to hardcode.
11836 hardcode_direct=no
11837 hardcode_direct_absolute=no
11838 ;;
11839 esac
11840
11841 if test yes = "$GCC"; then
11842 case $host_os in aix4.[012]|aix4.[012].*)
11843 # We only want to do this on AIX 4.2 and lower, the check
11844 # below for broken collect2 doesn't work under 4.3+
11845 collect2name=`$CC -print-prog-name=collect2`
11846 if test -f "$collect2name" &&
11847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11848 then
11849 # We have reworked collect2
11850 :
11851 else
11852 # We have old collect2
11853 hardcode_direct=unsupported
11854 # It fails to find uninstalled libraries when the uninstalled
11855 # path is not listed in the libpath. Setting hardcode_minus_L
11856 # to unsupported forces relinking
11857 hardcode_minus_L=yes
11858 hardcode_libdir_flag_spec='-L$libdir'
11859 hardcode_libdir_separator=
11860 fi
11861 ;;
11862 esac
11863 shared_flag='-shared'
11864 if test yes = "$aix_use_runtimelinking"; then
11865 shared_flag="$shared_flag "'$wl-G'
11866 fi
11867 # Need to ensure runtime linking is disabled for the traditional
11868 # shared library, or the linker may eventually find shared libraries
11869 # /with/ Import File - we do not want to mix them.
11870 shared_flag_aix='-shared'
11871 shared_flag_svr4='-shared $wl-G'
11872 else
11873 # not using gcc
11874 if test ia64 = "$host_cpu"; then
11875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11876 # chokes on -Wl,-G. The following line is correct:
11877 shared_flag='-G'
11878 else
11879 if test yes = "$aix_use_runtimelinking"; then
11880 shared_flag='$wl-G'
11881 else
11882 shared_flag='$wl-bM:SRE'
11883 fi
11884 shared_flag_aix='$wl-bM:SRE'
11885 shared_flag_svr4='$wl-G'
11886 fi
11887 fi
11888
11889 export_dynamic_flag_spec='$wl-bexpall'
11890 # It seems that -bexpall does not export symbols beginning with
11891 # underscore (_), so it is better to generate a list of symbols to export.
11892 always_export_symbols=yes
11893 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11894 # Warning - without using the other runtime loading flags (-brtl),
11895 # -berok will link without error, but may produce a broken library.
11896 allow_undefined_flag='-berok'
11897 # Determine the default libpath from the value encoded in an
11898 # empty executable.
11899 if test set = "${lt_cv_aix_libpath+set}"; then
11900 aix_libpath=$lt_cv_aix_libpath
11901 else
11902 if test ${lt_cv_aix_libpath_+y}
11903 then :
11904 printf %s "(cached) " >&6
11905 else case e in #(
11906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908
11909 int
11910 main (void)
11911 {
11912
11913 ;
11914 return 0;
11915 }
11916 _ACEOF
11917 if ac_fn_c_try_link "$LINENO"
11918 then :
11919
11920 lt_aix_libpath_sed='
11921 /Import File Strings/,/^$/ {
11922 /^0/ {
11923 s/^0 *\([^ ]*\) *$/\1/
11924 p
11925 }
11926 }'
11927 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11928 # Check for a 64-bit object if we didn't find anything.
11929 if test -z "$lt_cv_aix_libpath_"; then
11930 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11931 fi
11932 fi
11933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11934 conftest$ac_exeext conftest.$ac_ext
11935 if test -z "$lt_cv_aix_libpath_"; then
11936 lt_cv_aix_libpath_=/usr/lib:/lib
11937 fi
11938 ;;
11939 esac
11940 fi
11941
11942 aix_libpath=$lt_cv_aix_libpath_
11943 fi
11944
11945 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11946 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
11947 else
11948 if test ia64 = "$host_cpu"; then
11949 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11950 allow_undefined_flag="-z nodefs"
11951 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"
11952 else
11953 # Determine the default libpath from the value encoded in an
11954 # empty executable.
11955 if test set = "${lt_cv_aix_libpath+set}"; then
11956 aix_libpath=$lt_cv_aix_libpath
11957 else
11958 if test ${lt_cv_aix_libpath_+y}
11959 then :
11960 printf %s "(cached) " >&6
11961 else case e in #(
11962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964
11965 int
11966 main (void)
11967 {
11968
11969 ;
11970 return 0;
11971 }
11972 _ACEOF
11973 if ac_fn_c_try_link "$LINENO"
11974 then :
11975
11976 lt_aix_libpath_sed='
11977 /Import File Strings/,/^$/ {
11978 /^0/ {
11979 s/^0 *\([^ ]*\) *$/\1/
11980 p
11981 }
11982 }'
11983 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11984 # Check for a 64-bit object if we didn't find anything.
11985 if test -z "$lt_cv_aix_libpath_"; then
11986 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11987 fi
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11990 conftest$ac_exeext conftest.$ac_ext
11991 if test -z "$lt_cv_aix_libpath_"; then
11992 lt_cv_aix_libpath_=/usr/lib:/lib
11993 fi
11994 ;;
11995 esac
11996 fi
11997
11998 aix_libpath=$lt_cv_aix_libpath_
11999 fi
12000
12001 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12002 # Warning - without using the other run time loading flags,
12003 # -berok will link without error, but may produce a broken library.
12004 no_undefined_flag=' $wl-bernotok'
12005 allow_undefined_flag=' $wl-berok'
12006 if test yes = "$with_gnu_ld"; then
12007 # We only use this code for GNU lds that support --whole-archive.
12008 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12009 else
12010 # Exported symbols can be pulled into shared objects from archives
12011 whole_archive_flag_spec='$convenience'
12012 fi
12013 archive_cmds_need_lc=yes
12014 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12015 # -brtl affects multiple linker settings, -berok does not and is overridden later
12016 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12017 if test svr4 != "$with_aix_soname"; then
12018 # This is similar to how AIX traditionally builds its shared libraries.
12019 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'
12020 fi
12021 if test aix != "$with_aix_soname"; then
12022 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'
12023 else
12024 # used by -dlpreopen to get the symbols
12025 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12026 fi
12027 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12028 fi
12029 fi
12030 ;;
12031
12032 amigaos*)
12033 case $host_cpu in
12034 powerpc)
12035 # see comment about AmigaOS4 .so support
12036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12037 archive_expsym_cmds=''
12038 ;;
12039 m68k)
12040 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)'
12041 hardcode_libdir_flag_spec='-L$libdir'
12042 hardcode_minus_L=yes
12043 ;;
12044 esac
12045 ;;
12046
12047 bsdi[45]*)
12048 export_dynamic_flag_spec=-rdynamic
12049 ;;
12050
12051 cygwin* | mingw* | windows* | pw32* | cegcc*)
12052 # When not using gcc, we currently assume that we are using
12053 # Microsoft Visual C++ or Intel C++ Compiler.
12054 # hardcode_libdir_flag_spec is actually meaningless, as there is
12055 # no search path for DLLs.
12056 case $cc_basename in
12057 cl* | icl*)
12058 # Native MSVC or ICC
12059 hardcode_libdir_flag_spec=' '
12060 allow_undefined_flag=unsupported
12061 always_export_symbols=yes
12062 file_list_spec='@'
12063 # Tell ltmain to make .lib files, not .a files.
12064 libext=lib
12065 # Tell ltmain to make .dll files, not .so files.
12066 shrext_cmds=.dll
12067 # FIXME: Setting linknames here is a bad hack.
12068 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12069 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12070 cp "$export_symbols" "$output_objdir/$soname.def";
12071 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12072 else
12073 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12074 fi~
12075 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12076 linknames='
12077 # The linker will not automatically build a static lib if we build a DLL.
12078 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12079 enable_shared_with_static_runtimes=yes
12080 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12082 # Don't use ranlib
12083 old_postinstall_cmds='chmod 644 $oldlib'
12084 postlink_cmds='lt_outputfile="@OUTPUT@"~
12085 lt_tool_outputfile="@TOOL_OUTPUT@"~
12086 case $lt_outputfile in
12087 *.exe|*.EXE) ;;
12088 *)
12089 lt_outputfile=$lt_outputfile.exe
12090 lt_tool_outputfile=$lt_tool_outputfile.exe
12091 ;;
12092 esac~
12093 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12094 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12095 $RM "$lt_outputfile.manifest";
12096 fi'
12097 ;;
12098 *)
12099 # Assume MSVC and ICC wrapper
12100 hardcode_libdir_flag_spec=' '
12101 allow_undefined_flag=unsupported
12102 # Tell ltmain to make .lib files, not .a files.
12103 libext=lib
12104 # Tell ltmain to make .dll files, not .so files.
12105 shrext_cmds=.dll
12106 # FIXME: Setting linknames here is a bad hack.
12107 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12108 # The linker will automatically build a .lib file if we build a DLL.
12109 old_archive_from_new_cmds='true'
12110 # FIXME: Should let the user specify the lib program.
12111 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12112 enable_shared_with_static_runtimes=yes
12113 ;;
12114 esac
12115 ;;
12116
12117 darwin* | rhapsody*)
12118
12119
12120 archive_cmds_need_lc=no
12121 hardcode_direct=no
12122 hardcode_automatic=yes
12123 hardcode_shlibpath_var=unsupported
12124 if test yes = "$lt_cv_ld_force_load"; then
12125 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\"`'
12126
12127 else
12128 whole_archive_flag_spec=''
12129 fi
12130 link_all_deplibs=yes
12131 allow_undefined_flag=$_lt_dar_allow_undefined
12132 case $cc_basename in
12133 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12134 *) _lt_dar_can_shared=$GCC ;;
12135 esac
12136 if test yes = "$_lt_dar_can_shared"; then
12137 output_verbose_link_cmd=func_echo_all
12138 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12139 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12140 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"
12141 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"
12142
12143 else
12144 ld_shlibs=no
12145 fi
12146
12147 ;;
12148
12149 dgux*)
12150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12151 hardcode_libdir_flag_spec='-L$libdir'
12152 hardcode_shlibpath_var=no
12153 ;;
12154
12155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12156 # support. Future versions do this automatically, but an explicit c++rt0.o
12157 # does not break anything, and helps significantly (at the cost of a little
12158 # extra space).
12159 freebsd2.2*)
12160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12161 hardcode_libdir_flag_spec='-R$libdir'
12162 hardcode_direct=yes
12163 hardcode_shlibpath_var=no
12164 ;;
12165
12166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12167 freebsd2.*)
12168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12169 hardcode_direct=yes
12170 hardcode_minus_L=yes
12171 hardcode_shlibpath_var=no
12172 ;;
12173
12174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12175 freebsd* | dragonfly* | midnightbsd*)
12176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12177 hardcode_libdir_flag_spec='-R$libdir'
12178 hardcode_direct=yes
12179 hardcode_shlibpath_var=no
12180 ;;
12181
12182 hpux9*)
12183 if test yes = "$GCC"; then
12184 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'
12185 else
12186 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'
12187 fi
12188 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12189 hardcode_libdir_separator=:
12190 hardcode_direct=yes
12191
12192 # hardcode_minus_L: Not really in the search PATH,
12193 # but as the default location of the library.
12194 hardcode_minus_L=yes
12195 export_dynamic_flag_spec='$wl-E'
12196 ;;
12197
12198 hpux10*)
12199 if test yes,no = "$GCC,$with_gnu_ld"; then
12200 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12201 else
12202 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12203 fi
12204 if test no = "$with_gnu_ld"; then
12205 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12206 hardcode_libdir_separator=:
12207 hardcode_direct=yes
12208 hardcode_direct_absolute=yes
12209 export_dynamic_flag_spec='$wl-E'
12210 # hardcode_minus_L: Not really in the search PATH,
12211 # but as the default location of the library.
12212 hardcode_minus_L=yes
12213 fi
12214 ;;
12215
12216 hpux11*)
12217 if test yes,no = "$GCC,$with_gnu_ld"; then
12218 case $host_cpu in
12219 hppa*64*)
12220 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12221 ;;
12222 ia64*)
12223 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12224 ;;
12225 *)
12226 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12227 ;;
12228 esac
12229 else
12230 case $host_cpu in
12231 hppa*64*)
12232 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12233 ;;
12234 ia64*)
12235 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12236 ;;
12237 *)
12238
12239 # Older versions of the 11.00 compiler do not understand -b yet
12240 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12242 printf %s "checking if $CC understands -b... " >&6; }
12243 if test ${lt_cv_prog_compiler__b+y}
12244 then :
12245 printf %s "(cached) " >&6
12246 else case e in #(
12247 e) lt_cv_prog_compiler__b=no
12248 save_LDFLAGS=$LDFLAGS
12249 LDFLAGS="$LDFLAGS -b"
12250 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12252 # The linker can only warn and ignore the option if not recognized
12253 # So say no if there are warnings
12254 if test -s conftest.err; then
12255 # Append any errors to the config.log.
12256 cat conftest.err 1>&5
12257 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12259 if diff conftest.exp conftest.er2 >/dev/null; then
12260 lt_cv_prog_compiler__b=yes
12261 fi
12262 else
12263 lt_cv_prog_compiler__b=yes
12264 fi
12265 fi
12266 $RM -r conftest*
12267 LDFLAGS=$save_LDFLAGS
12268 ;;
12269 esac
12270 fi
12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12272 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12273
12274 if test yes = "$lt_cv_prog_compiler__b"; then
12275 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12276 else
12277 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12278 fi
12279
12280 ;;
12281 esac
12282 fi
12283 if test no = "$with_gnu_ld"; then
12284 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12285 hardcode_libdir_separator=:
12286
12287 case $host_cpu in
12288 hppa*64*|ia64*)
12289 hardcode_direct=no
12290 hardcode_shlibpath_var=no
12291 ;;
12292 *)
12293 hardcode_direct=yes
12294 hardcode_direct_absolute=yes
12295 export_dynamic_flag_spec='$wl-E'
12296
12297 # hardcode_minus_L: Not really in the search PATH,
12298 # but as the default location of the library.
12299 hardcode_minus_L=yes
12300 ;;
12301 esac
12302 fi
12303 ;;
12304
12305 irix5* | irix6* | nonstopux*)
12306 if test yes = "$GCC"; then
12307 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'
12308 # Try to use the -exported_symbol ld option, if it does not
12309 # work, assume that -exports_file does not work either and
12310 # implicitly export all symbols.
12311 # This should be the same for all languages, so no per-tag cache variable.
12312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12313 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12314 if test ${lt_cv_irix_exported_symbol+y}
12315 then :
12316 printf %s "(cached) " >&6
12317 else case e in #(
12318 e) save_LDFLAGS=$LDFLAGS
12319 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322 int foo (void) { return 0; }
12323 _ACEOF
12324 if ac_fn_c_try_link "$LINENO"
12325 then :
12326 lt_cv_irix_exported_symbol=yes
12327 else case e in #(
12328 e) lt_cv_irix_exported_symbol=no ;;
12329 esac
12330 fi
12331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LDFLAGS=$save_LDFLAGS ;;
12334 esac
12335 fi
12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12337 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12338 if test yes = "$lt_cv_irix_exported_symbol"; then
12339 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'
12340 fi
12341 else
12342 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'
12343 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'
12344 fi
12345 archive_cmds_need_lc='no'
12346 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12347 hardcode_libdir_separator=:
12348 inherit_rpath=yes
12349 link_all_deplibs=yes
12350 ;;
12351
12352 linux*)
12353 case $cc_basename in
12354 tcc*)
12355 # Fabrice Bellard et al's Tiny C Compiler
12356 ld_shlibs=yes
12357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12359 ;;
12360 esac
12361 ;;
12362
12363 *-mlibc)
12364 ;;
12365
12366 netbsd* | netbsdelf*-gnu)
12367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12369 else
12370 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12371 fi
12372 hardcode_libdir_flag_spec='-R$libdir'
12373 hardcode_direct=yes
12374 hardcode_shlibpath_var=no
12375 ;;
12376
12377 newsos6)
12378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12379 hardcode_direct=yes
12380 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12381 hardcode_libdir_separator=:
12382 hardcode_shlibpath_var=no
12383 ;;
12384
12385 *nto* | *qnx*)
12386 ;;
12387
12388 openbsd*)
12389 if test -f /usr/libexec/ld.so; then
12390 hardcode_direct=yes
12391 hardcode_shlibpath_var=no
12392 hardcode_direct_absolute=yes
12393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12394 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12395 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12396 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12397 export_dynamic_flag_spec='$wl-E'
12398 else
12399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12400 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12401 fi
12402 else
12403 ld_shlibs=no
12404 fi
12405 ;;
12406
12407 os2*)
12408 hardcode_libdir_flag_spec='-L$libdir'
12409 hardcode_minus_L=yes
12410 allow_undefined_flag=unsupported
12411 shrext_cmds=.dll
12412 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12413 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12414 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12415 $ECHO EXPORTS >> $output_objdir/$libname.def~
12416 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12417 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12418 emximp -o $lib $output_objdir/$libname.def'
12419 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12420 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12421 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12422 $ECHO EXPORTS >> $output_objdir/$libname.def~
12423 prefix_cmds="$SED"~
12424 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12425 prefix_cmds="$prefix_cmds -e 1d";
12426 fi~
12427 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12428 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12429 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12430 emximp -o $lib $output_objdir/$libname.def'
12431 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12432 enable_shared_with_static_runtimes=yes
12433 file_list_spec='@'
12434 ;;
12435
12436 osf3*)
12437 if test yes = "$GCC"; then
12438 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12439 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'
12440 else
12441 allow_undefined_flag=' -expect_unresolved \*'
12442 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'
12443 fi
12444 archive_cmds_need_lc='no'
12445 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12446 hardcode_libdir_separator=:
12447 ;;
12448
12449 osf4* | osf5*) # as osf3* with the addition of -msym flag
12450 if test yes = "$GCC"; then
12451 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12452 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'
12453 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12454 else
12455 allow_undefined_flag=' -expect_unresolved \*'
12456 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'
12457 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~
12458 $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'
12459
12460 # Both c and cxx compiler support -rpath directly
12461 hardcode_libdir_flag_spec='-rpath $libdir'
12462 fi
12463 archive_cmds_need_lc='no'
12464 hardcode_libdir_separator=:
12465 ;;
12466
12467 serenity*)
12468 ;;
12469
12470 solaris*)
12471 no_undefined_flag=' -z defs'
12472 if test yes = "$GCC"; then
12473 wlarc='$wl'
12474 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12475 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12476 $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'
12477 else
12478 case `$CC -V 2>&1` in
12479 *"Compilers 5.0"*)
12480 wlarc=''
12481 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12483 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12484 ;;
12485 *)
12486 wlarc='$wl'
12487 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12488 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12489 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12490 ;;
12491 esac
12492 fi
12493 hardcode_libdir_flag_spec='-R$libdir'
12494 hardcode_shlibpath_var=no
12495 case $host_os in
12496 solaris2.[0-5] | solaris2.[0-5].*) ;;
12497 *)
12498 # The compiler driver will combine and reorder linker options,
12499 # but understands '-z linker_flag'. GCC discards it without '$wl',
12500 # but is careful enough not to reorder.
12501 # Supported since Solaris 2.6 (maybe 2.5.1?)
12502 if test yes = "$GCC"; then
12503 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12504 else
12505 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12506 fi
12507 ;;
12508 esac
12509 link_all_deplibs=yes
12510 ;;
12511
12512 sunos4*)
12513 if test sequent = "$host_vendor"; then
12514 # Use $CC to link under sequent, because it throws in some extra .o
12515 # files that make .init and .fini sections work.
12516 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12517 else
12518 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12519 fi
12520 hardcode_libdir_flag_spec='-L$libdir'
12521 hardcode_direct=yes
12522 hardcode_minus_L=yes
12523 hardcode_shlibpath_var=no
12524 ;;
12525
12526 sysv4)
12527 case $host_vendor in
12528 sni)
12529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12530 hardcode_direct=yes # is this really true???
12531 ;;
12532 siemens)
12533 ## LD is ld it makes a PLAMLIB
12534 ## CC just makes a GrossModule.
12535 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12536 reload_cmds='$CC -r -o $output$reload_objs'
12537 hardcode_direct=no
12538 ;;
12539 motorola)
12540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12541 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12542 ;;
12543 esac
12544 runpath_var='LD_RUN_PATH'
12545 hardcode_shlibpath_var=no
12546 ;;
12547
12548 sysv4.3*)
12549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12550 hardcode_shlibpath_var=no
12551 export_dynamic_flag_spec='-Bexport'
12552 ;;
12553
12554 sysv4*MP*)
12555 if test -d /usr/nec; then
12556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12557 hardcode_shlibpath_var=no
12558 runpath_var=LD_RUN_PATH
12559 hardcode_runpath_var=yes
12560 ld_shlibs=yes
12561 fi
12562 ;;
12563
12564 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12565 no_undefined_flag='$wl-z,text'
12566 archive_cmds_need_lc=no
12567 hardcode_shlibpath_var=no
12568 runpath_var='LD_RUN_PATH'
12569
12570 if test yes = "$GCC"; then
12571 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12572 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573 else
12574 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12575 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12576 fi
12577 ;;
12578
12579 sysv5* | sco3.2v5* | sco5v6*)
12580 # Note: We CANNOT use -z defs as we might desire, because we do not
12581 # link with -lc, and that would cause any symbols used from libc to
12582 # always be unresolved, which means just about no library would
12583 # ever link correctly. If we're not using GNU ld we use -z text
12584 # though, which does catch some bad symbols but isn't as heavy-handed
12585 # as -z defs.
12586 no_undefined_flag='$wl-z,text'
12587 allow_undefined_flag='$wl-z,nodefs'
12588 archive_cmds_need_lc=no
12589 hardcode_shlibpath_var=no
12590 hardcode_libdir_flag_spec='$wl-R,$libdir'
12591 hardcode_libdir_separator=':'
12592 link_all_deplibs=yes
12593 export_dynamic_flag_spec='$wl-Bexport'
12594 runpath_var='LD_RUN_PATH'
12595
12596 if test yes = "$GCC"; then
12597 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12599 else
12600 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12602 fi
12603 ;;
12604
12605 uts4*)
12606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12607 hardcode_libdir_flag_spec='-L$libdir'
12608 hardcode_shlibpath_var=no
12609 ;;
12610
12611 *)
12612 ld_shlibs=no
12613 ;;
12614 esac
12615
12616 if test sni = "$host_vendor"; then
12617 case $host in
12618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12619 export_dynamic_flag_spec='$wl-Blargedynsym'
12620 ;;
12621 esac
12622 fi
12623 fi
12624
12625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12626 printf "%s\n" "$ld_shlibs" >&6; }
12627 test no = "$ld_shlibs" && can_build_shared=no
12628
12629 with_gnu_ld=$with_gnu_ld
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645 #
12646 # Do we need to explicitly link libc?
12647 #
12648 case "x$archive_cmds_need_lc" in
12649 x|xyes)
12650 # Assume -lc should be added
12651 archive_cmds_need_lc=yes
12652
12653 if test yes,yes = "$GCC,$enable_shared"; then
12654 case $archive_cmds in
12655 *'~'*)
12656 # FIXME: we may have to deal with multi-command sequences.
12657 ;;
12658 '$CC '*)
12659 # Test whether the compiler implicitly links with -lc since on some
12660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12661 # to ld, don't add -lc before -lgcc.
12662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12663 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12664 if test ${lt_cv_archive_cmds_need_lc+y}
12665 then :
12666 printf %s "(cached) " >&6
12667 else case e in #(
12668 e) $RM conftest*
12669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12670
12671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12672 (eval $ac_compile) 2>&5
12673 ac_status=$?
12674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675 test $ac_status = 0; } 2>conftest.err; then
12676 soname=conftest
12677 lib=conftest
12678 libobjs=conftest.$ac_objext
12679 deplibs=
12680 wl=$lt_prog_compiler_wl
12681 pic_flag=$lt_prog_compiler_pic
12682 compiler_flags=-v
12683 linker_flags=-v
12684 verstring=
12685 output_objdir=.
12686 libname=conftest
12687 lt_save_allow_undefined_flag=$allow_undefined_flag
12688 allow_undefined_flag=
12689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12690 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12691 ac_status=$?
12692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12693 test $ac_status = 0; }
12694 then
12695 lt_cv_archive_cmds_need_lc=no
12696 else
12697 lt_cv_archive_cmds_need_lc=yes
12698 fi
12699 allow_undefined_flag=$lt_save_allow_undefined_flag
12700 else
12701 cat conftest.err 1>&5
12702 fi
12703 $RM conftest*
12704 ;;
12705 esac
12706 fi
12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12708 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12709 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12710 ;;
12711 esac
12712 fi
12713 ;;
12714 esac
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12868 printf %s "checking dynamic linker characteristics... " >&6; }
12869
12870 if test yes = "$GCC"; then
12871 case $host_os in
12872 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12873 *) lt_awk_arg='/^libraries:/' ;;
12874 esac
12875 case $host_os in
12876 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12877 *) lt_sed_strip_eq='s|=/|/|g' ;;
12878 esac
12879 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12880 case $lt_search_path_spec in
12881 *\;*)
12882 # if the path contains ";" then we assume it to be the separator
12883 # otherwise default to the standard path separator (i.e. ":") - it is
12884 # assumed that no part of a normal pathname contains ";" but that should
12885 # okay in the real world where ";" in dirpaths is itself problematic.
12886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12887 ;;
12888 *)
12889 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12890 ;;
12891 esac
12892 # Ok, now we have the path, separated by spaces, we can step through it
12893 # and add multilib dir if necessary...
12894 lt_tmp_lt_search_path_spec=
12895 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12896 # ...but if some path component already ends with the multilib dir we assume
12897 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12898 case "$lt_multi_os_dir; $lt_search_path_spec " in
12899 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12900 lt_multi_os_dir=
12901 ;;
12902 esac
12903 for lt_sys_path in $lt_search_path_spec; do
12904 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12906 elif test -n "$lt_multi_os_dir"; then
12907 test -d "$lt_sys_path" && \
12908 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12909 fi
12910 done
12911 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12912 BEGIN {RS = " "; FS = "/|\n";} {
12913 lt_foo = "";
12914 lt_count = 0;
12915 for (lt_i = NF; lt_i > 0; lt_i--) {
12916 if ($lt_i != "" && $lt_i != ".") {
12917 if ($lt_i == "..") {
12918 lt_count++;
12919 } else {
12920 if (lt_count == 0) {
12921 lt_foo = "/" $lt_i lt_foo;
12922 } else {
12923 lt_count--;
12924 }
12925 }
12926 }
12927 }
12928 if (lt_foo != "") { lt_freq[lt_foo]++; }
12929 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12930 }'`
12931 # AWK program above erroneously prepends '/' to C:/dos/paths
12932 # for these hosts.
12933 case $host_os in
12934 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12935 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12936 esac
12937 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12938 else
12939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12940 fi
12941 library_names_spec=
12942 libname_spec='lib$name'
12943 soname_spec=
12944 shrext_cmds=.so
12945 postinstall_cmds=
12946 postuninstall_cmds=
12947 finish_cmds=
12948 finish_eval=
12949 shlibpath_var=
12950 shlibpath_overrides_runpath=unknown
12951 version_type=none
12952 dynamic_linker="$host_os ld.so"
12953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12954 need_lib_prefix=unknown
12955 hardcode_into_libs=no
12956
12957 # when you set need_version to no, make sure it does not cause -set_version
12958 # flags to be left without arguments
12959 need_version=unknown
12960
12961
12962
12963 case $host_os in
12964 aix3*)
12965 version_type=linux # correct to gnu/linux during the next big refactor
12966 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12967 shlibpath_var=LIBPATH
12968
12969 # AIX 3 has no versioning support, so we append a major version to the name.
12970 soname_spec='$libname$release$shared_ext$major'
12971 ;;
12972
12973 aix[4-9]*)
12974 version_type=linux # correct to gnu/linux during the next big refactor
12975 need_lib_prefix=no
12976 need_version=no
12977 hardcode_into_libs=yes
12978 if test ia64 = "$host_cpu"; then
12979 # AIX 5 supports IA64
12980 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 else
12983 # With GCC up to 2.95.x, collect2 would create an import file
12984 # for dependence libraries. The import file would start with
12985 # the line '#! .'. This would cause the generated library to
12986 # depend on '.', always an invalid library. This was fixed in
12987 # development snapshots of GCC prior to 3.0.
12988 case $host_os in
12989 aix4 | aix4.[01] | aix4.[01].*)
12990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12991 echo ' yes '
12992 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12993 :
12994 else
12995 can_build_shared=no
12996 fi
12997 ;;
12998 esac
12999 # Using Import Files as archive members, it is possible to support
13000 # filename-based versioning of shared library archives on AIX. While
13001 # this would work for both with and without runtime linking, it will
13002 # prevent static linking of such archives. So we do filename-based
13003 # shared library versioning with .so extension only, which is used
13004 # when both runtime linking and shared linking is enabled.
13005 # Unfortunately, runtime linking may impact performance, so we do
13006 # not want this to be the default eventually. Also, we use the
13007 # versioned .so libs for executables only if there is the -brtl
13008 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13009 # To allow for filename-based versioning support, we need to create
13010 # libNAME.so.V as an archive file, containing:
13011 # *) an Import File, referring to the versioned filename of the
13012 # archive as well as the shared archive member, telling the
13013 # bitwidth (32 or 64) of that shared object, and providing the
13014 # list of exported symbols of that shared object, eventually
13015 # decorated with the 'weak' keyword
13016 # *) the shared object with the F_LOADONLY flag set, to really avoid
13017 # it being seen by the linker.
13018 # At run time we better use the real file rather than another symlink,
13019 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13020
13021 case $with_aix_soname,$aix_use_runtimelinking in
13022 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13023 # soname into executable. Probably we can add versioning support to
13024 # collect2, so additional links can be useful in future.
13025 aix,yes) # traditional libtool
13026 dynamic_linker='AIX unversionable lib.so'
13027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13028 # instead of lib<name>.a to let people know that these are not
13029 # typical AIX shared libraries.
13030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13031 ;;
13032 aix,no) # traditional AIX only
13033 dynamic_linker='AIX lib.a(lib.so.V)'
13034 # We preserve .a as extension for shared libraries through AIX4.2
13035 # and later when we are not doing run time linking.
13036 library_names_spec='$libname$release.a $libname.a'
13037 soname_spec='$libname$release$shared_ext$major'
13038 ;;
13039 svr4,*) # full svr4 only
13040 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13041 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13042 # We do not specify a path in Import Files, so LIBPATH fires.
13043 shlibpath_overrides_runpath=yes
13044 ;;
13045 *,yes) # both, prefer svr4
13046 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13047 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13048 # unpreferred sharedlib libNAME.a needs extra handling
13049 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"'
13050 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"'
13051 # We do not specify a path in Import Files, so LIBPATH fires.
13052 shlibpath_overrides_runpath=yes
13053 ;;
13054 *,no) # both, prefer aix
13055 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13056 library_names_spec='$libname$release.a $libname.a'
13057 soname_spec='$libname$release$shared_ext$major'
13058 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13059 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)'
13060 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"'
13061 ;;
13062 esac
13063 shlibpath_var=LIBPATH
13064 fi
13065 ;;
13066
13067 amigaos*)
13068 case $host_cpu in
13069 powerpc)
13070 # Since July 2007 AmigaOS4 officially supports .so libraries.
13071 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13073 ;;
13074 m68k)
13075 library_names_spec='$libname.ixlibrary $libname.a'
13076 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13077 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'
13078 ;;
13079 esac
13080 ;;
13081
13082 beos*)
13083 library_names_spec='$libname$shared_ext'
13084 dynamic_linker="$host_os ld.so"
13085 shlibpath_var=LIBRARY_PATH
13086 ;;
13087
13088 bsdi[45]*)
13089 version_type=linux # correct to gnu/linux during the next big refactor
13090 need_version=no
13091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13092 soname_spec='$libname$release$shared_ext$major'
13093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13094 shlibpath_var=LD_LIBRARY_PATH
13095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13097 # the default ld.so.conf also contains /usr/contrib/lib and
13098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13099 # libtool to hard-code these into programs
13100 ;;
13101
13102 cygwin* | mingw* | windows* | pw32* | cegcc*)
13103 version_type=windows
13104 shrext_cmds=.dll
13105 need_version=no
13106 need_lib_prefix=no
13107
13108 case $GCC,$cc_basename in
13109 yes,*)
13110 # gcc
13111 library_names_spec='$libname.dll.a'
13112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13113 # If user builds GCC with multilib enabled,
13114 # it should just install on $(libdir)
13115 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13116 if test xyes = x"$multilib"; then
13117 postinstall_cmds='base_file=`basename \$file`~
13118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13119 dldir=$destdir/`dirname \$dlpath`~
13120 $install_prog $dir/$dlname $destdir/$dlname~
13121 chmod a+x $destdir/$dlname~
13122 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13123 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13124 fi'
13125 else
13126 postinstall_cmds='base_file=`basename \$file`~
13127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13128 dldir=$destdir/`dirname \$dlpath`~
13129 test -d \$dldir || mkdir -p \$dldir~
13130 $install_prog $dir/$dlname \$dldir/$dlname~
13131 chmod a+x \$dldir/$dlname~
13132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13134 fi'
13135 fi
13136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13137 dlpath=$dir/\$dldll~
13138 $RM \$dlpath'
13139 shlibpath_overrides_runpath=yes
13140
13141 case $host_os in
13142 cygwin*)
13143 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13144 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13145
13146 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13147 ;;
13148 mingw* | windows* | cegcc*)
13149 # MinGW DLLs use traditional 'lib' prefix
13150 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13151 ;;
13152 pw32*)
13153 # pw32 DLLs use 'pw' prefix rather than 'lib'
13154 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13155 ;;
13156 esac
13157 dynamic_linker='Win32 ld.exe'
13158 ;;
13159
13160 *,cl* | *,icl*)
13161 # Native MSVC or ICC
13162 libname_spec='$name'
13163 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13164 library_names_spec='$libname.dll.lib'
13165
13166 case $build_os in
13167 mingw* | windows*)
13168 sys_lib_search_path_spec=
13169 lt_save_ifs=$IFS
13170 IFS=';'
13171 for lt_path in $LIB
13172 do
13173 IFS=$lt_save_ifs
13174 # Let DOS variable expansion print the short 8.3 style file name.
13175 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13176 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13177 done
13178 IFS=$lt_save_ifs
13179 # Convert to MSYS style.
13180 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13181 ;;
13182 cygwin*)
13183 # Convert to unix form, then to dos form, then back to unix form
13184 # but this time dos style (no spaces!) so that the unix form looks
13185 # like /cygdrive/c/PROGRA~1:/cygdr...
13186 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13187 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13188 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13189 ;;
13190 *)
13191 sys_lib_search_path_spec=$LIB
13192 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13193 # It is most probably a Windows format PATH.
13194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13195 else
13196 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13197 fi
13198 # FIXME: find the short name or the path components, as spaces are
13199 # common. (e.g. "Program Files" -> "PROGRA~1")
13200 ;;
13201 esac
13202
13203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13204 postinstall_cmds='base_file=`basename \$file`~
13205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13206 dldir=$destdir/`dirname \$dlpath`~
13207 test -d \$dldir || mkdir -p \$dldir~
13208 $install_prog $dir/$dlname \$dldir/$dlname'
13209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13210 dlpath=$dir/\$dldll~
13211 $RM \$dlpath'
13212 shlibpath_overrides_runpath=yes
13213 dynamic_linker='Win32 link.exe'
13214 ;;
13215
13216 *)
13217 # Assume MSVC and ICC wrapper
13218 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13219 dynamic_linker='Win32 ld.exe'
13220 ;;
13221 esac
13222 # FIXME: first we should search . and the directory the executable is in
13223 shlibpath_var=PATH
13224 ;;
13225
13226 darwin* | rhapsody*)
13227 dynamic_linker="$host_os dyld"
13228 version_type=darwin
13229 need_lib_prefix=no
13230 need_version=no
13231 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13232 soname_spec='$libname$release$major$shared_ext'
13233 shlibpath_overrides_runpath=yes
13234 shlibpath_var=DYLD_LIBRARY_PATH
13235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13236
13237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13239 ;;
13240
13241 dgux*)
13242 version_type=linux # correct to gnu/linux during the next big refactor
13243 need_lib_prefix=no
13244 need_version=no
13245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13246 soname_spec='$libname$release$shared_ext$major'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 ;;
13249
13250 freebsd* | dragonfly* | midnightbsd*)
13251 # DragonFly does not have aout. When/if they implement a new
13252 # versioning mechanism, adjust this.
13253 if test -x /usr/bin/objformat; then
13254 objformat=`/usr/bin/objformat`
13255 else
13256 case $host_os in
13257 freebsd[23].*) objformat=aout ;;
13258 *) objformat=elf ;;
13259 esac
13260 fi
13261 version_type=freebsd-$objformat
13262 case $version_type in
13263 freebsd-elf*)
13264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13265 soname_spec='$libname$release$shared_ext$major'
13266 need_version=no
13267 need_lib_prefix=no
13268 ;;
13269 freebsd-*)
13270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13271 need_version=yes
13272 ;;
13273 esac
13274 case $host_cpu in
13275 powerpc64)
13276 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13277 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 int test_pointer_size[sizeof (void *) - 5];
13281
13282 _ACEOF
13283 if ac_fn_c_try_compile "$LINENO"
13284 then :
13285 shlibpath_var=LD_LIBRARY_PATH
13286 else case e in #(
13287 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13288 esac
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13291 ;;
13292 *)
13293 shlibpath_var=LD_LIBRARY_PATH
13294 ;;
13295 esac
13296 case $host_os in
13297 freebsd2.*)
13298 shlibpath_overrides_runpath=yes
13299 ;;
13300 freebsd3.[01]* | freebsdelf3.[01]*)
13301 shlibpath_overrides_runpath=yes
13302 hardcode_into_libs=yes
13303 ;;
13304 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13305 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13306 shlibpath_overrides_runpath=no
13307 hardcode_into_libs=yes
13308 ;;
13309 *) # from 4.6 on, and DragonFly
13310 shlibpath_overrides_runpath=yes
13311 hardcode_into_libs=yes
13312 ;;
13313 esac
13314 ;;
13315
13316 haiku*)
13317 version_type=linux # correct to gnu/linux during the next big refactor
13318 need_lib_prefix=no
13319 need_version=no
13320 dynamic_linker="$host_os runtime_loader"
13321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13322 soname_spec='$libname$release$shared_ext$major'
13323 shlibpath_var=LIBRARY_PATH
13324 shlibpath_overrides_runpath=no
13325 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13326 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13327 hardcode_into_libs=no
13328 ;;
13329
13330 hpux9* | hpux10* | hpux11*)
13331 # Give a soname corresponding to the major version so that dld.sl refuses to
13332 # link against other versions.
13333 version_type=sunos
13334 need_lib_prefix=no
13335 need_version=no
13336 case $host_cpu in
13337 ia64*)
13338 shrext_cmds='.so'
13339 hardcode_into_libs=yes
13340 dynamic_linker="$host_os dld.so"
13341 shlibpath_var=LD_LIBRARY_PATH
13342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13344 soname_spec='$libname$release$shared_ext$major'
13345 if test 32 = "$HPUX_IA64_MODE"; then
13346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13347 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13348 else
13349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13350 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13351 fi
13352 ;;
13353 hppa*64*)
13354 shrext_cmds='.sl'
13355 hardcode_into_libs=yes
13356 dynamic_linker="$host_os dld.sl"
13357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13360 soname_spec='$libname$release$shared_ext$major'
13361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13363 ;;
13364 *)
13365 shrext_cmds='.sl'
13366 dynamic_linker="$host_os dld.sl"
13367 shlibpath_var=SHLIB_PATH
13368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13370 soname_spec='$libname$release$shared_ext$major'
13371 ;;
13372 esac
13373 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13374 postinstall_cmds='chmod 555 $lib'
13375 # or fails outright, so override atomically:
13376 install_override_mode=555
13377 ;;
13378
13379 interix[3-9]*)
13380 version_type=linux # correct to gnu/linux during the next big refactor
13381 need_lib_prefix=no
13382 need_version=no
13383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13384 soname_spec='$libname$release$shared_ext$major'
13385 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 shlibpath_overrides_runpath=no
13388 hardcode_into_libs=yes
13389 ;;
13390
13391 irix5* | irix6* | nonstopux*)
13392 case $host_os in
13393 nonstopux*) version_type=nonstopux ;;
13394 *)
13395 if test yes = "$lt_cv_prog_gnu_ld"; then
13396 version_type=linux # correct to gnu/linux during the next big refactor
13397 else
13398 version_type=irix
13399 fi ;;
13400 esac
13401 need_lib_prefix=no
13402 need_version=no
13403 soname_spec='$libname$release$shared_ext$major'
13404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13405 case $host_os in
13406 irix5* | nonstopux*)
13407 libsuff= shlibsuff=
13408 ;;
13409 *)
13410 case $LD in # libtool.m4 will add one of these switches to LD
13411 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13412 libsuff= shlibsuff= libmagic=32-bit;;
13413 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13414 libsuff=32 shlibsuff=N32 libmagic=N32;;
13415 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13416 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13417 *) libsuff= shlibsuff= libmagic=never-match;;
13418 esac
13419 ;;
13420 esac
13421 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13422 shlibpath_overrides_runpath=no
13423 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13424 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13425 hardcode_into_libs=yes
13426 ;;
13427
13428 # No shared lib support for Linux oldld, aout, or coff.
13429 linux*oldld* | linux*aout* | linux*coff*)
13430 dynamic_linker=no
13431 ;;
13432
13433 linux*android*)
13434 version_type=none # Android doesn't support versioned libraries.
13435 need_lib_prefix=no
13436 need_version=no
13437 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13438 soname_spec='$libname$release$shared_ext'
13439 finish_cmds=
13440 shlibpath_var=LD_LIBRARY_PATH
13441 shlibpath_overrides_runpath=yes
13442
13443 # This implies no fast_install, which is unacceptable.
13444 # Some rework will be needed to allow for fast_install
13445 # before this can be enabled.
13446 hardcode_into_libs=yes
13447
13448 dynamic_linker='Android linker'
13449 # -rpath works at least for libraries that are not overridden by
13450 # libraries installed in system locations.
13451 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13452 ;;
13453
13454 # This must be glibc/ELF.
13455 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13456 version_type=linux # correct to gnu/linux during the next big refactor
13457 need_lib_prefix=no
13458 need_version=no
13459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13460 soname_spec='$libname$release$shared_ext$major'
13461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13462 shlibpath_var=LD_LIBRARY_PATH
13463 shlibpath_overrides_runpath=no
13464
13465 # Some binutils ld are patched to set DT_RUNPATH
13466 if test ${lt_cv_shlibpath_overrides_runpath+y}
13467 then :
13468 printf %s "(cached) " >&6
13469 else case e in #(
13470 e) lt_cv_shlibpath_overrides_runpath=no
13471 save_LDFLAGS=$LDFLAGS
13472 save_libdir=$libdir
13473 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13474 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477
13478 int
13479 main (void)
13480 {
13481
13482 ;
13483 return 0;
13484 }
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"
13487 then :
13488 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13489 then :
13490 lt_cv_shlibpath_overrides_runpath=yes
13491 fi
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13494 conftest$ac_exeext conftest.$ac_ext
13495 LDFLAGS=$save_LDFLAGS
13496 libdir=$save_libdir
13497 ;;
13498 esac
13499 fi
13500
13501 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13502
13503 # This implies no fast_install, which is unacceptable.
13504 # Some rework will be needed to allow for fast_install
13505 # before this can be enabled.
13506 hardcode_into_libs=yes
13507
13508 # Ideally, we could use ldconfig to report *all* directories which are
13509 # searched for libraries, however this is still not possible. Aside from not
13510 # being certain /sbin/ldconfig is available, command
13511 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13512 # even though it is searched at run-time. Try to do the best guess by
13513 # appending ld.so.conf contents (and includes) to the search path.
13514 if test -f /etc/ld.so.conf; then
13515 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' ' '`
13516 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13517 fi
13518
13519 # We used to test for /lib/ld.so.1 and disable shared libraries on
13520 # powerpc, because MkLinux only supported shared libraries with the
13521 # GNU dynamic linker. Since this was broken with cross compilers,
13522 # most powerpc-linux boxes support dynamic linking these days and
13523 # people can always --disable-shared, the test was removed, and we
13524 # assume the GNU/Linux dynamic linker is in use.
13525 dynamic_linker='GNU/Linux ld.so'
13526 ;;
13527
13528 netbsdelf*-gnu)
13529 version_type=linux
13530 need_lib_prefix=no
13531 need_version=no
13532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13533 soname_spec='$libname$release$shared_ext$major'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 shlibpath_overrides_runpath=no
13536 hardcode_into_libs=yes
13537 dynamic_linker='NetBSD ld.elf_so'
13538 ;;
13539
13540 netbsd*)
13541 version_type=sunos
13542 need_lib_prefix=no
13543 need_version=no
13544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13545 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13547 dynamic_linker='NetBSD (a.out) ld.so'
13548 else
13549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13550 soname_spec='$libname$release$shared_ext$major'
13551 dynamic_linker='NetBSD ld.elf_so'
13552 fi
13553 shlibpath_var=LD_LIBRARY_PATH
13554 shlibpath_overrides_runpath=yes
13555 hardcode_into_libs=yes
13556 ;;
13557
13558 *-mlibc)
13559 version_type=linux # correct to gnu/linux during the next big refactor
13560 need_lib_prefix=no
13561 need_version=no
13562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13563 soname_spec='$libname$release$shared_ext$major'
13564 dynamic_linker='mlibc ld.so'
13565 shlibpath_var=LD_LIBRARY_PATH
13566 shlibpath_overrides_runpath=no
13567 hardcode_into_libs=yes
13568 ;;
13569
13570 newsos6)
13571 version_type=linux # correct to gnu/linux during the next big refactor
13572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13573 shlibpath_var=LD_LIBRARY_PATH
13574 shlibpath_overrides_runpath=yes
13575 ;;
13576
13577 *nto* | *qnx*)
13578 version_type=qnx
13579 need_lib_prefix=no
13580 need_version=no
13581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13582 soname_spec='$libname$release$shared_ext$major'
13583 shlibpath_var=LD_LIBRARY_PATH
13584 shlibpath_overrides_runpath=no
13585 hardcode_into_libs=yes
13586 dynamic_linker='ldqnx.so'
13587 ;;
13588
13589 openbsd*)
13590 version_type=sunos
13591 sys_lib_dlsearch_path_spec=/usr/lib
13592 need_lib_prefix=no
13593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13594 need_version=no
13595 else
13596 need_version=yes
13597 fi
13598 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13600 shlibpath_var=LD_LIBRARY_PATH
13601 shlibpath_overrides_runpath=yes
13602 ;;
13603
13604 os2*)
13605 libname_spec='$name'
13606 version_type=windows
13607 shrext_cmds=.dll
13608 need_version=no
13609 need_lib_prefix=no
13610 # OS/2 can only load a DLL with a base name of 8 characters or less.
13611 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13612 v=$($ECHO $release$versuffix | tr -d .-);
13613 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13614 $ECHO $n$v`$shared_ext'
13615 library_names_spec='${libname}_dll.$libext'
13616 dynamic_linker='OS/2 ld.exe'
13617 shlibpath_var=BEGINLIBPATH
13618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13620 postinstall_cmds='base_file=`basename \$file`~
13621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13622 dldir=$destdir/`dirname \$dlpath`~
13623 test -d \$dldir || mkdir -p \$dldir~
13624 $install_prog $dir/$dlname \$dldir/$dlname~
13625 chmod a+x \$dldir/$dlname~
13626 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13627 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13628 fi'
13629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13630 dlpath=$dir/\$dldll~
13631 $RM \$dlpath'
13632 ;;
13633
13634 osf3* | osf4* | osf5*)
13635 version_type=osf
13636 need_lib_prefix=no
13637 need_version=no
13638 soname_spec='$libname$release$shared_ext$major'
13639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13640 shlibpath_var=LD_LIBRARY_PATH
13641 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13643 ;;
13644
13645 rdos*)
13646 dynamic_linker=no
13647 ;;
13648
13649 serenity*)
13650 version_type=linux # correct to gnu/linux during the next big refactor
13651 need_lib_prefix=no
13652 need_version=no
13653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13654 soname_spec='$libname$release$shared_ext$major'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 shlibpath_overrides_runpath=no
13657 dynamic_linker='SerenityOS LibELF'
13658 ;;
13659
13660 solaris*)
13661 version_type=linux # correct to gnu/linux during the next big refactor
13662 need_lib_prefix=no
13663 need_version=no
13664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13665 soname_spec='$libname$release$shared_ext$major'
13666 shlibpath_var=LD_LIBRARY_PATH
13667 shlibpath_overrides_runpath=yes
13668 hardcode_into_libs=yes
13669 # ldd complains unless libraries are executable
13670 postinstall_cmds='chmod +x $lib'
13671 ;;
13672
13673 sunos4*)
13674 version_type=sunos
13675 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13676 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13677 shlibpath_var=LD_LIBRARY_PATH
13678 shlibpath_overrides_runpath=yes
13679 if test yes = "$with_gnu_ld"; then
13680 need_lib_prefix=no
13681 fi
13682 need_version=yes
13683 ;;
13684
13685 sysv4 | sysv4.3*)
13686 version_type=linux # correct to gnu/linux during the next big refactor
13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13688 soname_spec='$libname$release$shared_ext$major'
13689 shlibpath_var=LD_LIBRARY_PATH
13690 case $host_vendor in
13691 sni)
13692 shlibpath_overrides_runpath=no
13693 need_lib_prefix=no
13694 runpath_var=LD_RUN_PATH
13695 ;;
13696 siemens)
13697 need_lib_prefix=no
13698 ;;
13699 motorola)
13700 need_lib_prefix=no
13701 need_version=no
13702 shlibpath_overrides_runpath=no
13703 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13704 ;;
13705 esac
13706 ;;
13707
13708 sysv4*MP*)
13709 if test -d /usr/nec; then
13710 version_type=linux # correct to gnu/linux during the next big refactor
13711 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13712 soname_spec='$libname$shared_ext.$major'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 fi
13715 ;;
13716
13717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13718 version_type=sco
13719 need_lib_prefix=no
13720 need_version=no
13721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13722 soname_spec='$libname$release$shared_ext$major'
13723 shlibpath_var=LD_LIBRARY_PATH
13724 shlibpath_overrides_runpath=yes
13725 hardcode_into_libs=yes
13726 if test yes = "$with_gnu_ld"; then
13727 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13728 else
13729 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13730 case $host_os in
13731 sco3.2v5*)
13732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13733 ;;
13734 esac
13735 fi
13736 sys_lib_dlsearch_path_spec='/usr/lib'
13737 ;;
13738
13739 tpf*)
13740 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13741 version_type=linux # correct to gnu/linux during the next big refactor
13742 need_lib_prefix=no
13743 need_version=no
13744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13745 shlibpath_var=LD_LIBRARY_PATH
13746 shlibpath_overrides_runpath=no
13747 hardcode_into_libs=yes
13748 ;;
13749
13750 uts4*)
13751 version_type=linux # correct to gnu/linux during the next big refactor
13752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13753 soname_spec='$libname$release$shared_ext$major'
13754 shlibpath_var=LD_LIBRARY_PATH
13755 ;;
13756
13757 emscripten*)
13758 version_type=none
13759 need_lib_prefix=no
13760 need_version=no
13761 library_names_spec='$libname$release$shared_ext'
13762 soname_spec='$libname$release$shared_ext'
13763 finish_cmds=
13764 dynamic_linker="Emscripten linker"
13765 lt_prog_compiler_wl=
13766 lt_prog_compiler_pic=
13767 lt_prog_compiler_static=
13768
13769
13770 if test yes = "$GCC"; then
13771 lt_prog_compiler_wl='-Wl,'
13772 lt_prog_compiler_static='-static'
13773
13774 case $host_os in
13775 aix*)
13776 # All AIX code is PIC.
13777 if test ia64 = "$host_cpu"; then
13778 # AIX 5 now supports IA64 processor
13779 lt_prog_compiler_static='-Bstatic'
13780 fi
13781 lt_prog_compiler_pic='-fPIC'
13782 ;;
13783
13784 amigaos*)
13785 case $host_cpu in
13786 powerpc)
13787 # see comment about AmigaOS4 .so support
13788 lt_prog_compiler_pic='-fPIC'
13789 ;;
13790 m68k)
13791 # FIXME: we need at least 68020 code to build shared libraries, but
13792 # adding the '-m68020' flag to GCC prevents building anything better,
13793 # like '-m68040'.
13794 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13795 ;;
13796 esac
13797 ;;
13798
13799 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13800 # PIC is the default for these OSes.
13801 ;;
13802
13803 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13804 # This hack is so that the source file can tell whether it is being
13805 # built for inclusion in a dll (and should export symbols for example).
13806 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13807 # (--disable-auto-import) libraries
13808 lt_prog_compiler_pic='-DDLL_EXPORT'
13809 case $host_os in
13810 os2*)
13811 lt_prog_compiler_static='$wl-static'
13812 ;;
13813 esac
13814 ;;
13815
13816 darwin* | rhapsody*)
13817 # PIC is the default on this platform
13818 # Common symbols not allowed in MH_DYLIB files
13819 lt_prog_compiler_pic='-fno-common'
13820 ;;
13821
13822 haiku*)
13823 # PIC is the default for Haiku.
13824 # The "-static" flag exists, but is broken.
13825 lt_prog_compiler_static=
13826 ;;
13827
13828 hpux*)
13829 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13830 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13831 # sets the default TLS model and affects inlining.
13832 case $host_cpu in
13833 hppa*64*)
13834 # +Z the default
13835 ;;
13836 *)
13837 lt_prog_compiler_pic='-fPIC'
13838 ;;
13839 esac
13840 ;;
13841
13842 interix[3-9]*)
13843 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13844 # Instead, we relocate shared libraries at runtime.
13845 ;;
13846
13847 msdosdjgpp*)
13848 # Just because we use GCC doesn't mean we suddenly get shared libraries
13849 # on systems that don't support them.
13850 lt_prog_compiler_can_build_shared=no
13851 enable_shared=no
13852 ;;
13853
13854 *nto* | *qnx*)
13855 # QNX uses GNU C++, but need to define -shared option too, otherwise
13856 # it will coredump.
13857 lt_prog_compiler_pic='-fPIC -shared'
13858 ;;
13859
13860 sysv4*MP*)
13861 if test -d /usr/nec; then
13862 lt_prog_compiler_pic=-Kconform_pic
13863 fi
13864 ;;
13865
13866 *)
13867 lt_prog_compiler_pic='-fPIC'
13868 ;;
13869 esac
13870
13871 case $cc_basename in
13872 nvcc*) # Cuda Compiler Driver 2.2
13873 lt_prog_compiler_wl='-Xlinker '
13874 if test -n "$lt_prog_compiler_pic"; then
13875 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13876 fi
13877 ;;
13878 esac
13879 else
13880 # PORTME Check for flag to pass linker flags through the system compiler.
13881 case $host_os in
13882 aix*)
13883 lt_prog_compiler_wl='-Wl,'
13884 if test ia64 = "$host_cpu"; then
13885 # AIX 5 now supports IA64 processor
13886 lt_prog_compiler_static='-Bstatic'
13887 else
13888 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13889 fi
13890 ;;
13891
13892 darwin* | rhapsody*)
13893 # PIC is the default on this platform
13894 # Common symbols not allowed in MH_DYLIB files
13895 lt_prog_compiler_pic='-fno-common'
13896 case $cc_basename in
13897 nagfor*)
13898 # NAG Fortran compiler
13899 lt_prog_compiler_wl='-Wl,-Wl,,'
13900 lt_prog_compiler_pic='-PIC'
13901 lt_prog_compiler_static='-Bstatic'
13902 ;;
13903 esac
13904 ;;
13905
13906 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13907 # This hack is so that the source file can tell whether it is being
13908 # built for inclusion in a dll (and should export symbols for example).
13909 lt_prog_compiler_pic='-DDLL_EXPORT'
13910 case $host_os in
13911 os2*)
13912 lt_prog_compiler_static='$wl-static'
13913 ;;
13914 esac
13915 ;;
13916
13917 hpux9* | hpux10* | hpux11*)
13918 lt_prog_compiler_wl='-Wl,'
13919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13920 # not for PA HP-UX.
13921 case $host_cpu in
13922 hppa*64*|ia64*)
13923 # +Z the default
13924 ;;
13925 *)
13926 lt_prog_compiler_pic='+Z'
13927 ;;
13928 esac
13929 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13930 lt_prog_compiler_static='$wl-a ${wl}archive'
13931 ;;
13932
13933 irix5* | irix6* | nonstopux*)
13934 lt_prog_compiler_wl='-Wl,'
13935 # PIC (with -KPIC) is the default.
13936 lt_prog_compiler_static='-non_shared'
13937 ;;
13938
13939 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13940 case $cc_basename in
13941 # old Intel for x86_64, which still supported -KPIC.
13942 ecc*)
13943 lt_prog_compiler_wl='-Wl,'
13944 lt_prog_compiler_pic='-KPIC'
13945 lt_prog_compiler_static='-static'
13946 ;;
13947 *flang* | ftn | f18* | f95*)
13948 # Flang compiler.
13949 lt_prog_compiler_wl='-Wl,'
13950 lt_prog_compiler_pic='-fPIC'
13951 lt_prog_compiler_static='-static'
13952 ;;
13953 # icc used to be incompatible with GCC.
13954 # ICC 10 doesn't accept -KPIC any more.
13955 icc* | ifort*)
13956 lt_prog_compiler_wl='-Wl,'
13957 lt_prog_compiler_pic='-fPIC'
13958 lt_prog_compiler_static='-static'
13959 ;;
13960 # Lahey Fortran 8.1.
13961 lf95*)
13962 lt_prog_compiler_wl='-Wl,'
13963 lt_prog_compiler_pic='--shared'
13964 lt_prog_compiler_static='--static'
13965 ;;
13966 nagfor*)
13967 # NAG Fortran compiler
13968 lt_prog_compiler_wl='-Wl,-Wl,,'
13969 lt_prog_compiler_pic='-PIC'
13970 lt_prog_compiler_static='-Bstatic'
13971 ;;
13972 tcc*)
13973 # Fabrice Bellard et al's Tiny C Compiler
13974 lt_prog_compiler_wl='-Wl,'
13975 lt_prog_compiler_pic='-fPIC'
13976 lt_prog_compiler_static='-static'
13977 ;;
13978 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13979 # Portland Group compilers (*not* the Pentium gcc compiler,
13980 # which looks to be a dead project)
13981 lt_prog_compiler_wl='-Wl,'
13982 lt_prog_compiler_pic='-fpic'
13983 lt_prog_compiler_static='-Bstatic'
13984 ;;
13985 ccc*)
13986 lt_prog_compiler_wl='-Wl,'
13987 # All Alpha code is PIC.
13988 lt_prog_compiler_static='-non_shared'
13989 ;;
13990 xl* | bgxl* | bgf* | mpixl*)
13991 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13992 lt_prog_compiler_wl='-Wl,'
13993 lt_prog_compiler_pic='-qpic'
13994 lt_prog_compiler_static='-qstaticlink'
13995 ;;
13996 *)
13997 case `$CC -V 2>&1 | $SED 5q` in
13998 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13999 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14000 lt_prog_compiler_pic='-KPIC'
14001 lt_prog_compiler_static='-Bstatic'
14002 lt_prog_compiler_wl=''
14003 ;;
14004 *Sun\ F* | *Sun*Fortran*)
14005 lt_prog_compiler_pic='-KPIC'
14006 lt_prog_compiler_static='-Bstatic'
14007 lt_prog_compiler_wl='-Qoption ld '
14008 ;;
14009 *Sun\ C*)
14010 # Sun C 5.9
14011 lt_prog_compiler_pic='-KPIC'
14012 lt_prog_compiler_static='-Bstatic'
14013 lt_prog_compiler_wl='-Wl,'
14014 ;;
14015 *Intel*\ [CF]*Compiler*)
14016 lt_prog_compiler_wl='-Wl,'
14017 lt_prog_compiler_pic='-fPIC'
14018 lt_prog_compiler_static='-static'
14019 ;;
14020 *Portland\ Group*)
14021 lt_prog_compiler_wl='-Wl,'
14022 lt_prog_compiler_pic='-fpic'
14023 lt_prog_compiler_static='-Bstatic'
14024 ;;
14025 esac
14026 ;;
14027 esac
14028 ;;
14029
14030 newsos6)
14031 lt_prog_compiler_pic='-KPIC'
14032 lt_prog_compiler_static='-Bstatic'
14033 ;;
14034
14035 *-mlibc)
14036 lt_prog_compiler_wl='-Wl,'
14037 lt_prog_compiler_pic='-fPIC'
14038 lt_prog_compiler_static='-static'
14039 ;;
14040
14041 *nto* | *qnx*)
14042 # QNX uses GNU C++, but need to define -shared option too, otherwise
14043 # it will coredump.
14044 lt_prog_compiler_pic='-fPIC -shared'
14045 ;;
14046
14047 osf3* | osf4* | osf5*)
14048 lt_prog_compiler_wl='-Wl,'
14049 # All OSF/1 code is PIC.
14050 lt_prog_compiler_static='-non_shared'
14051 ;;
14052
14053 rdos*)
14054 lt_prog_compiler_static='-non_shared'
14055 ;;
14056
14057 serenity*)
14058 ;;
14059
14060 solaris*)
14061 lt_prog_compiler_pic='-KPIC'
14062 lt_prog_compiler_static='-Bstatic'
14063 case $cc_basename in
14064 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14065 lt_prog_compiler_wl='-Qoption ld ';;
14066 *)
14067 lt_prog_compiler_wl='-Wl,';;
14068 esac
14069 ;;
14070
14071 sunos4*)
14072 lt_prog_compiler_wl='-Qoption ld '
14073 lt_prog_compiler_pic='-PIC'
14074 lt_prog_compiler_static='-Bstatic'
14075 ;;
14076
14077 sysv4 | sysv4.2uw2* | sysv4.3*)
14078 lt_prog_compiler_wl='-Wl,'
14079 lt_prog_compiler_pic='-KPIC'
14080 lt_prog_compiler_static='-Bstatic'
14081 ;;
14082
14083 sysv4*MP*)
14084 if test -d /usr/nec; then
14085 lt_prog_compiler_pic='-Kconform_pic'
14086 lt_prog_compiler_static='-Bstatic'
14087 fi
14088 ;;
14089
14090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14091 lt_prog_compiler_wl='-Wl,'
14092 lt_prog_compiler_pic='-KPIC'
14093 lt_prog_compiler_static='-Bstatic'
14094 ;;
14095
14096 unicos*)
14097 lt_prog_compiler_wl='-Wl,'
14098 lt_prog_compiler_can_build_shared=no
14099 ;;
14100
14101 uts4*)
14102 lt_prog_compiler_pic='-pic'
14103 lt_prog_compiler_static='-Bstatic'
14104 ;;
14105
14106 *)
14107 lt_prog_compiler_can_build_shared=no
14108 ;;
14109 esac
14110 fi
14111
14112 case $host_os in
14113 # For platforms that do not support PIC, -DPIC is meaningless:
14114 *djgpp*)
14115 lt_prog_compiler_pic=
14116 ;;
14117 *)
14118 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14119 ;;
14120 esac
14121
14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14123 printf %s "checking for $compiler option to produce PIC... " >&6; }
14124 if test ${lt_cv_prog_compiler_pic+y}
14125 then :
14126 printf %s "(cached) " >&6
14127 else case e in #(
14128 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14129 esac
14130 fi
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14132 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14133 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14134
14135 #
14136 # Check to make sure the PIC flag actually works.
14137 #
14138 if test -n "$lt_prog_compiler_pic"; then
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14140 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14141 if test ${lt_cv_prog_compiler_pic_works+y}
14142 then :
14143 printf %s "(cached) " >&6
14144 else case e in #(
14145 e) lt_cv_prog_compiler_pic_works=no
14146 ac_outfile=conftest.$ac_objext
14147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14148 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14149 # Insert the option either (1) after the last *FLAGS variable, or
14150 # (2) before a word containing "conftest.", or (3) at the end.
14151 # Note that $ac_compile itself does not contain backslashes and begins
14152 # with a dollar sign (not a hyphen), so the echo should work correctly.
14153 # The option is referenced via a variable to avoid confusing sed.
14154 lt_compile=`echo "$ac_compile" | $SED \
14155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14157 -e 's:$: $lt_compiler_flag:'`
14158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14159 (eval "$lt_compile" 2>conftest.err)
14160 ac_status=$?
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 if (exit $ac_status) && test -s "$ac_outfile"; then
14164 # The compiler can only warn and ignore the option if not recognized
14165 # So say no if there are warnings other than the usual output.
14166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14169 lt_cv_prog_compiler_pic_works=yes
14170 fi
14171 fi
14172 $RM conftest*
14173 ;;
14174 esac
14175 fi
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14177 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14178
14179 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14180 case $lt_prog_compiler_pic in
14181 "" | " "*) ;;
14182 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14183 esac
14184 else
14185 lt_prog_compiler_pic=
14186 lt_prog_compiler_can_build_shared=no
14187 fi
14188
14189 fi
14190
14191
14192
14193
14194
14195 #
14196 # Check to make sure the static flag actually works.
14197 #
14198 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14200 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14201 if test ${lt_cv_prog_compiler_static_works+y}
14202 then :
14203 printf %s "(cached) " >&6
14204 else case e in #(
14205 e) lt_cv_prog_compiler_static_works=no
14206 save_LDFLAGS=$LDFLAGS
14207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14210 # The linker can only warn and ignore the option if not recognized
14211 # So say no if there are warnings
14212 if test -s conftest.err; then
14213 # Append any errors to the config.log.
14214 cat conftest.err 1>&5
14215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14217 if diff conftest.exp conftest.er2 >/dev/null; then
14218 lt_cv_prog_compiler_static_works=yes
14219 fi
14220 else
14221 lt_cv_prog_compiler_static_works=yes
14222 fi
14223 fi
14224 $RM -r conftest*
14225 LDFLAGS=$save_LDFLAGS
14226 ;;
14227 esac
14228 fi
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14230 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14231
14232 if test yes = "$lt_cv_prog_compiler_static_works"; then
14233 :
14234 else
14235 lt_prog_compiler_static=
14236 fi
14237
14238
14239
14240 ='-fPIC'
14241 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14242 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'
14243 archive_cmds_need_lc=no
14244 no_undefined_flag=
14245 ;;
14246
14247 *)
14248 dynamic_linker=no
14249 ;;
14250 esac
14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14252 printf "%s\n" "$dynamic_linker" >&6; }
14253 test no = "$dynamic_linker" && can_build_shared=no
14254
14255 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14256 if test yes = "$GCC"; then
14257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14258 fi
14259
14260 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14261 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14262 fi
14263
14264 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14265 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14266 fi
14267
14268 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14269 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14270
14271 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14272 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14273
14274 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14275 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14374 printf %s "checking how to hardcode library paths into programs... " >&6; }
14375 hardcode_action=
14376 if test -n "$hardcode_libdir_flag_spec" ||
14377 test -n "$runpath_var" ||
14378 test yes = "$hardcode_automatic"; then
14379
14380 # We can hardcode non-existent directories.
14381 if test no != "$hardcode_direct" &&
14382 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14383 # have to relink, otherwise we might link with an installed library
14384 # when we should be linking with a yet-to-be-installed one
14385 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14386 test no != "$hardcode_minus_L"; then
14387 # Linking always hardcodes the temporary library directory.
14388 hardcode_action=relink
14389 else
14390 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14391 hardcode_action=immediate
14392 fi
14393 else
14394 # We cannot hardcode anything, or else we can only hardcode existing
14395 # directories.
14396 hardcode_action=unsupported
14397 fi
14398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14399 printf "%s\n" "$hardcode_action" >&6; }
14400
14401 if test relink = "$hardcode_action" ||
14402 test yes = "$inherit_rpath"; then
14403 # Fast installation is not supported
14404 enable_fast_install=no
14405 elif test yes = "$shlibpath_overrides_runpath" ||
14406 test no = "$enable_shared"; then
14407 # Fast installation is not necessary
14408 enable_fast_install=needless
14409 fi
14410
14411
14412
14413
14414
14415
14416 if test yes != "$enable_dlopen"; then
14417 enable_dlopen=unknown
14418 enable_dlopen_self=unknown
14419 enable_dlopen_self_static=unknown
14420 else
14421 lt_cv_dlopen=no
14422 lt_cv_dlopen_libs=
14423
14424 case $host_os in
14425 beos*)
14426 lt_cv_dlopen=load_add_on
14427 lt_cv_dlopen_libs=
14428 lt_cv_dlopen_self=yes
14429 ;;
14430
14431 mingw* | windows* | pw32* | cegcc*)
14432 lt_cv_dlopen=LoadLibrary
14433 lt_cv_dlopen_libs=
14434 ;;
14435
14436 cygwin*)
14437 lt_cv_dlopen=dlopen
14438 lt_cv_dlopen_libs=
14439 ;;
14440
14441 darwin*)
14442 # if libdl is installed we need to link against it
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14444 printf %s "checking for dlopen in -ldl... " >&6; }
14445 if test ${ac_cv_lib_dl_dlopen+y}
14446 then :
14447 printf %s "(cached) " >&6
14448 else case e in #(
14449 e) ac_check_lib_save_LIBS=$LIBS
14450 LIBS="-ldl $LIBS"
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453
14454 /* Override any GCC internal prototype to avoid an error.
14455 Use char because int might match the return type of a GCC
14456 builtin and then its argument prototype would still apply.
14457 The 'extern "C"' is for builds by C++ compilers;
14458 although this is not generally supported in C code supporting it here
14459 has little cost and some practical benefit (sr 110532). */
14460 #ifdef __cplusplus
14461 extern "C"
14462 #endif
14463 char dlopen (void);
14464 int
14465 main (void)
14466 {
14467 return dlopen ();
14468 ;
14469 return 0;
14470 }
14471 _ACEOF
14472 if ac_fn_c_try_link "$LINENO"
14473 then :
14474 ac_cv_lib_dl_dlopen=yes
14475 else case e in #(
14476 e) ac_cv_lib_dl_dlopen=no ;;
14477 esac
14478 fi
14479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14480 conftest$ac_exeext conftest.$ac_ext
14481 LIBS=$ac_check_lib_save_LIBS ;;
14482 esac
14483 fi
14484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14485 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14486 if test "x$ac_cv_lib_dl_dlopen" = xyes
14487 then :
14488 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14489 else case e in #(
14490 e)
14491 lt_cv_dlopen=dyld
14492 lt_cv_dlopen_libs=
14493 lt_cv_dlopen_self=yes
14494 ;;
14495 esac
14496 fi
14497
14498 ;;
14499
14500 tpf*)
14501 # Don't try to run any link tests for TPF. We know it's impossible
14502 # because TPF is a cross-compiler, and we know how we open DSOs.
14503 lt_cv_dlopen=dlopen
14504 lt_cv_dlopen_libs=
14505 lt_cv_dlopen_self=no
14506 ;;
14507
14508 *)
14509 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14510 if test "x$ac_cv_func_shl_load" = xyes
14511 then :
14512 lt_cv_dlopen=shl_load
14513 else case e in #(
14514 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14515 printf %s "checking for shl_load in -ldld... " >&6; }
14516 if test ${ac_cv_lib_dld_shl_load+y}
14517 then :
14518 printf %s "(cached) " >&6
14519 else case e in #(
14520 e) ac_check_lib_save_LIBS=$LIBS
14521 LIBS="-ldld $LIBS"
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524
14525 /* Override any GCC internal prototype to avoid an error.
14526 Use char because int might match the return type of a GCC
14527 builtin and then its argument prototype would still apply.
14528 The 'extern "C"' is for builds by C++ compilers;
14529 although this is not generally supported in C code supporting it here
14530 has little cost and some practical benefit (sr 110532). */
14531 #ifdef __cplusplus
14532 extern "C"
14533 #endif
14534 char shl_load (void);
14535 int
14536 main (void)
14537 {
14538 return shl_load ();
14539 ;
14540 return 0;
14541 }
14542 _ACEOF
14543 if ac_fn_c_try_link "$LINENO"
14544 then :
14545 ac_cv_lib_dld_shl_load=yes
14546 else case e in #(
14547 e) ac_cv_lib_dld_shl_load=no ;;
14548 esac
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14551 conftest$ac_exeext conftest.$ac_ext
14552 LIBS=$ac_check_lib_save_LIBS ;;
14553 esac
14554 fi
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14556 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14557 if test "x$ac_cv_lib_dld_shl_load" = xyes
14558 then :
14559 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14560 else case e in #(
14561 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14562 if test "x$ac_cv_func_dlopen" = xyes
14563 then :
14564 lt_cv_dlopen=dlopen
14565 else case e in #(
14566 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14567 printf %s "checking for dlopen in -ldl... " >&6; }
14568 if test ${ac_cv_lib_dl_dlopen+y}
14569 then :
14570 printf %s "(cached) " >&6
14571 else case e in #(
14572 e) ac_check_lib_save_LIBS=$LIBS
14573 LIBS="-ldl $LIBS"
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14576
14577 /* Override any GCC internal prototype to avoid an error.
14578 Use char because int might match the return type of a GCC
14579 builtin and then its argument prototype would still apply.
14580 The 'extern "C"' is for builds by C++ compilers;
14581 although this is not generally supported in C code supporting it here
14582 has little cost and some practical benefit (sr 110532). */
14583 #ifdef __cplusplus
14584 extern "C"
14585 #endif
14586 char dlopen (void);
14587 int
14588 main (void)
14589 {
14590 return dlopen ();
14591 ;
14592 return 0;
14593 }
14594 _ACEOF
14595 if ac_fn_c_try_link "$LINENO"
14596 then :
14597 ac_cv_lib_dl_dlopen=yes
14598 else case e in #(
14599 e) ac_cv_lib_dl_dlopen=no ;;
14600 esac
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14603 conftest$ac_exeext conftest.$ac_ext
14604 LIBS=$ac_check_lib_save_LIBS ;;
14605 esac
14606 fi
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14608 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14609 if test "x$ac_cv_lib_dl_dlopen" = xyes
14610 then :
14611 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14612 else case e in #(
14613 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14614 printf %s "checking for dlopen in -lsvld... " >&6; }
14615 if test ${ac_cv_lib_svld_dlopen+y}
14616 then :
14617 printf %s "(cached) " >&6
14618 else case e in #(
14619 e) ac_check_lib_save_LIBS=$LIBS
14620 LIBS="-lsvld $LIBS"
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply.
14627 The 'extern "C"' is for builds by C++ compilers;
14628 although this is not generally supported in C code supporting it here
14629 has little cost and some practical benefit (sr 110532). */
14630 #ifdef __cplusplus
14631 extern "C"
14632 #endif
14633 char dlopen (void);
14634 int
14635 main (void)
14636 {
14637 return dlopen ();
14638 ;
14639 return 0;
14640 }
14641 _ACEOF
14642 if ac_fn_c_try_link "$LINENO"
14643 then :
14644 ac_cv_lib_svld_dlopen=yes
14645 else case e in #(
14646 e) ac_cv_lib_svld_dlopen=no ;;
14647 esac
14648 fi
14649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14650 conftest$ac_exeext conftest.$ac_ext
14651 LIBS=$ac_check_lib_save_LIBS ;;
14652 esac
14653 fi
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14655 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14656 if test "x$ac_cv_lib_svld_dlopen" = xyes
14657 then :
14658 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14659 else case e in #(
14660 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14661 printf %s "checking for dld_link in -ldld... " >&6; }
14662 if test ${ac_cv_lib_dld_dld_link+y}
14663 then :
14664 printf %s "(cached) " >&6
14665 else case e in #(
14666 e) ac_check_lib_save_LIBS=$LIBS
14667 LIBS="-ldld $LIBS"
14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669 /* end confdefs.h. */
14670
14671 /* Override any GCC internal prototype to avoid an error.
14672 Use char because int might match the return type of a GCC
14673 builtin and then its argument prototype would still apply.
14674 The 'extern "C"' is for builds by C++ compilers;
14675 although this is not generally supported in C code supporting it here
14676 has little cost and some practical benefit (sr 110532). */
14677 #ifdef __cplusplus
14678 extern "C"
14679 #endif
14680 char dld_link (void);
14681 int
14682 main (void)
14683 {
14684 return dld_link ();
14685 ;
14686 return 0;
14687 }
14688 _ACEOF
14689 if ac_fn_c_try_link "$LINENO"
14690 then :
14691 ac_cv_lib_dld_dld_link=yes
14692 else case e in #(
14693 e) ac_cv_lib_dld_dld_link=no ;;
14694 esac
14695 fi
14696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14697 conftest$ac_exeext conftest.$ac_ext
14698 LIBS=$ac_check_lib_save_LIBS ;;
14699 esac
14700 fi
14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14702 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14703 if test "x$ac_cv_lib_dld_dld_link" = xyes
14704 then :
14705 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14706 fi
14707
14708 ;;
14709 esac
14710 fi
14711
14712 ;;
14713 esac
14714 fi
14715
14716 ;;
14717 esac
14718 fi
14719
14720 ;;
14721 esac
14722 fi
14723
14724 ;;
14725 esac
14726 fi
14727
14728 ;;
14729 esac
14730
14731 if test no = "$lt_cv_dlopen"; then
14732 enable_dlopen=no
14733 else
14734 enable_dlopen=yes
14735 fi
14736
14737 case $lt_cv_dlopen in
14738 dlopen)
14739 save_CPPFLAGS=$CPPFLAGS
14740 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14741
14742 save_LDFLAGS=$LDFLAGS
14743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14744
14745 save_LIBS=$LIBS
14746 LIBS="$lt_cv_dlopen_libs $LIBS"
14747
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14749 printf %s "checking whether a program can dlopen itself... " >&6; }
14750 if test ${lt_cv_dlopen_self+y}
14751 then :
14752 printf %s "(cached) " >&6
14753 else case e in #(
14754 e) if test yes = "$cross_compiling"; then :
14755 lt_cv_dlopen_self=cross
14756 else
14757 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14758 lt_status=$lt_dlunknown
14759 cat > conftest.$ac_ext <<_LT_EOF
14760 #line $LINENO "configure"
14761 #include "confdefs.h"
14762
14763 #if HAVE_DLFCN_H
14764 #include <dlfcn.h>
14765 #endif
14766
14767 #include <stdio.h>
14768
14769 #ifdef RTLD_GLOBAL
14770 # define LT_DLGLOBAL RTLD_GLOBAL
14771 #else
14772 # ifdef DL_GLOBAL
14773 # define LT_DLGLOBAL DL_GLOBAL
14774 # else
14775 # define LT_DLGLOBAL 0
14776 # endif
14777 #endif
14778
14779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14780 find out it does not work in some platform. */
14781 #ifndef LT_DLLAZY_OR_NOW
14782 # ifdef RTLD_LAZY
14783 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14784 # else
14785 # ifdef DL_LAZY
14786 # define LT_DLLAZY_OR_NOW DL_LAZY
14787 # else
14788 # ifdef RTLD_NOW
14789 # define LT_DLLAZY_OR_NOW RTLD_NOW
14790 # else
14791 # ifdef DL_NOW
14792 # define LT_DLLAZY_OR_NOW DL_NOW
14793 # else
14794 # define LT_DLLAZY_OR_NOW 0
14795 # endif
14796 # endif
14797 # endif
14798 # endif
14799 #endif
14800
14801 /* When -fvisibility=hidden is used, assume the code has been annotated
14802 correspondingly for the symbols needed. */
14803 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14804 int fnord (void) __attribute__((visibility("default")));
14805 #endif
14806
14807 int fnord (void) { return 42; }
14808 int main (void)
14809 {
14810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14811 int status = $lt_dlunknown;
14812
14813 if (self)
14814 {
14815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14816 else
14817 {
14818 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14819 else puts (dlerror ());
14820 }
14821 /* dlclose (self); */
14822 }
14823 else
14824 puts (dlerror ());
14825
14826 return status;
14827 }
14828 _LT_EOF
14829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14830 (eval $ac_link) 2>&5
14831 ac_status=$?
14832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14833 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14834 (./conftest; exit; ) >&5 2>/dev/null
14835 lt_status=$?
14836 case x$lt_status in
14837 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14838 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14839 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14840 esac
14841 else :
14842 # compilation failed
14843 lt_cv_dlopen_self=no
14844 fi
14845 fi
14846 rm -fr conftest*
14847
14848 ;;
14849 esac
14850 fi
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14852 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14853
14854 if test yes = "$lt_cv_dlopen_self"; then
14855 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14857 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14858 if test ${lt_cv_dlopen_self_static+y}
14859 then :
14860 printf %s "(cached) " >&6
14861 else case e in #(
14862 e) if test yes = "$cross_compiling"; then :
14863 lt_cv_dlopen_self_static=cross
14864 else
14865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14866 lt_status=$lt_dlunknown
14867 cat > conftest.$ac_ext <<_LT_EOF
14868 #line $LINENO "configure"
14869 #include "confdefs.h"
14870
14871 #if HAVE_DLFCN_H
14872 #include <dlfcn.h>
14873 #endif
14874
14875 #include <stdio.h>
14876
14877 #ifdef RTLD_GLOBAL
14878 # define LT_DLGLOBAL RTLD_GLOBAL
14879 #else
14880 # ifdef DL_GLOBAL
14881 # define LT_DLGLOBAL DL_GLOBAL
14882 # else
14883 # define LT_DLGLOBAL 0
14884 # endif
14885 #endif
14886
14887 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14888 find out it does not work in some platform. */
14889 #ifndef LT_DLLAZY_OR_NOW
14890 # ifdef RTLD_LAZY
14891 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14892 # else
14893 # ifdef DL_LAZY
14894 # define LT_DLLAZY_OR_NOW DL_LAZY
14895 # else
14896 # ifdef RTLD_NOW
14897 # define LT_DLLAZY_OR_NOW RTLD_NOW
14898 # else
14899 # ifdef DL_NOW
14900 # define LT_DLLAZY_OR_NOW DL_NOW
14901 # else
14902 # define LT_DLLAZY_OR_NOW 0
14903 # endif
14904 # endif
14905 # endif
14906 # endif
14907 #endif
14908
14909 /* When -fvisibility=hidden is used, assume the code has been annotated
14910 correspondingly for the symbols needed. */
14911 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14912 int fnord (void) __attribute__((visibility("default")));
14913 #endif
14914
14915 int fnord (void) { return 42; }
14916 int main (void)
14917 {
14918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14919 int status = $lt_dlunknown;
14920
14921 if (self)
14922 {
14923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14924 else
14925 {
14926 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14927 else puts (dlerror ());
14928 }
14929 /* dlclose (self); */
14930 }
14931 else
14932 puts (dlerror ());
14933
14934 return status;
14935 }
14936 _LT_EOF
14937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14938 (eval $ac_link) 2>&5
14939 ac_status=$?
14940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14941 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14942 (./conftest; exit; ) >&5 2>/dev/null
14943 lt_status=$?
14944 case x$lt_status in
14945 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14946 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14947 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14948 esac
14949 else :
14950 # compilation failed
14951 lt_cv_dlopen_self_static=no
14952 fi
14953 fi
14954 rm -fr conftest*
14955
14956 ;;
14957 esac
14958 fi
14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14960 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14961 fi
14962
14963 CPPFLAGS=$save_CPPFLAGS
14964 LDFLAGS=$save_LDFLAGS
14965 LIBS=$save_LIBS
14966 ;;
14967 esac
14968
14969 case $lt_cv_dlopen_self in
14970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14971 *) enable_dlopen_self=unknown ;;
14972 esac
14973
14974 case $lt_cv_dlopen_self_static in
14975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14976 *) enable_dlopen_self_static=unknown ;;
14977 esac
14978 fi
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996 striplib=
14997 old_striplib=
14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14999 printf %s "checking whether stripping libraries is possible... " >&6; }
15000 if test -z "$STRIP"; then
15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 printf "%s\n" "no" >&6; }
15003 else
15004 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15005 old_striplib="$STRIP --strip-debug"
15006 striplib="$STRIP --strip-unneeded"
15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15008 printf "%s\n" "yes" >&6; }
15009 else
15010 case $host_os in
15011 darwin*)
15012 # FIXME - insert some real tests, host_os isn't really good enough
15013 striplib="$STRIP -x"
15014 old_striplib="$STRIP -S"
15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15016 printf "%s\n" "yes" >&6; }
15017 ;;
15018 freebsd*)
15019 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15020 old_striplib="$STRIP --strip-debug"
15021 striplib="$STRIP --strip-unneeded"
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15023 printf "%s\n" "yes" >&6; }
15024 else
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15026 printf "%s\n" "no" >&6; }
15027 fi
15028 ;;
15029 *)
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15031 printf "%s\n" "no" >&6; }
15032 ;;
15033 esac
15034 fi
15035 fi
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048 # Report what library types will actually be built
15049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15050 printf %s "checking if libtool supports shared libraries... " >&6; }
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15052 printf "%s\n" "$can_build_shared" >&6; }
15053
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15055 printf %s "checking whether to build shared libraries... " >&6; }
15056 test no = "$can_build_shared" && enable_shared=no
15057
15058 # On AIX, shared libraries and static libraries use the same namespace, and
15059 # are all built from PIC.
15060 case $host_os in
15061 aix3*)
15062 test yes = "$enable_shared" && enable_static=no
15063 if test -n "$RANLIB"; then
15064 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15065 postinstall_cmds='$RANLIB $lib'
15066 fi
15067 ;;
15068
15069 aix[4-9]*)
15070 if test ia64 != "$host_cpu"; then
15071 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15072 yes,aix,yes) ;; # shared object as lib.so file only
15073 yes,svr4,*) ;; # shared object as lib.so archive member only
15074 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15075 esac
15076 fi
15077 ;;
15078 esac
15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15080 printf "%s\n" "$enable_shared" >&6; }
15081
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15083 printf %s "checking whether to build static libraries... " >&6; }
15084 # Make sure either enable_shared or enable_static is yes.
15085 test yes = "$enable_shared" || enable_static=yes
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15087 printf "%s\n" "$enable_static" >&6; }
15088
15089
15090
15091
15092 fi
15093 ac_ext=c
15094 ac_cpp='$CPP $CPPFLAGS'
15095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15098
15099 CC=$lt_save_CC
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115 ac_config_commands="$ac_config_commands libtool"
15116
15117
15118
15119
15120 # Only expand once:
15121
15122
15123 # (end lt_init)
15124 # Check whether --enable-largefile was given.
15125 if test ${enable_largefile+y}
15126 then :
15127 enableval=$enable_largefile;
15128 fi
15129 if test "$enable_largefile,$enable_year2038" != no,no
15130 then :
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15132 printf %s "checking for $CC option to enable large file support... " >&6; }
15133 if test ${ac_cv_sys_largefile_opts+y}
15134 then :
15135 printf %s "(cached) " >&6
15136 else case e in #(
15137 e) ac_save_CC="$CC"
15138 ac_opt_found=no
15139 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15140 if test x"$ac_opt" != x"none needed"
15141 then :
15142 CC="$ac_save_CC $ac_opt"
15143 fi
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15146 #include <sys/types.h>
15147 #ifndef FTYPE
15148 # define FTYPE off_t
15149 #endif
15150 /* Check that FTYPE can represent 2**63 - 1 correctly.
15151 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15152 since some C++ compilers masquerading as C compilers
15153 incorrectly reject 9223372036854775807. */
15154 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15155 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15156 && LARGE_FTYPE % 2147483647 == 1)
15157 ? 1 : -1];
15158 int
15159 main (void)
15160 {
15161
15162 ;
15163 return 0;
15164 }
15165 _ACEOF
15166 if ac_fn_c_try_compile "$LINENO"
15167 then :
15168 if test x"$ac_opt" = x"none needed"
15169 then :
15170 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15171 CC="$CC -DFTYPE=ino_t"
15172 if ac_fn_c_try_compile "$LINENO"
15173 then :
15174
15175 else case e in #(
15176 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15177 if ac_fn_c_try_compile "$LINENO"
15178 then :
15179 ac_opt='-D_FILE_OFFSET_BITS=64'
15180 fi
15181 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15182 esac
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.beam
15185 fi
15186 ac_cv_sys_largefile_opts=$ac_opt
15187 ac_opt_found=yes
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15190 test $ac_opt_found = no || break
15191 done
15192 CC="$ac_save_CC"
15193
15194 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15195 esac
15196 fi
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15198 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15199
15200 ac_have_largefile=yes
15201 case $ac_cv_sys_largefile_opts in #(
15202 "none needed") :
15203 ;; #(
15204 "supported through gnulib") :
15205 ;; #(
15206 "support not detected") :
15207 ac_have_largefile=no ;; #(
15208 "-D_FILE_OFFSET_BITS=64") :
15209
15210 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15211 ;; #(
15212 "-D_LARGE_FILES=1") :
15213
15214 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15215 ;; #(
15216 "-n32") :
15217 CC="$CC -n32" ;; #(
15218 *) :
15219 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15220 esac
15221
15222 if test "$enable_year2038" != no
15223 then :
15224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15225 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15226 if test ${ac_cv_sys_year2038_opts+y}
15227 then :
15228 printf %s "(cached) " >&6
15229 else case e in #(
15230 e) ac_save_CPPFLAGS="$CPPFLAGS"
15231 ac_opt_found=no
15232 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
15233 if test x"$ac_opt" != x"none needed"
15234 then :
15235 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15236 fi
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239
15240 #include <time.h>
15241 /* Check that time_t can represent 2**32 - 1 correctly. */
15242 #define LARGE_TIME_T \\
15243 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15244 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15245 && LARGE_TIME_T % 65537 == 0)
15246 ? 1 : -1];
15247
15248 int
15249 main (void)
15250 {
15251
15252 ;
15253 return 0;
15254 }
15255 _ACEOF
15256 if ac_fn_c_try_compile "$LINENO"
15257 then :
15258 ac_cv_sys_year2038_opts="$ac_opt"
15259 ac_opt_found=yes
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15262 test $ac_opt_found = no || break
15263 done
15264 CPPFLAGS="$ac_save_CPPFLAGS"
15265 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15266 esac
15267 fi
15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15269 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15270
15271 ac_have_year2038=yes
15272 case $ac_cv_sys_year2038_opts in #(
15273 "none needed") :
15274 ;; #(
15275 "support not detected") :
15276 ac_have_year2038=no ;; #(
15277 "-D_TIME_BITS=64") :
15278
15279 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15280 ;; #(
15281 "-D__MINGW_USE_VC2005_COMPAT") :
15282
15283 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15284 ;; #(
15285 "-U_USE_32_BIT_TIME_T"*) :
15286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15287 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15288 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15289 will stop working after mid-January 2038. Remove
15290 _USE_32BIT_TIME_T from the compiler flags.
15291 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15292 *) :
15293 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15294 esac
15295
15296 fi
15297
15298 fi
15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15300 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15301 if test ${ac_cv_func_fseeko_ftello+y}
15302 then :
15303 printf %s "(cached) " >&6
15304 else case e in #(
15305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307
15308 #if defined __hpux && !defined _LARGEFILE_SOURCE
15309 # include <limits.h>
15310 # if LONG_MAX >> 31 == 0
15311 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15312 # endif
15313 #endif
15314 #include <sys/types.h> /* for off_t */
15315 #include <stdio.h>
15316
15317 int
15318 main (void)
15319 {
15320
15321 int (*fp1) (FILE *, off_t, int) = fseeko;
15322 off_t (*fp2) (FILE *) = ftello;
15323 return fseeko (stdin, 0, 0)
15324 && fp1 (stdin, 0, 0)
15325 && ftello (stdin) >= 0
15326 && fp2 (stdin) >= 0;
15327
15328 ;
15329 return 0;
15330 }
15331 _ACEOF
15332 if ac_fn_c_try_compile "$LINENO"
15333 then :
15334 ac_cv_func_fseeko_ftello=yes
15335 else case e in #(
15336 e) ac_save_CPPFLAGS="$CPPFLAGS"
15337 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340
15341 #if defined __hpux && !defined _LARGEFILE_SOURCE
15342 # include <limits.h>
15343 # if LONG_MAX >> 31 == 0
15344 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15345 # endif
15346 #endif
15347 #include <sys/types.h> /* for off_t */
15348 #include <stdio.h>
15349
15350 int
15351 main (void)
15352 {
15353
15354 int (*fp1) (FILE *, off_t, int) = fseeko;
15355 off_t (*fp2) (FILE *) = ftello;
15356 return fseeko (stdin, 0, 0)
15357 && fp1 (stdin, 0, 0)
15358 && ftello (stdin) >= 0
15359 && fp2 (stdin) >= 0;
15360
15361 ;
15362 return 0;
15363 }
15364 _ACEOF
15365 if ac_fn_c_try_compile "$LINENO"
15366 then :
15367 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15368 else case e in #(
15369 e) ac_cv_func_fseeko_ftello=no ;;
15370 esac
15371 fi
15372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15373 esac
15374 fi
15375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15376 esac
15377 fi
15378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15379 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15380 if test "$ac_cv_func_fseeko_ftello" != no
15381 then :
15382
15383 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15384
15385 fi
15386 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15387 then :
15388
15389 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15390
15391 fi
15392
15393 ac_header_dirent=no
15394 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15395 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15397 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15398 if eval test \${$as_ac_Header+y}
15399 then :
15400 printf %s "(cached) " >&6
15401 else case e in #(
15402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404 #include <sys/types.h>
15405 #include <$ac_hdr>
15406
15407 int
15408 main (void)
15409 {
15410 if ((DIR *) 0)
15411 return 0;
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_compile "$LINENO"
15417 then :
15418 eval "$as_ac_Header=yes"
15419 else case e in #(
15420 e) eval "$as_ac_Header=no" ;;
15421 esac
15422 fi
15423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15424 esac
15425 fi
15426 eval ac_res=\$$as_ac_Header
15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15428 printf "%s\n" "$ac_res" >&6; }
15429 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15430 then :
15431 cat >>confdefs.h <<_ACEOF
15432 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15433 _ACEOF
15434
15435 ac_header_dirent=$ac_hdr; break
15436 fi
15437
15438 done
15439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15440 if test $ac_header_dirent = dirent.h; then
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15442 printf %s "checking for library containing opendir... " >&6; }
15443 if test ${ac_cv_search_opendir+y}
15444 then :
15445 printf %s "(cached) " >&6
15446 else case e in #(
15447 e) ac_func_search_save_LIBS=$LIBS
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450
15451 /* Override any GCC internal prototype to avoid an error.
15452 Use char because int might match the return type of a GCC
15453 builtin and then its argument prototype would still apply.
15454 The 'extern "C"' is for builds by C++ compilers;
15455 although this is not generally supported in C code supporting it here
15456 has little cost and some practical benefit (sr 110532). */
15457 #ifdef __cplusplus
15458 extern "C"
15459 #endif
15460 char opendir (void);
15461 int
15462 main (void)
15463 {
15464 return opendir ();
15465 ;
15466 return 0;
15467 }
15468 _ACEOF
15469 for ac_lib in '' dir
15470 do
15471 if test -z "$ac_lib"; then
15472 ac_res="none required"
15473 else
15474 ac_res=-l$ac_lib
15475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15476 fi
15477 if ac_fn_c_try_link "$LINENO"
15478 then :
15479 ac_cv_search_opendir=$ac_res
15480 fi
15481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15482 conftest$ac_exeext
15483 if test ${ac_cv_search_opendir+y}
15484 then :
15485 break
15486 fi
15487 done
15488 if test ${ac_cv_search_opendir+y}
15489 then :
15490
15491 else case e in #(
15492 e) ac_cv_search_opendir=no ;;
15493 esac
15494 fi
15495 rm conftest.$ac_ext
15496 LIBS=$ac_func_search_save_LIBS ;;
15497 esac
15498 fi
15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15500 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15501 ac_res=$ac_cv_search_opendir
15502 if test "$ac_res" != no
15503 then :
15504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15505
15506 fi
15507
15508 else
15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15510 printf %s "checking for library containing opendir... " >&6; }
15511 if test ${ac_cv_search_opendir+y}
15512 then :
15513 printf %s "(cached) " >&6
15514 else case e in #(
15515 e) ac_func_search_save_LIBS=$LIBS
15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15518
15519 /* Override any GCC internal prototype to avoid an error.
15520 Use char because int might match the return type of a GCC
15521 builtin and then its argument prototype would still apply.
15522 The 'extern "C"' is for builds by C++ compilers;
15523 although this is not generally supported in C code supporting it here
15524 has little cost and some practical benefit (sr 110532). */
15525 #ifdef __cplusplus
15526 extern "C"
15527 #endif
15528 char opendir (void);
15529 int
15530 main (void)
15531 {
15532 return opendir ();
15533 ;
15534 return 0;
15535 }
15536 _ACEOF
15537 for ac_lib in '' x
15538 do
15539 if test -z "$ac_lib"; then
15540 ac_res="none required"
15541 else
15542 ac_res=-l$ac_lib
15543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15544 fi
15545 if ac_fn_c_try_link "$LINENO"
15546 then :
15547 ac_cv_search_opendir=$ac_res
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15550 conftest$ac_exeext
15551 if test ${ac_cv_search_opendir+y}
15552 then :
15553 break
15554 fi
15555 done
15556 if test ${ac_cv_search_opendir+y}
15557 then :
15558
15559 else case e in #(
15560 e) ac_cv_search_opendir=no ;;
15561 esac
15562 fi
15563 rm conftest.$ac_ext
15564 LIBS=$ac_func_search_save_LIBS ;;
15565 esac
15566 fi
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15568 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15569 ac_res=$ac_cv_search_opendir
15570 if test "$ac_res" != no
15571 then :
15572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15573
15574 fi
15575
15576 fi
15577
15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15579 printf %s "checking whether closedir returns void... " >&6; }
15580 if test ${ac_cv_func_closedir_void+y}
15581 then :
15582 printf %s "(cached) " >&6
15583 else case e in #(
15584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15586
15587 #include <$ac_header_dirent>
15588
15589 int
15590 main (void)
15591 {
15592
15593 return closedir(0);
15594
15595 ;
15596 return 0;
15597 }
15598 _ACEOF
15599 if ac_fn_c_try_compile "$LINENO"
15600 then :
15601 ac_cv_func_closedir_void=no
15602 else case e in #(
15603 e) ac_cv_func_closedir_void=yes ;;
15604 esac
15605 fi
15606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15607 esac
15608 fi
15609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15610 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15611 if test $ac_cv_func_closedir_void = yes; then
15612
15613 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15614
15615 fi
15616
15617 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15618 if test "x$ac_cv_header_assert_h" = xyes
15619 then :
15620 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15621
15622 fi
15623 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15624 if test "x$ac_cv_header_float_h" = xyes
15625 then :
15626 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15627
15628 fi
15629 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15630 if test "x$ac_cv_header_limits_h" = xyes
15631 then :
15632 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15633
15634 fi
15635 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15636 if test "x$ac_cv_header_pwd_h" = xyes
15637 then :
15638 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15639
15640 fi
15641 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15642 if test "x$ac_cv_header_stdlib_h" = xyes
15643 then :
15644 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15645
15646 fi
15647 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15648 if test "x$ac_cv_header_sys_param_h" = xyes
15649 then :
15650 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15651
15652 fi
15653
15654 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15655 if test "x$ac_cv_func_putenv" = xyes
15656 then :
15657 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15658
15659 fi
15660
15661 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15662 if test "x$ac_cv_func_getcwd" = xyes
15663 then :
15664 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15665
15666 fi
15667 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15668 if test "x$ac_cv_func_memcmp" = xyes
15669 then :
15670 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15671
15672 fi
15673 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15674 if test "x$ac_cv_func_memcpy" = xyes
15675 then :
15676 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15677
15678 fi
15679 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15680 if test "x$ac_cv_func_mkstemp" = xyes
15681 then :
15682 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15683
15684 fi
15685 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15686 if test "x$ac_cv_func_mktemp" = xyes
15687 then :
15688 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15689
15690 fi
15691 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15692 if test "x$ac_cv_func_strchr" = xyes
15693 then :
15694 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15695
15696 fi
15697 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15698 if test "x$ac_cv_func_strrchr" = xyes
15699 then :
15700 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15701
15702 fi
15703
15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15705 printf %s "checking for an ANSI C-conforming const... " >&6; }
15706 if test ${ac_cv_c_const+y}
15707 then :
15708 printf %s "(cached) " >&6
15709 else case e in #(
15710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712
15713 int
15714 main (void)
15715 {
15716
15717 #ifndef __cplusplus
15718 /* Ultrix mips cc rejects this sort of thing. */
15719 typedef int charset[2];
15720 const charset cs = { 0, 0 };
15721 /* SunOS 4.1.1 cc rejects this. */
15722 char const *const *pcpcc;
15723 char **ppc;
15724 /* NEC SVR4.0.2 mips cc rejects this. */
15725 struct point {int x, y;};
15726 static struct point const zero = {0,0};
15727 /* IBM XL C 1.02.0.0 rejects this.
15728 It does not let you subtract one const X* pointer from another in
15729 an arm of an if-expression whose if-part is not a constant
15730 expression */
15731 const char *g = "string";
15732 pcpcc = &g + (g ? g-g : 0);
15733 /* HPUX 7.0 cc rejects these. */
15734 ++pcpcc;
15735 ppc = (char**) pcpcc;
15736 pcpcc = (char const *const *) ppc;
15737 { /* SCO 3.2v4 cc rejects this sort of thing. */
15738 char tx;
15739 char *t = &tx;
15740 char const *s = 0 ? (char *) 0 : (char const *) 0;
15741
15742 *t++ = 0;
15743 if (s) return 0;
15744 }
15745 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15746 int x[] = {25, 17};
15747 const int *foo = &x[0];
15748 ++foo;
15749 }
15750 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15751 typedef const int *iptr;
15752 iptr p = 0;
15753 ++p;
15754 }
15755 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15756 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15757 struct s { int j; const int *ap[3]; } bx;
15758 struct s *b = &bx; b->j = 5;
15759 }
15760 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15761 const int foo = 10;
15762 if (!foo) return 0;
15763 }
15764 return !cs[0] && !zero.x;
15765 #endif
15766
15767 ;
15768 return 0;
15769 }
15770 _ACEOF
15771 if ac_fn_c_try_compile "$LINENO"
15772 then :
15773 ac_cv_c_const=yes
15774 else case e in #(
15775 e) ac_cv_c_const=no ;;
15776 esac
15777 fi
15778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15779 esac
15780 fi
15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15782 printf "%s\n" "$ac_cv_c_const" >&6; }
15783 if test $ac_cv_c_const = no; then
15784
15785 printf "%s\n" "#define const /**/" >>confdefs.h
15786
15787 fi
15788
15789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15790 printf %s "checking for inline... " >&6; }
15791 if test ${ac_cv_c_inline+y}
15792 then :
15793 printf %s "(cached) " >&6
15794 else case e in #(
15795 e) ac_cv_c_inline=no
15796 for ac_kw in inline __inline__ __inline; do
15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15799 #ifndef __cplusplus
15800 typedef int foo_t;
15801 static $ac_kw foo_t static_foo (void) {return 0; }
15802 $ac_kw foo_t foo (void) {return 0; }
15803 #endif
15804
15805 _ACEOF
15806 if ac_fn_c_try_compile "$LINENO"
15807 then :
15808 ac_cv_c_inline=$ac_kw
15809 fi
15810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15811 test "$ac_cv_c_inline" != no && break
15812 done
15813 ;;
15814 esac
15815 fi
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15817 printf "%s\n" "$ac_cv_c_inline" >&6; }
15818
15819 case $ac_cv_c_inline in
15820 inline | yes) ;;
15821 *)
15822 case $ac_cv_c_inline in
15823 no) ac_val=;;
15824 *) ac_val=$ac_cv_c_inline;;
15825 esac
15826 cat >>confdefs.h <<_ACEOF
15827 #ifndef __cplusplus
15828 #define inline $ac_val
15829 #endif
15830 _ACEOF
15831 ;;
15832 esac
15833
15834 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15835 if test "x$ac_cv_type_size_t" = xyes
15836 then :
15837
15838 else case e in #(
15839 e)
15840 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15841 ;;
15842 esac
15843 fi
15844
15845 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15846 case $ac_cv_c_int64_t in #(
15847 no|yes) ;; #(
15848 *)
15849
15850 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15851 ;;
15852 esac
15853
15854 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15855 case $ac_cv_c_uint64_t in #(
15856 no|yes) ;; #(
15857 *)
15858
15859 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15860
15861
15862 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15863 ;;
15864 esac
15865
15866 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15867 *':no:'*) :
15868 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15869 *) :
15870 ;;
15871 esac
15872 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15873 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15874 if test "x$ac_cv_have_decl_isascii" = xyes
15875 then :
15876 ac_have_decl=1
15877 else case e in #(
15878 e) ac_have_decl=0 ;;
15879 esac
15880 fi
15881 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15882
15883 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15884 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15885 then :
15886
15887 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15888
15889
15890 fi
15891
15892
15893
15894 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
15895
15896
15897 # The cast to long int works around a bug in the HP C Compiler
15898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15899 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
15900 # This bug is HP SR number 8606223364.
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15902 printf %s "checking size of int... " >&6; }
15903 if test ${ac_cv_sizeof_int+y}
15904 then :
15905 printf %s "(cached) " >&6
15906 else case e in #(
15907 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
15908 then :
15909
15910 else case e in #(
15911 e) if test "$ac_cv_type_int" = yes; then
15912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15913 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15914 as_fn_error 77 "cannot compute sizeof (int)
15915 See 'config.log' for more details" "$LINENO" 5; }
15916 else
15917 ac_cv_sizeof_int=0
15918 fi ;;
15919 esac
15920 fi
15921 ;;
15922 esac
15923 fi
15924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15925 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
15926
15927
15928
15929 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
15930
15931
15932
15933 kpse_save_CPPFLAGS=$CPPFLAGS
15934 kpse_save_LIBS=$LIBS
15935
15936 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15937 kpse_BLD=`(cd "./../../." && pwd)`
15938 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15939
15940 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15941 : ${CONFIG_LT=./config.lt}
15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15943 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15944 as_write_fail=0
15945 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15946 #! $SHELL
15947 # Generated by $as_me.
15948 # Run this file to recreate a libtool stub with the current configuration.
15949 SHELL=\${CONFIG_SHELL-$SHELL}
15950 export SHELL
15951 _ASEOF
15952 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15953 ## -------------------- ##
15954 ## M4sh Initialization. ##
15955 ## -------------------- ##
15956
15957 # Be more Bourne compatible
15958 DUALCASE=1; export DUALCASE # for MKS sh
15959 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15960 then :
15961 emulate sh
15962 NULLCMD=:
15963 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15964 # is contrary to our usage. Disable this feature.
15965 alias -g '${1+"$@"}'='"$@"'
15966 setopt NO_GLOB_SUBST
15967 else case e in #(
15968 e) case `(set -o) 2>/dev/null` in #(
15969 *posix*) :
15970 set -o posix ;; #(
15971 *) :
15972 ;;
15973 esac ;;
15974 esac
15975 fi
15976
15977
15978
15979 # Reset variables that may have inherited troublesome values from
15980 # the environment.
15981
15982 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15983 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15984 # side effect of setting IFS to empty, thus disabling word splitting.)
15985 # Quoting is to prevent editors from complaining about space-tab.
15986 as_nl='
15987 '
15988 export as_nl
15989 IFS=" "" $as_nl"
15990
15991 PS1='$ '
15992 PS2='> '
15993 PS4='+ '
15994
15995 # Ensure predictable behavior from utilities with locale-dependent output.
15996 LC_ALL=C
15997 export LC_ALL
15998 LANGUAGE=C
15999 export LANGUAGE
16000
16001 # We cannot yet rely on "unset" to work, but we need these variables
16002 # to be unset--not just set to an empty or harmless value--now, to
16003 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16004 # also avoids known problems related to "unset" and subshell syntax
16005 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16006 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16007 do eval test \${$as_var+y} \
16008 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16009 done
16010
16011 # Ensure that fds 0, 1, and 2 are open.
16012 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16013 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16014 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16015
16016 # The user is always right.
16017 if ${PATH_SEPARATOR+false} :; then
16018 PATH_SEPARATOR=:
16019 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16020 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16021 PATH_SEPARATOR=';'
16022 }
16023 fi
16024
16025
16026 # Find who we are. Look in the path if we contain no directory separator.
16027 as_myself=
16028 case $0 in #((
16029 *[\\/]* ) as_myself=$0 ;;
16030 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16031 for as_dir in $PATH
16032 do
16033 IFS=$as_save_IFS
16034 case $as_dir in #(((
16035 '') as_dir=./ ;;
16036 */) ;;
16037 *) as_dir=$as_dir/ ;;
16038 esac
16039 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16040 done
16041 IFS=$as_save_IFS
16042
16043 ;;
16044 esac
16045 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16046 # in which case we are not to be found in the path.
16047 if test "x$as_myself" = x; then
16048 as_myself=$0
16049 fi
16050 if test ! -f "$as_myself"; then
16051 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16052 exit 1
16053 fi
16054
16055
16056
16057 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16058 # ----------------------------------------
16059 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16060 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16061 # script with STATUS, using 1 if that was 0.
16062 as_fn_error ()
16063 {
16064 as_status=$1; test $as_status -eq 0 && as_status=1
16065 if test "$4"; then
16066 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16068 fi
16069 printf "%s\n" "$as_me: error: $2" >&2
16070 as_fn_exit $as_status
16071 } # as_fn_error
16072
16073
16074 # as_fn_set_status STATUS
16075 # -----------------------
16076 # Set $? to STATUS, without forking.
16077 as_fn_set_status ()
16078 {
16079 return $1
16080 } # as_fn_set_status
16081
16082 # as_fn_exit STATUS
16083 # -----------------
16084 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16085 as_fn_exit ()
16086 {
16087 set +e
16088 as_fn_set_status $1
16089 exit $1
16090 } # as_fn_exit
16091
16092 # as_fn_unset VAR
16093 # ---------------
16094 # Portably unset VAR.
16095 as_fn_unset ()
16096 {
16097 { eval $1=; unset $1;}
16098 }
16099 as_unset=as_fn_unset
16100
16101 # as_fn_append VAR VALUE
16102 # ----------------------
16103 # Append the text in VALUE to the end of the definition contained in VAR. Take
16104 # advantage of any shell optimizations that allow amortized linear growth over
16105 # repeated appends, instead of the typical quadratic growth present in naive
16106 # implementations.
16107 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16108 then :
16109 eval 'as_fn_append ()
16110 {
16111 eval $1+=\$2
16112 }'
16113 else case e in #(
16114 e) as_fn_append ()
16115 {
16116 eval $1=\$$1\$2
16117 } ;;
16118 esac
16119 fi # as_fn_append
16120
16121 # as_fn_arith ARG...
16122 # ------------------
16123 # Perform arithmetic evaluation on the ARGs, and store the result in the
16124 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16125 # must be portable across $(()) and expr.
16126 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16127 then :
16128 eval 'as_fn_arith ()
16129 {
16130 as_val=$(( $* ))
16131 }'
16132 else case e in #(
16133 e) as_fn_arith ()
16134 {
16135 as_val=`expr "$@" || test $? -eq 1`
16136 } ;;
16137 esac
16138 fi # as_fn_arith
16139
16140
16141 if expr a : '\(a\)' >/dev/null 2>&1 &&
16142 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16143 as_expr=expr
16144 else
16145 as_expr=false
16146 fi
16147
16148 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16149 as_basename=basename
16150 else
16151 as_basename=false
16152 fi
16153
16154 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16155 as_dirname=dirname
16156 else
16157 as_dirname=false
16158 fi
16159
16160 as_me=`$as_basename -- "$0" ||
16161 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16162 X"$0" : 'X\(//\)$' \| \
16163 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16164 printf "%s\n" X/"$0" |
16165 sed '/^.*\/\([^/][^/]*\)\/*$/{
16166 s//\1/
16167 q
16168 }
16169 /^X\/\(\/\/\)$/{
16170 s//\1/
16171 q
16172 }
16173 /^X\/\(\/\).*/{
16174 s//\1/
16175 q
16176 }
16177 s/.*/./; q'`
16178
16179 # Avoid depending upon Character Ranges.
16180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16183 as_cr_digits='0123456789'
16184 as_cr_alnum=$as_cr_Letters$as_cr_digits
16185
16186
16187 # Determine whether it's possible to make 'echo' print without a newline.
16188 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16189 # for compatibility with existing Makefiles.
16190 ECHO_C= ECHO_N= ECHO_T=
16191 case `echo -n x` in #(((((
16192 -n*)
16193 case `echo 'xy\c'` in
16194 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16195 xy) ECHO_C='\c';;
16196 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16197 ECHO_T=' ';;
16198 esac;;
16199 *)
16200 ECHO_N='-n';;
16201 esac
16202
16203 # For backward compatibility with old third-party macros, we provide
16204 # the shell variables $as_echo and $as_echo_n. New code should use
16205 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16206 as_echo='printf %s\n'
16207 as_echo_n='printf %s'
16208
16209 rm -f conf$$ conf$$.exe conf$$.file
16210 if test -d conf$$.dir; then
16211 rm -f conf$$.dir/conf$$.file
16212 else
16213 rm -f conf$$.dir
16214 mkdir conf$$.dir 2>/dev/null
16215 fi
16216 if (echo >conf$$.file) 2>/dev/null; then
16217 if ln -s conf$$.file conf$$ 2>/dev/null; then
16218 as_ln_s='ln -s'
16219 # ... but there are two gotchas:
16220 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16221 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16222 # In both cases, we have to default to 'cp -pR'.
16223 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16224 as_ln_s='cp -pR'
16225 elif ln conf$$.file conf$$ 2>/dev/null; then
16226 as_ln_s=ln
16227 else
16228 as_ln_s='cp -pR'
16229 fi
16230 else
16231 as_ln_s='cp -pR'
16232 fi
16233 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16234 rmdir conf$$.dir 2>/dev/null
16235
16236
16237 # as_fn_mkdir_p
16238 # -------------
16239 # Create "$as_dir" as a directory, including parents if necessary.
16240 as_fn_mkdir_p ()
16241 {
16242
16243 case $as_dir in #(
16244 -*) as_dir=./$as_dir;;
16245 esac
16246 test -d "$as_dir" || eval $as_mkdir_p || {
16247 as_dirs=
16248 while :; do
16249 case $as_dir in #(
16250 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16251 *) as_qdir=$as_dir;;
16252 esac
16253 as_dirs="'$as_qdir' $as_dirs"
16254 as_dir=`$as_dirname -- "$as_dir" ||
16255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16256 X"$as_dir" : 'X\(//\)[^/]' \| \
16257 X"$as_dir" : 'X\(//\)$' \| \
16258 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16259 printf "%s\n" X"$as_dir" |
16260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16261 s//\1/
16262 q
16263 }
16264 /^X\(\/\/\)[^/].*/{
16265 s//\1/
16266 q
16267 }
16268 /^X\(\/\/\)$/{
16269 s//\1/
16270 q
16271 }
16272 /^X\(\/\).*/{
16273 s//\1/
16274 q
16275 }
16276 s/.*/./; q'`
16277 test -d "$as_dir" && break
16278 done
16279 test -z "$as_dirs" || eval "mkdir $as_dirs"
16280 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16281
16282
16283 } # as_fn_mkdir_p
16284 if mkdir -p . 2>/dev/null; then
16285 as_mkdir_p='mkdir -p "$as_dir"'
16286 else
16287 test -d ./-p && rmdir ./-p
16288 as_mkdir_p=false
16289 fi
16290
16291
16292 # as_fn_executable_p FILE
16293 # -----------------------
16294 # Test if FILE is an executable regular file.
16295 as_fn_executable_p ()
16296 {
16297 test -f "$1" && test -x "$1"
16298 } # as_fn_executable_p
16299 as_test_x='test -x'
16300 as_executable_p=as_fn_executable_p
16301
16302 # Sed expression to map a string onto a valid CPP name.
16303 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16304 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16305
16306 # Sed expression to map a string onto a valid variable name.
16307 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16308 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16309
16310
16311 exec 6>&1
16312 ## --------------------------------- ##
16313 ## Main body of "$CONFIG_LT" script. ##
16314 ## --------------------------------- ##
16315 _ASEOF
16316 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16317
16318 cat >>"$CONFIG_LT" <<\_LTEOF
16319 lt_cl_silent=false
16320 exec 5>>config.log
16321 {
16322 echo
16323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16324 ## Running $as_me. ##
16325 _ASBOX
16326 } >&5
16327
16328 lt_cl_help="\
16329 '$as_me' creates a local libtool stub from the current configuration,
16330 for use in further configure time tests before the real libtool is
16331 generated.
16332
16333 Usage: $0 [OPTIONS]
16334
16335 -h, --help print this help, then exit
16336 -V, --version print version number, then exit
16337 -q, --quiet do not print progress messages
16338 -d, --debug don't remove temporary files
16339
16340 Report bugs to <[email protected]>."
16341
16342 lt_cl_version="\
16343 tex4ht (TeX Live) config.lt 20080225
16344 configured by $0, generated by GNU Autoconf 2.72.
16345
16346 Copyright (C) 2024 Free Software Foundation, Inc.
16347 This config.lt script is free software; the Free Software Foundation
16348 gives unlimited permission to copy, distribute and modify it."
16349
16350 while test 0 != $#
16351 do
16352 case $1 in
16353 --version | --v* | -V )
16354 echo "$lt_cl_version"; exit 0 ;;
16355 --help | --h* | -h )
16356 echo "$lt_cl_help"; exit 0 ;;
16357 --debug | --d* | -d )
16358 debug=: ;;
16359 --quiet | --q* | --silent | --s* | -q )
16360 lt_cl_silent=: ;;
16361
16362 -*) as_fn_error $? "unrecognized option: $1
16363 Try '$0 --help' for more information." "$LINENO" 5 ;;
16364
16365 *) as_fn_error $? "unrecognized argument: $1
16366 Try '$0 --help' for more information." "$LINENO" 5 ;;
16367 esac
16368 shift
16369 done
16370
16371 if $lt_cl_silent; then
16372 exec 6>/dev/null
16373 fi
16374 _LTEOF
16375
16376 cat >>"$CONFIG_LT" <<_LTEOF
16377
16378
16379 # The HP-UX ksh and POSIX shell print the target directory to stdout
16380 # if CDPATH is set.
16381 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16382
16383 sed_quote_subst='$sed_quote_subst'
16384 double_quote_subst='$double_quote_subst'
16385 delay_variable_subst='$delay_variable_subst'
16386 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16387 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16388 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16389 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16390 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16391 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16392 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16393 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16394 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16395 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16396 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16397 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16398 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16399 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16400 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16401 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16402 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16403 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16404 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16405 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16406 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16407 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16408 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16409 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16410 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16411 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16412 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16413 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16414 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16415 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16416 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16417 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16418 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16419 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16420 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16421 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16422 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16423 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16424 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16425 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16426 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16427 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16428 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16429 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16430 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16431 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16432 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16433 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16434 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16435 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16436 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16437 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16438 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16439 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16440 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16441 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16442 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16443 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16444 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16445 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16446 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16447 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"`'
16448 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16449 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16450 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16451 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16452 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16453 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16454 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16455 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16456 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16457 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16458 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16459 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16460 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16461 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16462 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16463 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16464 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16465 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16466 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16467 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16468 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16469 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16470 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16471 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16472 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16473 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16474 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16475 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16476 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16477 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16478 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16479 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16480 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16481 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16482 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16483 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16484 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16485 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16486 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16487 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16488 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16489 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16490 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16491 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16492 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16493 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16494 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16495 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16496 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16497 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16498 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16499 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16500 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16501 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16502 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16503 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16504 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16505 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16506 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16507 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16508 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16509 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16510 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16511 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16512 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16513 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16514 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16515 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16516 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16517 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16518 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16519 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16520 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16521 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16522 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16523 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16524
16525 LTCC='$LTCC'
16526 LTCFLAGS='$LTCFLAGS'
16527 compiler='$compiler_DEFAULT'
16528
16529 # A function that is used when there is no print builtin or printf.
16530 func_fallback_echo ()
16531 {
16532 eval 'cat <<_LTECHO_EOF
16533 \$1
16534 _LTECHO_EOF'
16535 }
16536
16537 # Quote evaled strings.
16538 for var in AS \
16539 DLLTOOL \
16540 OBJDUMP \
16541 SHELL \
16542 ECHO \
16543 PATH_SEPARATOR \
16544 SED \
16545 GREP \
16546 EGREP \
16547 FGREP \
16548 LD \
16549 NM \
16550 LN_S \
16551 lt_SP2NL \
16552 lt_NL2SP \
16553 reload_flag \
16554 FILECMD \
16555 deplibs_check_method \
16556 file_magic_cmd \
16557 file_magic_glob \
16558 want_nocaseglob \
16559 sharedlib_from_linklib_cmd \
16560 AR \
16561 archiver_list_spec \
16562 STRIP \
16563 RANLIB \
16564 CC \
16565 CFLAGS \
16566 compiler \
16567 lt_cv_sys_global_symbol_pipe \
16568 lt_cv_sys_global_symbol_to_cdecl \
16569 lt_cv_sys_global_symbol_to_import \
16570 lt_cv_sys_global_symbol_to_c_name_address \
16571 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16572 lt_cv_nm_interface \
16573 nm_file_list_spec \
16574 lt_cv_truncate_bin \
16575 lt_prog_compiler_no_builtin_flag \
16576 lt_prog_compiler_pic \
16577 lt_prog_compiler_wl \
16578 lt_prog_compiler_static \
16579 lt_cv_prog_compiler_c_o \
16580 need_locks \
16581 MANIFEST_TOOL \
16582 DSYMUTIL \
16583 NMEDIT \
16584 LIPO \
16585 OTOOL \
16586 OTOOL64 \
16587 shrext_cmds \
16588 export_dynamic_flag_spec \
16589 whole_archive_flag_spec \
16590 compiler_needs_object \
16591 with_gnu_ld \
16592 allow_undefined_flag \
16593 no_undefined_flag \
16594 hardcode_libdir_flag_spec \
16595 hardcode_libdir_separator \
16596 exclude_expsyms \
16597 include_expsyms \
16598 file_list_spec \
16599 variables_saved_for_relink \
16600 libname_spec \
16601 library_names_spec \
16602 soname_spec \
16603 install_override_mode \
16604 finish_eval \
16605 old_striplib \
16606 striplib; do
16607 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16608 *[\\\\\\\`\\"\\\$]*)
16609 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16610 ;;
16611 *)
16612 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16613 ;;
16614 esac
16615 done
16616
16617 # Double-quote double-evaled strings.
16618 for var in reload_cmds \
16619 old_postinstall_cmds \
16620 old_postuninstall_cmds \
16621 old_archive_cmds \
16622 extract_expsyms_cmds \
16623 old_archive_from_new_cmds \
16624 old_archive_from_expsyms_cmds \
16625 archive_cmds \
16626 archive_expsym_cmds \
16627 module_cmds \
16628 module_expsym_cmds \
16629 export_symbols_cmds \
16630 prelink_cmds \
16631 postlink_cmds \
16632 postinstall_cmds \
16633 postuninstall_cmds \
16634 finish_cmds \
16635 sys_lib_search_path_spec \
16636 configure_time_dlsearch_path \
16637 configure_time_lt_sys_library_path; do
16638 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16639 *[\\\\\\\`\\"\\\$]*)
16640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16641 ;;
16642 *)
16643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16644 ;;
16645 esac
16646 done
16647
16648 ac_aux_dir='$ac_aux_dir'
16649
16650 # See if we are running on zsh, and set the options that allow our
16651 # commands through without removal of \ escapes INIT.
16652 if test -n "\${ZSH_VERSION+set}"; then
16653 setopt NO_GLOB_SUBST
16654 fi
16655
16656
16657 PACKAGE='$PACKAGE'
16658 VERSION='$VERSION'
16659 RM='$RM'
16660 ofile='$ofile'
16661
16662
16663
16664 _LTEOF
16665
16666 cat >>"$CONFIG_LT" <<\_LTEOF
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16668 printf "%s\n" "$as_me: creating $ofile" >&6;}
16669
16670
16671 # See if we are running on zsh, and set the options that allow our
16672 # commands through without removal of \ escapes.
16673 if test -n "${ZSH_VERSION+set}"; then
16674 setopt NO_GLOB_SUBST
16675 fi
16676
16677 cfgfile=${ofile}T
16678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16679 $RM "$cfgfile"
16680
16681 cat <<_LT_EOF >> "$cfgfile"
16682 #! $SHELL
16683 # Generated automatically by $as_me ($PACKAGE) $VERSION
16684 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16685
16686 # Provide generalized library-building support services.
16687 # Written by Gordon Matzigkeit, 1996
16688
16689 # Copyright (C) 2024 Free Software Foundation, Inc.
16690 # This is free software; see the source for copying conditions. There is NO
16691 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16692
16693 # GNU Libtool is free software; you can redistribute it and/or modify
16694 # it under the terms of the GNU General Public License as published by
16695 # the Free Software Foundation; either version 2 of the License, or
16696 # (at your option) any later version.
16697 #
16698 # As a special exception to the GNU General Public License, if you
16699 # distribute this file as part of a program or library that is built
16700 # using GNU Libtool, you may include this file under the same
16701 # distribution terms that you use for the rest of that program.
16702 #
16703 # GNU Libtool is distributed in the hope that it will be useful, but
16704 # WITHOUT ANY WARRANTY; without even the implied warranty of
16705 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16706 # GNU General Public License for more details.
16707 #
16708 # You should have received a copy of the GNU General Public License
16709 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16710
16711
16712 # The names of the tagged configurations supported by this script.
16713 available_tags=''
16714
16715 # Configured defaults for sys_lib_dlsearch_path munging.
16716 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16717
16718 # ### BEGIN LIBTOOL CONFIG
16719
16720 # Which release of libtool.m4 was used?
16721 macro_version=$macro_version
16722 macro_revision=$macro_revision
16723
16724 # Assembler program.
16725 AS=$lt_AS
16726
16727 # DLL creation program.
16728 DLLTOOL=$lt_DLLTOOL
16729
16730 # Object dumper program.
16731 OBJDUMP=$lt_OBJDUMP
16732
16733 # Whether or not to build shared libraries.
16734 build_libtool_libs=$enable_shared
16735
16736 # Whether or not to build static libraries.
16737 build_old_libs=$enable_static
16738
16739 # What type of objects to build.
16740 pic_mode=$pic_mode
16741
16742 # Whether or not to optimize for fast installation.
16743 fast_install=$enable_fast_install
16744
16745 # Shared archive member basename,for filename based shared library versioning on AIX.
16746 shared_archive_member_spec=$shared_archive_member_spec
16747
16748 # Shell to use when invoking shell scripts.
16749 SHELL=$lt_SHELL
16750
16751 # An echo program that protects backslashes.
16752 ECHO=$lt_ECHO
16753
16754 # The PATH separator for the build system.
16755 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16756
16757 # The host system.
16758 host_alias=$host_alias
16759 host=$host
16760 host_os=$host_os
16761
16762 # The build system.
16763 build_alias=$build_alias
16764 build=$build
16765 build_os=$build_os
16766
16767 # A sed program that does not truncate output.
16768 SED=$lt_SED
16769
16770 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16771 Xsed="\$SED -e 1s/^X//"
16772
16773 # A grep program that handles long lines.
16774 GREP=$lt_GREP
16775
16776 # An ERE matcher.
16777 EGREP=$lt_EGREP
16778
16779 # A literal string matcher.
16780 FGREP=$lt_FGREP
16781
16782 # A BSD- or MS-compatible name lister.
16783 NM=$lt_NM
16784
16785 # Whether we need soft or hard links.
16786 LN_S=$lt_LN_S
16787
16788 # What is the maximum length of a command?
16789 max_cmd_len=$max_cmd_len
16790
16791 # Object file suffix (normally "o").
16792 objext=$ac_objext
16793
16794 # Executable file suffix (normally "").
16795 exeext=$exeext
16796
16797 # whether the shell understands "unset".
16798 lt_unset=$lt_unset
16799
16800 # turn spaces into newlines.
16801 SP2NL=$lt_lt_SP2NL
16802
16803 # turn newlines into spaces.
16804 NL2SP=$lt_lt_NL2SP
16805
16806 # convert \$build file names to \$host format.
16807 to_host_file_cmd=$lt_cv_to_host_file_cmd
16808
16809 # convert \$build files to toolchain format.
16810 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16811
16812 # A file(cmd) program that detects file types.
16813 FILECMD=$lt_FILECMD
16814
16815 # Method to check whether dependent libraries are shared objects.
16816 deplibs_check_method=$lt_deplibs_check_method
16817
16818 # Command to use when deplibs_check_method = "file_magic".
16819 file_magic_cmd=$lt_file_magic_cmd
16820
16821 # How to find potential files when deplibs_check_method = "file_magic".
16822 file_magic_glob=$lt_file_magic_glob
16823
16824 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16825 want_nocaseglob=$lt_want_nocaseglob
16826
16827 # Command to associate shared and link libraries.
16828 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16829
16830 # The archiver.
16831 AR=$lt_AR
16832
16833 # Flags to create an archive (by configure).
16834 lt_ar_flags=$lt_ar_flags
16835
16836 # Flags to create an archive.
16837 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16838
16839 # How to feed a file listing to the archiver.
16840 archiver_list_spec=$lt_archiver_list_spec
16841
16842 # A symbol stripping program.
16843 STRIP=$lt_STRIP
16844
16845 # Commands used to install an old-style archive.
16846 RANLIB=$lt_RANLIB
16847 old_postinstall_cmds=$lt_old_postinstall_cmds
16848 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16849
16850 # Whether to use a lock for old archive extraction.
16851 lock_old_archive_extraction=$lock_old_archive_extraction
16852
16853 # A C compiler.
16854 LTCC=$lt_CC
16855
16856 # LTCC compiler flags.
16857 LTCFLAGS=$lt_CFLAGS
16858
16859 # Take the output of nm and produce a listing of raw symbols and C names.
16860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16861
16862 # Transform the output of nm in a proper C declaration.
16863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16864
16865 # Transform the output of nm into a list of symbols to manually relocate.
16866 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16867
16868 # Transform the output of nm in a C name address pair.
16869 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16870
16871 # Transform the output of nm in a C name address pair when lib prefix is needed.
16872 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16873
16874 # The name lister interface.
16875 nm_interface=$lt_lt_cv_nm_interface
16876
16877 # Specify filename containing input files for \$NM.
16878 nm_file_list_spec=$lt_nm_file_list_spec
16879
16880 # The root where to search for dependent libraries,and where our libraries should be installed.
16881 lt_sysroot=$lt_sysroot
16882
16883 # Command to truncate a binary pipe.
16884 lt_truncate_bin=$lt_lt_cv_truncate_bin
16885
16886 # The name of the directory that contains temporary libtool files.
16887 objdir=$objdir
16888
16889 # Used to examine libraries when file_magic_cmd begins with "file".
16890 MAGIC_CMD=$MAGIC_CMD
16891
16892 # Must we lock files when doing compilation?
16893 need_locks=$lt_need_locks
16894
16895 # Manifest tool.
16896 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16897
16898 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16899 DSYMUTIL=$lt_DSYMUTIL
16900
16901 # Tool to change global to local symbols on Mac OS X.
16902 NMEDIT=$lt_NMEDIT
16903
16904 # Tool to manipulate fat objects and archives on Mac OS X.
16905 LIPO=$lt_LIPO
16906
16907 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16908 OTOOL=$lt_OTOOL
16909
16910 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16911 OTOOL64=$lt_OTOOL64
16912
16913 # Old archive suffix (normally "a").
16914 libext=$libext
16915
16916 # Shared library suffix (normally ".so").
16917 shrext_cmds=$lt_shrext_cmds
16918
16919 # The commands to extract the exported symbol list from a shared archive.
16920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16921
16922 # Variables whose values should be saved in libtool wrapper scripts and
16923 # restored at link time.
16924 variables_saved_for_relink=$lt_variables_saved_for_relink
16925
16926 # Do we need the "lib" prefix for modules?
16927 need_lib_prefix=$need_lib_prefix
16928
16929 # Do we need a version for libraries?
16930 need_version=$need_version
16931
16932 # Library versioning type.
16933 version_type=$version_type
16934
16935 # Shared library runtime path variable.
16936 runpath_var=$runpath_var
16937
16938 # Shared library path variable.
16939 shlibpath_var=$shlibpath_var
16940
16941 # Is shlibpath searched before the hard-coded library search path?
16942 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16943
16944 # Format of library name prefix.
16945 libname_spec=$lt_libname_spec
16946
16947 # List of archive names. First name is the real one, the rest are links.
16948 # The last name is the one that the linker finds with -lNAME
16949 library_names_spec=$lt_library_names_spec
16950
16951 # The coded name of the library, if different from the real name.
16952 soname_spec=$lt_soname_spec
16953
16954 # Permission mode override for installation of shared libraries.
16955 install_override_mode=$lt_install_override_mode
16956
16957 # Command to use after installation of a shared archive.
16958 postinstall_cmds=$lt_postinstall_cmds
16959
16960 # Command to use after uninstallation of a shared archive.
16961 postuninstall_cmds=$lt_postuninstall_cmds
16962
16963 # Commands used to finish a libtool library installation in a directory.
16964 finish_cmds=$lt_finish_cmds
16965
16966 # As "finish_cmds", except a single script fragment to be evaled but
16967 # not shown.
16968 finish_eval=$lt_finish_eval
16969
16970 # Whether we should hardcode library paths into libraries.
16971 hardcode_into_libs=$hardcode_into_libs
16972
16973 # Compile-time system search path for libraries.
16974 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16975
16976 # Detected run-time system search path for libraries.
16977 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16978
16979 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16980 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16981
16982 # Whether dlopen is supported.
16983 dlopen_support=$enable_dlopen
16984
16985 # Whether dlopen of programs is supported.
16986 dlopen_self=$enable_dlopen_self
16987
16988 # Whether dlopen of statically linked programs is supported.
16989 dlopen_self_static=$enable_dlopen_self_static
16990
16991 # Commands to strip libraries.
16992 old_striplib=$lt_old_striplib
16993 striplib=$lt_striplib
16994
16995
16996 # The linker used to build libraries.
16997 LD=$lt_LD
16998
16999 # How to create reloadable object files.
17000 reload_flag=$lt_reload_flag
17001 reload_cmds=$lt_reload_cmds
17002
17003 # Commands used to build an old-style archive.
17004 old_archive_cmds=$lt_old_archive_cmds
17005
17006 # A language specific compiler.
17007 CC=$lt_compiler
17008
17009 # Is the compiler the GNU compiler?
17010 with_gcc=$GCC
17011
17012 # Compiler flag to turn off builtin functions.
17013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17014
17015 # Additional compiler flags for building library objects.
17016 pic_flag=$lt_lt_prog_compiler_pic
17017
17018 # How to pass a linker flag through the compiler.
17019 wl=$lt_lt_prog_compiler_wl
17020
17021 # Compiler flag to prevent dynamic linking.
17022 link_static_flag=$lt_lt_prog_compiler_static
17023
17024 # Does compiler simultaneously support -c and -o options?
17025 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17026
17027 # Whether or not to add -lc for building shared libraries.
17028 build_libtool_need_lc=$archive_cmds_need_lc
17029
17030 # Whether or not to disallow shared libs when runtime libs are static.
17031 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17032
17033 # Compiler flag to allow reflexive dlopens.
17034 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17035
17036 # Compiler flag to generate shared objects directly from archives.
17037 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17038
17039 # Whether the compiler copes with passing no objects directly.
17040 compiler_needs_object=$lt_compiler_needs_object
17041
17042 # Create an old-style archive from a shared archive.
17043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17044
17045 # Create a temporary old-style archive to link instead of a shared archive.
17046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17047
17048 # Commands used to build a shared archive.
17049 archive_cmds=$lt_archive_cmds
17050 archive_expsym_cmds=$lt_archive_expsym_cmds
17051
17052 # Commands used to build a loadable module if different from building
17053 # a shared archive.
17054 module_cmds=$lt_module_cmds
17055 module_expsym_cmds=$lt_module_expsym_cmds
17056
17057 # Whether we are building with GNU ld or not.
17058 with_gnu_ld=$lt_with_gnu_ld
17059
17060 # Flag that allows shared libraries with undefined symbols to be built.
17061 allow_undefined_flag=$lt_allow_undefined_flag
17062
17063 # Flag that enforces no undefined symbols.
17064 no_undefined_flag=$lt_no_undefined_flag
17065
17066 # Flag to hardcode \$libdir into a binary during linking.
17067 # This must work even if \$libdir does not exist
17068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17069
17070 # Whether we need a single "-rpath" flag with a separated argument.
17071 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17072
17073 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17074 # DIR into the resulting binary.
17075 hardcode_direct=$hardcode_direct
17076
17077 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17078 # DIR into the resulting binary and the resulting library dependency is
17079 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17080 # library is relocated.
17081 hardcode_direct_absolute=$hardcode_direct_absolute
17082
17083 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17084 # into the resulting binary.
17085 hardcode_minus_L=$hardcode_minus_L
17086
17087 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17088 # into the resulting binary.
17089 hardcode_shlibpath_var=$hardcode_shlibpath_var
17090
17091 # Set to "yes" if building a shared library automatically hardcodes DIR
17092 # into the library and all subsequent libraries and executables linked
17093 # against it.
17094 hardcode_automatic=$hardcode_automatic
17095
17096 # Set to yes if linker adds runtime paths of dependent libraries
17097 # to runtime path list.
17098 inherit_rpath=$inherit_rpath
17099
17100 # Whether libtool must link a program against all its dependency libraries.
17101 link_all_deplibs=$link_all_deplibs
17102
17103 # Set to "yes" if exported symbols are required.
17104 always_export_symbols=$always_export_symbols
17105
17106 # The commands to list exported symbols.
17107 export_symbols_cmds=$lt_export_symbols_cmds
17108
17109 # Symbols that should not be listed in the preloaded symbols.
17110 exclude_expsyms=$lt_exclude_expsyms
17111
17112 # Symbols that must always be exported.
17113 include_expsyms=$lt_include_expsyms
17114
17115 # Commands necessary for linking programs (against libraries) with templates.
17116 prelink_cmds=$lt_prelink_cmds
17117
17118 # Commands necessary for finishing linking programs.
17119 postlink_cmds=$lt_postlink_cmds
17120
17121 # Specify filename containing input files.
17122 file_list_spec=$lt_file_list_spec
17123
17124 # How to hardcode a shared library path into an executable.
17125 hardcode_action=$hardcode_action
17126
17127 # ### END LIBTOOL CONFIG
17128
17129 _LT_EOF
17130
17131 cat <<'_LT_EOF' >> "$cfgfile"
17132
17133 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17134
17135 # func_munge_path_list VARIABLE PATH
17136 # -----------------------------------
17137 # VARIABLE is name of variable containing _space_ separated list of
17138 # directories to be munged by the contents of PATH, which is string
17139 # having a format:
17140 # "DIR[:DIR]:"
17141 # string "DIR[ DIR]" will be prepended to VARIABLE
17142 # ":DIR[:DIR]"
17143 # string "DIR[ DIR]" will be appended to VARIABLE
17144 # "DIRP[:DIRP]::[DIRA:]DIRA"
17145 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17146 # "DIRA[ DIRA]" will be appended to VARIABLE
17147 # "DIR[:DIR]"
17148 # VARIABLE will be replaced by "DIR[ DIR]"
17149 func_munge_path_list ()
17150 {
17151 case x$2 in
17152 x)
17153 ;;
17154 *:)
17155 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17156 ;;
17157 x:*)
17158 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17159 ;;
17160 *::*)
17161 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17162 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17163 ;;
17164 *)
17165 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17166 ;;
17167 esac
17168 }
17169
17170
17171 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17172 func_cc_basename ()
17173 {
17174 for cc_temp in $*""; do
17175 case $cc_temp in
17176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17178 \-*) ;;
17179 *) break;;
17180 esac
17181 done
17182 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17183 }
17184
17185
17186 # ### END FUNCTIONS SHARED WITH CONFIGURE
17187
17188 _LT_EOF
17189
17190 case $host_os in
17191 aix3*)
17192 cat <<\_LT_EOF >> "$cfgfile"
17193 # AIX sometimes has problems with the GCC collect2 program. For some
17194 # reason, if we set the COLLECT_NAMES environment variable, the problems
17195 # vanish in a puff of smoke.
17196 if test set != "${COLLECT_NAMES+set}"; then
17197 COLLECT_NAMES=
17198 export COLLECT_NAMES
17199 fi
17200 _LT_EOF
17201 ;;
17202 esac
17203
17204
17205
17206 ltmain=$ac_aux_dir/ltmain.sh
17207
17208
17209 # We use sed instead of cat because bash on DJGPP gets confused if
17210 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17211 # text mode, it properly converts lines to CR/LF. This bash problem
17212 # is reportedly fixed, but why not run on old versions too?
17213 $SED '$q' "$ltmain" >> "$cfgfile" \
17214 || (rm -f "$cfgfile"; exit 1)
17215
17216 mv -f "$cfgfile" "$ofile" ||
17217 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17218 chmod +x "$ofile"
17219
17220
17221 as_fn_exit 0
17222 _LTEOF
17223 chmod +x "$CONFIG_LT"
17224
17225 # configure is writing to config.log, but config.lt does its own redirection,
17226 # appending to config.log, which fails on DOS, as config.log is still kept
17227 # open by configure. Here we exec the FD to /dev/null, effectively closing
17228 # config.log, so it can be properly (re)opened and appended to by config.lt.
17229 lt_cl_success=:
17230 test yes = "$silent" &&
17231 lt_config_lt_args="$lt_config_lt_args --quiet"
17232 exec 5>/dev/null
17233 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17234 exec 5>>config.log
17235 $lt_cl_success || as_fn_exit 1
17236
17237 #
17238 #
17239 ac_ext=c
17240 ac_cpp='$CPP $CPPFLAGS'
17241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17244 ac_link="./libtool --mode=link --tag=CC $ac_link"
17245
17246 if test -n "$ac_tool_prefix"; then
17247 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17248 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17250 printf %s "checking for $ac_word... " >&6; }
17251 if test ${ac_cv_prog_PKG_CONFIG+y}
17252 then :
17253 printf %s "(cached) " >&6
17254 else case e in #(
17255 e) if test -n "$PKG_CONFIG"; then
17256 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17257 else
17258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17259 for as_dir in $PATH
17260 do
17261 IFS=$as_save_IFS
17262 case $as_dir in #(((
17263 '') as_dir=./ ;;
17264 */) ;;
17265 *) as_dir=$as_dir/ ;;
17266 esac
17267 for ac_exec_ext in '' $ac_executable_extensions; do
17268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17269 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17271 break 2
17272 fi
17273 done
17274 done
17275 IFS=$as_save_IFS
17276
17277 fi ;;
17278 esac
17279 fi
17280 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17281 if test -n "$PKG_CONFIG"; then
17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17283 printf "%s\n" "$PKG_CONFIG" >&6; }
17284 else
17285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17286 printf "%s\n" "no" >&6; }
17287 fi
17288
17289
17290 fi
17291 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17292 ac_ct_PKG_CONFIG=$PKG_CONFIG
17293 # Extract the first word of "pkg-config", so it can be a program name with args.
17294 set dummy pkg-config; ac_word=$2
17295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17296 printf %s "checking for $ac_word... " >&6; }
17297 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17298 then :
17299 printf %s "(cached) " >&6
17300 else case e in #(
17301 e) if test -n "$ac_ct_PKG_CONFIG"; then
17302 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17303 else
17304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17305 for as_dir in $PATH
17306 do
17307 IFS=$as_save_IFS
17308 case $as_dir in #(((
17309 '') as_dir=./ ;;
17310 */) ;;
17311 *) as_dir=$as_dir/ ;;
17312 esac
17313 for ac_exec_ext in '' $ac_executable_extensions; do
17314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17315 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17317 break 2
17318 fi
17319 done
17320 done
17321 IFS=$as_save_IFS
17322
17323 fi ;;
17324 esac
17325 fi
17326 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17327 if test -n "$ac_ct_PKG_CONFIG"; then
17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17329 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17330 else
17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17332 printf "%s\n" "no" >&6; }
17333 fi
17334
17335 if test "x$ac_ct_PKG_CONFIG" = x; then
17336 PKG_CONFIG="false"
17337 else
17338 case $cross_compiling:$ac_tool_warned in
17339 yes:)
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17341 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17342 ac_tool_warned=yes ;;
17343 esac
17344 PKG_CONFIG=$ac_ct_PKG_CONFIG
17345 fi
17346 else
17347 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17348 fi
17349
17350 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17351 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
17352 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17353
17354 # Check whether --with-system-kpathsea was given.
17355 if test ${with_system_kpathsea+y}
17356 then :
17357 withval=$with_system_kpathsea;
17358 fi
17359 if test "x$with_system_kpathsea" = xyes; then
17360 if $PKG_CONFIG kpathsea; then
17361 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17362 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17363 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17364 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17365 fi
17366 else
17367 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17368 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17369 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17370 KPATHSEA_RULE='# Rebuild libkpathsea
17371 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17372 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17373 ${top_builddir}/../kpathsea/paths.h:
17374 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17375 fi
17376
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17378 printf %s "checking if libkpathsea supports debugging... " >&6; }
17379 if test ${kpse_cv_kpse_debug+y}
17380 then :
17381 printf %s "(cached) " >&6
17382 else case e in #(
17383 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17384 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17385
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17388 #include <kpathsea/kpathsea.h>
17389 int
17390 main (void)
17391 {
17392 FILE *f = fopen("f", "r")
17393 ;
17394 return 0;
17395 }
17396 _ACEOF
17397 if ac_fn_c_try_link "$LINENO"
17398 then :
17399 kpse_cv_kpse_debug=yes
17400 else case e in #(
17401 e) kpse_cv_kpse_debug=no ;;
17402 esac
17403 fi
17404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17405 conftest$ac_exeext conftest.$ac_ext
17406 CPPFLAGS=$kpse_save_CPPFLAGS
17407 LIBS=$kpse_save_LIBS
17408 ;;
17409 esac
17410 fi
17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17412 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17413 if test "x$kpse_cv_kpse_debug" != xyes
17414 then :
17415 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17416 fi
17417
17418
17419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
17420 printf %s "checking for native WIN32 or MINGW32... " >&6; }
17421 if test ${kpse_cv_have_win32+y}
17422 then :
17423 printf %s "(cached) " >&6
17424 else case e in #(
17425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17427 #ifndef WIN32
17428 choke me
17429 #endif
17430 int
17431 main (void)
17432 {
17433
17434 ;
17435 return 0;
17436 }
17437 _ACEOF
17438 if ac_fn_c_try_compile "$LINENO"
17439 then :
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17442 #ifndef __MINGW32__
17443 choke me
17444 #endif
17445 int
17446 main (void)
17447 {
17448
17449 ;
17450 return 0;
17451 }
17452 _ACEOF
17453 if ac_fn_c_try_compile "$LINENO"
17454 then :
17455 kpse_cv_have_win32=mingw32
17456 else case e in #(
17457 e) kpse_cv_have_win32=native ;;
17458 esac
17459 fi
17460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17461 else case e in #(
17462 e) kpse_cv_have_win32=no ;;
17463 esac
17464 fi
17465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17466 esac
17467 fi
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
17469 printf "%s\n" "$kpse_cv_have_win32" >&6; }
17470
17471 if test "x$kpse_cv_have_win32" != xno; then
17472 WIN32_TRUE=
17473 WIN32_FALSE='#'
17474 else
17475 WIN32_TRUE='#'
17476 WIN32_FALSE=
17477 fi
17478
17479
17480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WIN64" >&5
17481 printf %s "checking for WIN64... " >&6; }
17482 if test ${kpse_cv_have_win64+y}
17483 then :
17484 printf %s "(cached) " >&6
17485 else case e in #(
17486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487 /* end confdefs.h. */
17488 #ifndef _WIN64
17489 choke me
17490 #endif
17491 int
17492 main (void)
17493 {
17494
17495 ;
17496 return 0;
17497 }
17498 _ACEOF
17499 if ac_fn_c_try_compile "$LINENO"
17500 then :
17501 kpse_cv_have_win64=yes
17502 else case e in #(
17503 e) kpse_cv_have_win64=no ;;
17504 esac
17505 fi
17506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17507 esac
17508 fi
17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win64" >&5
17510 printf "%s\n" "$kpse_cv_have_win64" >&6; }
17511 case $kpse_cv_have_win64 in #(
17512 yes) :
17513 if test "x$kpse_cv_have_win32=xmingw"
17514 then :
17515 WIN_WRAPPER=windows_mingw_wrapper
17516 else case e in #(
17517 e) WIN_WRAPPER=windows_wrapper ;;
17518 esac
17519 fi ;; #(
17520 *) :
17521 WIN_WRAPPER=windows_wrapper ;;
17522 esac
17523
17524 if test -r "$srcdir/../../texk/texlive/$WIN_WRAPPER/runscript.exe"; then
17525 WIN32_WRAP_TRUE=
17526 WIN32_WRAP_FALSE='#'
17527 else
17528 WIN32_WRAP_TRUE='#'
17529 WIN32_WRAP_FALSE=
17530 fi
17531
17532
17533
17534 ac_config_files="$ac_config_files Makefile"
17535
17536
17537 cat >confcache <<\_ACEOF
17538 # This file is a shell script that caches the results of configure
17539 # tests run on this system so they can be shared between configure
17540 # scripts and configure runs, see configure's option --config-cache.
17541 # It is not useful on other systems. If it contains results you don't
17542 # want to keep, you may remove or edit it.
17543 #
17544 # config.status only pays attention to the cache file if you give it
17545 # the --recheck option to rerun configure.
17546 #
17547 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17548 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17549 # following values.
17550
17551 _ACEOF
17552
17553 # The following way of writing the cache mishandles newlines in values,
17554 # but we know of no workaround that is simple, portable, and efficient.
17555 # So, we kill variables containing newlines.
17556 # Ultrix sh set writes to stderr and can't be redirected directly,
17557 # and sets the high bit in the cache file unless we assign to the vars.
17558 (
17559 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17560 eval ac_val=\$$ac_var
17561 case $ac_val in #(
17562 *${as_nl}*)
17563 case $ac_var in #(
17564 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17565 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17566 esac
17567 case $ac_var in #(
17568 _ | IFS | as_nl) ;; #(
17569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17570 *) { eval $ac_var=; unset $ac_var;} ;;
17571 esac ;;
17572 esac
17573 done
17574
17575 (set) 2>&1 |
17576 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17577 *${as_nl}ac_space=\ *)
17578 # 'set' does not quote correctly, so add quotes: double-quote
17579 # substitution turns \\\\ into \\, and sed turns \\ into \.
17580 sed -n \
17581 "s/'/'\\\\''/g;
17582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17583 ;; #(
17584 *)
17585 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17587 ;;
17588 esac |
17589 sort
17590 ) |
17591 sed '
17592 /^ac_cv_env_/b end
17593 t clear
17594 :clear
17595 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17596 t end
17597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17598 :end' >>confcache
17599 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17600 if test -w "$cache_file"; then
17601 if test "x$cache_file" != "x/dev/null"; then
17602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17603 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17604 if test ! -f "$cache_file" || test -h "$cache_file"; then
17605 cat confcache >"$cache_file"
17606 else
17607 case $cache_file in #(
17608 */* | ?:*)
17609 mv -f confcache "$cache_file"$$ &&
17610 mv -f "$cache_file"$$ "$cache_file" ;; #(
17611 *)
17612 mv -f confcache "$cache_file" ;;
17613 esac
17614 fi
17615 fi
17616 else
17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17618 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17619 fi
17620 fi
17621 rm -f confcache
17622
17623 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17624 # Let make expand exec_prefix.
17625 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17626
17627 DEFS=-DHAVE_CONFIG_H
17628
17629 ac_libobjs=
17630 ac_ltlibobjs=
17631 U=
17632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17633 # 1. Remove the extension, and $U if already installed.
17634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17635 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17637 # will be set to the directory where LIBOBJS objects are built.
17638 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17639 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17640 done
17641 LIBOBJS=$ac_libobjs
17642
17643 LTLIBOBJS=$ac_ltlibobjs
17644
17645
17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17647 printf %s "checking that generated files are newer than configure... " >&6; }
17648 if test -n "$am_sleep_pid"; then
17649 # Hide warnings about reused PIDs.
17650 wait $am_sleep_pid 2>/dev/null
17651 fi
17652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17653 printf "%s\n" "done" >&6; }
17654 case $enable_silent_rules in # (((
17655 yes) AM_DEFAULT_VERBOSITY=0;;
17656 no) AM_DEFAULT_VERBOSITY=1;;
17657 esac
17658 if test $am_cv_make_support_nested_variables = yes; then
17659 AM_V='$(V)'
17660 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17661 else
17662 AM_V=$AM_DEFAULT_VERBOSITY
17663 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17664 fi
17665
17666 if test -n "$EXEEXT"; then
17667 am__EXEEXT_TRUE=
17668 am__EXEEXT_FALSE='#'
17669 else
17670 am__EXEEXT_TRUE='#'
17671 am__EXEEXT_FALSE=
17672 fi
17673
17674 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17675 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17677 fi
17678 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17679 as_fn_error $? "conditional \"AMDEP\" was never defined.
17680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17681 fi
17682 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17683 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17685 fi
17686 # Check whether --enable-year2038 was given.
17687 if test ${enable_year2038+y}
17688 then :
17689 enableval=$enable_year2038;
17690 fi
17691
17692 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
17693 as_fn_error $? "conditional \"WIN32\" was never defined.
17694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17695 fi
17696 if test -z "${WIN32_WRAP_TRUE}" && test -z "${WIN32_WRAP_FALSE}"; then
17697 as_fn_error $? "conditional \"WIN32_WRAP\" was never defined.
17698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17699 fi
17700
17701 : "${CONFIG_STATUS=./config.status}"
17702 ac_write_fail=0
17703 ac_clean_files_save=$ac_clean_files
17704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17706 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17707 as_write_fail=0
17708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17709 #! $SHELL
17710 # Generated by $as_me.
17711 # Run this file to recreate the current configuration.
17712 # Compiler output produced by configure, useful for debugging
17713 # configure, is in config.log if it exists.
17714
17715 debug=false
17716 ac_cs_recheck=false
17717 ac_cs_silent=false
17718
17719 SHELL=\${CONFIG_SHELL-$SHELL}
17720 export SHELL
17721 _ASEOF
17722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17723 ## -------------------- ##
17724 ## M4sh Initialization. ##
17725 ## -------------------- ##
17726
17727 # Be more Bourne compatible
17728 DUALCASE=1; export DUALCASE # for MKS sh
17729 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17730 then :
17731 emulate sh
17732 NULLCMD=:
17733 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17734 # is contrary to our usage. Disable this feature.
17735 alias -g '${1+"$@"}'='"$@"'
17736 setopt NO_GLOB_SUBST
17737 else case e in #(
17738 e) case `(set -o) 2>/dev/null` in #(
17739 *posix*) :
17740 set -o posix ;; #(
17741 *) :
17742 ;;
17743 esac ;;
17744 esac
17745 fi
17746
17747
17748
17749 # Reset variables that may have inherited troublesome values from
17750 # the environment.
17751
17752 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17753 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17754 # side effect of setting IFS to empty, thus disabling word splitting.)
17755 # Quoting is to prevent editors from complaining about space-tab.
17756 as_nl='
17757 '
17758 export as_nl
17759 IFS=" "" $as_nl"
17760
17761 PS1='$ '
17762 PS2='> '
17763 PS4='+ '
17764
17765 # Ensure predictable behavior from utilities with locale-dependent output.
17766 LC_ALL=C
17767 export LC_ALL
17768 LANGUAGE=C
17769 export LANGUAGE
17770
17771 # We cannot yet rely on "unset" to work, but we need these variables
17772 # to be unset--not just set to an empty or harmless value--now, to
17773 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17774 # also avoids known problems related to "unset" and subshell syntax
17775 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17776 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17777 do eval test \${$as_var+y} \
17778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17779 done
17780
17781 # Ensure that fds 0, 1, and 2 are open.
17782 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17783 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17784 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17785
17786 # The user is always right.
17787 if ${PATH_SEPARATOR+false} :; then
17788 PATH_SEPARATOR=:
17789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17791 PATH_SEPARATOR=';'
17792 }
17793 fi
17794
17795
17796 # Find who we are. Look in the path if we contain no directory separator.
17797 as_myself=
17798 case $0 in #((
17799 *[\\/]* ) as_myself=$0 ;;
17800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17801 for as_dir in $PATH
17802 do
17803 IFS=$as_save_IFS
17804 case $as_dir in #(((
17805 '') as_dir=./ ;;
17806 */) ;;
17807 *) as_dir=$as_dir/ ;;
17808 esac
17809 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17810 done
17811 IFS=$as_save_IFS
17812
17813 ;;
17814 esac
17815 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17816 # in which case we are not to be found in the path.
17817 if test "x$as_myself" = x; then
17818 as_myself=$0
17819 fi
17820 if test ! -f "$as_myself"; then
17821 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17822 exit 1
17823 fi
17824
17825
17826
17827 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17828 # ----------------------------------------
17829 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17830 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17831 # script with STATUS, using 1 if that was 0.
17832 as_fn_error ()
17833 {
17834 as_status=$1; test $as_status -eq 0 && as_status=1
17835 if test "$4"; then
17836 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17838 fi
17839 printf "%s\n" "$as_me: error: $2" >&2
17840 as_fn_exit $as_status
17841 } # as_fn_error
17842
17843
17844 # as_fn_set_status STATUS
17845 # -----------------------
17846 # Set $? to STATUS, without forking.
17847 as_fn_set_status ()
17848 {
17849 return $1
17850 } # as_fn_set_status
17851
17852 # as_fn_exit STATUS
17853 # -----------------
17854 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17855 as_fn_exit ()
17856 {
17857 set +e
17858 as_fn_set_status $1
17859 exit $1
17860 } # as_fn_exit
17861
17862 # as_fn_unset VAR
17863 # ---------------
17864 # Portably unset VAR.
17865 as_fn_unset ()
17866 {
17867 { eval $1=; unset $1;}
17868 }
17869 as_unset=as_fn_unset
17870
17871 # as_fn_append VAR VALUE
17872 # ----------------------
17873 # Append the text in VALUE to the end of the definition contained in VAR. Take
17874 # advantage of any shell optimizations that allow amortized linear growth over
17875 # repeated appends, instead of the typical quadratic growth present in naive
17876 # implementations.
17877 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17878 then :
17879 eval 'as_fn_append ()
17880 {
17881 eval $1+=\$2
17882 }'
17883 else case e in #(
17884 e) as_fn_append ()
17885 {
17886 eval $1=\$$1\$2
17887 } ;;
17888 esac
17889 fi # as_fn_append
17890
17891 # as_fn_arith ARG...
17892 # ------------------
17893 # Perform arithmetic evaluation on the ARGs, and store the result in the
17894 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17895 # must be portable across $(()) and expr.
17896 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17897 then :
17898 eval 'as_fn_arith ()
17899 {
17900 as_val=$(( $* ))
17901 }'
17902 else case e in #(
17903 e) as_fn_arith ()
17904 {
17905 as_val=`expr "$@" || test $? -eq 1`
17906 } ;;
17907 esac
17908 fi # as_fn_arith
17909
17910
17911 if expr a : '\(a\)' >/dev/null 2>&1 &&
17912 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17913 as_expr=expr
17914 else
17915 as_expr=false
17916 fi
17917
17918 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17919 as_basename=basename
17920 else
17921 as_basename=false
17922 fi
17923
17924 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17925 as_dirname=dirname
17926 else
17927 as_dirname=false
17928 fi
17929
17930 as_me=`$as_basename -- "$0" ||
17931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17932 X"$0" : 'X\(//\)$' \| \
17933 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17934 printf "%s\n" X/"$0" |
17935 sed '/^.*\/\([^/][^/]*\)\/*$/{
17936 s//\1/
17937 q
17938 }
17939 /^X\/\(\/\/\)$/{
17940 s//\1/
17941 q
17942 }
17943 /^X\/\(\/\).*/{
17944 s//\1/
17945 q
17946 }
17947 s/.*/./; q'`
17948
17949 # Avoid depending upon Character Ranges.
17950 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17953 as_cr_digits='0123456789'
17954 as_cr_alnum=$as_cr_Letters$as_cr_digits
17955
17956
17957 # Determine whether it's possible to make 'echo' print without a newline.
17958 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17959 # for compatibility with existing Makefiles.
17960 ECHO_C= ECHO_N= ECHO_T=
17961 case `echo -n x` in #(((((
17962 -n*)
17963 case `echo 'xy\c'` in
17964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17965 xy) ECHO_C='\c';;
17966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17967 ECHO_T=' ';;
17968 esac;;
17969 *)
17970 ECHO_N='-n';;
17971 esac
17972
17973 # For backward compatibility with old third-party macros, we provide
17974 # the shell variables $as_echo and $as_echo_n. New code should use
17975 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17976 as_echo='printf %s\n'
17977 as_echo_n='printf %s'
17978
17979 rm -f conf$$ conf$$.exe conf$$.file
17980 if test -d conf$$.dir; then
17981 rm -f conf$$.dir/conf$$.file
17982 else
17983 rm -f conf$$.dir
17984 mkdir conf$$.dir 2>/dev/null
17985 fi
17986 if (echo >conf$$.file) 2>/dev/null; then
17987 if ln -s conf$$.file conf$$ 2>/dev/null; then
17988 as_ln_s='ln -s'
17989 # ... but there are two gotchas:
17990 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17991 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17992 # In both cases, we have to default to 'cp -pR'.
17993 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17994 as_ln_s='cp -pR'
17995 elif ln conf$$.file conf$$ 2>/dev/null; then
17996 as_ln_s=ln
17997 else
17998 as_ln_s='cp -pR'
17999 fi
18000 else
18001 as_ln_s='cp -pR'
18002 fi
18003 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18004 rmdir conf$$.dir 2>/dev/null
18005
18006
18007 # as_fn_mkdir_p
18008 # -------------
18009 # Create "$as_dir" as a directory, including parents if necessary.
18010 as_fn_mkdir_p ()
18011 {
18012
18013 case $as_dir in #(
18014 -*) as_dir=./$as_dir;;
18015 esac
18016 test -d "$as_dir" || eval $as_mkdir_p || {
18017 as_dirs=
18018 while :; do
18019 case $as_dir in #(
18020 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18021 *) as_qdir=$as_dir;;
18022 esac
18023 as_dirs="'$as_qdir' $as_dirs"
18024 as_dir=`$as_dirname -- "$as_dir" ||
18025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18026 X"$as_dir" : 'X\(//\)[^/]' \| \
18027 X"$as_dir" : 'X\(//\)$' \| \
18028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18029 printf "%s\n" X"$as_dir" |
18030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18031 s//\1/
18032 q
18033 }
18034 /^X\(\/\/\)[^/].*/{
18035 s//\1/
18036 q
18037 }
18038 /^X\(\/\/\)$/{
18039 s//\1/
18040 q
18041 }
18042 /^X\(\/\).*/{
18043 s//\1/
18044 q
18045 }
18046 s/.*/./; q'`
18047 test -d "$as_dir" && break
18048 done
18049 test -z "$as_dirs" || eval "mkdir $as_dirs"
18050 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18051
18052
18053 } # as_fn_mkdir_p
18054 if mkdir -p . 2>/dev/null; then
18055 as_mkdir_p='mkdir -p "$as_dir"'
18056 else
18057 test -d ./-p && rmdir ./-p
18058 as_mkdir_p=false
18059 fi
18060
18061
18062 # as_fn_executable_p FILE
18063 # -----------------------
18064 # Test if FILE is an executable regular file.
18065 as_fn_executable_p ()
18066 {
18067 test -f "$1" && test -x "$1"
18068 } # as_fn_executable_p
18069 as_test_x='test -x'
18070 as_executable_p=as_fn_executable_p
18071
18072 # Sed expression to map a string onto a valid CPP name.
18073 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18074 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
18075
18076 # Sed expression to map a string onto a valid variable name.
18077 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18078 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
18079
18080
18081 exec 6>&1
18082 ## ----------------------------------- ##
18083 ## Main body of $CONFIG_STATUS script. ##
18084 ## ----------------------------------- ##
18085 _ASEOF
18086 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18087
18088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18089 # Save the log message, to keep $0 and so on meaningful, and to
18090 # report actual input values of CONFIG_FILES etc. instead of their
18091 # values after options handling.
18092 ac_log="
18093 This file was extended by tex4ht (TeX Live) $as_me 20080225, which was
18094 generated by GNU Autoconf 2.72. Invocation command line was
18095
18096 CONFIG_FILES = $CONFIG_FILES
18097 CONFIG_HEADERS = $CONFIG_HEADERS
18098 CONFIG_LINKS = $CONFIG_LINKS
18099 CONFIG_COMMANDS = $CONFIG_COMMANDS
18100 $ $0 $@
18101
18102 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18103 "
18104
18105 _ACEOF
18106
18107 case $ac_config_files in *"
18108 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18109 esac
18110
18111 case $ac_config_headers in *"
18112 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18113 esac
18114
18115
18116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18117 # Files that config.status was made for.
18118 config_files="$ac_config_files"
18119 config_headers="$ac_config_headers"
18120 config_commands="$ac_config_commands"
18121
18122 _ACEOF
18123
18124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18125 ac_cs_usage="\
18126 '$as_me' instantiates files and other configuration actions
18127 from templates according to the current configuration. Unless the files
18128 and actions are specified as TAGs, all are instantiated by default.
18129
18130 Usage: $0 [OPTION]... [TAG]...
18131
18132 -h, --help print this help, then exit
18133 -V, --version print version number and configuration settings, then exit
18134 --config print configuration, then exit
18135 -q, --quiet, --silent
18136 do not print progress messages
18137 -d, --debug don't remove temporary files
18138 --recheck update $as_me by reconfiguring in the same conditions
18139 --file=FILE[:TEMPLATE]
18140 instantiate the configuration file FILE
18141 --header=FILE[:TEMPLATE]
18142 instantiate the configuration header FILE
18143
18144 Configuration files:
18145 $config_files
18146
18147 Configuration headers:
18148 $config_headers
18149
18150 Configuration commands:
18151 $config_commands
18152
18153 Report bugs to <[email protected]>."
18154
18155 _ACEOF
18156 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18157 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18159 ac_cs_config='$ac_cs_config_escaped'
18160 ac_cs_version="\\
18161 tex4ht (TeX Live) config.status 20080225
18162 configured by $0, generated by GNU Autoconf 2.72,
18163 with options \\"\$ac_cs_config\\"
18164
18165 Copyright (C) 2023 Free Software Foundation, Inc.
18166 This config.status script is free software; the Free Software Foundation
18167 gives unlimited permission to copy, distribute and modify it."
18168
18169 ac_pwd='$ac_pwd'
18170 srcdir='$srcdir'
18171 INSTALL='$INSTALL'
18172 MKDIR_P='$MKDIR_P'
18173 AWK='$AWK'
18174 test -n "\$AWK" || AWK=awk
18175 _ACEOF
18176
18177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18178 # The default lists apply if the user does not specify any file.
18179 ac_need_defaults=:
18180 while test $# != 0
18181 do
18182 case $1 in
18183 --*=?*)
18184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18186 ac_shift=:
18187 ;;
18188 --*=)
18189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18190 ac_optarg=
18191 ac_shift=:
18192 ;;
18193 *)
18194 ac_option=$1
18195 ac_optarg=$2
18196 ac_shift=shift
18197 ;;
18198 esac
18199
18200 case $ac_option in
18201 # Handling of the options.
18202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18203 ac_cs_recheck=: ;;
18204 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18205 printf "%s\n" "$ac_cs_version"; exit ;;
18206 --config | --confi | --conf | --con | --co | --c )
18207 printf "%s\n" "$ac_cs_config"; exit ;;
18208 --debug | --debu | --deb | --de | --d | -d )
18209 debug=: ;;
18210 --file | --fil | --fi | --f )
18211 $ac_shift
18212 case $ac_optarg in
18213 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18214 '') as_fn_error $? "missing file argument" ;;
18215 esac
18216 as_fn_append CONFIG_FILES " '$ac_optarg'"
18217 ac_need_defaults=false;;
18218 --header | --heade | --head | --hea )
18219 $ac_shift
18220 case $ac_optarg in
18221 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18222 esac
18223 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18224 ac_need_defaults=false;;
18225 --he | --h)
18226 # Conflict between --help and --header
18227 as_fn_error $? "ambiguous option: '$1'
18228 Try '$0 --help' for more information.";;
18229 --help | --hel | -h )
18230 printf "%s\n" "$ac_cs_usage"; exit ;;
18231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18232 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18233 ac_cs_silent=: ;;
18234
18235 # This is an error.
18236 -*) as_fn_error $? "unrecognized option: '$1'
18237 Try '$0 --help' for more information." ;;
18238
18239 *) as_fn_append ac_config_targets " $1"
18240 ac_need_defaults=false ;;
18241
18242 esac
18243 shift
18244 done
18245
18246 ac_configure_extra_args=
18247
18248 if $ac_cs_silent; then
18249 exec 6>/dev/null
18250 ac_configure_extra_args="$ac_configure_extra_args --silent"
18251 fi
18252
18253 _ACEOF
18254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18255 if \$ac_cs_recheck; then
18256 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18257 shift
18258 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18259 CONFIG_SHELL='$SHELL'
18260 export CONFIG_SHELL
18261 exec "\$@"
18262 fi
18263
18264 _ACEOF
18265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18266 exec 5>>config.log
18267 {
18268 echo
18269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18270 ## Running $as_me. ##
18271 _ASBOX
18272 printf "%s\n" "$ac_log"
18273 } >&5
18274
18275 _ACEOF
18276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18277 #
18278 # INIT-COMMANDS
18279 #
18280 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18281
18282
18283 # The HP-UX ksh and POSIX shell print the target directory to stdout
18284 # if CDPATH is set.
18285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18286
18287 sed_quote_subst='$sed_quote_subst'
18288 double_quote_subst='$double_quote_subst'
18289 delay_variable_subst='$delay_variable_subst'
18290 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18291 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18292 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18293 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18294 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18295 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18296 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18297 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18298 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18299 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18300 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18301 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18302 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18303 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18304 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18305 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18306 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18307 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18308 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18309 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18310 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18311 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18312 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18313 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18314 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18315 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18316 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18317 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18318 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18319 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18320 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18321 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18322 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18323 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18324 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18325 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18326 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18327 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18328 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18329 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18330 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18331 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18332 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18333 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18334 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18335 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18336 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18337 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18338 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18339 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18340 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18341 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18342 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18343 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18344 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18345 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18346 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18347 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18348 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18349 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18350 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18351 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"`'
18352 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18353 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18354 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18355 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18356 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18357 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18358 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18359 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18360 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18361 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18362 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18363 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18364 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18365 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18366 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18367 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18368 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18369 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18370 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18371 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18372 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18373 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18374 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18375 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18376 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18377 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18378 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18379 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18380 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18381 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18382 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18383 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18384 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18385 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18386 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18387 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18388 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18389 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18390 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18391 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18392 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18393 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18394 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18395 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18396 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18397 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18398 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18399 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18400 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18401 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18402 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18403 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18404 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18405 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18406 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18407 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18408 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18409 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18410 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18411 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18412 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18413 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18414 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18415 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18416 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18417 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18418 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18419 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18420 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18421 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18422 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18423 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18424 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18425 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18426 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18427 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18428
18429 LTCC='$LTCC'
18430 LTCFLAGS='$LTCFLAGS'
18431 compiler='$compiler_DEFAULT'
18432
18433 # A function that is used when there is no print builtin or printf.
18434 func_fallback_echo ()
18435 {
18436 eval 'cat <<_LTECHO_EOF
18437 \$1
18438 _LTECHO_EOF'
18439 }
18440
18441 # Quote evaled strings.
18442 for var in AS \
18443 DLLTOOL \
18444 OBJDUMP \
18445 SHELL \
18446 ECHO \
18447 PATH_SEPARATOR \
18448 SED \
18449 GREP \
18450 EGREP \
18451 FGREP \
18452 LD \
18453 NM \
18454 LN_S \
18455 lt_SP2NL \
18456 lt_NL2SP \
18457 reload_flag \
18458 FILECMD \
18459 deplibs_check_method \
18460 file_magic_cmd \
18461 file_magic_glob \
18462 want_nocaseglob \
18463 sharedlib_from_linklib_cmd \
18464 AR \
18465 archiver_list_spec \
18466 STRIP \
18467 RANLIB \
18468 CC \
18469 CFLAGS \
18470 compiler \
18471 lt_cv_sys_global_symbol_pipe \
18472 lt_cv_sys_global_symbol_to_cdecl \
18473 lt_cv_sys_global_symbol_to_import \
18474 lt_cv_sys_global_symbol_to_c_name_address \
18475 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18476 lt_cv_nm_interface \
18477 nm_file_list_spec \
18478 lt_cv_truncate_bin \
18479 lt_prog_compiler_no_builtin_flag \
18480 lt_prog_compiler_pic \
18481 lt_prog_compiler_wl \
18482 lt_prog_compiler_static \
18483 lt_cv_prog_compiler_c_o \
18484 need_locks \
18485 MANIFEST_TOOL \
18486 DSYMUTIL \
18487 NMEDIT \
18488 LIPO \
18489 OTOOL \
18490 OTOOL64 \
18491 shrext_cmds \
18492 export_dynamic_flag_spec \
18493 whole_archive_flag_spec \
18494 compiler_needs_object \
18495 with_gnu_ld \
18496 allow_undefined_flag \
18497 no_undefined_flag \
18498 hardcode_libdir_flag_spec \
18499 hardcode_libdir_separator \
18500 exclude_expsyms \
18501 include_expsyms \
18502 file_list_spec \
18503 variables_saved_for_relink \
18504 libname_spec \
18505 library_names_spec \
18506 soname_spec \
18507 install_override_mode \
18508 finish_eval \
18509 old_striplib \
18510 striplib; do
18511 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18512 *[\\\\\\\`\\"\\\$]*)
18513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18514 ;;
18515 *)
18516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18517 ;;
18518 esac
18519 done
18520
18521 # Double-quote double-evaled strings.
18522 for var in reload_cmds \
18523 old_postinstall_cmds \
18524 old_postuninstall_cmds \
18525 old_archive_cmds \
18526 extract_expsyms_cmds \
18527 old_archive_from_new_cmds \
18528 old_archive_from_expsyms_cmds \
18529 archive_cmds \
18530 archive_expsym_cmds \
18531 module_cmds \
18532 module_expsym_cmds \
18533 export_symbols_cmds \
18534 prelink_cmds \
18535 postlink_cmds \
18536 postinstall_cmds \
18537 postuninstall_cmds \
18538 finish_cmds \
18539 sys_lib_search_path_spec \
18540 configure_time_dlsearch_path \
18541 configure_time_lt_sys_library_path; do
18542 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18543 *[\\\\\\\`\\"\\\$]*)
18544 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18545 ;;
18546 *)
18547 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18548 ;;
18549 esac
18550 done
18551
18552 ac_aux_dir='$ac_aux_dir'
18553
18554 # See if we are running on zsh, and set the options that allow our
18555 # commands through without removal of \ escapes INIT.
18556 if test -n "\${ZSH_VERSION+set}"; then
18557 setopt NO_GLOB_SUBST
18558 fi
18559
18560
18561 PACKAGE='$PACKAGE'
18562 VERSION='$VERSION'
18563 RM='$RM'
18564 ofile='$ofile'
18565
18566 ac_aux_dir='$ac_aux_dir'
18567
18568
18569
18570 _ACEOF
18571
18572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18573
18574 # Handling of arguments.
18575 for ac_config_target in $ac_config_targets
18576 do
18577 case $ac_config_target in
18578 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18579 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18580 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
18581 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18582
18583 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18584 esac
18585 done
18586
18587
18588 # If the user did not use the arguments to specify the items to instantiate,
18589 # then the envvar interface is used. Set only those that are not.
18590 # We use the long form for the default assignment because of an extremely
18591 # bizarre bug on SunOS 4.1.3.
18592 if $ac_need_defaults; then
18593 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18594 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18595 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18596 fi
18597
18598 # Have a temporary directory for convenience. Make it in the build tree
18599 # simply because there is no reason against having it here, and in addition,
18600 # creating and moving files from /tmp can sometimes cause problems.
18601 # Hook for its removal unless debugging.
18602 # Note that there is a small window in which the directory will not be cleaned:
18603 # after its creation but before its name has been assigned to '$tmp'.
18604 $debug ||
18605 {
18606 tmp= ac_tmp=
18607 trap 'exit_status=$?
18608 : "${ac_tmp:=$tmp}"
18609 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18610 ' 0
18611 trap 'as_fn_exit 1' 1 2 13 15
18612 }
18613 # Create a (secure) tmp directory for tmp files.
18614
18615 {
18616 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18617 test -d "$tmp"
18618 } ||
18619 {
18620 tmp=./conf$$-$RANDOM
18621 (umask 077 && mkdir "$tmp")
18622 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18623 ac_tmp=$tmp
18624
18625 # Set up the scripts for CONFIG_FILES section.
18626 # No need to generate them if there are no CONFIG_FILES.
18627 # This happens for instance with './config.status config.h'.
18628 if test -n "$CONFIG_FILES"; then
18629
18630
18631 ac_cr=`echo X | tr X '\015'`
18632 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18633 # But we know of no other shell where ac_cr would be empty at this
18634 # point, so we can use a bashism as a fallback.
18635 if test "x$ac_cr" = x; then
18636 eval ac_cr=\$\'\\r\'
18637 fi
18638 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18639 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18640 ac_cs_awk_cr='\\r'
18641 else
18642 ac_cs_awk_cr=$ac_cr
18643 fi
18644
18645 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18646 _ACEOF
18647
18648
18649 {
18650 echo "cat >conf$$subs.awk <<_ACEOF" &&
18651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18652 echo "_ACEOF"
18653 } >conf$$subs.sh ||
18654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18656 ac_delim='%!_!# '
18657 for ac_last_try in false false false false false :; do
18658 . ./conf$$subs.sh ||
18659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18660
18661 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18662 if test $ac_delim_n = $ac_delim_num; then
18663 break
18664 elif $ac_last_try; then
18665 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18666 else
18667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18668 fi
18669 done
18670 rm -f conf$$subs.sh
18671
18672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18673 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18674 _ACEOF
18675 sed -n '
18676 h
18677 s/^/S["/; s/!.*/"]=/
18678 p
18679 g
18680 s/^[^!]*!//
18681 :repl
18682 t repl
18683 s/'"$ac_delim"'$//
18684 t delim
18685 :nl
18686 h
18687 s/\(.\{148\}\)..*/\1/
18688 t more1
18689 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18690 p
18691 n
18692 b repl
18693 :more1
18694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18695 p
18696 g
18697 s/.\{148\}//
18698 t nl
18699 :delim
18700 h
18701 s/\(.\{148\}\)..*/\1/
18702 t more2
18703 s/["\\]/\\&/g; s/^/"/; s/$/"/
18704 p
18705 b
18706 :more2
18707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18708 p
18709 g
18710 s/.\{148\}//
18711 t delim
18712 ' <conf$$subs.awk | sed '
18713 /^[^""]/{
18714 N
18715 s/\n//
18716 }
18717 ' >>$CONFIG_STATUS || ac_write_fail=1
18718 rm -f conf$$subs.awk
18719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18720 _ACAWK
18721 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18722 for (key in S) S_is_set[key] = 1
18723 FS = ""
18724
18725 }
18726 {
18727 line = $ 0
18728 nfields = split(line, field, "@")
18729 substed = 0
18730 len = length(field[1])
18731 for (i = 2; i < nfields; i++) {
18732 key = field[i]
18733 keylen = length(key)
18734 if (S_is_set[key]) {
18735 value = S[key]
18736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18737 len += length(value) + length(field[++i])
18738 substed = 1
18739 } else
18740 len += 1 + keylen
18741 }
18742
18743 print line
18744 }
18745
18746 _ACAWK
18747 _ACEOF
18748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18749 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18750 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18751 else
18752 cat
18753 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18754 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18755 _ACEOF
18756
18757 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18758 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18759 # trailing colons and then remove the whole line if VPATH becomes empty
18760 # (actually we leave an empty line to preserve line numbers).
18761 if test "x$srcdir" = x.; then
18762 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18763 h
18764 s///
18765 s/^/:/
18766 s/[ ]*$/:/
18767 s/:\$(srcdir):/:/g
18768 s/:\${srcdir}:/:/g
18769 s/:@srcdir@:/:/g
18770 s/^:*//
18771 s/:*$//
18772 x
18773 s/\(=[ ]*\).*/\1/
18774 G
18775 s/\n//
18776 s/^[^=]*=[ ]*$//
18777 }'
18778 fi
18779
18780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18781 fi # test -n "$CONFIG_FILES"
18782
18783 # Set up the scripts for CONFIG_HEADERS section.
18784 # No need to generate them if there are no CONFIG_HEADERS.
18785 # This happens for instance with './config.status Makefile'.
18786 if test -n "$CONFIG_HEADERS"; then
18787 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18788 BEGIN {
18789 _ACEOF
18790
18791 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18792 # here-document in config.status, that substitutes the proper values into
18793 # config.h.in to produce config.h.
18794
18795 # Create a delimiter string that does not exist in confdefs.h, to ease
18796 # handling of long lines.
18797 ac_delim='%!_!# '
18798 for ac_last_try in false false :; do
18799 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18800 if test -z "$ac_tt"; then
18801 break
18802 elif $ac_last_try; then
18803 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18804 else
18805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18806 fi
18807 done
18808
18809 # For the awk script, D is an array of macro values keyed by name,
18810 # likewise P contains macro parameters if any. Preserve backslash
18811 # newline sequences.
18812
18813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18814 sed -n '
18815 s/.\{148\}/&'"$ac_delim"'/g
18816 t rset
18817 :rset
18818 s/^[ ]*#[ ]*define[ ][ ]*/ /
18819 t def
18820 d
18821 :def
18822 s/\\$//
18823 t bsnl
18824 s/["\\]/\\&/g
18825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18826 D["\1"]=" \3"/p
18827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18828 d
18829 :bsnl
18830 s/["\\]/\\&/g
18831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18832 D["\1"]=" \3\\\\\\n"\\/p
18833 t cont
18834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18835 t cont
18836 d
18837 :cont
18838 n
18839 s/.\{148\}/&'"$ac_delim"'/g
18840 t clear
18841 :clear
18842 s/\\$//
18843 t bsnlc
18844 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18845 d
18846 :bsnlc
18847 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18848 b cont
18849 ' <confdefs.h | sed '
18850 s/'"$ac_delim"'/"\\\
18851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18852
18853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18854 for (key in D) D_is_set[key] = 1
18855 FS = ""
18856 }
18857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18858 line = \$ 0
18859 split(line, arg, " ")
18860 if (arg[1] == "#") {
18861 defundef = arg[2]
18862 mac1 = arg[3]
18863 } else {
18864 defundef = substr(arg[1], 2)
18865 mac1 = arg[2]
18866 }
18867 split(mac1, mac2, "(") #)
18868 macro = mac2[1]
18869 prefix = substr(line, 1, index(line, defundef) - 1)
18870 if (D_is_set[macro]) {
18871 # Preserve the white space surrounding the "#".
18872 print prefix "define", macro P[macro] D[macro]
18873 next
18874 } else {
18875 # Replace #undef with comments. This is necessary, for example,
18876 # in the case of _POSIX_SOURCE, which is predefined and required
18877 # on some systems where configure will not decide to define it.
18878 if (defundef == "undef") {
18879 print "/*", prefix defundef, macro, "*/"
18880 next
18881 }
18882 }
18883 }
18884 { print }
18885 _ACAWK
18886 _ACEOF
18887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18888 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18889 fi # test -n "$CONFIG_HEADERS"
18890
18891
18892 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18893 shift
18894 for ac_tag
18895 do
18896 case $ac_tag in
18897 :[FHLC]) ac_mode=$ac_tag; continue;;
18898 esac
18899 case $ac_mode$ac_tag in
18900 :[FHL]*:*);;
18901 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18902 :[FH]-) ac_tag=-:-;;
18903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18904 esac
18905 ac_save_IFS=$IFS
18906 IFS=:
18907 set x $ac_tag
18908 IFS=$ac_save_IFS
18909 shift
18910 ac_file=$1
18911 shift
18912
18913 case $ac_mode in
18914 :L) ac_source=$1;;
18915 :[FH])
18916 ac_file_inputs=
18917 for ac_f
18918 do
18919 case $ac_f in
18920 -) ac_f="$ac_tmp/stdin";;
18921 *) # Look for the file first in the build tree, then in the source tree
18922 # (if the path is not absolute). The absolute path cannot be DOS-style,
18923 # because $ac_f cannot contain ':'.
18924 test -f "$ac_f" ||
18925 case $ac_f in
18926 [\\/$]*) false;;
18927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18928 esac ||
18929 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18930 esac
18931 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18932 as_fn_append ac_file_inputs " '$ac_f'"
18933 done
18934
18935 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18936 # use $as_me), people would be surprised to read:
18937 # /* config.h. Generated by config.status. */
18938 configure_input='Generated from '`
18939 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18940 `' by configure.'
18941 if test x"$ac_file" != x-; then
18942 configure_input="$ac_file. $configure_input"
18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18944 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18945 fi
18946 # Neutralize special characters interpreted by sed in replacement strings.
18947 case $configure_input in #(
18948 *\&* | *\|* | *\\* )
18949 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18951 *) ac_sed_conf_input=$configure_input;;
18952 esac
18953
18954 case $ac_tag in
18955 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18957 esac
18958 ;;
18959 esac
18960
18961 ac_dir=`$as_dirname -- "$ac_file" ||
18962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18963 X"$ac_file" : 'X\(//\)[^/]' \| \
18964 X"$ac_file" : 'X\(//\)$' \| \
18965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18966 printf "%s\n" X"$ac_file" |
18967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18968 s//\1/
18969 q
18970 }
18971 /^X\(\/\/\)[^/].*/{
18972 s//\1/
18973 q
18974 }
18975 /^X\(\/\/\)$/{
18976 s//\1/
18977 q
18978 }
18979 /^X\(\/\).*/{
18980 s//\1/
18981 q
18982 }
18983 s/.*/./; q'`
18984 as_dir="$ac_dir"; as_fn_mkdir_p
18985 ac_builddir=.
18986
18987 case "$ac_dir" in
18988 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18989 *)
18990 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18991 # A ".." for each directory in $ac_dir_suffix.
18992 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18993 case $ac_top_builddir_sub in
18994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18996 esac ;;
18997 esac
18998 ac_abs_top_builddir=$ac_pwd
18999 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19000 # for backward compatibility:
19001 ac_top_builddir=$ac_top_build_prefix
19002
19003 case $srcdir in
19004 .) # We are building in place.
19005 ac_srcdir=.
19006 ac_top_srcdir=$ac_top_builddir_sub
19007 ac_abs_top_srcdir=$ac_pwd ;;
19008 [\\/]* | ?:[\\/]* ) # Absolute name.
19009 ac_srcdir=$srcdir$ac_dir_suffix;
19010 ac_top_srcdir=$srcdir
19011 ac_abs_top_srcdir=$srcdir ;;
19012 *) # Relative name.
19013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19014 ac_top_srcdir=$ac_top_build_prefix$srcdir
19015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19016 esac
19017 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19018
19019
19020 case $ac_mode in
19021 :F)
19022 #
19023 # CONFIG_FILE
19024 #
19025
19026 case $INSTALL in
19027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19029 esac
19030 ac_MKDIR_P=$MKDIR_P
19031 case $MKDIR_P in
19032 [\\/$]* | ?:[\\/]* ) ;;
19033 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19034 esac
19035 _ACEOF
19036
19037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19038 # If the template does not know about datarootdir, expand it.
19039 # FIXME: This hack should be removed a few years after 2.60.
19040 ac_datarootdir_hack=; ac_datarootdir_seen=
19041 ac_sed_dataroot='
19042 /datarootdir/ {
19043 p
19044 q
19045 }
19046 /@datadir@/p
19047 /@docdir@/p
19048 /@infodir@/p
19049 /@localedir@/p
19050 /@mandir@/p'
19051 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19052 *datarootdir*) ac_datarootdir_seen=yes;;
19053 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19055 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19056 _ACEOF
19057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19058 ac_datarootdir_hack='
19059 s&@datadir@&$datadir&g
19060 s&@docdir@&$docdir&g
19061 s&@infodir@&$infodir&g
19062 s&@localedir@&$localedir&g
19063 s&@mandir@&$mandir&g
19064 s&\\\${datarootdir}&$datarootdir&g' ;;
19065 esac
19066 _ACEOF
19067
19068 # Neutralize VPATH when '$srcdir' = '.'.
19069 # Shell code in configure.ac might set extrasub.
19070 # FIXME: do we really want to maintain this feature?
19071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19072 ac_sed_extra="$ac_vpsub
19073 $extrasub
19074 _ACEOF
19075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19076 :t
19077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19078 s|@configure_input@|$ac_sed_conf_input|;t t
19079 s&@top_builddir@&$ac_top_builddir_sub&;t t
19080 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19081 s&@srcdir@&$ac_srcdir&;t t
19082 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19083 s&@top_srcdir@&$ac_top_srcdir&;t t
19084 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19085 s&@builddir@&$ac_builddir&;t t
19086 s&@abs_builddir@&$ac_abs_builddir&;t t
19087 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19088 s&@INSTALL@&$ac_INSTALL&;t t
19089 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19090 $ac_datarootdir_hack
19091 "
19092 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19093 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19094
19095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19096 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19098 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19100 which seems to be undefined. Please make sure it is defined" >&5
19101 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19102 which seems to be undefined. Please make sure it is defined" >&2;}
19103
19104 rm -f "$ac_tmp/stdin"
19105 case $ac_file in
19106 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19107 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19108 esac \
19109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19110 ;;
19111 :H)
19112 #
19113 # CONFIG_HEADER
19114 #
19115 if test x"$ac_file" != x-; then
19116 {
19117 printf "%s\n" "/* $configure_input */" >&1 \
19118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19119 } >"$ac_tmp/config.h" \
19120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19121 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19123 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19124 else
19125 rm -f "$ac_file"
19126 mv "$ac_tmp/config.h" "$ac_file" \
19127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19128 fi
19129 else
19130 printf "%s\n" "/* $configure_input */" >&1 \
19131 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19132 || as_fn_error $? "could not create -" "$LINENO" 5
19133 fi
19134 # Compute "$ac_file"'s index in $config_headers.
19135 _am_arg="$ac_file"
19136 _am_stamp_count=1
19137 for _am_header in $config_headers :; do
19138 case $_am_header in
19139 $_am_arg | $_am_arg:* )
19140 break ;;
19141 * )
19142 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19143 esac
19144 done
19145 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19146 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19147 X"$_am_arg" : 'X\(//\)[^/]' \| \
19148 X"$_am_arg" : 'X\(//\)$' \| \
19149 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19150 printf "%s\n" X"$_am_arg" |
19151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19152 s//\1/
19153 q
19154 }
19155 /^X\(\/\/\)[^/].*/{
19156 s//\1/
19157 q
19158 }
19159 /^X\(\/\/\)$/{
19160 s//\1/
19161 q
19162 }
19163 /^X\(\/\).*/{
19164 s//\1/
19165 q
19166 }
19167 s/.*/./; q'`/stamp-h$_am_stamp_count
19168 ;;
19169
19170 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19171 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19172 ;;
19173 esac
19174
19175
19176 case $ac_file$ac_mode in
19177 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19178 # Older Autoconf quotes --file arguments for eval, but not when files
19179 # are listed without --file. Let's play safe and only enable the eval
19180 # if we detect the quoting.
19181 # TODO: see whether this extra hack can be removed once we start
19182 # requiring Autoconf 2.70 or later.
19183 case $CONFIG_FILES in #(
19184 *\'*) :
19185 eval set x "$CONFIG_FILES" ;; #(
19186 *) :
19187 set x $CONFIG_FILES ;; #(
19188 *) :
19189 ;;
19190 esac
19191 shift
19192 # Used to flag and report bootstrapping failures.
19193 am_rc=0
19194 for am_mf
19195 do
19196 # Strip MF so we end up with the name of the file.
19197 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19198 # Check whether this is an Automake generated Makefile which includes
19199 # dependency-tracking related rules and includes.
19200 # Grep'ing the whole file directly is not great: AIX grep has a line
19201 # limit of 2048, but all sed's we know have understand at least 4000.
19202 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19203 || continue
19204 am_dirpart=`$as_dirname -- "$am_mf" ||
19205 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19206 X"$am_mf" : 'X\(//\)[^/]' \| \
19207 X"$am_mf" : 'X\(//\)$' \| \
19208 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19209 printf "%s\n" X"$am_mf" |
19210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19211 s//\1/
19212 q
19213 }
19214 /^X\(\/\/\)[^/].*/{
19215 s//\1/
19216 q
19217 }
19218 /^X\(\/\/\)$/{
19219 s//\1/
19220 q
19221 }
19222 /^X\(\/\).*/{
19223 s//\1/
19224 q
19225 }
19226 s/.*/./; q'`
19227 am_filepart=`$as_basename -- "$am_mf" ||
19228 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19229 X"$am_mf" : 'X\(//\)$' \| \
19230 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19231 printf "%s\n" X/"$am_mf" |
19232 sed '/^.*\/\([^/][^/]*\)\/*$/{
19233 s//\1/
19234 q
19235 }
19236 /^X\/\(\/\/\)$/{
19237 s//\1/
19238 q
19239 }
19240 /^X\/\(\/\).*/{
19241 s//\1/
19242 q
19243 }
19244 s/.*/./; q'`
19245 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19246 && sed -e '/# am--include-marker/d' "$am_filepart" \
19247 | $MAKE -f - am--depfiles" >&5
19248 (cd "$am_dirpart" \
19249 && sed -e '/# am--include-marker/d' "$am_filepart" \
19250 | $MAKE -f - am--depfiles) >&5 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } || am_rc=$?
19254 done
19255 if test $am_rc -ne 0; then
19256 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19257 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19258 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19259 for automatic dependency tracking. If GNU make was not used, consider
19260 re-running the configure script with MAKE=\"gmake\" (or whatever is
19261 necessary). You can also try re-running configure with the
19262 '--disable-dependency-tracking' option to at least be able to build
19263 the package (albeit without support for automatic dependency tracking).
19264 See 'config.log' for more details" "$LINENO" 5; }
19265 fi
19266 { am_dirpart=; unset am_dirpart;}
19267 { am_filepart=; unset am_filepart;}
19268 { am_mf=; unset am_mf;}
19269 { am_rc=; unset am_rc;}
19270 rm -f conftest-deps.mk
19271 }
19272 ;;
19273 "libtool":C)
19274
19275 # See if we are running on zsh, and set the options that allow our
19276 # commands through without removal of \ escapes.
19277 if test -n "${ZSH_VERSION+set}"; then
19278 setopt NO_GLOB_SUBST
19279 fi
19280
19281 cfgfile=${ofile}T
19282 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19283 $RM "$cfgfile"
19284
19285 cat <<_LT_EOF >> "$cfgfile"
19286 #! $SHELL
19287 # Generated automatically by $as_me ($PACKAGE) $VERSION
19288 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19289
19290 # Provide generalized library-building support services.
19291 # Written by Gordon Matzigkeit, 1996
19292
19293 # Copyright (C) 2024 Free Software Foundation, Inc.
19294 # This is free software; see the source for copying conditions. There is NO
19295 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19296
19297 # GNU Libtool is free software; you can redistribute it and/or modify
19298 # it under the terms of the GNU General Public License as published by
19299 # the Free Software Foundation; either version 2 of the License, or
19300 # (at your option) any later version.
19301 #
19302 # As a special exception to the GNU General Public License, if you
19303 # distribute this file as part of a program or library that is built
19304 # using GNU Libtool, you may include this file under the same
19305 # distribution terms that you use for the rest of that program.
19306 #
19307 # GNU Libtool is distributed in the hope that it will be useful, but
19308 # WITHOUT ANY WARRANTY; without even the implied warranty of
19309 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19310 # GNU General Public License for more details.
19311 #
19312 # You should have received a copy of the GNU General Public License
19313 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19314
19315
19316 # The names of the tagged configurations supported by this script.
19317 available_tags=''
19318
19319 # Configured defaults for sys_lib_dlsearch_path munging.
19320 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19321
19322 # ### BEGIN LIBTOOL CONFIG
19323
19324 # Which release of libtool.m4 was used?
19325 macro_version=$macro_version
19326 macro_revision=$macro_revision
19327
19328 # Assembler program.
19329 AS=$lt_AS
19330
19331 # DLL creation program.
19332 DLLTOOL=$lt_DLLTOOL
19333
19334 # Object dumper program.
19335 OBJDUMP=$lt_OBJDUMP
19336
19337 # Whether or not to build shared libraries.
19338 build_libtool_libs=$enable_shared
19339
19340 # Whether or not to build static libraries.
19341 build_old_libs=$enable_static
19342
19343 # What type of objects to build.
19344 pic_mode=$pic_mode
19345
19346 # Whether or not to optimize for fast installation.
19347 fast_install=$enable_fast_install
19348
19349 # Shared archive member basename,for filename based shared library versioning on AIX.
19350 shared_archive_member_spec=$shared_archive_member_spec
19351
19352 # Shell to use when invoking shell scripts.
19353 SHELL=$lt_SHELL
19354
19355 # An echo program that protects backslashes.
19356 ECHO=$lt_ECHO
19357
19358 # The PATH separator for the build system.
19359 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19360
19361 # The host system.
19362 host_alias=$host_alias
19363 host=$host
19364 host_os=$host_os
19365
19366 # The build system.
19367 build_alias=$build_alias
19368 build=$build
19369 build_os=$build_os
19370
19371 # A sed program that does not truncate output.
19372 SED=$lt_SED
19373
19374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19375 Xsed="\$SED -e 1s/^X//"
19376
19377 # A grep program that handles long lines.
19378 GREP=$lt_GREP
19379
19380 # An ERE matcher.
19381 EGREP=$lt_EGREP
19382
19383 # A literal string matcher.
19384 FGREP=$lt_FGREP
19385
19386 # A BSD- or MS-compatible name lister.
19387 NM=$lt_NM
19388
19389 # Whether we need soft or hard links.
19390 LN_S=$lt_LN_S
19391
19392 # What is the maximum length of a command?
19393 max_cmd_len=$max_cmd_len
19394
19395 # Object file suffix (normally "o").
19396 objext=$ac_objext
19397
19398 # Executable file suffix (normally "").
19399 exeext=$exeext
19400
19401 # whether the shell understands "unset".
19402 lt_unset=$lt_unset
19403
19404 # turn spaces into newlines.
19405 SP2NL=$lt_lt_SP2NL
19406
19407 # turn newlines into spaces.
19408 NL2SP=$lt_lt_NL2SP
19409
19410 # convert \$build file names to \$host format.
19411 to_host_file_cmd=$lt_cv_to_host_file_cmd
19412
19413 # convert \$build files to toolchain format.
19414 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19415
19416 # A file(cmd) program that detects file types.
19417 FILECMD=$lt_FILECMD
19418
19419 # Method to check whether dependent libraries are shared objects.
19420 deplibs_check_method=$lt_deplibs_check_method
19421
19422 # Command to use when deplibs_check_method = "file_magic".
19423 file_magic_cmd=$lt_file_magic_cmd
19424
19425 # How to find potential files when deplibs_check_method = "file_magic".
19426 file_magic_glob=$lt_file_magic_glob
19427
19428 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19429 want_nocaseglob=$lt_want_nocaseglob
19430
19431 # Command to associate shared and link libraries.
19432 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19433
19434 # The archiver.
19435 AR=$lt_AR
19436
19437 # Flags to create an archive (by configure).
19438 lt_ar_flags=$lt_ar_flags
19439
19440 # Flags to create an archive.
19441 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19442
19443 # How to feed a file listing to the archiver.
19444 archiver_list_spec=$lt_archiver_list_spec
19445
19446 # A symbol stripping program.
19447 STRIP=$lt_STRIP
19448
19449 # Commands used to install an old-style archive.
19450 RANLIB=$lt_RANLIB
19451 old_postinstall_cmds=$lt_old_postinstall_cmds
19452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19453
19454 # Whether to use a lock for old archive extraction.
19455 lock_old_archive_extraction=$lock_old_archive_extraction
19456
19457 # A C compiler.
19458 LTCC=$lt_CC
19459
19460 # LTCC compiler flags.
19461 LTCFLAGS=$lt_CFLAGS
19462
19463 # Take the output of nm and produce a listing of raw symbols and C names.
19464 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19465
19466 # Transform the output of nm in a proper C declaration.
19467 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19468
19469 # Transform the output of nm into a list of symbols to manually relocate.
19470 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19471
19472 # Transform the output of nm in a C name address pair.
19473 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19474
19475 # Transform the output of nm in a C name address pair when lib prefix is needed.
19476 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19477
19478 # The name lister interface.
19479 nm_interface=$lt_lt_cv_nm_interface
19480
19481 # Specify filename containing input files for \$NM.
19482 nm_file_list_spec=$lt_nm_file_list_spec
19483
19484 # The root where to search for dependent libraries,and where our libraries should be installed.
19485 lt_sysroot=$lt_sysroot
19486
19487 # Command to truncate a binary pipe.
19488 lt_truncate_bin=$lt_lt_cv_truncate_bin
19489
19490 # The name of the directory that contains temporary libtool files.
19491 objdir=$objdir
19492
19493 # Used to examine libraries when file_magic_cmd begins with "file".
19494 MAGIC_CMD=$MAGIC_CMD
19495
19496 # Must we lock files when doing compilation?
19497 need_locks=$lt_need_locks
19498
19499 # Manifest tool.
19500 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19501
19502 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19503 DSYMUTIL=$lt_DSYMUTIL
19504
19505 # Tool to change global to local symbols on Mac OS X.
19506 NMEDIT=$lt_NMEDIT
19507
19508 # Tool to manipulate fat objects and archives on Mac OS X.
19509 LIPO=$lt_LIPO
19510
19511 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19512 OTOOL=$lt_OTOOL
19513
19514 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19515 OTOOL64=$lt_OTOOL64
19516
19517 # Old archive suffix (normally "a").
19518 libext=$libext
19519
19520 # Shared library suffix (normally ".so").
19521 shrext_cmds=$lt_shrext_cmds
19522
19523 # The commands to extract the exported symbol list from a shared archive.
19524 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19525
19526 # Variables whose values should be saved in libtool wrapper scripts and
19527 # restored at link time.
19528 variables_saved_for_relink=$lt_variables_saved_for_relink
19529
19530 # Do we need the "lib" prefix for modules?
19531 need_lib_prefix=$need_lib_prefix
19532
19533 # Do we need a version for libraries?
19534 need_version=$need_version
19535
19536 # Library versioning type.
19537 version_type=$version_type
19538
19539 # Shared library runtime path variable.
19540 runpath_var=$runpath_var
19541
19542 # Shared library path variable.
19543 shlibpath_var=$shlibpath_var
19544
19545 # Is shlibpath searched before the hard-coded library search path?
19546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19547
19548 # Format of library name prefix.
19549 libname_spec=$lt_libname_spec
19550
19551 # List of archive names. First name is the real one, the rest are links.
19552 # The last name is the one that the linker finds with -lNAME
19553 library_names_spec=$lt_library_names_spec
19554
19555 # The coded name of the library, if different from the real name.
19556 soname_spec=$lt_soname_spec
19557
19558 # Permission mode override for installation of shared libraries.
19559 install_override_mode=$lt_install_override_mode
19560
19561 # Command to use after installation of a shared archive.
19562 postinstall_cmds=$lt_postinstall_cmds
19563
19564 # Command to use after uninstallation of a shared archive.
19565 postuninstall_cmds=$lt_postuninstall_cmds
19566
19567 # Commands used to finish a libtool library installation in a directory.
19568 finish_cmds=$lt_finish_cmds
19569
19570 # As "finish_cmds", except a single script fragment to be evaled but
19571 # not shown.
19572 finish_eval=$lt_finish_eval
19573
19574 # Whether we should hardcode library paths into libraries.
19575 hardcode_into_libs=$hardcode_into_libs
19576
19577 # Compile-time system search path for libraries.
19578 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19579
19580 # Detected run-time system search path for libraries.
19581 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19582
19583 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19584 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19585
19586 # Whether dlopen is supported.
19587 dlopen_support=$enable_dlopen
19588
19589 # Whether dlopen of programs is supported.
19590 dlopen_self=$enable_dlopen_self
19591
19592 # Whether dlopen of statically linked programs is supported.
19593 dlopen_self_static=$enable_dlopen_self_static
19594
19595 # Commands to strip libraries.
19596 old_striplib=$lt_old_striplib
19597 striplib=$lt_striplib
19598
19599
19600 # The linker used to build libraries.
19601 LD=$lt_LD
19602
19603 # How to create reloadable object files.
19604 reload_flag=$lt_reload_flag
19605 reload_cmds=$lt_reload_cmds
19606
19607 # Commands used to build an old-style archive.
19608 old_archive_cmds=$lt_old_archive_cmds
19609
19610 # A language specific compiler.
19611 CC=$lt_compiler
19612
19613 # Is the compiler the GNU compiler?
19614 with_gcc=$GCC
19615
19616 # Compiler flag to turn off builtin functions.
19617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19618
19619 # Additional compiler flags for building library objects.
19620 pic_flag=$lt_lt_prog_compiler_pic
19621
19622 # How to pass a linker flag through the compiler.
19623 wl=$lt_lt_prog_compiler_wl
19624
19625 # Compiler flag to prevent dynamic linking.
19626 link_static_flag=$lt_lt_prog_compiler_static
19627
19628 # Does compiler simultaneously support -c and -o options?
19629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19630
19631 # Whether or not to add -lc for building shared libraries.
19632 build_libtool_need_lc=$archive_cmds_need_lc
19633
19634 # Whether or not to disallow shared libs when runtime libs are static.
19635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19636
19637 # Compiler flag to allow reflexive dlopens.
19638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19639
19640 # Compiler flag to generate shared objects directly from archives.
19641 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19642
19643 # Whether the compiler copes with passing no objects directly.
19644 compiler_needs_object=$lt_compiler_needs_object
19645
19646 # Create an old-style archive from a shared archive.
19647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19648
19649 # Create a temporary old-style archive to link instead of a shared archive.
19650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19651
19652 # Commands used to build a shared archive.
19653 archive_cmds=$lt_archive_cmds
19654 archive_expsym_cmds=$lt_archive_expsym_cmds
19655
19656 # Commands used to build a loadable module if different from building
19657 # a shared archive.
19658 module_cmds=$lt_module_cmds
19659 module_expsym_cmds=$lt_module_expsym_cmds
19660
19661 # Whether we are building with GNU ld or not.
19662 with_gnu_ld=$lt_with_gnu_ld
19663
19664 # Flag that allows shared libraries with undefined symbols to be built.
19665 allow_undefined_flag=$lt_allow_undefined_flag
19666
19667 # Flag that enforces no undefined symbols.
19668 no_undefined_flag=$lt_no_undefined_flag
19669
19670 # Flag to hardcode \$libdir into a binary during linking.
19671 # This must work even if \$libdir does not exist
19672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19673
19674 # Whether we need a single "-rpath" flag with a separated argument.
19675 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19676
19677 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19678 # DIR into the resulting binary.
19679 hardcode_direct=$hardcode_direct
19680
19681 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19682 # DIR into the resulting binary and the resulting library dependency is
19683 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19684 # library is relocated.
19685 hardcode_direct_absolute=$hardcode_direct_absolute
19686
19687 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19688 # into the resulting binary.
19689 hardcode_minus_L=$hardcode_minus_L
19690
19691 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19692 # into the resulting binary.
19693 hardcode_shlibpath_var=$hardcode_shlibpath_var
19694
19695 # Set to "yes" if building a shared library automatically hardcodes DIR
19696 # into the library and all subsequent libraries and executables linked
19697 # against it.
19698 hardcode_automatic=$hardcode_automatic
19699
19700 # Set to yes if linker adds runtime paths of dependent libraries
19701 # to runtime path list.
19702 inherit_rpath=$inherit_rpath
19703
19704 # Whether libtool must link a program against all its dependency libraries.
19705 link_all_deplibs=$link_all_deplibs
19706
19707 # Set to "yes" if exported symbols are required.
19708 always_export_symbols=$always_export_symbols
19709
19710 # The commands to list exported symbols.
19711 export_symbols_cmds=$lt_export_symbols_cmds
19712
19713 # Symbols that should not be listed in the preloaded symbols.
19714 exclude_expsyms=$lt_exclude_expsyms
19715
19716 # Symbols that must always be exported.
19717 include_expsyms=$lt_include_expsyms
19718
19719 # Commands necessary for linking programs (against libraries) with templates.
19720 prelink_cmds=$lt_prelink_cmds
19721
19722 # Commands necessary for finishing linking programs.
19723 postlink_cmds=$lt_postlink_cmds
19724
19725 # Specify filename containing input files.
19726 file_list_spec=$lt_file_list_spec
19727
19728 # How to hardcode a shared library path into an executable.
19729 hardcode_action=$hardcode_action
19730
19731 # ### END LIBTOOL CONFIG
19732
19733 _LT_EOF
19734
19735 cat <<'_LT_EOF' >> "$cfgfile"
19736
19737 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19738
19739 # func_munge_path_list VARIABLE PATH
19740 # -----------------------------------
19741 # VARIABLE is name of variable containing _space_ separated list of
19742 # directories to be munged by the contents of PATH, which is string
19743 # having a format:
19744 # "DIR[:DIR]:"
19745 # string "DIR[ DIR]" will be prepended to VARIABLE
19746 # ":DIR[:DIR]"
19747 # string "DIR[ DIR]" will be appended to VARIABLE
19748 # "DIRP[:DIRP]::[DIRA:]DIRA"
19749 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19750 # "DIRA[ DIRA]" will be appended to VARIABLE
19751 # "DIR[:DIR]"
19752 # VARIABLE will be replaced by "DIR[ DIR]"
19753 func_munge_path_list ()
19754 {
19755 case x$2 in
19756 x)
19757 ;;
19758 *:)
19759 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19760 ;;
19761 x:*)
19762 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19763 ;;
19764 *::*)
19765 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19766 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19767 ;;
19768 *)
19769 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19770 ;;
19771 esac
19772 }
19773
19774
19775 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19776 func_cc_basename ()
19777 {
19778 for cc_temp in $*""; do
19779 case $cc_temp in
19780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19782 \-*) ;;
19783 *) break;;
19784 esac
19785 done
19786 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19787 }
19788
19789
19790 # ### END FUNCTIONS SHARED WITH CONFIGURE
19791
19792 _LT_EOF
19793
19794 case $host_os in
19795 aix3*)
19796 cat <<\_LT_EOF >> "$cfgfile"
19797 # AIX sometimes has problems with the GCC collect2 program. For some
19798 # reason, if we set the COLLECT_NAMES environment variable, the problems
19799 # vanish in a puff of smoke.
19800 if test set != "${COLLECT_NAMES+set}"; then
19801 COLLECT_NAMES=
19802 export COLLECT_NAMES
19803 fi
19804 _LT_EOF
19805 ;;
19806 esac
19807
19808
19809
19810 ltmain=$ac_aux_dir/ltmain.sh
19811
19812
19813 # We use sed instead of cat because bash on DJGPP gets confused if
19814 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19815 # text mode, it properly converts lines to CR/LF. This bash problem
19816 # is reportedly fixed, but why not run on old versions too?
19817 $SED '$q' "$ltmain" >> "$cfgfile" \
19818 || (rm -f "$cfgfile"; exit 1)
19819
19820 mv -f "$cfgfile" "$ofile" ||
19821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19822 chmod +x "$ofile"
19823
19824 ;;
19825
19826 esac
19827 done # for ac_tag
19828
19829
19830 as_fn_exit 0
19831 _ACEOF
19832 ac_clean_files=$ac_clean_files_save
19833
19834 test $ac_write_fail = 0 ||
19835 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19836
19837
19838 # configure is writing to config.log, and then calls config.status.
19839 # config.status does its own redirection, appending to config.log.
19840 # Unfortunately, on DOS this fails, as config.log is still kept open
19841 # by configure, so config.status won't be able to write to it; its
19842 # output is simply discarded. So we exec the FD to /dev/null,
19843 # effectively closing config.log, so it can be properly (re)opened and
19844 # appended to by config.status. When coming back to configure, we
19845 # need to make the FD available again.
19846 if test "$no_create" != yes; then
19847 ac_cs_success=:
19848 ac_config_status_args=
19849 test "$silent" = yes &&
19850 ac_config_status_args="$ac_config_status_args --quiet"
19851 exec 5>/dev/null
19852 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19853 exec 5>>config.log
19854 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19855 # would make configure fail if this is the last instruction.
19856 $ac_cs_success || as_fn_exit 1
19857 fi
19858 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19860 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19861 fi
19862
19863