Debian Codegraph @

texk/dvipng/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 dvipng (TeX Live) 1.18.
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='dvipng (TeX Live)'
616 PACKAGE_TARNAME='dvipng--tex-live-'
617 PACKAGE_VERSION='1.18'
618 PACKAGE_STRING='dvipng (TeX Live) 1.18'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="dvipng-src/dvipng.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 ac_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 WIN32_CALL_FALSE
661 WIN32_CALL_TRUE
662 WIN32_FALSE
663 WIN32_TRUE
664 DVIPNG_TREE
665 have_gif_FALSE
666 have_gif_TRUE
667 have_ft2_FALSE
668 have_ft2_TRUE
669 GD_RULE
670 GD_DEPEND
671 GD_LIBS
672 GD_INCLUDES
673 FREETYPE2_RULE
674 FREETYPE2_DEPEND
675 FREETYPE2_LIBS
676 FREETYPE2_INCLUDES
677 FT2_CONFIG
678 LIBPNG_RULE
679 LIBPNG_DEPEND
680 LIBPNG_LIBS
681 LIBPNG_INCLUDES
682 ZLIB_RULE
683 ZLIB_DEPEND
684 ZLIB_LIBS
685 ZLIB_INCLUDES
686 KPATHSEA_RULE
687 KPATHSEA_DEPEND
688 KPATHSEA_LIBS
689 KPATHSEA_INCLUDES
690 PKG_CONFIG
691 INSTALL_INFO
692 AM_MAKEINFOFLAGS
693 LIBOBJS
694 POW_LIB
695 GS
696 cross_FALSE
697 cross_TRUE
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 FILECMD
707 LN_S
708 NM
709 ac_ct_DUMPBIN
710 DUMPBIN
711 LD
712 FGREP
713 EGREP
714 GREP
715 SED
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 LIBTOOL
725 OBJDUMP
726 DLLTOOL
727 AS
728 ac_ct_AR
729 AR
730 WARNING_CFLAGS
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__include
739 DEPDIR
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
746 CC
747 MAINT
748 MAINTAINER_MODE_FALSE
749 MAINTAINER_MODE_TRUE
750 am__xargs_n
751 am__rm_f_notfound
752 AM_BACKSLASH
753 AM_DEFAULT_VERBOSITY
754 AM_DEFAULT_V
755 AM_V
756 CSCOPE
757 ETAGS
758 CTAGS
759 am__untar
760 am__tar
761 AMTAR
762 am__leading_dot
763 SET_MAKE
764 AWK
765 mkdir_p
766 MKDIR_P
767 INSTALL_STRIP_PROGRAM
768 STRIP
769 install_sh
770 MAKEINFO
771 AUTOHEADER
772 AUTOMAKE
773 AUTOCONF
774 ACLOCAL
775 VERSION
776 PACKAGE
777 CYGPATH_W
778 am__isrc
779 INSTALL_DATA
780 INSTALL_SCRIPT
781 INSTALL_PROGRAM
782 target_alias
783 host_alias
784 build_alias
785 LIBS
786 ECHO_T
787 ECHO_N
788 ECHO_C
789 DEFS
790 mandir
791 localedir
792 libdir
793 psdir
794 pdfdir
795 dvidir
796 htmldir
797 infodir
798 docdir
799 oldincludedir
800 includedir
801 runstatedir
802 localstatedir
803 sharedstatedir
804 sysconfdir
805 datadir
806 datarootdir
807 libexecdir
808 sbindir
809 bindir
810 program_transform_name
811 prefix
812 exec_prefix
813 PACKAGE_URL
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL
821 am__quote'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 enable_silent_rules
826 enable_maintainer_mode
827 enable_dependency_tracking
828 enable_compiler_warnings
829 enable_shared
830 enable_static
831 enable_pic
832 with_pic
833 enable_fast_install
834 enable_aix_soname
835 with_aix_soname
836 with_gnu_ld
837 with_sysroot
838 enable_libtool_lock
839 enable_largefile
840 enable_debug
841 enable_timing
842 with_gs
843 with_system_kpathsea
844 with_system_zlib
845 with_zlib_includes
846 with_zlib_libdir
847 with_system_libpng
848 with_system_freetype2
849 with_system_gd
850 with_gd_includes
851 with_gd_libdir
852 enable_year2038
853 '
854 ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 LT_SYS_LIBRARY_PATH'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: '$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: '$ac_useropt'"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -runstatedir | --runstatedir | --runstatedi | --runstated \
1153 | --runstate | --runstat | --runsta | --runst | --runs \
1154 | --run | --ru | --r)
1155 ac_prev=runstatedir ;;
1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158 | --run=* | --ru=* | --r=*)
1159 runstatedir=$ac_optarg ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: '$ac_useropt'"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: '$ac_useropt'"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) as_fn_error $? "unrecognized option: '$ac_option'
1257 Try '$0 --help' for more information"
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir runstatedir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: '$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 printf "%s\n" X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 'configure' configures dvipng (TeX Live) 1.18 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print 'checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for '--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or '..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, 'make install' will install all the files in
1438 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than '$ac_default_prefix' using '--prefix',
1440 for instance '--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root
1461 [DATAROOTDIR/doc/dvipng--tex-live-]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1467
1468 cat <<\_ACEOF
1469
1470 Program names:
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474
1475 System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of dvipng (TeX Live) 1.18:";;
1484 esac
1485 cat <<\_ACEOF
1486
1487 Optional Features:
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-silent-rules less verbose build output (undo: "make V=1")
1492 --disable-silent-rules verbose build output (undo: "make V=0")
1493 --enable-maintainer-mode
1494 enable make rules and dependencies not useful (and
1495 sometimes confusing) to the casual installer
1496 --enable-dependency-tracking
1497 do not reject slow dependency extractors
1498 --disable-dependency-tracking
1499 speeds up one-time build
1500 --enable-compiler-warnings=[no|min|yes|max|all]
1501 Turn on compiler warnings [default: yes if
1502 maintainer-mode, min otherwise]
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-static[=PKGS] build static libraries [default=yes]
1505 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1506 both]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --enable-aix-soname=aix|svr4|both
1510 shared library versioning (aka "SONAME") variant to
1511 provide on AIX, [default=aix].
1512 --disable-libtool-lock avoid locking (might break parallel builds)
1513 --disable-largefile omit support for large files
1514 --disable-debug Compile without debug (-d) option
1515 --enable-timing Output execution time of dvipng
1516 --enable-year2038 support timestamps after 2038
1517
1518 Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1523 compiler's sysroot if not specified).
1524 --with-gs=/PATH/TO/gs Hard-wire the location of GhostScript
1525 --with-system-kpathsea use installed kpathsea headers and library (requires
1526 pkg-config)
1527 --with-system-zlib use installed zlib headers and library
1528 --with-zlib-includes=DIR
1529 zlib headers installed in DIR
1530 --with-zlib-libdir=DIR zlib library installed in DIR
1531 --with-system-libpng use installed libpng headers and library (requires
1532 pkg-config)
1533 --with-system-freetype2 use installed freetype2 headers and library
1534 (requires freetype-config)
1535 --with-system-gd use installed gd headers and library
1536 --with-gd-includes=DIR gd headers installed in DIR
1537 --with-gd-libdir=DIR gd library installed in DIR
1538
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1547 LT_SYS_LIBRARY_PATH
1548 User-defined run-time library search path.
1549
1550 Use these variables to override the choices made by 'configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to <[email protected]>.
1554 _ACEOF
1555 ac_status=$?
1556 fi
1557
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 continue
1564 ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583 .) # We are building in place.
1584 ac_srcdir=.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1591 *) # Relative name.
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for configure.gnu first; this name is used for a wrapper for
1600 # Metaconfig's "Configure" on case-insensitive file systems.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1612 fi
1613
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616 cat <<\_ACEOF
1617 dvipng (TeX Live) configure 1.18
1618 generated by GNU Autoconf 2.72
1619
1620 Copyright (C) 2023 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624 exit
1625 fi
1626
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1630
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest.beam
1638 if { { ac_try="$ac_compile"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 printf "%s\n" "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext
1657 then :
1658 ac_retval=0
1659 else case e in #(
1660 e) printf "%s\n" "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1 ;;
1664 esac
1665 fi
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_compile
1670
1671 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists and can be compiled using the include files in
1674 # INCLUDES, setting the cache variable VAR accordingly.
1675 ac_fn_c_check_header_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 printf %s "checking for $2... " >&6; }
1680 if eval test \${$3+y}
1681 then :
1682 printf %s "(cached) " >&6
1683 else case e in #(
1684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 $4
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"
1690 then :
1691 eval "$3=yes"
1692 else case e in #(
1693 e) eval "$3=no" ;;
1694 esac
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1697 esac
1698 fi
1699 eval ac_res=\$$3
1700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 printf "%s\n" "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_compile
1705
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_link ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 printf "%s\n" "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 test -x conftest$ac_exeext
1734 }
1735 then :
1736 ac_retval=0
1737 else case e in #(
1738 e) printf "%s\n" "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1 ;;
1742 esac
1743 fi
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_link
1753
1754 # ac_fn_c_check_func LINENO FUNC VAR
1755 # ----------------------------------
1756 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1757 ac_fn_c_check_func ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 printf %s "checking for $2... " >&6; }
1762 if eval test \${$3+y}
1763 then :
1764 printf %s "(cached) " >&6
1765 else case e in #(
1766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1771
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (void); below. */
1774
1775 #include <limits.h>
1776 #undef $2
1777
1778 /* Override any GCC internal prototype to avoid an error.
1779 Use char because int might match the return type of a GCC
1780 builtin and then its argument prototype would still apply. */
1781 #ifdef __cplusplus
1782 extern "C"
1783 #endif
1784 char $2 (void);
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined __stub_$2 || defined __stub___$2
1789 choke me
1790 #endif
1791
1792 int
1793 main (void)
1794 {
1795 return $2 ();
1796 ;
1797 return 0;
1798 }
1799 _ACEOF
1800 if ac_fn_c_try_link "$LINENO"
1801 then :
1802 eval "$3=yes"
1803 else case e in #(
1804 e) eval "$3=no" ;;
1805 esac
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1808 conftest$ac_exeext conftest.$ac_ext ;;
1809 esac
1810 fi
1811 eval ac_res=\$$3
1812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 printf "%s\n" "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_func
1817
1818 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1819 # -------------------------------------------
1820 # Tests whether TYPE exists after having included INCLUDES, setting cache
1821 # variable VAR accordingly.
1822 ac_fn_c_check_type ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 printf %s "checking for $2... " >&6; }
1827 if eval test \${$3+y}
1828 then :
1829 printf %s "(cached) " >&6
1830 else case e in #(
1831 e) eval "$3=no"
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 $4
1835 int
1836 main (void)
1837 {
1838 if (sizeof ($2))
1839 return 0;
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"
1845 then :
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 $4
1849 int
1850 main (void)
1851 {
1852 if (sizeof (($2)))
1853 return 0;
1854 ;
1855 return 0;
1856 }
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"
1859 then :
1860
1861 else case e in #(
1862 e) eval "$3=yes" ;;
1863 esac
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1868 esac
1869 fi
1870 eval ac_res=\$$3
1871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 printf "%s\n" "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_type
1876
1877 # ac_fn_c_find_intX_t LINENO BITS VAR
1878 # -----------------------------------
1879 # Finds a signed integer type with width BITS, setting cache variable VAR
1880 # accordingly.
1881 ac_fn_c_find_intX_t ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1885 printf %s "checking for int$2_t... " >&6; }
1886 if eval test \${$3+y}
1887 then :
1888 printf %s "(cached) " >&6
1889 else case e in #(
1890 e) eval "$3=no"
1891 # Order is important - never check a type that is potentially smaller
1892 # than half of the expected target width.
1893 for ac_type in int$2_t 'int' 'long int' \
1894 'long long int' 'short int' 'signed char'; do
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 $ac_includes_default
1898 enum { N = $2 / 2 - 1 };
1899 int
1900 main (void)
1901 {
1902 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1903 test_array [0] = 0;
1904 return test_array [0];
1905
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"
1911 then :
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $ac_includes_default
1915 enum { N = $2 / 2 - 1 };
1916 int
1917 main (void)
1918 {
1919 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1920 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1921 test_array [0] = 0;
1922 return test_array [0];
1923
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"
1929 then :
1930
1931 else case e in #(
1932 e) case $ac_type in #(
1933 int$2_t) :
1934 eval "$3=yes" ;; #(
1935 *) :
1936 eval "$3=\$ac_type" ;;
1937 esac ;;
1938 esac
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1943 if eval test \"x\$"$3"\" = x"no"
1944 then :
1945
1946 else case e in #(
1947 e) break ;;
1948 esac
1949 fi
1950 done ;;
1951 esac
1952 fi
1953 eval ac_res=\$$3
1954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 printf "%s\n" "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958 } # ac_fn_c_find_intX_t
1959
1960 # ac_fn_c_find_uintX_t LINENO BITS VAR
1961 # ------------------------------------
1962 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1963 # accordingly.
1964 ac_fn_c_find_uintX_t ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1968 printf %s "checking for uint$2_t... " >&6; }
1969 if eval test \${$3+y}
1970 then :
1971 printf %s "(cached) " >&6
1972 else case e in #(
1973 e) eval "$3=no"
1974 # Order is important - never check a type that is potentially smaller
1975 # than half of the expected target width.
1976 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1977 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $ac_includes_default
1981 int
1982 main (void)
1983 {
1984 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1985 test_array [0] = 0;
1986 return test_array [0];
1987
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"
1993 then :
1994 case $ac_type in #(
1995 uint$2_t) :
1996 eval "$3=yes" ;; #(
1997 *) :
1998 eval "$3=\$ac_type" ;;
1999 esac
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2002 if eval test \"x\$"$3"\" = x"no"
2003 then :
2004
2005 else case e in #(
2006 e) break ;;
2007 esac
2008 fi
2009 done ;;
2010 esac
2011 fi
2012 eval ac_res=\$$3
2013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 printf "%s\n" "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017 } # ac_fn_c_find_uintX_t
2018
2019 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2020 # ------------------------------------------------------------------
2021 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2022 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2023 ac_fn_check_decl ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 as_decl_name=`echo $2|sed 's/ *(.*//'`
2027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2028 printf %s "checking whether $as_decl_name is declared... " >&6; }
2029 if eval test \${$3+y}
2030 then :
2031 printf %s "(cached) " >&6
2032 else case e in #(
2033 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2034 eval ac_save_FLAGS=\$$6
2035 as_fn_append $6 " $5"
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2038 $4
2039 int
2040 main (void)
2041 {
2042 #ifndef $as_decl_name
2043 #ifdef __cplusplus
2044 (void) $as_decl_use;
2045 #else
2046 (void) $as_decl_name;
2047 #endif
2048 #endif
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"
2055 then :
2056 eval "$3=yes"
2057 else case e in #(
2058 e) eval "$3=no" ;;
2059 esac
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2062 eval $6=\$ac_save_FLAGS
2063 ;;
2064 esac
2065 fi
2066 eval ac_res=\$$3
2067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 printf "%s\n" "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071 } # ac_fn_check_decl
2072
2073 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2074 # ----------------------------------------------------
2075 # Tries to find if the field MEMBER exists in type AGGR, after including
2076 # INCLUDES, setting cache variable VAR accordingly.
2077 ac_fn_c_check_member ()
2078 {
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2081 printf %s "checking for $2.$3... " >&6; }
2082 if eval test \${$4+y}
2083 then :
2084 printf %s "(cached) " >&6
2085 else case e in #(
2086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $5
2089 int
2090 main (void)
2091 {
2092 static $2 ac_aggr;
2093 if (ac_aggr.$3)
2094 return 0;
2095 ;
2096 return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"
2100 then :
2101 eval "$4=yes"
2102 else case e in #(
2103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $5
2106 int
2107 main (void)
2108 {
2109 static $2 ac_aggr;
2110 if (sizeof ac_aggr.$3)
2111 return 0;
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"
2117 then :
2118 eval "$4=yes"
2119 else case e in #(
2120 e) eval "$4=no" ;;
2121 esac
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2124 esac
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2127 esac
2128 fi
2129 eval ac_res=\$$4
2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 printf "%s\n" "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134 } # ac_fn_c_check_member
2135
2136 # ac_fn_c_try_run LINENO
2137 # ----------------------
2138 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2139 # executables *can* be run.
2140 ac_fn_c_try_run ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 if { { ac_try="$ac_link"
2144 case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147 esac
2148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149 printf "%s\n" "$ac_try_echo"; } >&5
2150 (eval "$ac_link") 2>&5
2151 ac_status=$?
2152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2154 { { case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157 esac
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 printf "%s\n" "$ac_try_echo"; } >&5
2160 (eval "$ac_try") 2>&5
2161 ac_status=$?
2162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; }; }
2164 then :
2165 ac_retval=0
2166 else case e in #(
2167 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2168 printf "%s\n" "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_retval=$ac_status ;;
2172 esac
2173 fi
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2177
2178 } # ac_fn_c_try_run
2179 ac_configure_args_raw=
2180 for ac_arg
2181 do
2182 case $ac_arg in
2183 *\'*)
2184 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185 esac
2186 as_fn_append ac_configure_args_raw " '$ac_arg'"
2187 done
2188
2189 case $ac_configure_args_raw in
2190 *$as_nl*)
2191 ac_safe_unquote= ;;
2192 *)
2193 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2194 ac_unsafe_a="$ac_unsafe_z#~"
2195 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2196 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2197 esac
2198
2199 cat >config.log <<_ACEOF
2200 This file contains any messages produced by compilers while
2201 running configure, to aid debugging if configure makes a mistake.
2202
2203 It was created by dvipng (TeX Live) $as_me 1.18, which was
2204 generated by GNU Autoconf 2.72. Invocation command line was
2205
2206 $ $0$ac_configure_args_raw
2207
2208 _ACEOF
2209 exec 5>>config.log
2210 {
2211 cat <<_ASUNAME
2212 ## --------- ##
2213 ## Platform. ##
2214 ## --------- ##
2215
2216 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2217 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2218 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2219 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2220 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2221
2222 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2223 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2224
2225 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2226 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2227 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2228 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2229 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2230 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2231 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2232
2233 _ASUNAME
2234
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238 IFS=$as_save_IFS
2239 case $as_dir in #(((
2240 '') as_dir=./ ;;
2241 */) ;;
2242 *) as_dir=$as_dir/ ;;
2243 esac
2244 printf "%s\n" "PATH: $as_dir"
2245 done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271 for ac_arg
2272 do
2273 case $ac_arg in
2274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276 | -silent | --silent | --silen | --sile | --sil)
2277 continue ;;
2278 *\'*)
2279 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 esac
2281 case $ac_pass in
2282 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283 2)
2284 as_fn_append ac_configure_args1 " '$ac_arg'"
2285 if test $ac_must_keep_next = true; then
2286 ac_must_keep_next=false # Got value, back to normal.
2287 else
2288 case $ac_arg in
2289 *=* | --config-cache | -C | -disable-* | --disable-* \
2290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292 | -with-* | --with-* | -without-* | --without-* | --x)
2293 case "$ac_configure_args0 " in
2294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 esac
2296 ;;
2297 -* ) ac_must_keep_next=true ;;
2298 esac
2299 fi
2300 as_fn_append ac_configure_args " '$ac_arg'"
2301 ;;
2302 esac
2303 done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log. We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314 # Sanitize IFS.
2315 IFS=" "" $as_nl"
2316 # Save into config.log some information that might help in debugging.
2317 {
2318 echo
2319
2320 printf "%s\n" "## ---------------- ##
2321 ## Cache variables. ##
2322 ## ---------------- ##"
2323 echo
2324 # The following way of writing the cache mishandles newlines in values,
2325 (
2326 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327 eval ac_val=\$$ac_var
2328 case $ac_val in #(
2329 *${as_nl}*)
2330 case $ac_var in #(
2331 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333 esac
2334 case $ac_var in #(
2335 _ | IFS | as_nl) ;; #(
2336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337 *) { eval $ac_var=; unset $ac_var;} ;;
2338 esac ;;
2339 esac
2340 done
2341 (set) 2>&1 |
2342 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343 *${as_nl}ac_space=\ *)
2344 sed -n \
2345 "s/'\''/'\''\\\\'\'''\''/g;
2346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347 ;; #(
2348 *)
2349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350 ;;
2351 esac |
2352 sort
2353 )
2354 echo
2355
2356 printf "%s\n" "## ----------------- ##
2357 ## Output variables. ##
2358 ## ----------------- ##"
2359 echo
2360 for ac_var in $ac_subst_vars
2361 do
2362 eval ac_val=\$$ac_var
2363 case $ac_val in
2364 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365 esac
2366 printf "%s\n" "$ac_var='\''$ac_val'\''"
2367 done | sort
2368 echo
2369
2370 if test -n "$ac_subst_files"; then
2371 printf "%s\n" "## ------------------- ##
2372 ## File substitutions. ##
2373 ## ------------------- ##"
2374 echo
2375 for ac_var in $ac_subst_files
2376 do
2377 eval ac_val=\$$ac_var
2378 case $ac_val in
2379 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380 esac
2381 printf "%s\n" "$ac_var='\''$ac_val'\''"
2382 done | sort
2383 echo
2384 fi
2385
2386 if test -s confdefs.h; then
2387 printf "%s\n" "## ----------- ##
2388 ## confdefs.h. ##
2389 ## ----------- ##"
2390 echo
2391 cat confdefs.h
2392 echo
2393 fi
2394 test "$ac_signal" != 0 &&
2395 printf "%s\n" "$as_me: caught signal $ac_signal"
2396 printf "%s\n" "$as_me: exit $exit_status"
2397 } >&5
2398 rm -f core *.core core.conftest.* &&
2399 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2400 exit $exit_status
2401 ' 0
2402 for ac_signal in 1 2 13 15; do
2403 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2404 done
2405 ac_signal=0
2406
2407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2408 rm -f -r conftest* confdefs.h
2409
2410 printf "%s\n" "/* confdefs.h */" > confdefs.h
2411
2412 # Predefined preprocessor variables.
2413
2414 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2415
2416 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2417
2418 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2419
2420 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2421
2422 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2423
2424 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2425
2426
2427 # Let the site file select an alternate cache file if it wants to.
2428 # Prefer an explicitly selected file to automatically selected ones.
2429 if test -n "$CONFIG_SITE"; then
2430 ac_site_files="$CONFIG_SITE"
2431 elif test "x$prefix" != xNONE; then
2432 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2433 else
2434 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2435 fi
2436
2437 for ac_site_file in $ac_site_files
2438 do
2439 case $ac_site_file in #(
2440 */*) :
2441 ;; #(
2442 *) :
2443 ac_site_file=./$ac_site_file ;;
2444 esac
2445 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2447 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2448 sed 's/^/| /' "$ac_site_file" >&5
2449 . "$ac_site_file" \
2450 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2451 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2452 as_fn_error $? "failed to load site script $ac_site_file
2453 See 'config.log' for more details" "$LINENO" 5; }
2454 fi
2455 done
2456
2457 if test -r "$cache_file"; then
2458 # Some versions of bash will fail to source /dev/null (special files
2459 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2460 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2462 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2463 case $cache_file in
2464 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2465 *) . "./$cache_file";;
2466 esac
2467 fi
2468 else
2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2470 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2471 >$cache_file
2472 fi
2473
2474 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2475 # Test code for whether the C compiler supports C89 (global declarations)
2476 ac_c_conftest_c89_globals='
2477 /* Does the compiler advertise C89 conformance?
2478 Do not test the value of __STDC__, because some compilers set it to 0
2479 while being otherwise adequately conformant. */
2480 #if !defined __STDC__
2481 # error "Compiler does not advertise C89 conformance"
2482 #endif
2483
2484 #include <stddef.h>
2485 #include <stdarg.h>
2486 struct stat;
2487 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2488 struct buf { int x; };
2489 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2490 static char *e (char **p, int i)
2491 {
2492 return p[i];
2493 }
2494 static char *f (char * (*g) (char **, int), char **p, ...)
2495 {
2496 char *s;
2497 va_list v;
2498 va_start (v,p);
2499 s = g (p, va_arg (v,int));
2500 va_end (v);
2501 return s;
2502 }
2503
2504 /* C89 style stringification. */
2505 #define noexpand_stringify(a) #a
2506 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2507
2508 /* C89 style token pasting. Exercises some of the corner cases that
2509 e.g. old MSVC gets wrong, but not very hard. */
2510 #define noexpand_concat(a,b) a##b
2511 #define expand_concat(a,b) noexpand_concat(a,b)
2512 extern int vA;
2513 extern int vbee;
2514 #define aye A
2515 #define bee B
2516 int *pvA = &expand_concat(v,aye);
2517 int *pvbee = &noexpand_concat(v,bee);
2518
2519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2520 function prototypes and stuff, but not \xHH hex character constants.
2521 These do not provoke an error unfortunately, instead are silently treated
2522 as an "x". The following induces an error, until -std is added to get
2523 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2524 array size at least. It is necessary to write \x00 == 0 to get something
2525 that is true only with -std. */
2526 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2527
2528 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2529 inside strings and character constants. */
2530 #define FOO(x) '\''x'\''
2531 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2532
2533 int test (int i, double x);
2534 struct s1 {int (*f) (int a);};
2535 struct s2 {int (*f) (double a);};
2536 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2537 int, int);'
2538
2539 # Test code for whether the C compiler supports C89 (body of main).
2540 ac_c_conftest_c89_main='
2541 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2542 '
2543
2544 # Test code for whether the C compiler supports C99 (global declarations)
2545 ac_c_conftest_c99_globals='
2546 /* Does the compiler advertise C99 conformance? */
2547 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2548 # error "Compiler does not advertise C99 conformance"
2549 #endif
2550
2551 // See if C++-style comments work.
2552
2553 #include <stdbool.h>
2554 extern int puts (const char *);
2555 extern int printf (const char *, ...);
2556 extern int dprintf (int, const char *, ...);
2557 extern void *malloc (size_t);
2558 extern void free (void *);
2559
2560 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2561 // dprintf is used instead of fprintf to avoid needing to declare
2562 // FILE and stderr.
2563 #define debug(...) dprintf (2, __VA_ARGS__)
2564 #define showlist(...) puts (#__VA_ARGS__)
2565 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2566 static void
2567 test_varargs_macros (void)
2568 {
2569 int x = 1234;
2570 int y = 5678;
2571 debug ("Flag");
2572 debug ("X = %d\n", x);
2573 showlist (The first, second, and third items.);
2574 report (x>y, "x is %d but y is %d", x, y);
2575 }
2576
2577 // Check long long types.
2578 #define BIG64 18446744073709551615ull
2579 #define BIG32 4294967295ul
2580 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2581 #if !BIG_OK
2582 #error "your preprocessor is broken"
2583 #endif
2584 #if BIG_OK
2585 #else
2586 #error "your preprocessor is broken"
2587 #endif
2588 static long long int bignum = -9223372036854775807LL;
2589 static unsigned long long int ubignum = BIG64;
2590
2591 struct incomplete_array
2592 {
2593 int datasize;
2594 double data[];
2595 };
2596
2597 struct named_init {
2598 int number;
2599 const wchar_t *name;
2600 double average;
2601 };
2602
2603 typedef const char *ccp;
2604
2605 static inline int
2606 test_restrict (ccp restrict text)
2607 {
2608 // Iterate through items via the restricted pointer.
2609 // Also check for declarations in for loops.
2610 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2611 continue;
2612 return 0;
2613 }
2614
2615 // Check varargs and va_copy.
2616 static bool
2617 test_varargs (const char *format, ...)
2618 {
2619 va_list args;
2620 va_start (args, format);
2621 va_list args_copy;
2622 va_copy (args_copy, args);
2623
2624 const char *str = "";
2625 int number = 0;
2626 float fnumber = 0;
2627
2628 while (*format)
2629 {
2630 switch (*format++)
2631 {
2632 case '\''s'\'': // string
2633 str = va_arg (args_copy, const char *);
2634 break;
2635 case '\''d'\'': // int
2636 number = va_arg (args_copy, int);
2637 break;
2638 case '\''f'\'': // float
2639 fnumber = va_arg (args_copy, double);
2640 break;
2641 default:
2642 break;
2643 }
2644 }
2645 va_end (args_copy);
2646 va_end (args);
2647
2648 return *str && number && fnumber;
2649 }
2650 '
2651
2652 # Test code for whether the C compiler supports C99 (body of main).
2653 ac_c_conftest_c99_main='
2654 // Check bool.
2655 _Bool success = false;
2656 success |= (argc != 0);
2657
2658 // Check restrict.
2659 if (test_restrict ("String literal") == 0)
2660 success = true;
2661 char *restrict newvar = "Another string";
2662
2663 // Check varargs.
2664 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2665 test_varargs_macros ();
2666
2667 // Check flexible array members.
2668 struct incomplete_array *ia =
2669 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2670 ia->datasize = 10;
2671 for (int i = 0; i < ia->datasize; ++i)
2672 ia->data[i] = i * 1.234;
2673 // Work around memory leak warnings.
2674 free (ia);
2675
2676 // Check named initializers.
2677 struct named_init ni = {
2678 .number = 34,
2679 .name = L"Test wide string",
2680 .average = 543.34343,
2681 };
2682
2683 ni.number = 58;
2684
2685 int dynamic_array[ni.number];
2686 dynamic_array[0] = argv[0][0];
2687 dynamic_array[ni.number - 1] = 543;
2688
2689 // work around unused variable warnings
2690 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2691 || dynamic_array[ni.number - 1] != 543);
2692 '
2693
2694 # Test code for whether the C compiler supports C11 (global declarations)
2695 ac_c_conftest_c11_globals='
2696 /* Does the compiler advertise C11 conformance? */
2697 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2698 # error "Compiler does not advertise C11 conformance"
2699 #endif
2700
2701 // Check _Alignas.
2702 char _Alignas (double) aligned_as_double;
2703 char _Alignas (0) no_special_alignment;
2704 extern char aligned_as_int;
2705 char _Alignas (0) _Alignas (int) aligned_as_int;
2706
2707 // Check _Alignof.
2708 enum
2709 {
2710 int_alignment = _Alignof (int),
2711 int_array_alignment = _Alignof (int[100]),
2712 char_alignment = _Alignof (char)
2713 };
2714 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2715
2716 // Check _Noreturn.
2717 int _Noreturn does_not_return (void) { for (;;) continue; }
2718
2719 // Check _Static_assert.
2720 struct test_static_assert
2721 {
2722 int x;
2723 _Static_assert (sizeof (int) <= sizeof (long int),
2724 "_Static_assert does not work in struct");
2725 long int y;
2726 };
2727
2728 // Check UTF-8 literals.
2729 #define u8 syntax error!
2730 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2731
2732 // Check duplicate typedefs.
2733 typedef long *long_ptr;
2734 typedef long int *long_ptr;
2735 typedef long_ptr long_ptr;
2736
2737 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2738 struct anonymous
2739 {
2740 union {
2741 struct { int i; int j; };
2742 struct { int k; long int l; } w;
2743 };
2744 int m;
2745 } v1;
2746 '
2747
2748 # Test code for whether the C compiler supports C11 (body of main).
2749 ac_c_conftest_c11_main='
2750 _Static_assert ((offsetof (struct anonymous, i)
2751 == offsetof (struct anonymous, w.k)),
2752 "Anonymous union alignment botch");
2753 v1.i = 2;
2754 v1.w.k = 5;
2755 ok |= v1.i != 5;
2756 '
2757
2758 # Test code for whether the C compiler supports C11 (complete).
2759 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2760 ${ac_c_conftest_c99_globals}
2761 ${ac_c_conftest_c11_globals}
2762
2763 int
2764 main (int argc, char **argv)
2765 {
2766 int ok = 0;
2767 ${ac_c_conftest_c89_main}
2768 ${ac_c_conftest_c99_main}
2769 ${ac_c_conftest_c11_main}
2770 return ok;
2771 }
2772 "
2773
2774 # Test code for whether the C compiler supports C99 (complete).
2775 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2776 ${ac_c_conftest_c99_globals}
2777
2778 int
2779 main (int argc, char **argv)
2780 {
2781 int ok = 0;
2782 ${ac_c_conftest_c89_main}
2783 ${ac_c_conftest_c99_main}
2784 return ok;
2785 }
2786 "
2787
2788 # Test code for whether the C compiler supports C89 (complete).
2789 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2790
2791 int
2792 main (int argc, char **argv)
2793 {
2794 int ok = 0;
2795 ${ac_c_conftest_c89_main}
2796 return ok;
2797 }
2798 "
2799
2800 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2801 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2802 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2803 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2804 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2805 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2806 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2807 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2808 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2809 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2810 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2811 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2812 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2813 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2814
2815 # Auxiliary files required by this configure script.
2816 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2817
2818 # Locations in which to look for auxiliary files.
2819 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2820
2821 # Search for a directory containing all of the required auxiliary files,
2822 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2823 # If we don't find one directory that contains all the files we need,
2824 # we report the set of missing files from the *first* directory in
2825 # $ac_aux_dir_candidates and give up.
2826 ac_missing_aux_files=""
2827 ac_first_candidate=:
2828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 as_found=false
2831 for as_dir in $ac_aux_dir_candidates
2832 do
2833 IFS=$as_save_IFS
2834 case $as_dir in #(((
2835 '') as_dir=./ ;;
2836 */) ;;
2837 *) as_dir=$as_dir/ ;;
2838 esac
2839 as_found=:
2840
2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2842 ac_aux_dir_found=yes
2843 ac_install_sh=
2844 for ac_aux in $ac_aux_files
2845 do
2846 # As a special case, if "install-sh" is required, that requirement
2847 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2848 # and $ac_install_sh is set appropriately for whichever one is found.
2849 if test x"$ac_aux" = x"install-sh"
2850 then
2851 if test -f "${as_dir}install-sh"; then
2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2853 ac_install_sh="${as_dir}install-sh -c"
2854 elif test -f "${as_dir}install.sh"; then
2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2856 ac_install_sh="${as_dir}install.sh -c"
2857 elif test -f "${as_dir}shtool"; then
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2859 ac_install_sh="${as_dir}shtool install -c"
2860 else
2861 ac_aux_dir_found=no
2862 if $ac_first_candidate; then
2863 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2864 else
2865 break
2866 fi
2867 fi
2868 else
2869 if test -f "${as_dir}${ac_aux}"; then
2870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2871 else
2872 ac_aux_dir_found=no
2873 if $ac_first_candidate; then
2874 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2875 else
2876 break
2877 fi
2878 fi
2879 fi
2880 done
2881 if test "$ac_aux_dir_found" = yes; then
2882 ac_aux_dir="$as_dir"
2883 break
2884 fi
2885 ac_first_candidate=false
2886
2887 as_found=false
2888 done
2889 IFS=$as_save_IFS
2890 if $as_found
2891 then :
2892
2893 else case e in #(
2894 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2895 esac
2896 fi
2897
2898
2899 # These three variables are undocumented and unsupported,
2900 # and are intended to be withdrawn in a future Autoconf release.
2901 # They can cause serious problems if a builder's source tree is in a directory
2902 # whose full name contains unusual characters.
2903 if test -f "${ac_aux_dir}config.guess"; then
2904 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2905 fi
2906 if test -f "${ac_aux_dir}config.sub"; then
2907 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2908 fi
2909 if test -f "$ac_aux_dir/configure"; then
2910 ac_configure="$SHELL ${ac_aux_dir}configure"
2911 fi
2912
2913 # Check that the precious variables saved in the cache have kept the same
2914 # value.
2915 ac_cache_corrupted=false
2916 for ac_var in $ac_precious_vars; do
2917 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2918 eval ac_new_set=\$ac_env_${ac_var}_set
2919 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2920 eval ac_new_val=\$ac_env_${ac_var}_value
2921 case $ac_old_set,$ac_new_set in
2922 set,)
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2924 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2925 ac_cache_corrupted=: ;;
2926 ,set)
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2928 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2929 ac_cache_corrupted=: ;;
2930 ,);;
2931 *)
2932 if test "x$ac_old_val" != "x$ac_new_val"; then
2933 # differences in whitespace do not lead to failure.
2934 ac_old_val_w=`echo x $ac_old_val`
2935 ac_new_val_w=`echo x $ac_new_val`
2936 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2938 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2939 ac_cache_corrupted=:
2940 else
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2942 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2943 eval $ac_var=\$ac_old_val
2944 fi
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2946 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2948 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2949 fi;;
2950 esac
2951 # Pass precious variables to config.status.
2952 if test "$ac_new_set" = set; then
2953 case $ac_new_val in
2954 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2955 *) ac_arg=$ac_var=$ac_new_val ;;
2956 esac
2957 case " $ac_configure_args " in
2958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2959 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2960 esac
2961 fi
2962 done
2963 if $ac_cache_corrupted; then
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2965 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2967 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2968 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2969 and start over" "$LINENO" 5
2970 fi
2971 ## -------------------- ##
2972 ## Main body of script. ##
2973 ## -------------------- ##
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982
2983
2984
2985
2986
2987 # Common code for all programs using libkpathsea.
2988 am__api_version='1.18'
2989
2990
2991
2992 # Find a good install program. We prefer a C program (faster),
2993 # so one script is as good as another. But avoid the broken or
2994 # incompatible versions:
2995 # SysV /etc/install, /usr/sbin/install
2996 # SunOS /usr/etc/install
2997 # IRIX /sbin/install
2998 # AIX /bin/install
2999 # AmigaOS /C/install, which installs bootblocks on floppy discs
3000 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3001 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3002 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3003 # OS/2's system install, which has a completely different semantic
3004 # ./install, which can be erroneously created by make from ./install.sh.
3005 # Reject install programs that cannot install multiple files.
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3007 printf %s "checking for a BSD-compatible install... " >&6; }
3008 if test -z "$INSTALL"; then
3009 if test ${ac_cv_path_install+y}
3010 then :
3011 printf %s "(cached) " >&6
3012 else case e in #(
3013 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016 IFS=$as_save_IFS
3017 case $as_dir in #(((
3018 '') as_dir=./ ;;
3019 */) ;;
3020 *) as_dir=$as_dir/ ;;
3021 esac
3022 # Account for fact that we put trailing slashes in our PATH walk.
3023 case $as_dir in #((
3024 ./ | /[cC]/* | \
3025 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3026 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3027 /usr/ucb/* ) ;;
3028 *)
3029 # OSF1 and SCO ODT 3.0 have their own names for install.
3030 # Don't use installbsd from OSF since it installs stuff as root
3031 # by default.
3032 for ac_prog in ginstall scoinst install; do
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3035 if test $ac_prog = install &&
3036 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3037 # AIX install. It has an incompatible calling convention.
3038 :
3039 elif test $ac_prog = install &&
3040 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3041 # program-specific install script used by HP pwplus--don't use.
3042 :
3043 else
3044 rm -rf conftest.one conftest.two conftest.dir
3045 echo one > conftest.one
3046 echo two > conftest.two
3047 mkdir conftest.dir
3048 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3049 test -s conftest.one && test -s conftest.two &&
3050 test -s conftest.dir/conftest.one &&
3051 test -s conftest.dir/conftest.two
3052 then
3053 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3054 break 3
3055 fi
3056 fi
3057 fi
3058 done
3059 done
3060 ;;
3061 esac
3062
3063 done
3064 IFS=$as_save_IFS
3065
3066 rm -rf conftest.one conftest.two conftest.dir
3067 ;;
3068 esac
3069 fi
3070 if test ${ac_cv_path_install+y}; then
3071 INSTALL=$ac_cv_path_install
3072 else
3073 # As a last resort, use the slow shell script. Don't cache a
3074 # value for INSTALL within a source directory, because that will
3075 # break other packages using the cache if that directory is
3076 # removed, or if the value is a relative name.
3077 INSTALL=$ac_install_sh
3078 fi
3079 fi
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3081 printf "%s\n" "$INSTALL" >&6; }
3082
3083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3084 # It thinks the first close brace ends the variable substitution.
3085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3086
3087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3088
3089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3090
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3092 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3093 if test ${am_cv_sleep_fractional_seconds+y}
3094 then :
3095 printf %s "(cached) " >&6
3096 else case e in #(
3097 e) if sleep 0.001 2>/dev/null
3098 then :
3099 am_cv_sleep_fractional_seconds=yes
3100 else case e in #(
3101 e) am_cv_sleep_fractional_seconds=no ;;
3102 esac
3103 fi
3104 ;;
3105 esac
3106 fi
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3108 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3109
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3111 printf %s "checking filesystem timestamp resolution... " >&6; }
3112 if test ${am_cv_filesystem_timestamp_resolution+y}
3113 then :
3114 printf %s "(cached) " >&6
3115 else case e in #(
3116 e) # Default to the worst case.
3117 am_cv_filesystem_timestamp_resolution=2
3118
3119 # Only try to go finer than 1 sec if sleep can do it.
3120 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3121 # - 1 sec is not much of a win compared to 2 sec, and
3122 # - it takes 2 seconds to perform the test whether 1 sec works.
3123 #
3124 # Instead, just use the default 2s on platforms that have 1s resolution,
3125 # accept the extra 1s delay when using $sleep in the Automake tests, in
3126 # exchange for not incurring the 2s delay for running the test for all
3127 # packages.
3128 #
3129 am_try_resolutions=
3130 if test "$am_cv_sleep_fractional_seconds" = yes; then
3131 # Even a millisecond often causes a bunch of false positives,
3132 # so just try a hundredth of a second. The time saved between .001 and
3133 # .01 is not terribly consequential.
3134 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3135 fi
3136
3137 # In order to catch current-generation FAT out, we must *modify* files
3138 # that already exist; the *creation* timestamp is finer. Use names
3139 # that make ls -t sort them differently when they have equal
3140 # timestamps than when they have distinct timestamps, keeping
3141 # in mind that ls -t prints the *newest* file first.
3142 rm -f conftest.ts?
3143 : > conftest.ts1
3144 : > conftest.ts2
3145 : > conftest.ts3
3146
3147 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3148 # clobber the current shell's arguments. (Outer-level square brackets
3149 # are removed by m4; they're present so that m4 does not expand
3150 # <dollar><star>; be careful, easy to get confused.)
3151 if (
3152 set X `ls -t conftest.ts[12]` &&
3153 {
3154 test "$*" != "X conftest.ts1 conftest.ts2" ||
3155 test "$*" != "X conftest.ts2 conftest.ts1";
3156 }
3157 ); then :; else
3158 # If neither matched, then we have a broken ls. This can happen
3159 # if, for instance, CONFIG_SHELL is bash and it inherits a
3160 # broken ls alias from the environment. This has actually
3161 # happened. Such a system could not be considered "sane".
3162 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3163 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3164 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3165 as_fn_error $? "ls -t produces unexpected output.
3166 Make sure there is not a broken ls alias in your environment.
3167 See 'config.log' for more details" "$LINENO" 5; }
3168 fi
3169
3170 for am_try_res in $am_try_resolutions; do
3171 # Any one fine-grained sleep might happen to cross the boundary
3172 # between two values of a coarser actual resolution, but if we do
3173 # two fine-grained sleeps in a row, at least one of them will fall
3174 # entirely within a coarse interval.
3175 echo alpha > conftest.ts1
3176 sleep $am_try_res
3177 echo beta > conftest.ts2
3178 sleep $am_try_res
3179 echo gamma > conftest.ts3
3180
3181 # We assume that 'ls -t' will make use of high-resolution
3182 # timestamps if the operating system supports them at all.
3183 if (set X `ls -t conftest.ts?` &&
3184 test "$2" = conftest.ts3 &&
3185 test "$3" = conftest.ts2 &&
3186 test "$4" = conftest.ts1); then
3187 #
3188 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3189 # because we don't need to test make.
3190 make_ok=true
3191 if test $am_try_res != 1; then
3192 # But if we've succeeded so far with a subsecond resolution, we
3193 # have one more thing to check: make. It can happen that
3194 # everything else supports the subsecond mtimes, but make doesn't;
3195 # notably on macOS, which ships make 3.81 from 2006 (the last one
3196 # released under GPLv2). https://bugs.gnu.org/68808
3197 #
3198 # We test $MAKE if it is defined in the environment, else "make".
3199 # It might get overridden later, but our hope is that in practice
3200 # it does not matter: it is the system "make" which is (by far)
3201 # the most likely to be broken, whereas if the user overrides it,
3202 # probably they did so with a better, or at least not worse, make.
3203 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3204 #
3205 # Create a Makefile (real tab character here):
3206 rm -f conftest.mk
3207 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3208 echo ' touch conftest.ts2' >>conftest.mk
3209 #
3210 # Now, running
3211 # touch conftest.ts1; touch conftest.ts2; make
3212 # should touch ts1 because ts2 is newer. This could happen by luck,
3213 # but most often, it will fail if make's support is insufficient. So
3214 # test for several consecutive successes.
3215 #
3216 # (We reuse conftest.ts[12] because we still want to modify existing
3217 # files, not create new ones, per above.)
3218 n=0
3219 make=${MAKE-make}
3220 until test $n -eq 3; do
3221 echo one > conftest.ts1
3222 sleep $am_try_res
3223 echo two > conftest.ts2 # ts2 should now be newer than ts1
3224 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3225 make_ok=false
3226 break # out of $n loop
3227 fi
3228 n=`expr $n + 1`
3229 done
3230 fi
3231 #
3232 if $make_ok; then
3233 # Everything we know to check worked out, so call this resolution good.
3234 am_cv_filesystem_timestamp_resolution=$am_try_res
3235 break # out of $am_try_res loop
3236 fi
3237 # Otherwise, we'll go on to check the next resolution.
3238 fi
3239 done
3240 rm -f conftest.ts?
3241 # (end _am_filesystem_timestamp_resolution)
3242 ;;
3243 esac
3244 fi
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3246 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3247
3248 # This check should not be cached, as it may vary across builds of
3249 # different projects.
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3251 printf %s "checking whether build environment is sane... " >&6; }
3252 # Reject unsafe characters in $srcdir or the absolute working directory
3253 # name. Accept space and tab only in the latter.
3254 am_lf='
3255 '
3256 case `pwd` in
3257 *[\\\"\#\$\&\'\`$am_lf]*)
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 printf "%s\n" "no" >&6; }
3260 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3261 esac
3262 case $srcdir in
3263 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 printf "%s\n" "no" >&6; }
3266 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3267 esac
3268
3269 # Do 'set' in a subshell so we don't clobber the current shell's
3270 # arguments. Must try -L first in case configure is actually a
3271 # symlink; some systems play weird games with the mod time of symlinks
3272 # (eg FreeBSD returns the mod time of the symlink's containing
3273 # directory).
3274 am_build_env_is_sane=no
3275 am_has_slept=no
3276 rm -f conftest.file
3277 for am_try in 1 2; do
3278 echo "timestamp, slept: $am_has_slept" > conftest.file
3279 if (
3280 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3281 if test "$*" = "X"; then
3282 # -L didn't work.
3283 set X `ls -t "$srcdir/configure" conftest.file`
3284 fi
3285 test "$2" = conftest.file
3286 ); then
3287 am_build_env_is_sane=yes
3288 break
3289 fi
3290 # Just in case.
3291 sleep "$am_cv_filesystem_timestamp_resolution"
3292 am_has_slept=yes
3293 done
3294
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3296 printf "%s\n" "$am_build_env_is_sane" >&6; }
3297 if test "$am_build_env_is_sane" = no; then
3298 as_fn_error $? "newly created file is older than distributed files!
3299 Check your system clock" "$LINENO" 5
3300 fi
3301
3302 # If we didn't sleep, we still need to ensure time stamps of config.status and
3303 # generated files are strictly newer.
3304 am_sleep_pid=
3305 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3306 then :
3307
3308 else case e in #(
3309 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3310 am_sleep_pid=$!
3311 ;;
3312 esac
3313 fi
3314
3315 rm -f conftest.file
3316
3317 test "$program_prefix" != NONE &&
3318 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3319 # Use a double $ so make ignores it.
3320 test "$program_suffix" != NONE &&
3321 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3322 # Double any \ or $.
3323 # By default was 's,x,x', remove it if useless.
3324 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3325 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3326
3327
3328 # Expand $ac_aux_dir to an absolute path.
3329 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3330
3331
3332 if test x"${MISSING+set}" != xset; then
3333 MISSING="\${SHELL} '$am_aux_dir/missing'"
3334 fi
3335 # Use eval to expand $SHELL
3336 if eval "$MISSING --is-lightweight"; then
3337 am_missing_run="$MISSING "
3338 else
3339 am_missing_run=
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3341 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3342 fi
3343
3344 if test x"${install_sh+set}" != xset; then
3345 case $am_aux_dir in
3346 *\ * | *\ *)
3347 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3348 *)
3349 install_sh="\${SHELL} $am_aux_dir/install-sh"
3350 esac
3351 fi
3352
3353 # Installed binaries are usually stripped using 'strip' when the user
3354 # run "make install-strip". However 'strip' might not be the right
3355 # tool to use in cross-compilation environments, therefore Automake
3356 # will honor the 'STRIP' environment variable to overrule this program.
3357 if test "$cross_compiling" != no; then
3358 if test -n "$ac_tool_prefix"; then
3359 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}strip; ac_word=$2
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 printf %s "checking for $ac_word... " >&6; }
3363 if test ${ac_cv_prog_STRIP+y}
3364 then :
3365 printf %s "(cached) " >&6
3366 else case e in #(
3367 e) if test -n "$STRIP"; then
3368 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 case $as_dir in #(((
3375 '') as_dir=./ ;;
3376 */) ;;
3377 *) as_dir=$as_dir/ ;;
3378 esac
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi ;;
3390 esac
3391 fi
3392 STRIP=$ac_cv_prog_STRIP
3393 if test -n "$STRIP"; then
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3395 printf "%s\n" "$STRIP" >&6; }
3396 else
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 printf "%s\n" "no" >&6; }
3399 fi
3400
3401
3402 fi
3403 if test -z "$ac_cv_prog_STRIP"; then
3404 ac_ct_STRIP=$STRIP
3405 # Extract the first word of "strip", so it can be a program name with args.
3406 set dummy strip; ac_word=$2
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 printf %s "checking for $ac_word... " >&6; }
3409 if test ${ac_cv_prog_ac_ct_STRIP+y}
3410 then :
3411 printf %s "(cached) " >&6
3412 else case e in #(
3413 e) if test -n "$ac_ct_STRIP"; then
3414 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419 IFS=$as_save_IFS
3420 case $as_dir in #(((
3421 '') as_dir=./ ;;
3422 */) ;;
3423 *) as_dir=$as_dir/ ;;
3424 esac
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_ac_ct_STRIP="strip"
3428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431 done
3432 done
3433 IFS=$as_save_IFS
3434
3435 fi ;;
3436 esac
3437 fi
3438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3439 if test -n "$ac_ct_STRIP"; then
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3441 printf "%s\n" "$ac_ct_STRIP" >&6; }
3442 else
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 printf "%s\n" "no" >&6; }
3445 fi
3446
3447 if test "x$ac_ct_STRIP" = x; then
3448 STRIP=":"
3449 else
3450 case $cross_compiling:$ac_tool_warned in
3451 yes:)
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454 ac_tool_warned=yes ;;
3455 esac
3456 STRIP=$ac_ct_STRIP
3457 fi
3458 else
3459 STRIP="$ac_cv_prog_STRIP"
3460 fi
3461
3462 fi
3463 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3464
3465
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3467 printf %s "checking for a race-free mkdir -p... " >&6; }
3468 if test -z "$MKDIR_P"; then
3469 if test ${ac_cv_path_mkdir+y}
3470 then :
3471 printf %s "(cached) " >&6
3472 else case e in #(
3473 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3475 do
3476 IFS=$as_save_IFS
3477 case $as_dir in #(((
3478 '') as_dir=./ ;;
3479 */) ;;
3480 *) as_dir=$as_dir/ ;;
3481 esac
3482 for ac_prog in mkdir gmkdir; do
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3485 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3486 'mkdir ('*'coreutils) '* | \
3487 *'BusyBox '* | \
3488 'mkdir (fileutils) '4.1*)
3489 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3490 break 3;;
3491 esac
3492 done
3493 done
3494 done
3495 IFS=$as_save_IFS
3496 ;;
3497 esac
3498 fi
3499
3500 test -d ./--version && rmdir ./--version
3501 if test ${ac_cv_path_mkdir+y}; then
3502 MKDIR_P="$ac_cv_path_mkdir -p"
3503 else
3504 # As a last resort, use plain mkdir -p,
3505 # in the hope it doesn't have the bugs of ancient mkdir.
3506 MKDIR_P='mkdir -p'
3507 fi
3508 fi
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3510 printf "%s\n" "$MKDIR_P" >&6; }
3511
3512 for ac_prog in gawk mawk nawk awk
3513 do
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 printf %s "checking for $ac_word... " >&6; }
3518 if test ${ac_cv_prog_AWK+y}
3519 then :
3520 printf %s "(cached) " >&6
3521 else case e in #(
3522 e) if test -n "$AWK"; then
3523 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 case $as_dir in #(((
3530 '') as_dir=./ ;;
3531 */) ;;
3532 *) as_dir=$as_dir/ ;;
3533 esac
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_AWK="$ac_prog"
3537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540 done
3541 done
3542 IFS=$as_save_IFS
3543
3544 fi ;;
3545 esac
3546 fi
3547 AWK=$ac_cv_prog_AWK
3548 if test -n "$AWK"; then
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3550 printf "%s\n" "$AWK" >&6; }
3551 else
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 printf "%s\n" "no" >&6; }
3554 fi
3555
3556
3557 test -n "$AWK" && break
3558 done
3559
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3561 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3562 set x ${MAKE-make}
3563 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3564 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3565 then :
3566 printf %s "(cached) " >&6
3567 else case e in #(
3568 e) cat >conftest.make <<\_ACEOF
3569 SHELL = /bin/sh
3570 all:
3571 @echo '@@@%%%=$(MAKE)=@@@%%%'
3572 _ACEOF
3573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3574 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3575 *@@@%%%=?*=@@@%%%*)
3576 eval ac_cv_prog_make_${ac_make}_set=yes;;
3577 *)
3578 eval ac_cv_prog_make_${ac_make}_set=no;;
3579 esac
3580 rm -f conftest.make ;;
3581 esac
3582 fi
3583 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585 printf "%s\n" "yes" >&6; }
3586 SET_MAKE=
3587 else
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 printf "%s\n" "no" >&6; }
3590 SET_MAKE="MAKE=${MAKE-make}"
3591 fi
3592
3593 rm -rf .tst 2>/dev/null
3594 mkdir .tst 2>/dev/null
3595 if test -d .tst; then
3596 am__leading_dot=.
3597 else
3598 am__leading_dot=_
3599 fi
3600 rmdir .tst 2>/dev/null
3601
3602 AM_DEFAULT_VERBOSITY=1
3603 # Check whether --enable-silent-rules was given.
3604 if test ${enable_silent_rules+y}
3605 then :
3606 enableval=$enable_silent_rules;
3607 fi
3608
3609 am_make=${MAKE-make}
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3611 printf %s "checking whether $am_make supports nested variables... " >&6; }
3612 if test ${am_cv_make_support_nested_variables+y}
3613 then :
3614 printf %s "(cached) " >&6
3615 else case e in #(
3616 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3617 BAR0=false
3618 BAR1=true
3619 V=1
3620 am__doit:
3621 @$(TRUE)
3622 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3623 am_cv_make_support_nested_variables=yes
3624 else
3625 am_cv_make_support_nested_variables=no
3626 fi ;;
3627 esac
3628 fi
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3630 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3631 AM_BACKSLASH='\'
3632
3633 am__rm_f_notfound=
3634 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3635 then :
3636
3637 else case e in #(
3638 e) am__rm_f_notfound='""' ;;
3639 esac
3640 fi
3641
3642
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3644 printf %s "checking xargs -n works... " >&6; }
3645 if test ${am_cv_xargs_n_works+y}
3646 then :
3647 printf %s "(cached) " >&6
3648 else case e in #(
3649 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3650 3"
3651 then :
3652 am_cv_xargs_n_works=yes
3653 else case e in #(
3654 e) am_cv_xargs_n_works=no ;;
3655 esac
3656 fi ;;
3657 esac
3658 fi
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3660 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3661 if test "$am_cv_xargs_n_works" = yes
3662 then :
3663 am__xargs_n='xargs -n'
3664 else case e in #(
3665 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3666 ;;
3667 esac
3668 fi
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679 DEPDIR="${am__leading_dot}deps"
3680
3681 ac_config_commands="$ac_config_commands depfiles"
3682
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3684 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3685 cat > confinc.mk << 'END'
3686 am__doit:
3687 @echo this is the am__doit target >confinc.out
3688 .PHONY: am__doit
3689 END
3690 am__include="#"
3691 am__quote=
3692 # BSD make does it like this.
3693 echo '.include "confinc.mk" # ignored' > confmf.BSD
3694 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3695 echo 'include confinc.mk # ignored' > confmf.GNU
3696 _am_result=no
3697 for s in GNU BSD; do
3698 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3699 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }
3703 case $?:`cat confinc.out 2>/dev/null` in #(
3704 '0:this is the am__doit target') :
3705 case $s in #(
3706 BSD) :
3707 am__include='.include' am__quote='"' ;; #(
3708 *) :
3709 am__include='include' am__quote='' ;;
3710 esac ;; #(
3711 *) :
3712 ;;
3713 esac
3714 if test "$am__include" != "#"; then
3715 _am_result="yes ($s style)"
3716 break
3717 fi
3718 done
3719 rm -f confinc.* confmf.*
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3721 printf "%s\n" "${_am_result}" >&6; }
3722
3723 # Check whether --enable-dependency-tracking was given.
3724 if test ${enable_dependency_tracking+y}
3725 then :
3726 enableval=$enable_dependency_tracking;
3727 fi
3728
3729 if test "x$enable_dependency_tracking" != xno; then
3730 am_depcomp="$ac_aux_dir/depcomp"
3731 AMDEPBACKSLASH='\'
3732 am__nodep='_no'
3733 fi
3734 if test "x$enable_dependency_tracking" != xno; then
3735 AMDEP_TRUE=
3736 AMDEP_FALSE='#'
3737 else
3738 AMDEP_TRUE='#'
3739 AMDEP_FALSE=
3740 fi
3741
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 printf %s "checking for $ac_word... " >&6; }
3753 if test ${ac_cv_prog_CC+y}
3754 then :
3755 printf %s "(cached) " >&6
3756 else case e in #(
3757 e) if test -n "$CC"; then
3758 ac_cv_prog_CC="$CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763 IFS=$as_save_IFS
3764 case $as_dir in #(((
3765 '') as_dir=./ ;;
3766 */) ;;
3767 *) as_dir=$as_dir/ ;;
3768 esac
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi ;;
3780 esac
3781 fi
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 printf "%s\n" "$CC" >&6; }
3786 else
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 printf "%s\n" "no" >&6; }
3789 fi
3790
3791
3792 fi
3793 if test -z "$ac_cv_prog_CC"; then
3794 ac_ct_CC=$CC
3795 # Extract the first word of "gcc", so it can be a program name with args.
3796 set dummy gcc; ac_word=$2
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 printf %s "checking for $ac_word... " >&6; }
3799 if test ${ac_cv_prog_ac_ct_CC+y}
3800 then :
3801 printf %s "(cached) " >&6
3802 else case e in #(
3803 e) if test -n "$ac_ct_CC"; then
3804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809 IFS=$as_save_IFS
3810 case $as_dir in #(((
3811 '') as_dir=./ ;;
3812 */) ;;
3813 *) as_dir=$as_dir/ ;;
3814 esac
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_ac_ct_CC="gcc"
3818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821 done
3822 done
3823 IFS=$as_save_IFS
3824
3825 fi ;;
3826 esac
3827 fi
3828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3829 if test -n "$ac_ct_CC"; then
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3831 printf "%s\n" "$ac_ct_CC" >&6; }
3832 else
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 printf "%s\n" "no" >&6; }
3835 fi
3836
3837 if test "x$ac_ct_CC" = x; then
3838 CC=""
3839 else
3840 case $cross_compiling:$ac_tool_warned in
3841 yes:)
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3845 esac
3846 CC=$ac_ct_CC
3847 fi
3848 else
3849 CC="$ac_cv_prog_CC"
3850 fi
3851
3852 if test -z "$CC"; then
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}cc; ac_word=$2
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 printf %s "checking for $ac_word... " >&6; }
3858 if test ${ac_cv_prog_CC+y}
3859 then :
3860 printf %s "(cached) " >&6
3861 else case e in #(
3862 e) if test -n "$CC"; then
3863 ac_cv_prog_CC="$CC" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3867 do
3868 IFS=$as_save_IFS
3869 case $as_dir in #(((
3870 '') as_dir=./ ;;
3871 */) ;;
3872 *) as_dir=$as_dir/ ;;
3873 esac
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3876 ac_cv_prog_CC="${ac_tool_prefix}cc"
3877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3878 break 2
3879 fi
3880 done
3881 done
3882 IFS=$as_save_IFS
3883
3884 fi ;;
3885 esac
3886 fi
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890 printf "%s\n" "$CC" >&6; }
3891 else
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 printf "%s\n" "no" >&6; }
3894 fi
3895
3896
3897 fi
3898 fi
3899 if test -z "$CC"; then
3900 # Extract the first word of "cc", so it can be a program name with args.
3901 set dummy cc; ac_word=$2
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 printf %s "checking for $ac_word... " >&6; }
3904 if test ${ac_cv_prog_CC+y}
3905 then :
3906 printf %s "(cached) " >&6
3907 else case e in #(
3908 e) if test -n "$CC"; then
3909 ac_cv_prog_CC="$CC" # Let the user override the test.
3910 else
3911 ac_prog_rejected=no
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915 IFS=$as_save_IFS
3916 case $as_dir in #(((
3917 '') as_dir=./ ;;
3918 */) ;;
3919 *) as_dir=$as_dir/ ;;
3920 esac
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3923 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3924 ac_prog_rejected=yes
3925 continue
3926 fi
3927 ac_cv_prog_CC="cc"
3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931 done
3932 done
3933 IFS=$as_save_IFS
3934
3935 if test $ac_prog_rejected = yes; then
3936 # We found a bogon in the path, so make sure we never use it.
3937 set dummy $ac_cv_prog_CC
3938 shift
3939 if test $# != 0; then
3940 # We chose a different compiler from the bogus one.
3941 # However, it has the same basename, so the bogon will be chosen
3942 # first if we set CC to just the basename; use the full file name.
3943 shift
3944 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3945 fi
3946 fi
3947 fi ;;
3948 esac
3949 fi
3950 CC=$ac_cv_prog_CC
3951 if test -n "$CC"; then
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953 printf "%s\n" "$CC" >&6; }
3954 else
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 printf "%s\n" "no" >&6; }
3957 fi
3958
3959
3960 fi
3961 if test -z "$CC"; then
3962 if test -n "$ac_tool_prefix"; then
3963 for ac_prog in cl.exe
3964 do
3965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 printf %s "checking for $ac_word... " >&6; }
3969 if test ${ac_cv_prog_CC+y}
3970 then :
3971 printf %s "(cached) " >&6
3972 else case e in #(
3973 e) if test -n "$CC"; then
3974 ac_cv_prog_CC="$CC" # Let the user override the test.
3975 else
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3978 do
3979 IFS=$as_save_IFS
3980 case $as_dir in #(((
3981 '') as_dir=./ ;;
3982 */) ;;
3983 *) as_dir=$as_dir/ ;;
3984 esac
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991 done
3992 done
3993 IFS=$as_save_IFS
3994
3995 fi ;;
3996 esac
3997 fi
3998 CC=$ac_cv_prog_CC
3999 if test -n "$CC"; then
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001 printf "%s\n" "$CC" >&6; }
4002 else
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 printf "%s\n" "no" >&6; }
4005 fi
4006
4007
4008 test -n "$CC" && break
4009 done
4010 fi
4011 if test -z "$CC"; then
4012 ac_ct_CC=$CC
4013 for ac_prog in cl.exe
4014 do
4015 # Extract the first word of "$ac_prog", so it can be a program name with args.
4016 set dummy $ac_prog; ac_word=$2
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 printf %s "checking for $ac_word... " >&6; }
4019 if test ${ac_cv_prog_ac_ct_CC+y}
4020 then :
4021 printf %s "(cached) " >&6
4022 else case e in #(
4023 e) if test -n "$ac_ct_CC"; then
4024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029 IFS=$as_save_IFS
4030 case $as_dir in #(((
4031 '') as_dir=./ ;;
4032 */) ;;
4033 *) as_dir=$as_dir/ ;;
4034 esac
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_ac_ct_CC="$ac_prog"
4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4039 break 2
4040 fi
4041 done
4042 done
4043 IFS=$as_save_IFS
4044
4045 fi ;;
4046 esac
4047 fi
4048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4049 if test -n "$ac_ct_CC"; then
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4051 printf "%s\n" "$ac_ct_CC" >&6; }
4052 else
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 printf "%s\n" "no" >&6; }
4055 fi
4056
4057
4058 test -n "$ac_ct_CC" && break
4059 done
4060
4061 if test "x$ac_ct_CC" = x; then
4062 CC=""
4063 else
4064 case $cross_compiling:$ac_tool_warned in
4065 yes:)
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068 ac_tool_warned=yes ;;
4069 esac
4070 CC=$ac_ct_CC
4071 fi
4072 fi
4073
4074 fi
4075 if test -z "$CC"; then
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}clang; ac_word=$2
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 printf %s "checking for $ac_word... " >&6; }
4081 if test ${ac_cv_prog_CC+y}
4082 then :
4083 printf %s "(cached) " >&6
4084 else case e in #(
4085 e) if test -n "$CC"; then
4086 ac_cv_prog_CC="$CC" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091 IFS=$as_save_IFS
4092 case $as_dir in #(((
4093 '') as_dir=./ ;;
4094 */) ;;
4095 *) as_dir=$as_dir/ ;;
4096 esac
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_CC="${ac_tool_prefix}clang"
4100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103 done
4104 done
4105 IFS=$as_save_IFS
4106
4107 fi ;;
4108 esac
4109 fi
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 printf "%s\n" "$CC" >&6; }
4114 else
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 printf "%s\n" "no" >&6; }
4117 fi
4118
4119
4120 fi
4121 if test -z "$ac_cv_prog_CC"; then
4122 ac_ct_CC=$CC
4123 # Extract the first word of "clang", so it can be a program name with args.
4124 set dummy clang; ac_word=$2
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 printf %s "checking for $ac_word... " >&6; }
4127 if test ${ac_cv_prog_ac_ct_CC+y}
4128 then :
4129 printf %s "(cached) " >&6
4130 else case e in #(
4131 e) if test -n "$ac_ct_CC"; then
4132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137 IFS=$as_save_IFS
4138 case $as_dir in #(((
4139 '') as_dir=./ ;;
4140 */) ;;
4141 *) as_dir=$as_dir/ ;;
4142 esac
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_ac_ct_CC="clang"
4146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4147 break 2
4148 fi
4149 done
4150 done
4151 IFS=$as_save_IFS
4152
4153 fi ;;
4154 esac
4155 fi
4156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157 if test -n "$ac_ct_CC"; then
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4159 printf "%s\n" "$ac_ct_CC" >&6; }
4160 else
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 printf "%s\n" "no" >&6; }
4163 fi
4164
4165 if test "x$ac_ct_CC" = x; then
4166 CC=""
4167 else
4168 case $cross_compiling:$ac_tool_warned in
4169 yes:)
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned=yes ;;
4173 esac
4174 CC=$ac_ct_CC
4175 fi
4176 else
4177 CC="$ac_cv_prog_CC"
4178 fi
4179
4180 fi
4181
4182
4183 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4184 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4185 as_fn_error $? "no acceptable C compiler found in \$PATH
4186 See 'config.log' for more details" "$LINENO" 5; }
4187
4188 # Provide some information about the compiler.
4189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4190 set X $ac_compile
4191 ac_compiler=$2
4192 for ac_option in --version -v -V -qversion -version; do
4193 { { ac_try="$ac_compiler $ac_option >&5"
4194 case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 printf "%s\n" "$ac_try_echo"; } >&5
4200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4201 ac_status=$?
4202 if test -s conftest.err; then
4203 sed '10a\
4204 ... rest of stderr output deleted ...
4205 10q' conftest.err >conftest.er1
4206 cat conftest.er1 >&5
4207 fi
4208 rm -f conftest.er1 conftest.err
4209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4211 done
4212
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215
4216 int
4217 main (void)
4218 {
4219
4220 ;
4221 return 0;
4222 }
4223 _ACEOF
4224 ac_clean_files_save=$ac_clean_files
4225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4226 # Try to create an executable without -o first, disregard a.out.
4227 # It will help us diagnose broken compilers, and finding out an intuition
4228 # of exeext.
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4230 printf %s "checking whether the C compiler works... " >&6; }
4231 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4232
4233 # The possible output files:
4234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4235
4236 ac_rmfiles=
4237 for ac_file in $ac_files
4238 do
4239 case $ac_file in
4240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4242 esac
4243 done
4244 rm -f $ac_rmfiles
4245
4246 if { { ac_try="$ac_link_default"
4247 case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 printf "%s\n" "$ac_try_echo"; } >&5
4253 (eval "$ac_link_default") 2>&5
4254 ac_status=$?
4255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }
4257 then :
4258 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4259 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4261 # so that the user can short-circuit this test for compilers unknown to
4262 # Autoconf.
4263 for ac_file in $ac_files ''
4264 do
4265 test -f "$ac_file" || continue
4266 case $ac_file in
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4268 ;;
4269 [ab].out )
4270 # We found the default executable, but exeext='' is most
4271 # certainly right.
4272 break;;
4273 *.* )
4274 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4275 then :; else
4276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4277 fi
4278 # We set ac_cv_exeext here because the later test for it is not
4279 # safe: cross compilers may not add the suffix if given an '-o'
4280 # argument, so we may need to know it at that point already.
4281 # Even if this section looks crufty: it has the advantage of
4282 # actually working.
4283 break;;
4284 * )
4285 break;;
4286 esac
4287 done
4288 test "$ac_cv_exeext" = no && ac_cv_exeext=
4289
4290 else case e in #(
4291 e) ac_file='' ;;
4292 esac
4293 fi
4294 if test -z "$ac_file"
4295 then :
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 printf "%s\n" "no" >&6; }
4298 printf "%s\n" "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4302 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4303 as_fn_error 77 "C compiler cannot create executables
4304 See 'config.log' for more details" "$LINENO" 5; }
4305 else case e in #(
4306 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4307 printf "%s\n" "yes" >&6; } ;;
4308 esac
4309 fi
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311 printf %s "checking for C compiler default output file name... " >&6; }
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4313 printf "%s\n" "$ac_file" >&6; }
4314 ac_exeext=$ac_cv_exeext
4315
4316 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4317 ac_clean_files=$ac_clean_files_save
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4319 printf %s "checking for suffix of executables... " >&6; }
4320 if { { ac_try="$ac_link"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 printf "%s\n" "$ac_try_echo"; } >&5
4327 (eval "$ac_link") 2>&5
4328 ac_status=$?
4329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }
4331 then :
4332 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4333 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4334 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4335 # 'rm'.
4336 for ac_file in conftest.exe conftest conftest.*; do
4337 test -f "$ac_file" || continue
4338 case $ac_file in
4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4341 break;;
4342 * ) break;;
4343 esac
4344 done
4345 else case e in #(
4346 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4347 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4348 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4349 See 'config.log' for more details" "$LINENO" 5; } ;;
4350 esac
4351 fi
4352 rm -f conftest conftest$ac_cv_exeext
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4354 printf "%s\n" "$ac_cv_exeext" >&6; }
4355
4356 rm -f conftest.$ac_ext
4357 EXEEXT=$ac_cv_exeext
4358 ac_exeext=$EXEEXT
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #include <stdio.h>
4362 int
4363 main (void)
4364 {
4365 FILE *f = fopen ("conftest.out", "w");
4366 if (!f)
4367 return 1;
4368 return ferror (f) || fclose (f) != 0;
4369
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 ac_clean_files="$ac_clean_files conftest.out"
4375 # Check that the compiler produces executables we can run. If not, either
4376 # the compiler is broken, or we cross compile.
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4378 printf %s "checking whether we are cross compiling... " >&6; }
4379 if test "$cross_compiling" != yes; then
4380 { { ac_try="$ac_link"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 printf "%s\n" "$ac_try_echo"; } >&5
4387 (eval "$ac_link") 2>&5
4388 ac_status=$?
4389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4391 if { ac_try='./conftest$ac_cv_exeext'
4392 { { case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395 esac
4396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397 printf "%s\n" "$ac_try_echo"; } >&5
4398 (eval "$ac_try") 2>&5
4399 ac_status=$?
4400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401 test $ac_status = 0; }; }; then
4402 cross_compiling=no
4403 else
4404 if test "$cross_compiling" = maybe; then
4405 cross_compiling=yes
4406 else
4407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4408 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4409 as_fn_error 77 "cannot run C compiled programs.
4410 If you meant to cross compile, use '--host'.
4411 See 'config.log' for more details" "$LINENO" 5; }
4412 fi
4413 fi
4414 fi
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4416 printf "%s\n" "$cross_compiling" >&6; }
4417
4418 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4419 conftest.o conftest.obj conftest.out
4420 ac_clean_files=$ac_clean_files_save
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4422 printf %s "checking for suffix of object files... " >&6; }
4423 if test ${ac_cv_objext+y}
4424 then :
4425 printf %s "(cached) " >&6
4426 else case e in #(
4427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429
4430 int
4431 main (void)
4432 {
4433
4434 ;
4435 return 0;
4436 }
4437 _ACEOF
4438 rm -f conftest.o conftest.obj
4439 if { { ac_try="$ac_compile"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 printf "%s\n" "$ac_try_echo"; } >&5
4446 (eval "$ac_compile") 2>&5
4447 ac_status=$?
4448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }
4450 then :
4451 for ac_file in conftest.o conftest.obj conftest.*; do
4452 test -f "$ac_file" || continue;
4453 case $ac_file in
4454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4456 break;;
4457 esac
4458 done
4459 else case e in #(
4460 e) printf "%s\n" "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4464 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4465 as_fn_error $? "cannot compute suffix of object files: cannot compile
4466 See 'config.log' for more details" "$LINENO" 5; } ;;
4467 esac
4468 fi
4469 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4470 esac
4471 fi
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4473 printf "%s\n" "$ac_cv_objext" >&6; }
4474 OBJEXT=$ac_cv_objext
4475 ac_objext=$OBJEXT
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4477 printf %s "checking whether the compiler supports GNU C... " >&6; }
4478 if test ${ac_cv_c_compiler_gnu+y}
4479 then :
4480 printf %s "(cached) " >&6
4481 else case e in #(
4482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484
4485 int
4486 main (void)
4487 {
4488 #ifndef __GNUC__
4489 choke me
4490 #endif
4491
4492 ;
4493 return 0;
4494 }
4495 _ACEOF
4496 if ac_fn_c_try_compile "$LINENO"
4497 then :
4498 ac_compiler_gnu=yes
4499 else case e in #(
4500 e) ac_compiler_gnu=no ;;
4501 esac
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4505 ;;
4506 esac
4507 fi
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4509 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511
4512 if test $ac_compiler_gnu = yes; then
4513 GCC=yes
4514 else
4515 GCC=
4516 fi
4517 ac_test_CFLAGS=${CFLAGS+y}
4518 ac_save_CFLAGS=$CFLAGS
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4520 printf %s "checking whether $CC accepts -g... " >&6; }
4521 if test ${ac_cv_prog_cc_g+y}
4522 then :
4523 printf %s "(cached) " >&6
4524 else case e in #(
4525 e) ac_save_c_werror_flag=$ac_c_werror_flag
4526 ac_c_werror_flag=yes
4527 ac_cv_prog_cc_g=no
4528 CFLAGS="-g"
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531
4532 int
4533 main (void)
4534 {
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_c_try_compile "$LINENO"
4541 then :
4542 ac_cv_prog_cc_g=yes
4543 else case e in #(
4544 e) CFLAGS=""
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4547
4548 int
4549 main (void)
4550 {
4551
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"
4557 then :
4558
4559 else case e in #(
4560 e) ac_c_werror_flag=$ac_save_c_werror_flag
4561 CFLAGS="-g"
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564
4565 int
4566 main (void)
4567 {
4568
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_c_try_compile "$LINENO"
4574 then :
4575 ac_cv_prog_cc_g=yes
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4578 esac
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4581 esac
4582 fi
4583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4584 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4585 esac
4586 fi
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4588 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4589 if test $ac_test_CFLAGS; then
4590 CFLAGS=$ac_save_CFLAGS
4591 elif test $ac_cv_prog_cc_g = yes; then
4592 if test "$GCC" = yes; then
4593 CFLAGS="-g -O2"
4594 else
4595 CFLAGS="-g"
4596 fi
4597 else
4598 if test "$GCC" = yes; then
4599 CFLAGS="-O2"
4600 else
4601 CFLAGS=
4602 fi
4603 fi
4604 ac_prog_cc_stdc=no
4605 if test x$ac_prog_cc_stdc = xno
4606 then :
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4608 printf %s "checking for $CC option to enable C11 features... " >&6; }
4609 if test ${ac_cv_prog_cc_c11+y}
4610 then :
4611 printf %s "(cached) " >&6
4612 else case e in #(
4613 e) ac_cv_prog_cc_c11=no
4614 ac_save_CC=$CC
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 $ac_c_conftest_c11_program
4618 _ACEOF
4619 for ac_arg in '' -std=gnu11
4620 do
4621 CC="$ac_save_CC $ac_arg"
4622 if ac_fn_c_try_compile "$LINENO"
4623 then :
4624 ac_cv_prog_cc_c11=$ac_arg
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.beam
4627 test "x$ac_cv_prog_cc_c11" != "xno" && break
4628 done
4629 rm -f conftest.$ac_ext
4630 CC=$ac_save_CC ;;
4631 esac
4632 fi
4633
4634 if test "x$ac_cv_prog_cc_c11" = xno
4635 then :
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4637 printf "%s\n" "unsupported" >&6; }
4638 else case e in #(
4639 e) if test "x$ac_cv_prog_cc_c11" = x
4640 then :
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4642 printf "%s\n" "none needed" >&6; }
4643 else case e in #(
4644 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4645 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4646 CC="$CC $ac_cv_prog_cc_c11" ;;
4647 esac
4648 fi
4649 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4650 ac_prog_cc_stdc=c11 ;;
4651 esac
4652 fi
4653 fi
4654 if test x$ac_prog_cc_stdc = xno
4655 then :
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4657 printf %s "checking for $CC option to enable C99 features... " >&6; }
4658 if test ${ac_cv_prog_cc_c99+y}
4659 then :
4660 printf %s "(cached) " >&6
4661 else case e in #(
4662 e) ac_cv_prog_cc_c99=no
4663 ac_save_CC=$CC
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 $ac_c_conftest_c99_program
4667 _ACEOF
4668 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4669 do
4670 CC="$ac_save_CC $ac_arg"
4671 if ac_fn_c_try_compile "$LINENO"
4672 then :
4673 ac_cv_prog_cc_c99=$ac_arg
4674 fi
4675 rm -f core conftest.err conftest.$ac_objext conftest.beam
4676 test "x$ac_cv_prog_cc_c99" != "xno" && break
4677 done
4678 rm -f conftest.$ac_ext
4679 CC=$ac_save_CC ;;
4680 esac
4681 fi
4682
4683 if test "x$ac_cv_prog_cc_c99" = xno
4684 then :
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4686 printf "%s\n" "unsupported" >&6; }
4687 else case e in #(
4688 e) if test "x$ac_cv_prog_cc_c99" = x
4689 then :
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4691 printf "%s\n" "none needed" >&6; }
4692 else case e in #(
4693 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4694 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4695 CC="$CC $ac_cv_prog_cc_c99" ;;
4696 esac
4697 fi
4698 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4699 ac_prog_cc_stdc=c99 ;;
4700 esac
4701 fi
4702 fi
4703 if test x$ac_prog_cc_stdc = xno
4704 then :
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4706 printf %s "checking for $CC option to enable C89 features... " >&6; }
4707 if test ${ac_cv_prog_cc_c89+y}
4708 then :
4709 printf %s "(cached) " >&6
4710 else case e in #(
4711 e) ac_cv_prog_cc_c89=no
4712 ac_save_CC=$CC
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 $ac_c_conftest_c89_program
4716 _ACEOF
4717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4718 do
4719 CC="$ac_save_CC $ac_arg"
4720 if ac_fn_c_try_compile "$LINENO"
4721 then :
4722 ac_cv_prog_cc_c89=$ac_arg
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext conftest.beam
4725 test "x$ac_cv_prog_cc_c89" != "xno" && break
4726 done
4727 rm -f conftest.$ac_ext
4728 CC=$ac_save_CC ;;
4729 esac
4730 fi
4731
4732 if test "x$ac_cv_prog_cc_c89" = xno
4733 then :
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4735 printf "%s\n" "unsupported" >&6; }
4736 else case e in #(
4737 e) if test "x$ac_cv_prog_cc_c89" = x
4738 then :
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4740 printf "%s\n" "none needed" >&6; }
4741 else case e in #(
4742 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4743 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4744 CC="$CC $ac_cv_prog_cc_c89" ;;
4745 esac
4746 fi
4747 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4748 ac_prog_cc_stdc=c89 ;;
4749 esac
4750 fi
4751 fi
4752
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758
4759
4760 ac_ext=c
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4766 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4767 if test ${am_cv_prog_cc_c_o+y}
4768 then :
4769 printf %s "(cached) " >&6
4770 else case e in #(
4771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773
4774 int
4775 main (void)
4776 {
4777
4778 ;
4779 return 0;
4780 }
4781 _ACEOF
4782 # Make sure it works both with $CC and with simple cc.
4783 # Following AC_PROG_CC_C_O, we do the test twice because some
4784 # compilers refuse to overwrite an existing .o file with -o,
4785 # though they will create one.
4786 am_cv_prog_cc_c_o=yes
4787 for am_i in 1 2; do
4788 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4789 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } \
4793 && test -f conftest2.$ac_objext; then
4794 : OK
4795 else
4796 am_cv_prog_cc_c_o=no
4797 break
4798 fi
4799 done
4800 # aligned with autoconf, so not including core; see bug#72225.
4801 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4802 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4803 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4804 unset am_i ;;
4805 esac
4806 fi
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4808 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4809 if test "$am_cv_prog_cc_c_o" != yes; then
4810 # Losing compiler, so override with the script.
4811 # FIXME: It is wrong to rewrite CC.
4812 # But if we don't then we get into trouble of one sort or another.
4813 # A longer-term fix would be to have automake use am__CC in this case,
4814 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4815 CC="$am_aux_dir/compile $CC"
4816 fi
4817 ac_ext=c
4818 ac_cpp='$CPP $CPPFLAGS'
4819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822
4823
4824 depcc="$CC" am_compiler_list=
4825
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4827 printf %s "checking dependency style of $depcc... " >&6; }
4828 if test ${am_cv_CC_dependencies_compiler_type+y}
4829 then :
4830 printf %s "(cached) " >&6
4831 else case e in #(
4832 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4833 # We make a subdir and do the tests there. Otherwise we can end up
4834 # making bogus files that we don't know about and never remove. For
4835 # instance it was reported that on HP-UX the gcc test will end up
4836 # making a dummy file named 'D' -- because '-MD' means "put the output
4837 # in D".
4838 rm -rf conftest.dir
4839 mkdir conftest.dir
4840 # Copy depcomp to subdir because otherwise we won't find it if we're
4841 # using a relative directory.
4842 cp "$am_depcomp" conftest.dir
4843 cd conftest.dir
4844 # We will build objects and dependencies in a subdirectory because
4845 # it helps to detect inapplicable dependency modes. For instance
4846 # both Tru64's cc and ICC support -MD to output dependencies as a
4847 # side effect of compilation, but ICC will put the dependencies in
4848 # the current directory while Tru64 will put them in the object
4849 # directory.
4850 mkdir sub
4851
4852 am_cv_CC_dependencies_compiler_type=none
4853 if test "$am_compiler_list" = ""; then
4854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4855 fi
4856 am__universal=false
4857 case " $depcc " in #(
4858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4859 esac
4860
4861 for depmode in $am_compiler_list; do
4862 # Setup a source with many dependencies, because some compilers
4863 # like to wrap large dependency lists on column 80 (with \), and
4864 # we should not choose a depcomp mode which is confused by this.
4865 #
4866 # We need to recreate these files for each test, as the compiler may
4867 # overwrite some of them when testing with obscure command lines.
4868 # This happens at least with the AIX C compiler.
4869 : > sub/conftest.c
4870 for i in 1 2 3 4 5 6; do
4871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4872 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4873 # Solaris 10 /bin/sh.
4874 echo '/* dummy */' > sub/conftst$i.h
4875 done
4876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4877
4878 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4879 # mode. It turns out that the SunPro C++ compiler does not properly
4880 # handle '-M -o', and we need to detect this. Also, some Intel
4881 # versions had trouble with output in subdirs.
4882 am__obj=sub/conftest.${OBJEXT-o}
4883 am__minus_obj="-o $am__obj"
4884 case $depmode in
4885 gcc)
4886 # This depmode causes a compiler race in universal mode.
4887 test "$am__universal" = false || continue
4888 ;;
4889 nosideeffect)
4890 # After this tag, mechanisms are not by side-effect, so they'll
4891 # only be used when explicitly requested.
4892 if test "x$enable_dependency_tracking" = xyes; then
4893 continue
4894 else
4895 break
4896 fi
4897 ;;
4898 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4899 # This compiler won't grok '-c -o', but also, the minuso test has
4900 # not run yet. These depmodes are late enough in the game, and
4901 # so weak that their functioning should not be impacted.
4902 am__obj=conftest.${OBJEXT-o}
4903 am__minus_obj=
4904 ;;
4905 none) break ;;
4906 esac
4907 if depmode=$depmode \
4908 source=sub/conftest.c object=$am__obj \
4909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4911 >/dev/null 2>conftest.err &&
4912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4916 # icc doesn't choke on unknown options, it will just issue warnings
4917 # or remarks (even with -Werror). So we grep stderr for any message
4918 # that says an option was ignored or not supported.
4919 # When given -MP, icc 7.0 and 7.1 complain thus:
4920 # icc: Command line warning: ignoring option '-M'; no argument required
4921 # The diagnosis changed in icc 8.0:
4922 # icc: Command line remark: option '-MP' not supported
4923 if (grep 'ignoring option' conftest.err ||
4924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4925 am_cv_CC_dependencies_compiler_type=$depmode
4926 break
4927 fi
4928 fi
4929 done
4930
4931 cd ..
4932 rm -rf conftest.dir
4933 else
4934 am_cv_CC_dependencies_compiler_type=none
4935 fi
4936 ;;
4937 esac
4938 fi
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4940 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4941 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4942
4943 if
4944 test "x$enable_dependency_tracking" != xno \
4945 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4946 am__fastdepCC_TRUE=
4947 am__fastdepCC_FALSE='#'
4948 else
4949 am__fastdepCC_TRUE='#'
4950 am__fastdepCC_FALSE=
4951 fi
4952
4953
4954
4955 ac_header= ac_cache=
4956 for ac_item in $ac_header_c_list
4957 do
4958 if test $ac_cache; then
4959 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4960 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4961 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4962 fi
4963 ac_header= ac_cache=
4964 elif test $ac_header; then
4965 ac_cache=$ac_item
4966 else
4967 ac_header=$ac_item
4968 fi
4969 done
4970
4971
4972
4973
4974
4975
4976
4977
4978 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4979 then :
4980
4981 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4982
4983 fi
4984
4985
4986
4987
4988
4989
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4991 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4992 if test ${ac_cv_safe_to_define___extensions__+y}
4993 then :
4994 printf %s "(cached) " >&6
4995 else case e in #(
4996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998
4999 # define __EXTENSIONS__ 1
5000 $ac_includes_default
5001 int
5002 main (void)
5003 {
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"
5010 then :
5011 ac_cv_safe_to_define___extensions__=yes
5012 else case e in #(
5013 e) ac_cv_safe_to_define___extensions__=no ;;
5014 esac
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5017 esac
5018 fi
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5020 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5021
5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5023 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5024 if test ${ac_cv_should_define__xopen_source+y}
5025 then :
5026 printf %s "(cached) " >&6
5027 else case e in #(
5028 e) ac_cv_should_define__xopen_source=no
5029 if test $ac_cv_header_wchar_h = yes
5030 then :
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033
5034 #include <wchar.h>
5035 mbstate_t x;
5036 int
5037 main (void)
5038 {
5039
5040 ;
5041 return 0;
5042 }
5043 _ACEOF
5044 if ac_fn_c_try_compile "$LINENO"
5045 then :
5046
5047 else case e in #(
5048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050
5051 #define _XOPEN_SOURCE 500
5052 #include <wchar.h>
5053 mbstate_t x;
5054 int
5055 main (void)
5056 {
5057
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"
5063 then :
5064 ac_cv_should_define__xopen_source=yes
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5067 esac
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5070 fi ;;
5071 esac
5072 fi
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5074 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5075
5076 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5077
5078 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5079
5080 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5081
5082 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5083
5084 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5085
5086 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5087
5088 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5089
5090 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5091
5092 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5093
5094 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5095
5096 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5097
5098 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5099
5100 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5101
5102 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5103
5104 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5105
5106 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5107
5108 if test $ac_cv_header_minix_config_h = yes
5109 then :
5110 MINIX=yes
5111 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5112
5113 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5114
5115 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5116
5117 else case e in #(
5118 e) MINIX= ;;
5119 esac
5120 fi
5121 if test $ac_cv_safe_to_define___extensions__ = yes
5122 then :
5123 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5124
5125 fi
5126 if test $ac_cv_should_define__xopen_source = yes
5127 then :
5128 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5129
5130 fi
5131
5132 # Check whether --enable-compiler-warnings was given.
5133 if test ${enable_compiler_warnings+y}
5134 then :
5135 enableval=$enable_compiler_warnings;
5136 fi
5137 case $enable_compiler_warnings in #(
5138 no | min | yes | max | all) :
5139 ;; #(
5140 *) :
5141 if test "x$enable_maintainer_mode" = xyes
5142 then :
5143 enable_compiler_warnings=yes
5144 else case e in #(
5145 e) enable_compiler_warnings=min ;;
5146 esac
5147 fi ;;
5148 esac
5149
5150 case `pwd` in
5151 *\ * | *\ *)
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5153 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5154 esac
5155
5156
5157
5158 macro_version='2.5.4'
5159 macro_revision='2.5.4'
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 ltmain=$ac_aux_dir/ltmain.sh
5175
5176
5177
5178 # Make sure we can run config.sub.
5179 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5180 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5181
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5183 printf %s "checking build system type... " >&6; }
5184 if test ${ac_cv_build+y}
5185 then :
5186 printf %s "(cached) " >&6
5187 else case e in #(
5188 e) ac_build_alias=$build_alias
5189 test "x$ac_build_alias" = x &&
5190 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5191 test "x$ac_build_alias" = x &&
5192 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5193 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5194 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5195 ;;
5196 esac
5197 fi
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5199 printf "%s\n" "$ac_cv_build" >&6; }
5200 case $ac_cv_build in
5201 *-*-*) ;;
5202 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5203 esac
5204 build=$ac_cv_build
5205 ac_save_IFS=$IFS; IFS='-'
5206 set x $ac_cv_build
5207 shift
5208 build_cpu=$1
5209 build_vendor=$2
5210 shift; shift
5211 # Remember, the first character of IFS is used to create $*,
5212 # except with old shells:
5213 build_os=$*
5214 IFS=$ac_save_IFS
5215 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5216
5217
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5219 printf %s "checking host system type... " >&6; }
5220 if test ${ac_cv_host+y}
5221 then :
5222 printf %s "(cached) " >&6
5223 else case e in #(
5224 e) if test "x$host_alias" = x; then
5225 ac_cv_host=$ac_cv_build
5226 else
5227 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5228 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5229 fi
5230 ;;
5231 esac
5232 fi
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5234 printf "%s\n" "$ac_cv_host" >&6; }
5235 case $ac_cv_host in
5236 *-*-*) ;;
5237 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5238 esac
5239 host=$ac_cv_host
5240 ac_save_IFS=$IFS; IFS='-'
5241 set x $ac_cv_host
5242 shift
5243 host_cpu=$1
5244 host_vendor=$2
5245 shift; shift
5246 # Remember, the first character of IFS is used to create $*,
5247 # except with old shells:
5248 host_os=$*
5249 IFS=$ac_save_IFS
5250 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5251
5252
5253 # Backslashify metacharacters that are still active within
5254 # double-quoted strings.
5255 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5256
5257 # Same as above, but do not quote variable references.
5258 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5259
5260 # Sed substitution to delay expansion of an escaped shell variable in a
5261 # double_quote_subst'ed string.
5262 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5263
5264 # Sed substitution to delay expansion of an escaped single quote.
5265 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5266
5267 # Sed substitution to avoid accidental globbing in evaled expressions
5268 no_glob_subst='s/\*/\\\*/g'
5269
5270 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5271 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5272 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5273
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5275 printf %s "checking how to print strings... " >&6; }
5276 # Test print first, because it will be a builtin if present.
5277 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5278 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5279 ECHO='print -r --'
5280 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5281 ECHO='printf %s\n'
5282 else
5283 # Use this function as a fallback that always works.
5284 func_fallback_echo ()
5285 {
5286 eval 'cat <<_LTECHO_EOF
5287 $1
5288 _LTECHO_EOF'
5289 }
5290 ECHO='func_fallback_echo'
5291 fi
5292
5293 # func_echo_all arg...
5294 # Invoke $ECHO with all args, space-separated.
5295 func_echo_all ()
5296 {
5297 $ECHO ""
5298 }
5299
5300 case $ECHO in
5301 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5302 printf "%s\n" "printf" >&6; } ;;
5303 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5304 printf "%s\n" "print -r" >&6; } ;;
5305 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5306 printf "%s\n" "cat" >&6; } ;;
5307 esac
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5323 printf %s "checking for a sed that does not truncate output... " >&6; }
5324 if test ${ac_cv_path_SED+y}
5325 then :
5326 printf %s "(cached) " >&6
5327 else case e in #(
5328 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5329 for ac_i in 1 2 3 4 5 6 7; do
5330 ac_script="$ac_script$as_nl$ac_script"
5331 done
5332 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5333 { ac_script=; unset ac_script;}
5334 if test -z "$SED"; then
5335 ac_path_SED_found=false
5336 # Loop through the user's path and test for each of PROGNAME-LIST
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 case $as_dir in #(((
5342 '') as_dir=./ ;;
5343 */) ;;
5344 *) as_dir=$as_dir/ ;;
5345 esac
5346 for ac_prog in sed gsed
5347 do
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5350 as_fn_executable_p "$ac_path_SED" || continue
5351 # Check for GNU ac_path_SED and select it if it is found.
5352 # Check for GNU $ac_path_SED
5353 case `"$ac_path_SED" --version 2>&1` in #(
5354 *GNU*)
5355 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5356 #(
5357 *)
5358 ac_count=0
5359 printf %s 0123456789 >"conftest.in"
5360 while :
5361 do
5362 cat "conftest.in" "conftest.in" >"conftest.tmp"
5363 mv "conftest.tmp" "conftest.in"
5364 cp "conftest.in" "conftest.nl"
5365 printf "%s\n" '' >> "conftest.nl"
5366 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5368 as_fn_arith $ac_count + 1 && ac_count=$as_val
5369 if test $ac_count -gt ${ac_path_SED_max-0}; then
5370 # Best one so far, save it but keep looking for a better one
5371 ac_cv_path_SED="$ac_path_SED"
5372 ac_path_SED_max=$ac_count
5373 fi
5374 # 10*(2^10) chars as input seems more than enough
5375 test $ac_count -gt 10 && break
5376 done
5377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5378 esac
5379
5380 $ac_path_SED_found && break 3
5381 done
5382 done
5383 done
5384 IFS=$as_save_IFS
5385 if test -z "$ac_cv_path_SED"; then
5386 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5387 fi
5388 else
5389 ac_cv_path_SED=$SED
5390 fi
5391 ;;
5392 esac
5393 fi
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5395 printf "%s\n" "$ac_cv_path_SED" >&6; }
5396 SED="$ac_cv_path_SED"
5397 rm -f conftest.sed
5398
5399 test -z "$SED" && SED=sed
5400 Xsed="$SED -e 1s/^X//"
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5413 printf %s "checking for grep that handles long lines and -e... " >&6; }
5414 if test ${ac_cv_path_GREP+y}
5415 then :
5416 printf %s "(cached) " >&6
5417 else case e in #(
5418 e) if test -z "$GREP"; then
5419 ac_path_GREP_found=false
5420 # Loop through the user's path and test for each of PROGNAME-LIST
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5423 do
5424 IFS=$as_save_IFS
5425 case $as_dir in #(((
5426 '') as_dir=./ ;;
5427 */) ;;
5428 *) as_dir=$as_dir/ ;;
5429 esac
5430 for ac_prog in grep ggrep
5431 do
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5434 as_fn_executable_p "$ac_path_GREP" || continue
5435 # Check for GNU ac_path_GREP and select it if it is found.
5436 # Check for GNU $ac_path_GREP
5437 case `"$ac_path_GREP" --version 2>&1` in #(
5438 *GNU*)
5439 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5440 #(
5441 *)
5442 ac_count=0
5443 printf %s 0123456789 >"conftest.in"
5444 while :
5445 do
5446 cat "conftest.in" "conftest.in" >"conftest.tmp"
5447 mv "conftest.tmp" "conftest.in"
5448 cp "conftest.in" "conftest.nl"
5449 printf "%s\n" 'GREP' >> "conftest.nl"
5450 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5452 as_fn_arith $ac_count + 1 && ac_count=$as_val
5453 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5454 # Best one so far, save it but keep looking for a better one
5455 ac_cv_path_GREP="$ac_path_GREP"
5456 ac_path_GREP_max=$ac_count
5457 fi
5458 # 10*(2^10) chars as input seems more than enough
5459 test $ac_count -gt 10 && break
5460 done
5461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5462 esac
5463
5464 $ac_path_GREP_found && break 3
5465 done
5466 done
5467 done
5468 IFS=$as_save_IFS
5469 if test -z "$ac_cv_path_GREP"; then
5470 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5471 fi
5472 else
5473 ac_cv_path_GREP=$GREP
5474 fi
5475 ;;
5476 esac
5477 fi
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5479 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5480 GREP="$ac_cv_path_GREP"
5481
5482
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5484 printf %s "checking for egrep... " >&6; }
5485 if test ${ac_cv_path_EGREP+y}
5486 then :
5487 printf %s "(cached) " >&6
5488 else case e in #(
5489 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5490 then ac_cv_path_EGREP="$GREP -E"
5491 else
5492 if test -z "$EGREP"; then
5493 ac_path_EGREP_found=false
5494 # Loop through the user's path and test for each of PROGNAME-LIST
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5497 do
5498 IFS=$as_save_IFS
5499 case $as_dir in #(((
5500 '') as_dir=./ ;;
5501 */) ;;
5502 *) as_dir=$as_dir/ ;;
5503 esac
5504 for ac_prog in egrep
5505 do
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5508 as_fn_executable_p "$ac_path_EGREP" || continue
5509 # Check for GNU ac_path_EGREP and select it if it is found.
5510 # Check for GNU $ac_path_EGREP
5511 case `"$ac_path_EGREP" --version 2>&1` in #(
5512 *GNU*)
5513 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5514 #(
5515 *)
5516 ac_count=0
5517 printf %s 0123456789 >"conftest.in"
5518 while :
5519 do
5520 cat "conftest.in" "conftest.in" >"conftest.tmp"
5521 mv "conftest.tmp" "conftest.in"
5522 cp "conftest.in" "conftest.nl"
5523 printf "%s\n" 'EGREP' >> "conftest.nl"
5524 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5526 as_fn_arith $ac_count + 1 && ac_count=$as_val
5527 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5528 # Best one so far, save it but keep looking for a better one
5529 ac_cv_path_EGREP="$ac_path_EGREP"
5530 ac_path_EGREP_max=$ac_count
5531 fi
5532 # 10*(2^10) chars as input seems more than enough
5533 test $ac_count -gt 10 && break
5534 done
5535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5536 esac
5537
5538 $ac_path_EGREP_found && break 3
5539 done
5540 done
5541 done
5542 IFS=$as_save_IFS
5543 if test -z "$ac_cv_path_EGREP"; then
5544 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5545 fi
5546 else
5547 ac_cv_path_EGREP=$EGREP
5548 fi
5549
5550 fi ;;
5551 esac
5552 fi
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5554 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5555 EGREP="$ac_cv_path_EGREP"
5556
5557 EGREP_TRADITIONAL=$EGREP
5558 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5559
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5561 printf %s "checking for fgrep... " >&6; }
5562 if test ${ac_cv_path_FGREP+y}
5563 then :
5564 printf %s "(cached) " >&6
5565 else case e in #(
5566 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5567 then ac_cv_path_FGREP="$GREP -F"
5568 else
5569 if test -z "$FGREP"; then
5570 ac_path_FGREP_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5574 do
5575 IFS=$as_save_IFS
5576 case $as_dir in #(((
5577 '') as_dir=./ ;;
5578 */) ;;
5579 *) as_dir=$as_dir/ ;;
5580 esac
5581 for ac_prog in fgrep
5582 do
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5585 as_fn_executable_p "$ac_path_FGREP" || continue
5586 # Check for GNU ac_path_FGREP and select it if it is found.
5587 # Check for GNU $ac_path_FGREP
5588 case `"$ac_path_FGREP" --version 2>&1` in #(
5589 *GNU*)
5590 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5591 #(
5592 *)
5593 ac_count=0
5594 printf %s 0123456789 >"conftest.in"
5595 while :
5596 do
5597 cat "conftest.in" "conftest.in" >"conftest.tmp"
5598 mv "conftest.tmp" "conftest.in"
5599 cp "conftest.in" "conftest.nl"
5600 printf "%s\n" 'FGREP' >> "conftest.nl"
5601 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5603 as_fn_arith $ac_count + 1 && ac_count=$as_val
5604 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5605 # Best one so far, save it but keep looking for a better one
5606 ac_cv_path_FGREP="$ac_path_FGREP"
5607 ac_path_FGREP_max=$ac_count
5608 fi
5609 # 10*(2^10) chars as input seems more than enough
5610 test $ac_count -gt 10 && break
5611 done
5612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613 esac
5614
5615 $ac_path_FGREP_found && break 3
5616 done
5617 done
5618 done
5619 IFS=$as_save_IFS
5620 if test -z "$ac_cv_path_FGREP"; then
5621 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5622 fi
5623 else
5624 ac_cv_path_FGREP=$FGREP
5625 fi
5626
5627 fi ;;
5628 esac
5629 fi
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5631 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5632 FGREP="$ac_cv_path_FGREP"
5633
5634
5635 test -z "$GREP" && GREP=grep
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 # Check whether --with-gnu-ld was given.
5656 if test ${with_gnu_ld+y}
5657 then :
5658 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5659 else case e in #(
5660 e) with_gnu_ld=no ;;
5661 esac
5662 fi
5663
5664 ac_prog=ld
5665 if test yes = "$GCC"; then
5666 # Check if gcc -print-prog-name=ld gives a path.
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5668 printf %s "checking for ld used by $CC... " >&6; }
5669 case $host in
5670 *-*-mingw* | *-*-windows*)
5671 # gcc leaves a trailing carriage return, which upsets mingw
5672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5673 *)
5674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5675 esac
5676 case $ac_prog in
5677 # Accept absolute paths.
5678 [\\/]* | ?:[\\/]*)
5679 re_direlt='/[^/][^/]*/\.\./'
5680 # Canonicalize the pathname of ld
5681 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5682 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5683 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5684 done
5685 test -z "$LD" && LD=$ac_prog
5686 ;;
5687 "")
5688 # If it fails, then pretend we aren't using GCC.
5689 ac_prog=ld
5690 ;;
5691 *)
5692 # If it is relative, then search for the first ld in PATH.
5693 with_gnu_ld=unknown
5694 ;;
5695 esac
5696 elif test yes = "$with_gnu_ld"; then
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5698 printf %s "checking for GNU ld... " >&6; }
5699 else
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5701 printf %s "checking for non-GNU ld... " >&6; }
5702 fi
5703 if test ${lt_cv_path_LD+y}
5704 then :
5705 printf %s "(cached) " >&6
5706 else case e in #(
5707 e) if test -z "$LD"; then
5708 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5709 for ac_dir in $PATH; do
5710 IFS=$lt_save_ifs
5711 test -z "$ac_dir" && ac_dir=.
5712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5713 lt_cv_path_LD=$ac_dir/$ac_prog
5714 # Check to see if the program is GNU ld. I'd rather use --version,
5715 # but apparently some variants of GNU ld only accept -v.
5716 # Break only if it was the GNU/non-GNU ld that we prefer.
5717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5718 *GNU* | *'with BFD'*)
5719 test no != "$with_gnu_ld" && break
5720 ;;
5721 *)
5722 test yes != "$with_gnu_ld" && break
5723 ;;
5724 esac
5725 fi
5726 done
5727 IFS=$lt_save_ifs
5728 else
5729 lt_cv_path_LD=$LD # Let the user override the test with a path.
5730 fi ;;
5731 esac
5732 fi
5733
5734 LD=$lt_cv_path_LD
5735 if test -n "$LD"; then
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5737 printf "%s\n" "$LD" >&6; }
5738 else
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 printf "%s\n" "no" >&6; }
5741 fi
5742 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5744 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5745 if test ${lt_cv_prog_gnu_ld+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else case e in #(
5749 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5750 case `$LD -v 2>&1 </dev/null` in
5751 *GNU* | *'with BFD'*)
5752 lt_cv_prog_gnu_ld=yes
5753 ;;
5754 *)
5755 lt_cv_prog_gnu_ld=no
5756 ;;
5757 esac ;;
5758 esac
5759 fi
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5761 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5762 with_gnu_ld=$lt_cv_prog_gnu_ld
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5773 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5774 if test ${lt_cv_path_NM+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else case e in #(
5778 e) if test -n "$NM"; then
5779 # Let the user override the test.
5780 lt_cv_path_NM=$NM
5781 else
5782 lt_nm_to_check=${ac_tool_prefix}nm
5783 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5784 lt_nm_to_check="$lt_nm_to_check nm"
5785 fi
5786 for lt_tmp_nm in $lt_nm_to_check; do
5787 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5788 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5789 IFS=$lt_save_ifs
5790 test -z "$ac_dir" && ac_dir=.
5791 tmp_nm=$ac_dir/$lt_tmp_nm
5792 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5793 # Check to see if the nm accepts a BSD-compat flag.
5794 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5795 # nm: unknown option "B" ignored
5796 # Tru64's nm complains that /dev/null is an invalid object file
5797 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5798 case $build_os in
5799 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5800 *) lt_bad_file=/dev/null ;;
5801 esac
5802 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5803 *$lt_bad_file* | *'Invalid file or object type'*)
5804 lt_cv_path_NM="$tmp_nm -B"
5805 break 2
5806 ;;
5807 *)
5808 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5809 */dev/null*)
5810 lt_cv_path_NM="$tmp_nm -p"
5811 break 2
5812 ;;
5813 *)
5814 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5815 continue # so that we can try to find one that supports BSD flags
5816 ;;
5817 esac
5818 ;;
5819 esac
5820 fi
5821 done
5822 IFS=$lt_save_ifs
5823 done
5824 : ${lt_cv_path_NM=no}
5825 fi ;;
5826 esac
5827 fi
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5829 printf "%s\n" "$lt_cv_path_NM" >&6; }
5830 if test no != "$lt_cv_path_NM"; then
5831 NM=$lt_cv_path_NM
5832 else
5833 # Didn't find any BSD compatible name lister, look for dumpbin.
5834 if test -n "$DUMPBIN"; then :
5835 # Let the user override the test.
5836 else
5837 if test -n "$ac_tool_prefix"; then
5838 for ac_prog in dumpbin "link -dump"
5839 do
5840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 printf %s "checking for $ac_word... " >&6; }
5844 if test ${ac_cv_prog_DUMPBIN+y}
5845 then :
5846 printf %s "(cached) " >&6
5847 else case e in #(
5848 e) if test -n "$DUMPBIN"; then
5849 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 case $as_dir in #(((
5856 '') as_dir=./ ;;
5857 */) ;;
5858 *) as_dir=$as_dir/ ;;
5859 esac
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 fi ;;
5871 esac
5872 fi
5873 DUMPBIN=$ac_cv_prog_DUMPBIN
5874 if test -n "$DUMPBIN"; then
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5876 printf "%s\n" "$DUMPBIN" >&6; }
5877 else
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 printf "%s\n" "no" >&6; }
5880 fi
5881
5882
5883 test -n "$DUMPBIN" && break
5884 done
5885 fi
5886 if test -z "$DUMPBIN"; then
5887 ac_ct_DUMPBIN=$DUMPBIN
5888 for ac_prog in dumpbin "link -dump"
5889 do
5890 # Extract the first word of "$ac_prog", so it can be a program name with args.
5891 set dummy $ac_prog; ac_word=$2
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 printf %s "checking for $ac_word... " >&6; }
5894 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5895 then :
5896 printf %s "(cached) " >&6
5897 else case e in #(
5898 e) if test -n "$ac_ct_DUMPBIN"; then
5899 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904 IFS=$as_save_IFS
5905 case $as_dir in #(((
5906 '') as_dir=./ ;;
5907 */) ;;
5908 *) as_dir=$as_dir/ ;;
5909 esac
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi ;;
5921 esac
5922 fi
5923 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5924 if test -n "$ac_ct_DUMPBIN"; then
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5926 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5927 else
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 printf "%s\n" "no" >&6; }
5930 fi
5931
5932
5933 test -n "$ac_ct_DUMPBIN" && break
5934 done
5935
5936 if test "x$ac_ct_DUMPBIN" = x; then
5937 DUMPBIN=":"
5938 else
5939 case $cross_compiling:$ac_tool_warned in
5940 yes:)
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943 ac_tool_warned=yes ;;
5944 esac
5945 DUMPBIN=$ac_ct_DUMPBIN
5946 fi
5947 fi
5948
5949 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5950 *COFF*)
5951 DUMPBIN="$DUMPBIN -symbols -headers"
5952 ;;
5953 *)
5954 DUMPBIN=:
5955 ;;
5956 esac
5957 fi
5958
5959 if test : != "$DUMPBIN"; then
5960 NM=$DUMPBIN
5961 fi
5962 fi
5963 test -z "$NM" && NM=nm
5964
5965
5966
5967
5968
5969
5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5971 printf %s "checking the name lister ($NM) interface... " >&6; }
5972 if test ${lt_cv_nm_interface+y}
5973 then :
5974 printf %s "(cached) " >&6
5975 else case e in #(
5976 e) lt_cv_nm_interface="BSD nm"
5977 echo "int some_variable = 0;" > conftest.$ac_ext
5978 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5979 (eval "$ac_compile" 2>conftest.err)
5980 cat conftest.err >&5
5981 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5982 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5983 cat conftest.err >&5
5984 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5985 cat conftest.out >&5
5986 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5987 lt_cv_nm_interface="MS dumpbin"
5988 fi
5989 rm -f conftest* ;;
5990 esac
5991 fi
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5993 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5994
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5996 printf %s "checking whether ln -s works... " >&6; }
5997 LN_S=$as_ln_s
5998 if test "$LN_S" = "ln -s"; then
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6000 printf "%s\n" "yes" >&6; }
6001 else
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6003 printf "%s\n" "no, using $LN_S" >&6; }
6004 fi
6005
6006 # find the maximum length of command line arguments
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6008 printf %s "checking the maximum length of command line arguments... " >&6; }
6009 if test ${lt_cv_sys_max_cmd_len+y}
6010 then :
6011 printf %s "(cached) " >&6
6012 else case e in #(
6013 e) i=0
6014 teststring=ABCD
6015
6016 case $build_os in
6017 msdosdjgpp*)
6018 # On DJGPP, this test can blow up pretty badly due to problems in libc
6019 # (any single argument exceeding 2000 bytes causes a buffer overrun
6020 # during glob expansion). Even if it were fixed, the result of this
6021 # check would be larger than it should be.
6022 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6023 ;;
6024
6025 gnu* | ironclad*)
6026 # Under GNU Hurd and Ironclad, this test is not required because there
6027 # is no limit to the length of command line arguments.
6028 # Libtool will interpret -1 as no limit whatsoever
6029 lt_cv_sys_max_cmd_len=-1;
6030 ;;
6031
6032 cygwin* | mingw* | windows* | cegcc*)
6033 # On Win9x/ME, this test blows up -- it succeeds, but takes
6034 # about 5 minutes as the teststring grows exponentially.
6035 # Worse, since 9x/ME are not pre-emptively multitasking,
6036 # you end up with a "frozen" computer, even though with patience
6037 # the test eventually succeeds (with a max line length of 256k).
6038 # Instead, let's just punt: use the minimum linelength reported by
6039 # all of the supported platforms: 8192 (on NT/2K/XP).
6040 lt_cv_sys_max_cmd_len=8192;
6041 ;;
6042
6043 mint*)
6044 # On MiNT this can take a long time and run out of memory.
6045 lt_cv_sys_max_cmd_len=8192;
6046 ;;
6047
6048 amigaos*)
6049 # On AmigaOS with pdksh, this test takes hours, literally.
6050 # So we just punt and use a minimum line length of 8192.
6051 lt_cv_sys_max_cmd_len=8192;
6052 ;;
6053
6054 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6055 # This has been around since 386BSD, at least. Likely further.
6056 if test -x /sbin/sysctl; then
6057 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6058 elif test -x /usr/sbin/sysctl; then
6059 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6060 else
6061 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6062 fi
6063 # And add a safety zone
6064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6066 ;;
6067
6068 interix*)
6069 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6070 lt_cv_sys_max_cmd_len=196608
6071 ;;
6072
6073 os2*)
6074 # The test takes a long time on OS/2.
6075 lt_cv_sys_max_cmd_len=8192
6076 ;;
6077
6078 osf*)
6079 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6080 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6081 # nice to cause kernel panics so lets avoid the loop below.
6082 # First set a reasonable default.
6083 lt_cv_sys_max_cmd_len=16384
6084 #
6085 if test -x /sbin/sysconfig; then
6086 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6087 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6088 esac
6089 fi
6090 ;;
6091 sco3.2v5*)
6092 lt_cv_sys_max_cmd_len=102400
6093 ;;
6094 sysv5* | sco5v6* | sysv4.2uw2*)
6095 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6096 if test -n "$kargmax"; then
6097 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6098 else
6099 lt_cv_sys_max_cmd_len=32768
6100 fi
6101 ;;
6102 *)
6103 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6104 if test -n "$lt_cv_sys_max_cmd_len" && \
6105 test undefined != "$lt_cv_sys_max_cmd_len"; then
6106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6108 else
6109 # Make teststring a little bigger before we do anything with it.
6110 # a 1K string should be a reasonable start.
6111 for i in 1 2 3 4 5 6 7 8; do
6112 teststring=$teststring$teststring
6113 done
6114 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6115 # If test is not a shell built-in, we'll probably end up computing a
6116 # maximum length that is only half of the actual maximum length, but
6117 # we can't tell.
6118 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6119 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6120 test 17 != "$i" # 1/2 MB should be enough
6121 do
6122 i=`expr $i + 1`
6123 teststring=$teststring$teststring
6124 done
6125 # Only check the string length outside the loop.
6126 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6127 teststring=
6128 # Add a significant safety factor because C++ compilers can tack on
6129 # massive amounts of additional arguments before passing them to the
6130 # linker. It appears as though 1/2 is a usable value.
6131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6132 fi
6133 ;;
6134 esac
6135 ;;
6136 esac
6137 fi
6138
6139 if test -n "$lt_cv_sys_max_cmd_len"; then
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6141 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6142 else
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6144 printf "%s\n" "none" >&6; }
6145 fi
6146 max_cmd_len=$lt_cv_sys_max_cmd_len
6147
6148
6149
6150
6151
6152
6153 : ${CP="cp -f"}
6154 : ${MV="mv -f"}
6155 : ${RM="rm -f"}
6156
6157 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6158 lt_unset=unset
6159 else
6160 lt_unset=false
6161 fi
6162
6163
6164
6165
6166
6167 # test EBCDIC or ASCII
6168 case `echo X|tr X '\101'` in
6169 A) # ASCII based system
6170 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6171 lt_SP2NL='tr \040 \012'
6172 lt_NL2SP='tr \015\012 \040\040'
6173 ;;
6174 *) # EBCDIC based system
6175 lt_SP2NL='tr \100 \n'
6176 lt_NL2SP='tr \r\n \100\100'
6177 ;;
6178 esac
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6189 printf %s "checking how to convert $build file names to $host format... " >&6; }
6190 if test ${lt_cv_to_host_file_cmd+y}
6191 then :
6192 printf %s "(cached) " >&6
6193 else case e in #(
6194 e) case $host in
6195 *-*-mingw* )
6196 case $build in
6197 *-*-mingw* | *-*-windows* ) # actually msys
6198 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6199 ;;
6200 *-*-cygwin* )
6201 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6202 ;;
6203 * ) # otherwise, assume *nix
6204 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6205 ;;
6206 esac
6207 ;;
6208 *-*-cygwin* )
6209 case $build in
6210 *-*-mingw* | *-*-windows* ) # actually msys
6211 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6212 ;;
6213 *-*-cygwin* )
6214 lt_cv_to_host_file_cmd=func_convert_file_noop
6215 ;;
6216 * ) # otherwise, assume *nix
6217 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6218 ;;
6219 esac
6220 ;;
6221 * ) # unhandled hosts (and "normal" native builds)
6222 lt_cv_to_host_file_cmd=func_convert_file_noop
6223 ;;
6224 esac
6225 ;;
6226 esac
6227 fi
6228
6229 to_host_file_cmd=$lt_cv_to_host_file_cmd
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6231 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6232
6233
6234
6235
6236
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6238 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6239 if test ${lt_cv_to_tool_file_cmd+y}
6240 then :
6241 printf %s "(cached) " >&6
6242 else case e in #(
6243 e) #assume ordinary cross tools, or native build.
6244 lt_cv_to_tool_file_cmd=func_convert_file_noop
6245 case $host in
6246 *-*-mingw* | *-*-windows* )
6247 case $build in
6248 *-*-mingw* | *-*-windows* ) # actually msys
6249 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6250 ;;
6251 esac
6252 ;;
6253 esac
6254 ;;
6255 esac
6256 fi
6257
6258 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6260 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6261
6262
6263
6264
6265
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6267 printf %s "checking for $LD option to reload object files... " >&6; }
6268 if test ${lt_cv_ld_reload_flag+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else case e in #(
6272 e) lt_cv_ld_reload_flag='-r' ;;
6273 esac
6274 fi
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6276 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6277 reload_flag=$lt_cv_ld_reload_flag
6278 case $reload_flag in
6279 "" | " "*) ;;
6280 *) reload_flag=" $reload_flag" ;;
6281 esac
6282 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6283 case $host_os in
6284 cygwin* | mingw* | windows* | pw32* | cegcc*)
6285 if test yes != "$GCC"; then
6286 reload_cmds=false
6287 fi
6288 ;;
6289 darwin*)
6290 if test yes = "$GCC"; then
6291 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6292 else
6293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6294 fi
6295 ;;
6296 esac
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 # Extract the first word of "file", so it can be a program name with args.
6307 set dummy file; ac_word=$2
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 printf %s "checking for $ac_word... " >&6; }
6310 if test ${ac_cv_prog_FILECMD+y}
6311 then :
6312 printf %s "(cached) " >&6
6313 else case e in #(
6314 e) if test -n "$FILECMD"; then
6315 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320 IFS=$as_save_IFS
6321 case $as_dir in #(((
6322 '') as_dir=./ ;;
6323 */) ;;
6324 *) as_dir=$as_dir/ ;;
6325 esac
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_FILECMD="file"
6329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332 done
6333 done
6334 IFS=$as_save_IFS
6335
6336 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6337 fi ;;
6338 esac
6339 fi
6340 FILECMD=$ac_cv_prog_FILECMD
6341 if test -n "$FILECMD"; then
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6343 printf "%s\n" "$FILECMD" >&6; }
6344 else
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 printf "%s\n" "no" >&6; }
6347 fi
6348
6349
6350
6351
6352
6353
6354
6355
6356 if test -n "$ac_tool_prefix"; then
6357 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 printf %s "checking for $ac_word... " >&6; }
6361 if test ${ac_cv_prog_OBJDUMP+y}
6362 then :
6363 printf %s "(cached) " >&6
6364 else case e in #(
6365 e) if test -n "$OBJDUMP"; then
6366 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 case $as_dir in #(((
6373 '') as_dir=./ ;;
6374 */) ;;
6375 *) as_dir=$as_dir/ ;;
6376 esac
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6379 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6381 break 2
6382 fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387 fi ;;
6388 esac
6389 fi
6390 OBJDUMP=$ac_cv_prog_OBJDUMP
6391 if test -n "$OBJDUMP"; then
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6393 printf "%s\n" "$OBJDUMP" >&6; }
6394 else
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 printf "%s\n" "no" >&6; }
6397 fi
6398
6399
6400 fi
6401 if test -z "$ac_cv_prog_OBJDUMP"; then
6402 ac_ct_OBJDUMP=$OBJDUMP
6403 # Extract the first word of "objdump", so it can be a program name with args.
6404 set dummy objdump; ac_word=$2
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 printf %s "checking for $ac_word... " >&6; }
6407 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6408 then :
6409 printf %s "(cached) " >&6
6410 else case e in #(
6411 e) if test -n "$ac_ct_OBJDUMP"; then
6412 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 case $as_dir in #(((
6419 '') as_dir=./ ;;
6420 */) ;;
6421 *) as_dir=$as_dir/ ;;
6422 esac
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429 done
6430 done
6431 IFS=$as_save_IFS
6432
6433 fi ;;
6434 esac
6435 fi
6436 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6437 if test -n "$ac_ct_OBJDUMP"; then
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6439 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6440 else
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 printf "%s\n" "no" >&6; }
6443 fi
6444
6445 if test "x$ac_ct_OBJDUMP" = x; then
6446 OBJDUMP="false"
6447 else
6448 case $cross_compiling:$ac_tool_warned in
6449 yes:)
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6451 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6452 ac_tool_warned=yes ;;
6453 esac
6454 OBJDUMP=$ac_ct_OBJDUMP
6455 fi
6456 else
6457 OBJDUMP="$ac_cv_prog_OBJDUMP"
6458 fi
6459
6460 test -z "$OBJDUMP" && OBJDUMP=objdump
6461
6462
6463
6464
6465
6466
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6468 printf %s "checking how to recognize dependent libraries... " >&6; }
6469 if test ${lt_cv_deplibs_check_method+y}
6470 then :
6471 printf %s "(cached) " >&6
6472 else case e in #(
6473 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6474 lt_cv_file_magic_test_file=
6475 lt_cv_deplibs_check_method='unknown'
6476 # Need to set the preceding variable on all platforms that support
6477 # interlibrary dependencies.
6478 # 'none' -- dependencies not supported.
6479 # 'unknown' -- same as none, but documents that we really don't know.
6480 # 'pass_all' -- all dependencies passed with no checks.
6481 # 'file_magic [[regex]]' -- check by looking for files in library path
6482 # that responds to the $file_magic_cmd with a given extended regex.
6483 # If you have 'file' or equivalent on your system and you're not sure
6484 # whether 'pass_all' will *always* work, you probably want this one.
6485
6486 case $host_os in
6487 aix[4-9]*)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490
6491 beos*)
6492 lt_cv_deplibs_check_method=pass_all
6493 ;;
6494
6495 bsdi[45]*)
6496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6497 lt_cv_file_magic_cmd='$FILECMD -L'
6498 lt_cv_file_magic_test_file=/shlib/libc.so
6499 ;;
6500
6501 cygwin*)
6502 # func_win32_libid is a shell function defined in ltmain.sh
6503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6504 lt_cv_file_magic_cmd='func_win32_libid'
6505 ;;
6506
6507 mingw* | windows* | pw32*)
6508 # Base MSYS/MinGW do not provide the 'file' command needed by
6509 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6510 # unless we find 'file', for example because we are cross-compiling.
6511 if ( file / ) >/dev/null 2>&1; then
6512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6513 lt_cv_file_magic_cmd='func_win32_libid'
6514 else
6515 # Keep this pattern in sync with the one in func_win32_libid.
6516 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6517 lt_cv_file_magic_cmd='$OBJDUMP -f'
6518 fi
6519 ;;
6520
6521 cegcc*)
6522 # use the weaker test based on 'objdump'. See mingw*.
6523 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6524 lt_cv_file_magic_cmd='$OBJDUMP -f'
6525 ;;
6526
6527 darwin* | rhapsody*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530
6531 freebsd* | dragonfly* | midnightbsd*)
6532 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6533 case $host_cpu in
6534 i*86 )
6535 # Not sure whether the presence of OpenBSD here was a mistake.
6536 # Let's accept both of them until this is cleared up.
6537 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6538 lt_cv_file_magic_cmd=$FILECMD
6539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6540 ;;
6541 esac
6542 else
6543 lt_cv_deplibs_check_method=pass_all
6544 fi
6545 ;;
6546
6547 haiku*)
6548 lt_cv_deplibs_check_method=pass_all
6549 ;;
6550
6551 hpux10.20* | hpux11*)
6552 lt_cv_file_magic_cmd=$FILECMD
6553 case $host_cpu in
6554 ia64*)
6555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6556 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6557 ;;
6558 hppa*64*)
6559 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]'
6560 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6561 ;;
6562 *)
6563 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6564 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6565 ;;
6566 esac
6567 ;;
6568
6569 interix[3-9]*)
6570 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6572 ;;
6573
6574 irix5* | irix6* | nonstopux*)
6575 case $LD in
6576 *-32|*"-32 ") libmagic=32-bit;;
6577 *-n32|*"-n32 ") libmagic=N32;;
6578 *-64|*"-64 ") libmagic=64-bit;;
6579 *) libmagic=never-match;;
6580 esac
6581 lt_cv_deplibs_check_method=pass_all
6582 ;;
6583
6584 # This must be glibc/ELF.
6585 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6586 lt_cv_deplibs_check_method=pass_all
6587 ;;
6588
6589 *-mlibc)
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
6592
6593 netbsd* | netbsdelf*-gnu)
6594 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6596 else
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6598 fi
6599 ;;
6600
6601 newos6*)
6602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6603 lt_cv_file_magic_cmd=$FILECMD
6604 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6605 ;;
6606
6607 *nto* | *qnx*)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610
6611 openbsd*)
6612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6614 else
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6616 fi
6617 ;;
6618
6619 osf3* | osf4* | osf5*)
6620 lt_cv_deplibs_check_method=pass_all
6621 ;;
6622
6623 rdos*)
6624 lt_cv_deplibs_check_method=pass_all
6625 ;;
6626
6627 serenity*)
6628 lt_cv_deplibs_check_method=pass_all
6629 ;;
6630
6631 solaris*)
6632 lt_cv_deplibs_check_method=pass_all
6633 ;;
6634
6635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6636 lt_cv_deplibs_check_method=pass_all
6637 ;;
6638
6639 sysv4 | sysv4.3*)
6640 case $host_vendor in
6641 motorola)
6642 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]'
6643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6644 ;;
6645 ncr)
6646 lt_cv_deplibs_check_method=pass_all
6647 ;;
6648 sequent)
6649 lt_cv_file_magic_cmd='/bin/file'
6650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6651 ;;
6652 sni)
6653 lt_cv_file_magic_cmd='/bin/file'
6654 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6655 lt_cv_file_magic_test_file=/lib/libc.so
6656 ;;
6657 siemens)
6658 lt_cv_deplibs_check_method=pass_all
6659 ;;
6660 pc)
6661 lt_cv_deplibs_check_method=pass_all
6662 ;;
6663 esac
6664 ;;
6665
6666 tpf*)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669 os2*)
6670 lt_cv_deplibs_check_method=pass_all
6671 ;;
6672 esac
6673 ;;
6674 esac
6675 fi
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6677 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6678
6679 file_magic_glob=
6680 want_nocaseglob=no
6681 if test "$build" = "$host"; then
6682 case $host_os in
6683 mingw* | windows* | pw32*)
6684 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6685 want_nocaseglob=yes
6686 else
6687 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6688 fi
6689 ;;
6690 esac
6691 fi
6692
6693 file_magic_cmd=$lt_cv_file_magic_cmd
6694 deplibs_check_method=$lt_cv_deplibs_check_method
6695 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 printf %s "checking for $ac_word... " >&6; }
6723 if test ${ac_cv_prog_DLLTOOL+y}
6724 then :
6725 printf %s "(cached) " >&6
6726 else case e in #(
6727 e) if test -n "$DLLTOOL"; then
6728 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733 IFS=$as_save_IFS
6734 case $as_dir in #(((
6735 '') as_dir=./ ;;
6736 */) ;;
6737 *) as_dir=$as_dir/ ;;
6738 esac
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749 fi ;;
6750 esac
6751 fi
6752 DLLTOOL=$ac_cv_prog_DLLTOOL
6753 if test -n "$DLLTOOL"; then
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6755 printf "%s\n" "$DLLTOOL" >&6; }
6756 else
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 printf "%s\n" "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_DLLTOOL"; then
6764 ac_ct_DLLTOOL=$DLLTOOL
6765 # Extract the first word of "dlltool", so it can be a program name with args.
6766 set dummy dlltool; ac_word=$2
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 printf %s "checking for $ac_word... " >&6; }
6769 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6770 then :
6771 printf %s "(cached) " >&6
6772 else case e in #(
6773 e) if test -n "$ac_ct_DLLTOOL"; then
6774 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 case $as_dir in #(((
6781 '') as_dir=./ ;;
6782 */) ;;
6783 *) as_dir=$as_dir/ ;;
6784 esac
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6787 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi ;;
6796 esac
6797 fi
6798 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6799 if test -n "$ac_ct_DLLTOOL"; then
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6801 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6802 else
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 printf "%s\n" "no" >&6; }
6805 fi
6806
6807 if test "x$ac_ct_DLLTOOL" = x; then
6808 DLLTOOL="false"
6809 else
6810 case $cross_compiling:$ac_tool_warned in
6811 yes:)
6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816 DLLTOOL=$ac_ct_DLLTOOL
6817 fi
6818 else
6819 DLLTOOL="$ac_cv_prog_DLLTOOL"
6820 fi
6821
6822 test -z "$DLLTOOL" && DLLTOOL=dlltool
6823
6824
6825
6826
6827
6828
6829
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6831 printf %s "checking how to associate runtime and link libraries... " >&6; }
6832 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6833 then :
6834 printf %s "(cached) " >&6
6835 else case e in #(
6836 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6837
6838 case $host_os in
6839 cygwin* | mingw* | windows* | pw32* | cegcc*)
6840 # two different shell functions defined in ltmain.sh;
6841 # decide which one to use based on capabilities of $DLLTOOL
6842 case `$DLLTOOL --help 2>&1` in
6843 *--identify-strict*)
6844 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6845 ;;
6846 *)
6847 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6848 ;;
6849 esac
6850 ;;
6851 *)
6852 # fallback: assume linklib IS sharedlib
6853 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6854 ;;
6855 esac
6856 ;;
6857 esac
6858 fi
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6860 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6861 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6862 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6863
6864
6865
6866
6867
6868
6869
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 printf %s "checking for $ac_word... " >&6; }
6875 if test ${ac_cv_prog_RANLIB+y}
6876 then :
6877 printf %s "(cached) " >&6
6878 else case e in #(
6879 e) if test -n "$RANLIB"; then
6880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 case $as_dir in #(((
6887 '') as_dir=./ ;;
6888 */) ;;
6889 *) as_dir=$as_dir/ ;;
6890 esac
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901 fi ;;
6902 esac
6903 fi
6904 RANLIB=$ac_cv_prog_RANLIB
6905 if test -n "$RANLIB"; then
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6907 printf "%s\n" "$RANLIB" >&6; }
6908 else
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 printf "%s\n" "no" >&6; }
6911 fi
6912
6913
6914 fi
6915 if test -z "$ac_cv_prog_RANLIB"; then
6916 ac_ct_RANLIB=$RANLIB
6917 # Extract the first word of "ranlib", so it can be a program name with args.
6918 set dummy ranlib; ac_word=$2
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 printf %s "checking for $ac_word... " >&6; }
6921 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6922 then :
6923 printf %s "(cached) " >&6
6924 else case e in #(
6925 e) if test -n "$ac_ct_RANLIB"; then
6926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931 IFS=$as_save_IFS
6932 case $as_dir in #(((
6933 '') as_dir=./ ;;
6934 */) ;;
6935 *) as_dir=$as_dir/ ;;
6936 esac
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6939 ac_cv_prog_ac_ct_RANLIB="ranlib"
6940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6941 break 2
6942 fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947 fi ;;
6948 esac
6949 fi
6950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951 if test -n "$ac_ct_RANLIB"; then
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6953 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6954 else
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 printf "%s\n" "no" >&6; }
6957 fi
6958
6959 if test "x$ac_ct_RANLIB" = x; then
6960 RANLIB=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 RANLIB=$ac_ct_RANLIB
6969 fi
6970 else
6971 RANLIB="$ac_cv_prog_RANLIB"
6972 fi
6973
6974 if test -n "$ac_tool_prefix"; then
6975 for ac_prog in ar
6976 do
6977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 printf %s "checking for $ac_word... " >&6; }
6981 if test ${ac_cv_prog_AR+y}
6982 then :
6983 printf %s "(cached) " >&6
6984 else case e in #(
6985 e) if test -n "$AR"; then
6986 ac_cv_prog_AR="$AR" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 case $as_dir in #(((
6993 '') as_dir=./ ;;
6994 */) ;;
6995 *) as_dir=$as_dir/ ;;
6996 esac
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi ;;
7008 esac
7009 fi
7010 AR=$ac_cv_prog_AR
7011 if test -n "$AR"; then
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7013 printf "%s\n" "$AR" >&6; }
7014 else
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 printf "%s\n" "no" >&6; }
7017 fi
7018
7019
7020 test -n "$AR" && break
7021 done
7022 fi
7023 if test -z "$AR"; then
7024 ac_ct_AR=$AR
7025 for ac_prog in ar
7026 do
7027 # Extract the first word of "$ac_prog", so it can be a program name with args.
7028 set dummy $ac_prog; ac_word=$2
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 printf %s "checking for $ac_word... " >&6; }
7031 if test ${ac_cv_prog_ac_ct_AR+y}
7032 then :
7033 printf %s "(cached) " >&6
7034 else case e in #(
7035 e) if test -n "$ac_ct_AR"; then
7036 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 case $as_dir in #(((
7043 '') as_dir=./ ;;
7044 */) ;;
7045 *) as_dir=$as_dir/ ;;
7046 esac
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_AR="$ac_prog"
7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi ;;
7058 esac
7059 fi
7060 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7061 if test -n "$ac_ct_AR"; then
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7063 printf "%s\n" "$ac_ct_AR" >&6; }
7064 else
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 printf "%s\n" "no" >&6; }
7067 fi
7068
7069
7070 test -n "$ac_ct_AR" && break
7071 done
7072
7073 if test "x$ac_ct_AR" = x; then
7074 AR="false"
7075 else
7076 case $cross_compiling:$ac_tool_warned in
7077 yes:)
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080 ac_tool_warned=yes ;;
7081 esac
7082 AR=$ac_ct_AR
7083 fi
7084 fi
7085
7086 : ${AR=ar}
7087
7088
7089
7090
7091
7092
7093 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7094 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7095 # higher priority because that's what people were doing historically (setting
7096 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7097 # variable obsoleted/removed.
7098
7099 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7100 lt_ar_flags=$AR_FLAGS
7101
7102
7103
7104
7105
7106
7107 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7108 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7109
7110
7111
7112
7113
7114
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7116 printf %s "checking for archiver @FILE support... " >&6; }
7117 if test ${lt_cv_ar_at_file+y}
7118 then :
7119 printf %s "(cached) " >&6
7120 else case e in #(
7121 e) lt_cv_ar_at_file=no
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124
7125 int
7126 main (void)
7127 {
7128
7129 ;
7130 return 0;
7131 }
7132 _ACEOF
7133 if ac_fn_c_try_compile "$LINENO"
7134 then :
7135 echo conftest.$ac_objext > conftest.lst
7136 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7138 (eval $lt_ar_try) 2>&5
7139 ac_status=$?
7140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; }
7142 if test 0 -eq "$ac_status"; then
7143 # Ensure the archiver fails upon bogus file names.
7144 rm -f conftest.$ac_objext libconftest.a
7145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7146 (eval $lt_ar_try) 2>&5
7147 ac_status=$?
7148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }
7150 if test 0 -ne "$ac_status"; then
7151 lt_cv_ar_at_file=@
7152 fi
7153 fi
7154 rm -f conftest.* libconftest.a
7155
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7158 ;;
7159 esac
7160 fi
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7162 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7163
7164 if test no = "$lt_cv_ar_at_file"; then
7165 archiver_list_spec=
7166 else
7167 archiver_list_spec=$lt_cv_ar_at_file
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176 if test -n "$ac_tool_prefix"; then
7177 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7178 set dummy ${ac_tool_prefix}strip; ac_word=$2
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 printf %s "checking for $ac_word... " >&6; }
7181 if test ${ac_cv_prog_STRIP+y}
7182 then :
7183 printf %s "(cached) " >&6
7184 else case e in #(
7185 e) if test -n "$STRIP"; then
7186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 case $as_dir in #(((
7193 '') as_dir=./ ;;
7194 */) ;;
7195 *) as_dir=$as_dir/ ;;
7196 esac
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7201 break 2
7202 fi
7203 done
7204 done
7205 IFS=$as_save_IFS
7206
7207 fi ;;
7208 esac
7209 fi
7210 STRIP=$ac_cv_prog_STRIP
7211 if test -n "$STRIP"; then
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7213 printf "%s\n" "$STRIP" >&6; }
7214 else
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 printf "%s\n" "no" >&6; }
7217 fi
7218
7219
7220 fi
7221 if test -z "$ac_cv_prog_STRIP"; then
7222 ac_ct_STRIP=$STRIP
7223 # Extract the first word of "strip", so it can be a program name with args.
7224 set dummy strip; ac_word=$2
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 printf %s "checking for $ac_word... " >&6; }
7227 if test ${ac_cv_prog_ac_ct_STRIP+y}
7228 then :
7229 printf %s "(cached) " >&6
7230 else case e in #(
7231 e) if test -n "$ac_ct_STRIP"; then
7232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237 IFS=$as_save_IFS
7238 case $as_dir in #(((
7239 '') as_dir=./ ;;
7240 */) ;;
7241 *) as_dir=$as_dir/ ;;
7242 esac
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_ac_ct_STRIP="strip"
7246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi ;;
7254 esac
7255 fi
7256 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7257 if test -n "$ac_ct_STRIP"; then
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7259 printf "%s\n" "$ac_ct_STRIP" >&6; }
7260 else
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 printf "%s\n" "no" >&6; }
7263 fi
7264
7265 if test "x$ac_ct_STRIP" = x; then
7266 STRIP=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 STRIP=$ac_ct_STRIP
7275 fi
7276 else
7277 STRIP="$ac_cv_prog_STRIP"
7278 fi
7279
7280 test -z "$STRIP" && STRIP=:
7281
7282
7283
7284
7285
7286
7287
7288 test -z "$RANLIB" && RANLIB=:
7289
7290
7291
7292
7293
7294
7295 # Determine commands to create old-style static archives.
7296 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7297 old_postinstall_cmds='chmod 644 $oldlib'
7298 old_postuninstall_cmds=
7299
7300 if test -n "$RANLIB"; then
7301 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7302 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7303 fi
7304
7305 case $host_os in
7306 darwin*)
7307 lock_old_archive_extraction=yes ;;
7308 *)
7309 lock_old_archive_extraction=no ;;
7310 esac
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350 # If no C compiler was specified, use CC.
7351 LTCC=${LTCC-"$CC"}
7352
7353 # If no C compiler flags were specified, use CFLAGS.
7354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7355
7356 # Allow CC to be a program name with arguments.
7357 compiler=$CC
7358
7359
7360 # Check for command to grab the raw symbol name followed by C symbol from nm.
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7362 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7363 if test ${lt_cv_sys_global_symbol_pipe+y}
7364 then :
7365 printf %s "(cached) " >&6
7366 else case e in #(
7367 e)
7368 # These are sane defaults that work on at least a few old systems.
7369 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7370
7371 # Character class describing NM global symbol codes.
7372 symcode='[BCDEGRST]'
7373
7374 # Regexp to match symbols that can be accessed directly from C.
7375 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7376
7377 # Define system-specific variables.
7378 case $host_os in
7379 aix*)
7380 symcode='[BCDT]'
7381 ;;
7382 cygwin* | mingw* | windows* | pw32* | cegcc*)
7383 symcode='[ABCDGISTW]'
7384 ;;
7385 hpux*)
7386 if test ia64 = "$host_cpu"; then
7387 symcode='[ABCDEGRST]'
7388 fi
7389 ;;
7390 irix* | nonstopux*)
7391 symcode='[BCDEGRST]'
7392 ;;
7393 osf*)
7394 symcode='[BCDEGQRST]'
7395 ;;
7396 solaris*)
7397 symcode='[BCDRT]'
7398 ;;
7399 sco3.2v5*)
7400 symcode='[DT]'
7401 ;;
7402 sysv4.2uw2*)
7403 symcode='[DT]'
7404 ;;
7405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7406 symcode='[ABDT]'
7407 ;;
7408 sysv4)
7409 symcode='[DFNSTU]'
7410 ;;
7411 esac
7412
7413 # If we're using GNU nm, then use its standard symbol codes.
7414 case `$NM -V 2>&1` in
7415 *GNU* | *'with BFD'*)
7416 symcode='[ABCDGIRSTW]' ;;
7417 esac
7418
7419 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7420 # Gets list of data symbols to import.
7421 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7422 # Adjust the below global symbol transforms to fixup imported variables.
7423 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7424 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7425 lt_c_name_lib_hook="\
7426 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7427 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7428 else
7429 # Disable hooks by default.
7430 lt_cv_sys_global_symbol_to_import=
7431 lt_cdecl_hook=
7432 lt_c_name_hook=
7433 lt_c_name_lib_hook=
7434 fi
7435
7436 # Transform an extracted symbol line into a proper C declaration.
7437 # Some systems (esp. on ia64) link data and code symbols differently,
7438 # so use this general approach.
7439 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7440 $lt_cdecl_hook\
7441 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7442 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7443
7444 # Transform an extracted symbol line into symbol name and symbol address
7445 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7446 $lt_c_name_hook\
7447 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7448 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7449
7450 # Transform an extracted symbol line into symbol name with lib prefix and
7451 # symbol address.
7452 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7453 $lt_c_name_lib_hook\
7454 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7455 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7456 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7457
7458 # Handle CRLF in mingw tool chain
7459 opt_cr=
7460 case $build_os in
7461 mingw* | windows*)
7462 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7463 ;;
7464 esac
7465
7466 # Try without a prefix underscore, then with it.
7467 for ac_symprfx in "" "_"; do
7468
7469 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7470 symxfrm="\\1 $ac_symprfx\\2 \\2"
7471
7472 # Write the raw and C identifiers.
7473 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7474 # Fake it for dumpbin and say T for any non-static function,
7475 # D for any global variable and I for any imported variable.
7476 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7477 # which start with @ or ?.
7478 lt_cv_sys_global_symbol_pipe="$AWK '"\
7479 " {last_section=section; section=\$ 3};"\
7480 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7481 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7482 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7483 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7484 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7485 " \$ 0!~/External *\|/{next};"\
7486 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7487 " {if(hide[section]) next};"\
7488 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7489 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7490 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7491 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7492 " ' prfx=^$ac_symprfx"
7493 else
7494 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7495 fi
7496 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7497
7498 # Check to see that the pipe works correctly.
7499 pipe_works=no
7500
7501 rm -f conftest*
7502 cat > conftest.$ac_ext <<_LT_EOF
7503 #ifdef __cplusplus
7504 extern "C" {
7505 #endif
7506 char nm_test_var;
7507 void nm_test_func(void);
7508 void nm_test_func(void){}
7509 #ifdef __cplusplus
7510 }
7511 #endif
7512 int main(void){nm_test_var='a';nm_test_func();return(0);}
7513 _LT_EOF
7514
7515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7516 (eval $ac_compile) 2>&5
7517 ac_status=$?
7518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519 test $ac_status = 0; }; then
7520 # Now try to grab the symbols.
7521 nlist=conftest.nm
7522 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7523 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7524 # Try sorting and uniquifying the output.
7525 if sort "$nlist" | uniq > "$nlist"T; then
7526 mv -f "$nlist"T "$nlist"
7527 else
7528 rm -f "$nlist"T
7529 fi
7530
7531 # Make sure that we snagged all the symbols we need.
7532 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7533 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7534 cat <<_LT_EOF > conftest.$ac_ext
7535 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7536 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7537 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7538 relocations are performed -- see ld's documentation on pseudo-relocs. */
7539 # define LT_DLSYM_CONST
7540 #elif defined __osf__
7541 /* This system does not cope well with relocations in const data. */
7542 # define LT_DLSYM_CONST
7543 #else
7544 # define LT_DLSYM_CONST const
7545 #endif
7546
7547 #ifdef __cplusplus
7548 extern "C" {
7549 #endif
7550
7551 _LT_EOF
7552 # Now generate the symbol file.
7553 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7554
7555 cat <<_LT_EOF >> conftest.$ac_ext
7556
7557 /* The mapping between symbol names and symbols. */
7558 LT_DLSYM_CONST struct {
7559 const char *name;
7560 void *address;
7561 }
7562 lt__PROGRAM__LTX_preloaded_symbols[] =
7563 {
7564 { "@PROGRAM@", (void *) 0 },
7565 _LT_EOF
7566 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7567 cat <<\_LT_EOF >> conftest.$ac_ext
7568 {0, (void *) 0}
7569 };
7570
7571 /* This works around a problem in FreeBSD linker */
7572 #ifdef FREEBSD_WORKAROUND
7573 static const void *lt_preloaded_setup() {
7574 return lt__PROGRAM__LTX_preloaded_symbols;
7575 }
7576 #endif
7577
7578 #ifdef __cplusplus
7579 }
7580 #endif
7581 _LT_EOF
7582 # Now try linking the two files.
7583 mv conftest.$ac_objext conftstm.$ac_objext
7584 lt_globsym_save_LIBS=$LIBS
7585 lt_globsym_save_CFLAGS=$CFLAGS
7586 LIBS=conftstm.$ac_objext
7587 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7589 (eval $ac_link) 2>&5
7590 ac_status=$?
7591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7593 pipe_works=yes
7594 fi
7595 LIBS=$lt_globsym_save_LIBS
7596 CFLAGS=$lt_globsym_save_CFLAGS
7597 else
7598 echo "cannot find nm_test_func in $nlist" >&5
7599 fi
7600 else
7601 echo "cannot find nm_test_var in $nlist" >&5
7602 fi
7603 else
7604 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7605 fi
7606 else
7607 echo "$progname: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7609 fi
7610 rm -rf conftest* conftst*
7611
7612 # Do not use the global_symbol_pipe unless it works.
7613 if test yes = "$pipe_works"; then
7614 break
7615 else
7616 lt_cv_sys_global_symbol_pipe=
7617 fi
7618 done
7619 ;;
7620 esac
7621 fi
7622
7623 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7624 lt_cv_sys_global_symbol_to_cdecl=
7625 fi
7626 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7628 printf "%s\n" "failed" >&6; }
7629 else
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7631 printf "%s\n" "ok" >&6; }
7632 fi
7633
7634 # Response file support.
7635 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7636 nm_file_list_spec='@'
7637 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7638 nm_file_list_spec='@'
7639 fi
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7678 printf %s "checking for sysroot... " >&6; }
7679
7680 # Check whether --with-sysroot was given.
7681 if test ${with_sysroot+y}
7682 then :
7683 withval=$with_sysroot;
7684 else case e in #(
7685 e) with_sysroot=no ;;
7686 esac
7687 fi
7688
7689
7690 lt_sysroot=
7691 case $with_sysroot in #(
7692 yes)
7693 if test yes = "$GCC"; then
7694 # Trim trailing / since we'll always append absolute paths and we want
7695 # to avoid //, if only for less confusing output for the user.
7696 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7697 fi
7698 ;; #(
7699 /*)
7700 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7701 ;; #(
7702 no|'')
7703 ;; #(
7704 *)
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7706 printf "%s\n" "$with_sysroot" >&6; }
7707 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7708 ;;
7709 esac
7710
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7712 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7713
7714
7715
7716
7717
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7719 printf %s "checking for a working dd... " >&6; }
7720 if test ${ac_cv_path_lt_DD+y}
7721 then :
7722 printf %s "(cached) " >&6
7723 else case e in #(
7724 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7725 cat conftest.i conftest.i >conftest2.i
7726 : ${lt_DD:=$DD}
7727 if test -z "$lt_DD"; then
7728 ac_path_lt_DD_found=false
7729 # Loop through the user's path and test for each of PROGNAME-LIST
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733 IFS=$as_save_IFS
7734 case $as_dir in #(((
7735 '') as_dir=./ ;;
7736 */) ;;
7737 *) as_dir=$as_dir/ ;;
7738 esac
7739 for ac_prog in dd
7740 do
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7743 as_fn_executable_p "$ac_path_lt_DD" || continue
7744 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7745 cmp -s conftest.i conftest.out \
7746 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7747 fi
7748 $ac_path_lt_DD_found && break 3
7749 done
7750 done
7751 done
7752 IFS=$as_save_IFS
7753 if test -z "$ac_cv_path_lt_DD"; then
7754 :
7755 fi
7756 else
7757 ac_cv_path_lt_DD=$lt_DD
7758 fi
7759
7760 rm -f conftest.i conftest2.i conftest.out ;;
7761 esac
7762 fi
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7764 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7765
7766
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7768 printf %s "checking how to truncate binary pipes... " >&6; }
7769 if test ${lt_cv_truncate_bin+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else case e in #(
7773 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7774 cat conftest.i conftest.i >conftest2.i
7775 lt_cv_truncate_bin=
7776 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7777 cmp -s conftest.i conftest.out \
7778 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7779 fi
7780 rm -f conftest.i conftest2.i conftest.out
7781 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7782 esac
7783 fi
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7785 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7786
7787
7788
7789
7790
7791
7792
7793 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7794 func_cc_basename ()
7795 {
7796 for cc_temp in $*""; do
7797 case $cc_temp in
7798 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7799 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7800 \-*) ;;
7801 *) break;;
7802 esac
7803 done
7804 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7805 }
7806
7807 # Check whether --enable-libtool-lock was given.
7808 if test ${enable_libtool_lock+y}
7809 then :
7810 enableval=$enable_libtool_lock;
7811 fi
7812
7813 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7814
7815 # Some flags need to be propagated to the compiler or linker for good
7816 # libtool support.
7817 case $host in
7818 ia64-*-hpux*)
7819 # Find out what ABI is being produced by ac_compile, and set mode
7820 # options accordingly.
7821 echo 'int i;' > conftest.$ac_ext
7822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7823 (eval $ac_compile) 2>&5
7824 ac_status=$?
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }; then
7827 case `$FILECMD conftest.$ac_objext` in
7828 *ELF-32*)
7829 HPUX_IA64_MODE=32
7830 ;;
7831 *ELF-64*)
7832 HPUX_IA64_MODE=64
7833 ;;
7834 esac
7835 fi
7836 rm -rf conftest*
7837 ;;
7838 *-*-irix6*)
7839 # Find out what ABI is being produced by ac_compile, and set linker
7840 # options accordingly.
7841 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7843 (eval $ac_compile) 2>&5
7844 ac_status=$?
7845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846 test $ac_status = 0; }; then
7847 if test yes = "$lt_cv_prog_gnu_ld"; then
7848 case `$FILECMD conftest.$ac_objext` in
7849 *32-bit*)
7850 LD="${LD-ld} -melf32bsmip"
7851 ;;
7852 *N32*)
7853 LD="${LD-ld} -melf32bmipn32"
7854 ;;
7855 *64-bit*)
7856 LD="${LD-ld} -melf64bmip"
7857 ;;
7858 esac
7859 else
7860 case `$FILECMD conftest.$ac_objext` in
7861 *32-bit*)
7862 LD="${LD-ld} -32"
7863 ;;
7864 *N32*)
7865 LD="${LD-ld} -n32"
7866 ;;
7867 *64-bit*)
7868 LD="${LD-ld} -64"
7869 ;;
7870 esac
7871 fi
7872 fi
7873 rm -rf conftest*
7874 ;;
7875
7876 mips64*-*linux*)
7877 # Find out what ABI is being produced by ac_compile, and set linker
7878 # options accordingly.
7879 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7881 (eval $ac_compile) 2>&5
7882 ac_status=$?
7883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884 test $ac_status = 0; }; then
7885 emul=elf
7886 case `$FILECMD conftest.$ac_objext` in
7887 *32-bit*)
7888 emul="${emul}32"
7889 ;;
7890 *64-bit*)
7891 emul="${emul}64"
7892 ;;
7893 esac
7894 case `$FILECMD conftest.$ac_objext` in
7895 *MSB*)
7896 emul="${emul}btsmip"
7897 ;;
7898 *LSB*)
7899 emul="${emul}ltsmip"
7900 ;;
7901 esac
7902 case `$FILECMD conftest.$ac_objext` in
7903 *N32*)
7904 emul="${emul}n32"
7905 ;;
7906 esac
7907 LD="${LD-ld} -m $emul"
7908 fi
7909 rm -rf conftest*
7910 ;;
7911
7912 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7913 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7914 # Find out what ABI is being produced by ac_compile, and set linker
7915 # options accordingly. Note that the listed cases only cover the
7916 # situations where additional linker options are needed (such as when
7917 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7918 # vice versa); the common cases where no linker options are needed do
7919 # not appear in the list.
7920 echo 'int i;' > conftest.$ac_ext
7921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7922 (eval $ac_compile) 2>&5
7923 ac_status=$?
7924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7925 test $ac_status = 0; }; then
7926 case `$FILECMD conftest.o` in
7927 *32-bit*)
7928 case $host in
7929 x86_64-*kfreebsd*-gnu)
7930 LD="${LD-ld} -m elf_i386_fbsd"
7931 ;;
7932 x86_64-*linux*|x86_64-gnu*)
7933 case `$FILECMD conftest.o` in
7934 *x86-64*)
7935 LD="${LD-ld} -m elf32_x86_64"
7936 ;;
7937 *)
7938 LD="${LD-ld} -m elf_i386"
7939 ;;
7940 esac
7941 ;;
7942 powerpc64le-*linux*)
7943 LD="${LD-ld} -m elf32lppclinux"
7944 ;;
7945 powerpc64-*linux*)
7946 LD="${LD-ld} -m elf32ppclinux"
7947 ;;
7948 s390x-*linux*)
7949 LD="${LD-ld} -m elf_s390"
7950 ;;
7951 sparc64-*linux*)
7952 LD="${LD-ld} -m elf32_sparc"
7953 ;;
7954 esac
7955 ;;
7956 *64-bit*)
7957 case $host in
7958 x86_64-*kfreebsd*-gnu)
7959 LD="${LD-ld} -m elf_x86_64_fbsd"
7960 ;;
7961 x86_64-*linux*|x86_64-gnu*)
7962 LD="${LD-ld} -m elf_x86_64"
7963 ;;
7964 powerpcle-*linux*)
7965 LD="${LD-ld} -m elf64lppc"
7966 ;;
7967 powerpc-*linux*)
7968 LD="${LD-ld} -m elf64ppc"
7969 ;;
7970 s390*-*linux*|s390*-*tpf*)
7971 LD="${LD-ld} -m elf64_s390"
7972 ;;
7973 sparc*-*linux*)
7974 LD="${LD-ld} -m elf64_sparc"
7975 ;;
7976 esac
7977 ;;
7978 esac
7979 fi
7980 rm -rf conftest*
7981 ;;
7982
7983 *-*-sco3.2v5*)
7984 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7985 SAVE_CFLAGS=$CFLAGS
7986 CFLAGS="$CFLAGS -belf"
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7988 printf %s "checking whether the C compiler needs -belf... " >&6; }
7989 if test ${lt_cv_cc_needs_belf+y}
7990 then :
7991 printf %s "(cached) " >&6
7992 else case e in #(
7993 e) ac_ext=c
7994 ac_cpp='$CPP $CPPFLAGS'
7995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001
8002 int
8003 main (void)
8004 {
8005
8006 ;
8007 return 0;
8008 }
8009 _ACEOF
8010 if ac_fn_c_try_link "$LINENO"
8011 then :
8012 lt_cv_cc_needs_belf=yes
8013 else case e in #(
8014 e) lt_cv_cc_needs_belf=no ;;
8015 esac
8016 fi
8017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8018 conftest$ac_exeext conftest.$ac_ext
8019 ac_ext=c
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024 ;;
8025 esac
8026 fi
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8028 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8029 if test yes != "$lt_cv_cc_needs_belf"; then
8030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8031 CFLAGS=$SAVE_CFLAGS
8032 fi
8033 ;;
8034 *-*solaris*)
8035 # Find out what ABI is being produced by ac_compile, and set linker
8036 # options accordingly.
8037 echo 'int i;' > conftest.$ac_ext
8038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8039 (eval $ac_compile) 2>&5
8040 ac_status=$?
8041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8042 test $ac_status = 0; }; then
8043 case `$FILECMD conftest.o` in
8044 *64-bit*)
8045 case $lt_cv_prog_gnu_ld in
8046 yes*)
8047 case $host in
8048 i?86-*-solaris*|x86_64-*-solaris*)
8049 LD="${LD-ld} -m elf_x86_64"
8050 ;;
8051 sparc*-*-solaris*)
8052 LD="${LD-ld} -m elf64_sparc"
8053 ;;
8054 esac
8055 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8056 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8057 LD=${LD-ld}_sol2
8058 fi
8059 ;;
8060 *)
8061 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8062 LD="${LD-ld} -64"
8063 fi
8064 ;;
8065 esac
8066 ;;
8067 esac
8068 fi
8069 rm -rf conftest*
8070 ;;
8071 esac
8072
8073 need_locks=$enable_libtool_lock
8074
8075 if test -n "$ac_tool_prefix"; then
8076 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8077 set dummy ${ac_tool_prefix}mt; ac_word=$2
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 printf %s "checking for $ac_word... " >&6; }
8080 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8081 then :
8082 printf %s "(cached) " >&6
8083 else case e in #(
8084 e) if test -n "$MANIFEST_TOOL"; then
8085 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090 IFS=$as_save_IFS
8091 case $as_dir in #(((
8092 '') as_dir=./ ;;
8093 */) ;;
8094 *) as_dir=$as_dir/ ;;
8095 esac
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 fi ;;
8107 esac
8108 fi
8109 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8110 if test -n "$MANIFEST_TOOL"; then
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8112 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8113 else
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 printf "%s\n" "no" >&6; }
8116 fi
8117
8118
8119 fi
8120 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8121 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8122 # Extract the first word of "mt", so it can be a program name with args.
8123 set dummy mt; ac_word=$2
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 printf %s "checking for $ac_word... " >&6; }
8126 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8127 then :
8128 printf %s "(cached) " >&6
8129 else case e in #(
8130 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8131 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136 IFS=$as_save_IFS
8137 case $as_dir in #(((
8138 '') as_dir=./ ;;
8139 */) ;;
8140 *) as_dir=$as_dir/ ;;
8141 esac
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8144 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8146 break 2
8147 fi
8148 done
8149 done
8150 IFS=$as_save_IFS
8151
8152 fi ;;
8153 esac
8154 fi
8155 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8156 if test -n "$ac_ct_MANIFEST_TOOL"; then
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8158 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8159 else
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 printf "%s\n" "no" >&6; }
8162 fi
8163
8164 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8165 MANIFEST_TOOL=":"
8166 else
8167 case $cross_compiling:$ac_tool_warned in
8168 yes:)
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8170 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8171 ac_tool_warned=yes ;;
8172 esac
8173 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8174 fi
8175 else
8176 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8177 fi
8178
8179 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8181 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8182 if test ${lt_cv_path_manifest_tool+y}
8183 then :
8184 printf %s "(cached) " >&6
8185 else case e in #(
8186 e) lt_cv_path_manifest_tool=no
8187 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8188 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8189 cat conftest.err >&5
8190 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8191 lt_cv_path_manifest_tool=yes
8192 fi
8193 rm -f conftest* ;;
8194 esac
8195 fi
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8197 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8198 if test yes != "$lt_cv_path_manifest_tool"; then
8199 MANIFEST_TOOL=:
8200 fi
8201
8202
8203
8204
8205
8206
8207 case $host_os in
8208 rhapsody* | darwin*)
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 printf %s "checking for $ac_word... " >&6; }
8214 if test ${ac_cv_prog_DSYMUTIL+y}
8215 then :
8216 printf %s "(cached) " >&6
8217 else case e in #(
8218 e) if test -n "$DSYMUTIL"; then
8219 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224 IFS=$as_save_IFS
8225 case $as_dir in #(((
8226 '') as_dir=./ ;;
8227 */) ;;
8228 *) as_dir=$as_dir/ ;;
8229 esac
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236 done
8237 done
8238 IFS=$as_save_IFS
8239
8240 fi ;;
8241 esac
8242 fi
8243 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8244 if test -n "$DSYMUTIL"; then
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8246 printf "%s\n" "$DSYMUTIL" >&6; }
8247 else
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 printf "%s\n" "no" >&6; }
8250 fi
8251
8252
8253 fi
8254 if test -z "$ac_cv_prog_DSYMUTIL"; then
8255 ac_ct_DSYMUTIL=$DSYMUTIL
8256 # Extract the first word of "dsymutil", so it can be a program name with args.
8257 set dummy dsymutil; ac_word=$2
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 printf %s "checking for $ac_word... " >&6; }
8260 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else case e in #(
8264 e) if test -n "$ac_ct_DSYMUTIL"; then
8265 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 case $as_dir in #(((
8272 '') as_dir=./ ;;
8273 */) ;;
8274 *) as_dir=$as_dir/ ;;
8275 esac
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 fi ;;
8287 esac
8288 fi
8289 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8290 if test -n "$ac_ct_DSYMUTIL"; then
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8292 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8293 else
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 printf "%s\n" "no" >&6; }
8296 fi
8297
8298 if test "x$ac_ct_DSYMUTIL" = x; then
8299 DSYMUTIL=":"
8300 else
8301 case $cross_compiling:$ac_tool_warned in
8302 yes:)
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8305 ac_tool_warned=yes ;;
8306 esac
8307 DSYMUTIL=$ac_ct_DSYMUTIL
8308 fi
8309 else
8310 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8311 fi
8312
8313 if test -n "$ac_tool_prefix"; then
8314 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8315 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 printf %s "checking for $ac_word... " >&6; }
8318 if test ${ac_cv_prog_NMEDIT+y}
8319 then :
8320 printf %s "(cached) " >&6
8321 else case e in #(
8322 e) if test -n "$NMEDIT"; then
8323 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328 IFS=$as_save_IFS
8329 case $as_dir in #(((
8330 '') as_dir=./ ;;
8331 */) ;;
8332 *) as_dir=$as_dir/ ;;
8333 esac
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8336 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340 done
8341 done
8342 IFS=$as_save_IFS
8343
8344 fi ;;
8345 esac
8346 fi
8347 NMEDIT=$ac_cv_prog_NMEDIT
8348 if test -n "$NMEDIT"; then
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8350 printf "%s\n" "$NMEDIT" >&6; }
8351 else
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 printf "%s\n" "no" >&6; }
8354 fi
8355
8356
8357 fi
8358 if test -z "$ac_cv_prog_NMEDIT"; then
8359 ac_ct_NMEDIT=$NMEDIT
8360 # Extract the first word of "nmedit", so it can be a program name with args.
8361 set dummy nmedit; ac_word=$2
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 printf %s "checking for $ac_word... " >&6; }
8364 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8365 then :
8366 printf %s "(cached) " >&6
8367 else case e in #(
8368 e) if test -n "$ac_ct_NMEDIT"; then
8369 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 case $as_dir in #(((
8376 '') as_dir=./ ;;
8377 */) ;;
8378 *) as_dir=$as_dir/ ;;
8379 esac
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390 fi ;;
8391 esac
8392 fi
8393 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8394 if test -n "$ac_ct_NMEDIT"; then
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8396 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8397 else
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 printf "%s\n" "no" >&6; }
8400 fi
8401
8402 if test "x$ac_ct_NMEDIT" = x; then
8403 NMEDIT=":"
8404 else
8405 case $cross_compiling:$ac_tool_warned in
8406 yes:)
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409 ac_tool_warned=yes ;;
8410 esac
8411 NMEDIT=$ac_ct_NMEDIT
8412 fi
8413 else
8414 NMEDIT="$ac_cv_prog_NMEDIT"
8415 fi
8416
8417 if test -n "$ac_tool_prefix"; then
8418 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8419 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 printf %s "checking for $ac_word... " >&6; }
8422 if test ${ac_cv_prog_LIPO+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else case e in #(
8426 e) if test -n "$LIPO"; then
8427 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432 IFS=$as_save_IFS
8433 case $as_dir in #(((
8434 '') as_dir=./ ;;
8435 */) ;;
8436 *) as_dir=$as_dir/ ;;
8437 esac
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8440 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8442 break 2
8443 fi
8444 done
8445 done
8446 IFS=$as_save_IFS
8447
8448 fi ;;
8449 esac
8450 fi
8451 LIPO=$ac_cv_prog_LIPO
8452 if test -n "$LIPO"; then
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8454 printf "%s\n" "$LIPO" >&6; }
8455 else
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 printf "%s\n" "no" >&6; }
8458 fi
8459
8460
8461 fi
8462 if test -z "$ac_cv_prog_LIPO"; then
8463 ac_ct_LIPO=$LIPO
8464 # Extract the first word of "lipo", so it can be a program name with args.
8465 set dummy lipo; ac_word=$2
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 printf %s "checking for $ac_word... " >&6; }
8468 if test ${ac_cv_prog_ac_ct_LIPO+y}
8469 then :
8470 printf %s "(cached) " >&6
8471 else case e in #(
8472 e) if test -n "$ac_ct_LIPO"; then
8473 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478 IFS=$as_save_IFS
8479 case $as_dir in #(((
8480 '') as_dir=./ ;;
8481 */) ;;
8482 *) as_dir=$as_dir/ ;;
8483 esac
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_ac_ct_LIPO="lipo"
8487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493
8494 fi ;;
8495 esac
8496 fi
8497 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8498 if test -n "$ac_ct_LIPO"; then
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8500 printf "%s\n" "$ac_ct_LIPO" >&6; }
8501 else
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 printf "%s\n" "no" >&6; }
8504 fi
8505
8506 if test "x$ac_ct_LIPO" = x; then
8507 LIPO=":"
8508 else
8509 case $cross_compiling:$ac_tool_warned in
8510 yes:)
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8512 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8513 ac_tool_warned=yes ;;
8514 esac
8515 LIPO=$ac_ct_LIPO
8516 fi
8517 else
8518 LIPO="$ac_cv_prog_LIPO"
8519 fi
8520
8521 if test -n "$ac_tool_prefix"; then
8522 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8523 set dummy ${ac_tool_prefix}otool; ac_word=$2
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 printf %s "checking for $ac_word... " >&6; }
8526 if test ${ac_cv_prog_OTOOL+y}
8527 then :
8528 printf %s "(cached) " >&6
8529 else case e in #(
8530 e) if test -n "$OTOOL"; then
8531 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536 IFS=$as_save_IFS
8537 case $as_dir in #(((
8538 '') as_dir=./ ;;
8539 */) ;;
8540 *) as_dir=$as_dir/ ;;
8541 esac
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548 done
8549 done
8550 IFS=$as_save_IFS
8551
8552 fi ;;
8553 esac
8554 fi
8555 OTOOL=$ac_cv_prog_OTOOL
8556 if test -n "$OTOOL"; then
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8558 printf "%s\n" "$OTOOL" >&6; }
8559 else
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 printf "%s\n" "no" >&6; }
8562 fi
8563
8564
8565 fi
8566 if test -z "$ac_cv_prog_OTOOL"; then
8567 ac_ct_OTOOL=$OTOOL
8568 # Extract the first word of "otool", so it can be a program name with args.
8569 set dummy otool; ac_word=$2
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 printf %s "checking for $ac_word... " >&6; }
8572 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8573 then :
8574 printf %s "(cached) " >&6
8575 else case e in #(
8576 e) if test -n "$ac_ct_OTOOL"; then
8577 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8578 else
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8581 do
8582 IFS=$as_save_IFS
8583 case $as_dir in #(((
8584 '') as_dir=./ ;;
8585 */) ;;
8586 *) as_dir=$as_dir/ ;;
8587 esac
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8590 ac_cv_prog_ac_ct_OTOOL="otool"
8591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8592 break 2
8593 fi
8594 done
8595 done
8596 IFS=$as_save_IFS
8597
8598 fi ;;
8599 esac
8600 fi
8601 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8602 if test -n "$ac_ct_OTOOL"; then
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8604 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8605 else
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 printf "%s\n" "no" >&6; }
8608 fi
8609
8610 if test "x$ac_ct_OTOOL" = x; then
8611 OTOOL=":"
8612 else
8613 case $cross_compiling:$ac_tool_warned in
8614 yes:)
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8616 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8617 ac_tool_warned=yes ;;
8618 esac
8619 OTOOL=$ac_ct_OTOOL
8620 fi
8621 else
8622 OTOOL="$ac_cv_prog_OTOOL"
8623 fi
8624
8625 if test -n "$ac_tool_prefix"; then
8626 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8627 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 printf %s "checking for $ac_word... " >&6; }
8630 if test ${ac_cv_prog_OTOOL64+y}
8631 then :
8632 printf %s "(cached) " >&6
8633 else case e in #(
8634 e) if test -n "$OTOOL64"; then
8635 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8636 else
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in $PATH
8639 do
8640 IFS=$as_save_IFS
8641 case $as_dir in #(((
8642 '') as_dir=./ ;;
8643 */) ;;
8644 *) as_dir=$as_dir/ ;;
8645 esac
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8648 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8650 break 2
8651 fi
8652 done
8653 done
8654 IFS=$as_save_IFS
8655
8656 fi ;;
8657 esac
8658 fi
8659 OTOOL64=$ac_cv_prog_OTOOL64
8660 if test -n "$OTOOL64"; then
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8662 printf "%s\n" "$OTOOL64" >&6; }
8663 else
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 printf "%s\n" "no" >&6; }
8666 fi
8667
8668
8669 fi
8670 if test -z "$ac_cv_prog_OTOOL64"; then
8671 ac_ct_OTOOL64=$OTOOL64
8672 # Extract the first word of "otool64", so it can be a program name with args.
8673 set dummy otool64; ac_word=$2
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 printf %s "checking for $ac_word... " >&6; }
8676 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8677 then :
8678 printf %s "(cached) " >&6
8679 else case e in #(
8680 e) if test -n "$ac_ct_OTOOL64"; then
8681 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686 IFS=$as_save_IFS
8687 case $as_dir in #(((
8688 '') as_dir=./ ;;
8689 */) ;;
8690 *) as_dir=$as_dir/ ;;
8691 esac
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8694 ac_cv_prog_ac_ct_OTOOL64="otool64"
8695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8696 break 2
8697 fi
8698 done
8699 done
8700 IFS=$as_save_IFS
8701
8702 fi ;;
8703 esac
8704 fi
8705 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8706 if test -n "$ac_ct_OTOOL64"; then
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8708 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8709 else
8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 printf "%s\n" "no" >&6; }
8712 fi
8713
8714 if test "x$ac_ct_OTOOL64" = x; then
8715 OTOOL64=":"
8716 else
8717 case $cross_compiling:$ac_tool_warned in
8718 yes:)
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8720 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8721 ac_tool_warned=yes ;;
8722 esac
8723 OTOOL64=$ac_ct_OTOOL64
8724 fi
8725 else
8726 OTOOL64="$ac_cv_prog_OTOOL64"
8727 fi
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8756 printf %s "checking for -single_module linker flag... " >&6; }
8757 if test ${lt_cv_apple_cc_single_mod+y}
8758 then :
8759 printf %s "(cached) " >&6
8760 else case e in #(
8761 e) lt_cv_apple_cc_single_mod=no
8762 if test -z "$LT_MULTI_MODULE"; then
8763 # By default we will add the -single_module flag. You can override
8764 # by either setting the environment variable LT_MULTI_MODULE
8765 # non-empty at configure time, or by adding -multi_module to the
8766 # link flags.
8767 rm -rf libconftest.dylib*
8768 echo "int foo(void){return 1;}" > conftest.c
8769 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8770 -dynamiclib -Wl,-single_module conftest.c" >&5
8771 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8772 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8773 _lt_result=$?
8774 # If there is a non-empty error log, and "single_module"
8775 # appears in it, assume the flag caused a linker warning
8776 if test -s conftest.err && $GREP single_module conftest.err; then
8777 cat conftest.err >&5
8778 # Otherwise, if the output was created with a 0 exit code from
8779 # the compiler, it worked.
8780 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8781 lt_cv_apple_cc_single_mod=yes
8782 else
8783 cat conftest.err >&5
8784 fi
8785 rm -rf libconftest.dylib*
8786 rm -f conftest.*
8787 fi ;;
8788 esac
8789 fi
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8791 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8792
8793 # Feature test to disable chained fixups since it is not
8794 # compatible with '-undefined dynamic_lookup'
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8796 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8797 if test ${lt_cv_support_no_fixup_chains+y}
8798 then :
8799 printf %s "(cached) " >&6
8800 else case e in #(
8801 e) save_LDFLAGS=$LDFLAGS
8802 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805
8806 int
8807 main (void)
8808 {
8809
8810 ;
8811 return 0;
8812 }
8813 _ACEOF
8814 if ac_fn_c_try_link "$LINENO"
8815 then :
8816 lt_cv_support_no_fixup_chains=yes
8817 else case e in #(
8818 e) lt_cv_support_no_fixup_chains=no
8819 ;;
8820 esac
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LDFLAGS=$save_LDFLAGS
8825
8826 ;;
8827 esac
8828 fi
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8830 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8831
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8833 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8834 if test ${lt_cv_ld_exported_symbols_list+y}
8835 then :
8836 printf %s "(cached) " >&6
8837 else case e in #(
8838 e) lt_cv_ld_exported_symbols_list=no
8839 save_LDFLAGS=$LDFLAGS
8840 echo "_main" > conftest.sym
8841 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8844
8845 int
8846 main (void)
8847 {
8848
8849 ;
8850 return 0;
8851 }
8852 _ACEOF
8853 if ac_fn_c_try_link "$LINENO"
8854 then :
8855 lt_cv_ld_exported_symbols_list=yes
8856 else case e in #(
8857 e) lt_cv_ld_exported_symbols_list=no ;;
8858 esac
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8861 conftest$ac_exeext conftest.$ac_ext
8862 LDFLAGS=$save_LDFLAGS
8863 ;;
8864 esac
8865 fi
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8867 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8868
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8870 printf %s "checking for -force_load linker flag... " >&6; }
8871 if test ${lt_cv_ld_force_load+y}
8872 then :
8873 printf %s "(cached) " >&6
8874 else case e in #(
8875 e) lt_cv_ld_force_load=no
8876 cat > conftest.c << _LT_EOF
8877 int forced_loaded() { return 2;}
8878 _LT_EOF
8879 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8880 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8881 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8882 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8883 echo "$RANLIB libconftest.a" >&5
8884 $RANLIB libconftest.a 2>&5
8885 cat > conftest.c << _LT_EOF
8886 int main(void) { return 0;}
8887 _LT_EOF
8888 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8889 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8890 _lt_result=$?
8891 if test -s conftest.err && $GREP force_load conftest.err; then
8892 cat conftest.err >&5
8893 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8894 lt_cv_ld_force_load=yes
8895 else
8896 cat conftest.err >&5
8897 fi
8898 rm -f conftest.err libconftest.a conftest conftest.c
8899 rm -rf conftest.dSYM
8900 ;;
8901 esac
8902 fi
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8904 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8905 case $host_os in
8906 rhapsody* | darwin1.[012])
8907 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8908 darwin1.*)
8909 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8910 darwin*)
8911 case $MACOSX_DEPLOYMENT_TARGET,$host in
8912 10.[012],*|,*powerpc*-darwin[5-8]*)
8913 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8914 *)
8915 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8916 if test yes = "$lt_cv_support_no_fixup_chains"; then
8917 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8918 fi
8919 ;;
8920 esac
8921 ;;
8922 esac
8923 if test yes = "$lt_cv_apple_cc_single_mod"; then
8924 _lt_dar_single_mod='$single_module'
8925 fi
8926 _lt_dar_needs_single_mod=no
8927 case $host_os in
8928 rhapsody* | darwin1.*)
8929 _lt_dar_needs_single_mod=yes ;;
8930 darwin*)
8931 # When targeting Mac OS X 10.4 (darwin 8) or later,
8932 # -single_module is the default and -multi_module is unsupported.
8933 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8934 # target any OS version that needs -single_module.
8935 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8936 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8937 _lt_dar_needs_single_mod=yes ;;
8938 esac
8939 ;;
8940 esac
8941 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8942 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8943 else
8944 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8945 fi
8946 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8947 _lt_dsymutil='~$DSYMUTIL $lib || :'
8948 else
8949 _lt_dsymutil=
8950 fi
8951 ;;
8952 esac
8953
8954 # func_munge_path_list VARIABLE PATH
8955 # -----------------------------------
8956 # VARIABLE is name of variable containing _space_ separated list of
8957 # directories to be munged by the contents of PATH, which is string
8958 # having a format:
8959 # "DIR[:DIR]:"
8960 # string "DIR[ DIR]" will be prepended to VARIABLE
8961 # ":DIR[:DIR]"
8962 # string "DIR[ DIR]" will be appended to VARIABLE
8963 # "DIRP[:DIRP]::[DIRA:]DIRA"
8964 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8965 # "DIRA[ DIRA]" will be appended to VARIABLE
8966 # "DIR[:DIR]"
8967 # VARIABLE will be replaced by "DIR[ DIR]"
8968 func_munge_path_list ()
8969 {
8970 case x$2 in
8971 x)
8972 ;;
8973 *:)
8974 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8975 ;;
8976 x:*)
8977 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8978 ;;
8979 *::*)
8980 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8981 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8982 ;;
8983 *)
8984 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8985 ;;
8986 esac
8987 }
8988
8989 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8990 "
8991 if test "x$ac_cv_header_dlfcn_h" = xyes
8992 then :
8993 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8994
8995 fi
8996
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8998 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8999 if test ${ac_cv_c_undeclared_builtin_options+y}
9000 then :
9001 printf %s "(cached) " >&6
9002 else case e in #(
9003 e) ac_save_CFLAGS=$CFLAGS
9004 ac_cv_c_undeclared_builtin_options='cannot detect'
9005 for ac_arg in '' -fno-builtin; do
9006 CFLAGS="$ac_save_CFLAGS $ac_arg"
9007 # This test program should *not* compile successfully.
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010
9011 int
9012 main (void)
9013 {
9014 (void) strchr;
9015 ;
9016 return 0;
9017 }
9018 _ACEOF
9019 if ac_fn_c_try_compile "$LINENO"
9020 then :
9021
9022 else case e in #(
9023 e) # This test program should compile successfully.
9024 # No library function is consistently available on
9025 # freestanding implementations, so test against a dummy
9026 # declaration. Include always-available headers on the
9027 # off chance that they somehow elicit warnings.
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030 #include <float.h>
9031 #include <limits.h>
9032 #include <stdarg.h>
9033 #include <stddef.h>
9034 extern void ac_decl (int, char *);
9035
9036 int
9037 main (void)
9038 {
9039 (void) ac_decl (0, (char *) 0);
9040 (void) ac_decl;
9041
9042 ;
9043 return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_c_try_compile "$LINENO"
9047 then :
9048 if test x"$ac_arg" = x
9049 then :
9050 ac_cv_c_undeclared_builtin_options='none needed'
9051 else case e in #(
9052 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9053 esac
9054 fi
9055 break
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9058 esac
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9061 done
9062 CFLAGS=$ac_save_CFLAGS
9063 ;;
9064 esac
9065 fi
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9067 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9068 case $ac_cv_c_undeclared_builtin_options in #(
9069 'cannot detect') :
9070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9071 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9072 as_fn_error $? "cannot make $CC report undeclared builtins
9073 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9074 'none needed') :
9075 ac_c_undeclared_builtin_options='' ;; #(
9076 *) :
9077 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9078 esac
9079
9080 echo 'tldbg:KPSE_COMMON called (pkg=dvipng, amopt=)' >&5
9081 echo 'tldbg:KPSE_BASIC called (pkg=dvipng, amopt=)' >&5
9082
9083 #
9084 # am_init_automake
9085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9086 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9087 # is not polluted with repeated "-I."
9088 am__isrc=' -I$(srcdir)'
9089 # test to see if srcdir already configured
9090 if test -f $srcdir/config.status; then
9091 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9092 fi
9093 fi
9094
9095 # test whether we have cygpath
9096 if test -z "$CYGPATH_W"; then
9097 if (cygpath --version) >/dev/null 2>/dev/null; then
9098 CYGPATH_W='cygpath -w'
9099 else
9100 CYGPATH_W=echo
9101 fi
9102 fi
9103
9104
9105 # Define the identity of the package.
9106 PACKAGE='dvipng--tex-live-'
9107 VERSION='1.18'
9108
9109
9110 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9111
9112
9113 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9114
9115 # Some tools Automake needs.
9116
9117 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9118
9119
9120 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9121
9122
9123 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9124
9125
9126 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9127
9128
9129 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9130
9131 # For better backward compatibility. To be removed once Automake 1.9.x
9132 # dies out for good. For more background, see:
9133 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9134 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9135 mkdir_p='$(MKDIR_P)'
9136
9137 # We need awk for the "check" target (and possibly the TAP driver). The
9138 # system "awk" is bad on some platforms.
9139 # Always define AMTAR for backward compatibility. Yes, it's still used
9140 # in the wild :-( We should find a proper way to deprecate it ...
9141 AMTAR='$${TAR-tar}'
9142
9143
9144 # We'll loop over all known methods to create a tar archive until one works.
9145 _am_tools='gnutar plaintar pax cpio none'
9146
9147 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9148 # There is notably a 21 bits limit for the UID and the GID. In fact,
9149 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9150 # and bug#13588).
9151 am_max_uid=2097151 # 2^21 - 1
9152 am_max_gid=$am_max_uid
9153 # The $UID and $GID variables are not portable, so we need to resort
9154 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9155 # below are definitely unexpected, so allow the users to see them
9156 # (that is, avoid stderr redirection).
9157 am_uid=`id -u || echo unknown`
9158 am_gid=`id -g || echo unknown`
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9160 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9161 if test x$am_uid = xunknown; then
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9163 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9164 elif test $am_uid -le $am_max_uid; then
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9166 printf "%s\n" "yes" >&6; }
9167 else
9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 printf "%s\n" "no" >&6; }
9170 _am_tools=none
9171 fi
9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9173 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9174 if test x$gm_gid = xunknown; then
9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9176 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9177 elif test $am_gid -le $am_max_gid; then
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9179 printf "%s\n" "yes" >&6; }
9180 else
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 printf "%s\n" "no" >&6; }
9183 _am_tools=none
9184 fi
9185
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9187 printf %s "checking how to create a ustar tar archive... " >&6; }
9188
9189 # Go ahead even if we have the value already cached. We do so because we
9190 # need to set the values for the 'am__tar' and 'am__untar' variables.
9191 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9192
9193 for _am_tool in $_am_tools; do
9194 case $_am_tool in
9195 gnutar)
9196 for _am_tar in tar gnutar gtar; do
9197 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9198 ($_am_tar --version) >&5 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } && break
9202 done
9203 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9204 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9205 am__untar="$_am_tar -xf -"
9206 ;;
9207 plaintar)
9208 # Must skip GNU tar: if it does not support --format= it doesn't create
9209 # ustar tarball either.
9210 (tar --version) >/dev/null 2>&1 && continue
9211 am__tar='tar chf - "$$tardir"'
9212 am__tar_='tar chf - "$tardir"'
9213 am__untar='tar xf -'
9214 ;;
9215 pax)
9216 am__tar='pax -L -x ustar -w "$$tardir"'
9217 am__tar_='pax -L -x ustar -w "$tardir"'
9218 am__untar='pax -r'
9219 ;;
9220 cpio)
9221 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9222 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9223 am__untar='cpio -i -H ustar -d'
9224 ;;
9225 none)
9226 am__tar=false
9227 am__tar_=false
9228 am__untar=false
9229 ;;
9230 esac
9231
9232 # If the value was cached, stop now. We just wanted to have am__tar
9233 # and am__untar set.
9234 test -n "${am_cv_prog_tar_ustar}" && break
9235
9236 # tar/untar a dummy directory, and stop if the command works.
9237 rm -rf conftest.dir
9238 mkdir conftest.dir
9239 echo GrepMe > conftest.dir/file
9240 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9241 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }
9245 rm -rf conftest.dir
9246 if test -s conftest.tar; then
9247 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9248 ($am__untar <conftest.tar) >&5 2>&5
9249 ac_status=$?
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }
9252 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9253 (cat conftest.dir/file) >&5 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }
9257 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9258 fi
9259 done
9260 rm -rf conftest.dir
9261
9262 if test ${am_cv_prog_tar_ustar+y}
9263 then :
9264 printf %s "(cached) " >&6
9265 else case e in #(
9266 e) am_cv_prog_tar_ustar=$_am_tool ;;
9267 esac
9268 fi
9269
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9271 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9272
9273
9274
9275
9276
9277 # Variables for tags utilities; see am/tags.am
9278 if test -z "$CTAGS"; then
9279 CTAGS=ctags
9280 fi
9281
9282 if test -z "$ETAGS"; then
9283 ETAGS=etags
9284 fi
9285
9286 if test -z "$CSCOPE"; then
9287 CSCOPE=cscope
9288 fi
9289
9290
9291
9292
9293
9294
9295
9296
9297 # am_maintainer_mode
9298
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9300 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9301 # Check whether --enable-maintainer-mode was given.
9302 if test ${enable_maintainer_mode+y}
9303 then :
9304 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9305 else case e in #(
9306 e) USE_MAINTAINER_MODE=no ;;
9307 esac
9308 fi
9309
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9311 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9312 if test $USE_MAINTAINER_MODE = yes; then
9313 MAINTAINER_MODE_TRUE=
9314 MAINTAINER_MODE_FALSE='#'
9315 else
9316 MAINTAINER_MODE_TRUE='#'
9317 MAINTAINER_MODE_FALSE=
9318 fi
9319
9320 MAINT=$MAINTAINER_MODE_TRUE
9321
9322
9323
9324 # See comments in kpse-setup.m4 about system extensions.
9325
9326
9327 # Check whether prototypes work.
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9329 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9330 if test ${kb_cv_c_prototypes+y}
9331 then :
9332 printf %s "(cached) " >&6
9333 else case e in #(
9334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 #include <stdarg.h>
9337 int
9338 main (void)
9339 {
9340 extern void foo(int i,...);
9341 ;
9342 return 0;
9343 }
9344 _ACEOF
9345 if ac_fn_c_try_link "$LINENO"
9346 then :
9347 kb_cv_c_prototypes=yes
9348 else case e in #(
9349 e) kb_cv_c_prototypes=no ;;
9350 esac
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9353 conftest$ac_exeext conftest.$ac_ext ;;
9354 esac
9355 fi
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9357 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9358 if test "x$kb_cv_c_prototypes" = xno; then
9359 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9360 fi
9361
9362 # kpse_compiler_warnings options.
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9364 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9365 if test ${kpse_cv_warning_cflags+y}
9366 then :
9367 printf %s "(cached) " >&6
9368 else case e in #(
9369 e) if test "x$GCC" = xyes; then
9370 kpse_cv_warning_cflags=
9371 if test "x$enable_compiler_warnings" != xno; then
9372 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9373 case `$CC -dumpversion` in #(
9374 3.4.* | 4.* | 5.*) :
9375 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9376 *) :
9377 ;;
9378 esac
9379 case `$CC -dumpversion` in #(
9380 3.[234].* | 4.* | 5.*) :
9381 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9382 *) :
9383 ;;
9384 esac
9385 if test "x$enable_compiler_warnings" != xmin; then
9386 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9387 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9388 if test "x$enable_compiler_warnings" != xyes; then
9389 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9390 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9391 case `$CC -dumpversion` in #(
9392 3.4.* | 4.* | 5.*) :
9393 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9394 *) :
9395 ;;
9396 esac
9397 if test "x$enable_compiler_warnings" != xmax; then
9398 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9399 fi
9400 fi
9401 fi
9402 fi
9403 elif test "x$enable_compiler_warnings" = xno; then
9404 kpse_cv_warning_cflags=
9405 else
9406 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9407 fi ;;
9408 esac
9409 fi
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9411 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9412 WARNING_CFLAGS=$kpse_cv_warning_cflags
9413
9414
9415
9416
9417
9418
9419
9420 # end of kpse_basic macro.
9421 echo 'tldbg:KPSE_BASIC done (pkg=dvipng, amopt=)' >&5
9422
9423 # am_prog_ar must be called before lt_init.
9424
9425 if test -n "$ac_tool_prefix"; then
9426 for ac_prog in ar lib "link -lib"
9427 do
9428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 printf %s "checking for $ac_word... " >&6; }
9432 if test ${ac_cv_prog_AR+y}
9433 then :
9434 printf %s "(cached) " >&6
9435 else case e in #(
9436 e) if test -n "$AR"; then
9437 ac_cv_prog_AR="$AR" # Let the user override the test.
9438 else
9439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440 for as_dir in $PATH
9441 do
9442 IFS=$as_save_IFS
9443 case $as_dir in #(((
9444 '') as_dir=./ ;;
9445 */) ;;
9446 *) as_dir=$as_dir/ ;;
9447 esac
9448 for ac_exec_ext in '' $ac_executable_extensions; do
9449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9450 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9452 break 2
9453 fi
9454 done
9455 done
9456 IFS=$as_save_IFS
9457
9458 fi ;;
9459 esac
9460 fi
9461 AR=$ac_cv_prog_AR
9462 if test -n "$AR"; then
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9464 printf "%s\n" "$AR" >&6; }
9465 else
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9467 printf "%s\n" "no" >&6; }
9468 fi
9469
9470
9471 test -n "$AR" && break
9472 done
9473 fi
9474 if test -z "$AR"; then
9475 ac_ct_AR=$AR
9476 for ac_prog in ar lib "link -lib"
9477 do
9478 # Extract the first word of "$ac_prog", so it can be a program name with args.
9479 set dummy $ac_prog; ac_word=$2
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481 printf %s "checking for $ac_word... " >&6; }
9482 if test ${ac_cv_prog_ac_ct_AR+y}
9483 then :
9484 printf %s "(cached) " >&6
9485 else case e in #(
9486 e) if test -n "$ac_ct_AR"; then
9487 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9488 else
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 for as_dir in $PATH
9491 do
9492 IFS=$as_save_IFS
9493 case $as_dir in #(((
9494 '') as_dir=./ ;;
9495 */) ;;
9496 *) as_dir=$as_dir/ ;;
9497 esac
9498 for ac_exec_ext in '' $ac_executable_extensions; do
9499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9500 ac_cv_prog_ac_ct_AR="$ac_prog"
9501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9502 break 2
9503 fi
9504 done
9505 done
9506 IFS=$as_save_IFS
9507
9508 fi ;;
9509 esac
9510 fi
9511 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9512 if test -n "$ac_ct_AR"; then
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9514 printf "%s\n" "$ac_ct_AR" >&6; }
9515 else
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 printf "%s\n" "no" >&6; }
9518 fi
9519
9520
9521 test -n "$ac_ct_AR" && break
9522 done
9523
9524 if test "x$ac_ct_AR" = x; then
9525 AR="false"
9526 else
9527 case $cross_compiling:$ac_tool_warned in
9528 yes:)
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9530 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9531 ac_tool_warned=yes ;;
9532 esac
9533 AR=$ac_ct_AR
9534 fi
9535 fi
9536
9537 : ${AR=ar}
9538 : ${ARFLAGS=cr}
9539
9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9541 printf %s "checking the archiver ($AR) interface... " >&6; }
9542 if test ${am_cv_ar_interface+y}
9543 then :
9544 printf %s "(cached) " >&6
9545 else case e in #(
9546 e) ac_ext=c
9547 ac_cpp='$CPP $CPPFLAGS'
9548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9551
9552 am_cv_ar_interface=ar
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555 int some_variable = 0;
9556 _ACEOF
9557 if ac_fn_c_try_compile "$LINENO"
9558 then :
9559 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9561 (eval $am_ar_try) 2>&5
9562 ac_status=$?
9563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9564 test $ac_status = 0; }
9565 if test "$ac_status" -eq 0; then
9566 am_cv_ar_interface=ar
9567 else
9568 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9570 (eval $am_ar_try) 2>&5
9571 ac_status=$?
9572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9573 test $ac_status = 0; }
9574 if test "$ac_status" -eq 0; then
9575 am_cv_ar_interface=lib
9576 else
9577 am_cv_ar_interface=unknown
9578 fi
9579 fi
9580 rm -f conftest.lib libconftest.a
9581
9582 fi
9583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9584 ac_ext=c
9585 ac_cpp='$CPP $CPPFLAGS'
9586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9589 ;;
9590 esac
9591 fi
9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9593 printf "%s\n" "$am_cv_ar_interface" >&6; }
9594
9595 case $am_cv_ar_interface in
9596 ar)
9597 ;;
9598 lib)
9599 # Microsoft lib, so override with the ar-lib wrapper script.
9600 # FIXME: It is wrong to rewrite AR.
9601 # But if we don't then we get into trouble of one sort or another.
9602 # A longer-term fix would be to have automake use am__AR in this case,
9603 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9604 # similar.
9605 AR="$am_aux_dir/ar-lib $AR"
9606 ;;
9607 unknown)
9608 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9609 ;;
9610 esac
9611
9612 # (end am_prog_ar)
9613 # starting lt_prereq + lt_init.
9614
9615
9616
9617
9618
9619 # Set options
9620 enable_win32_dll=yes
9621
9622 case $host in
9623 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9624 if test -n "$ac_tool_prefix"; then
9625 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9626 set dummy ${ac_tool_prefix}as; ac_word=$2
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628 printf %s "checking for $ac_word... " >&6; }
9629 if test ${ac_cv_prog_AS+y}
9630 then :
9631 printf %s "(cached) " >&6
9632 else case e in #(
9633 e) if test -n "$AS"; then
9634 ac_cv_prog_AS="$AS" # Let the user override the test.
9635 else
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9638 do
9639 IFS=$as_save_IFS
9640 case $as_dir in #(((
9641 '') as_dir=./ ;;
9642 */) ;;
9643 *) as_dir=$as_dir/ ;;
9644 esac
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9647 ac_cv_prog_AS="${ac_tool_prefix}as"
9648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9649 break 2
9650 fi
9651 done
9652 done
9653 IFS=$as_save_IFS
9654
9655 fi ;;
9656 esac
9657 fi
9658 AS=$ac_cv_prog_AS
9659 if test -n "$AS"; then
9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9661 printf "%s\n" "$AS" >&6; }
9662 else
9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 printf "%s\n" "no" >&6; }
9665 fi
9666
9667
9668 fi
9669 if test -z "$ac_cv_prog_AS"; then
9670 ac_ct_AS=$AS
9671 # Extract the first word of "as", so it can be a program name with args.
9672 set dummy as; ac_word=$2
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 printf %s "checking for $ac_word... " >&6; }
9675 if test ${ac_cv_prog_ac_ct_AS+y}
9676 then :
9677 printf %s "(cached) " >&6
9678 else case e in #(
9679 e) if test -n "$ac_ct_AS"; then
9680 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9681 else
9682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9683 for as_dir in $PATH
9684 do
9685 IFS=$as_save_IFS
9686 case $as_dir in #(((
9687 '') as_dir=./ ;;
9688 */) ;;
9689 *) as_dir=$as_dir/ ;;
9690 esac
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9693 ac_cv_prog_ac_ct_AS="as"
9694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9695 break 2
9696 fi
9697 done
9698 done
9699 IFS=$as_save_IFS
9700
9701 fi ;;
9702 esac
9703 fi
9704 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9705 if test -n "$ac_ct_AS"; then
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9707 printf "%s\n" "$ac_ct_AS" >&6; }
9708 else
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 printf "%s\n" "no" >&6; }
9711 fi
9712
9713 if test "x$ac_ct_AS" = x; then
9714 AS="false"
9715 else
9716 case $cross_compiling:$ac_tool_warned in
9717 yes:)
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9720 ac_tool_warned=yes ;;
9721 esac
9722 AS=$ac_ct_AS
9723 fi
9724 else
9725 AS="$ac_cv_prog_AS"
9726 fi
9727
9728 if test -n "$ac_tool_prefix"; then
9729 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9730 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 printf %s "checking for $ac_word... " >&6; }
9733 if test ${ac_cv_prog_DLLTOOL+y}
9734 then :
9735 printf %s "(cached) " >&6
9736 else case e in #(
9737 e) if test -n "$DLLTOOL"; then
9738 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9739 else
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9742 do
9743 IFS=$as_save_IFS
9744 case $as_dir in #(((
9745 '') as_dir=./ ;;
9746 */) ;;
9747 *) as_dir=$as_dir/ ;;
9748 esac
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9751 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9753 break 2
9754 fi
9755 done
9756 done
9757 IFS=$as_save_IFS
9758
9759 fi ;;
9760 esac
9761 fi
9762 DLLTOOL=$ac_cv_prog_DLLTOOL
9763 if test -n "$DLLTOOL"; then
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9765 printf "%s\n" "$DLLTOOL" >&6; }
9766 else
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 printf "%s\n" "no" >&6; }
9769 fi
9770
9771
9772 fi
9773 if test -z "$ac_cv_prog_DLLTOOL"; then
9774 ac_ct_DLLTOOL=$DLLTOOL
9775 # Extract the first word of "dlltool", so it can be a program name with args.
9776 set dummy dlltool; ac_word=$2
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778 printf %s "checking for $ac_word... " >&6; }
9779 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9780 then :
9781 printf %s "(cached) " >&6
9782 else case e in #(
9783 e) if test -n "$ac_ct_DLLTOOL"; then
9784 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9785 else
9786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787 for as_dir in $PATH
9788 do
9789 IFS=$as_save_IFS
9790 case $as_dir in #(((
9791 '') as_dir=./ ;;
9792 */) ;;
9793 *) as_dir=$as_dir/ ;;
9794 esac
9795 for ac_exec_ext in '' $ac_executable_extensions; do
9796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9797 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9799 break 2
9800 fi
9801 done
9802 done
9803 IFS=$as_save_IFS
9804
9805 fi ;;
9806 esac
9807 fi
9808 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9809 if test -n "$ac_ct_DLLTOOL"; then
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9811 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9812 else
9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 printf "%s\n" "no" >&6; }
9815 fi
9816
9817 if test "x$ac_ct_DLLTOOL" = x; then
9818 DLLTOOL="false"
9819 else
9820 case $cross_compiling:$ac_tool_warned in
9821 yes:)
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9823 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9824 ac_tool_warned=yes ;;
9825 esac
9826 DLLTOOL=$ac_ct_DLLTOOL
9827 fi
9828 else
9829 DLLTOOL="$ac_cv_prog_DLLTOOL"
9830 fi
9831
9832 if test -n "$ac_tool_prefix"; then
9833 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9834 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 printf %s "checking for $ac_word... " >&6; }
9837 if test ${ac_cv_prog_OBJDUMP+y}
9838 then :
9839 printf %s "(cached) " >&6
9840 else case e in #(
9841 e) if test -n "$OBJDUMP"; then
9842 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9843 else
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9846 do
9847 IFS=$as_save_IFS
9848 case $as_dir in #(((
9849 '') as_dir=./ ;;
9850 */) ;;
9851 *) as_dir=$as_dir/ ;;
9852 esac
9853 for ac_exec_ext in '' $ac_executable_extensions; do
9854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9855 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9857 break 2
9858 fi
9859 done
9860 done
9861 IFS=$as_save_IFS
9862
9863 fi ;;
9864 esac
9865 fi
9866 OBJDUMP=$ac_cv_prog_OBJDUMP
9867 if test -n "$OBJDUMP"; then
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9869 printf "%s\n" "$OBJDUMP" >&6; }
9870 else
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 printf "%s\n" "no" >&6; }
9873 fi
9874
9875
9876 fi
9877 if test -z "$ac_cv_prog_OBJDUMP"; then
9878 ac_ct_OBJDUMP=$OBJDUMP
9879 # Extract the first word of "objdump", so it can be a program name with args.
9880 set dummy objdump; ac_word=$2
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 printf %s "checking for $ac_word... " >&6; }
9883 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9884 then :
9885 printf %s "(cached) " >&6
9886 else case e in #(
9887 e) if test -n "$ac_ct_OBJDUMP"; then
9888 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9889 else
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 for as_dir in $PATH
9892 do
9893 IFS=$as_save_IFS
9894 case $as_dir in #(((
9895 '') as_dir=./ ;;
9896 */) ;;
9897 *) as_dir=$as_dir/ ;;
9898 esac
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9901 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9903 break 2
9904 fi
9905 done
9906 done
9907 IFS=$as_save_IFS
9908
9909 fi ;;
9910 esac
9911 fi
9912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9913 if test -n "$ac_ct_OBJDUMP"; then
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9915 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9916 else
9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 printf "%s\n" "no" >&6; }
9919 fi
9920
9921 if test "x$ac_ct_OBJDUMP" = x; then
9922 OBJDUMP="false"
9923 else
9924 case $cross_compiling:$ac_tool_warned in
9925 yes:)
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9928 ac_tool_warned=yes ;;
9929 esac
9930 OBJDUMP=$ac_ct_OBJDUMP
9931 fi
9932 else
9933 OBJDUMP="$ac_cv_prog_OBJDUMP"
9934 fi
9935
9936 ;;
9937 esac
9938
9939 test -z "$AS" && AS=as
9940
9941
9942
9943
9944
9945 test -z "$DLLTOOL" && DLLTOOL=dlltool
9946
9947
9948
9949
9950
9951 test -z "$OBJDUMP" && OBJDUMP=objdump
9952
9953
9954
9955
9956
9957
9958
9959 enable_dlopen=no
9960
9961
9962
9963 # Check whether --enable-shared was given.
9964 if test ${enable_shared+y}
9965 then :
9966 enableval=$enable_shared; p=${PACKAGE-default}
9967 case $enableval in
9968 yes) enable_shared=yes ;;
9969 no) enable_shared=no ;;
9970 *)
9971 enable_shared=no
9972 # Look at the argument we got. We use all the common list separators.
9973 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9974 for pkg in $enableval; do
9975 IFS=$lt_save_ifs
9976 if test "X$pkg" = "X$p"; then
9977 enable_shared=yes
9978 fi
9979 done
9980 IFS=$lt_save_ifs
9981 ;;
9982 esac
9983 else case e in #(
9984 e) enable_shared=yes ;;
9985 esac
9986 fi
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996 # Check whether --enable-static was given.
9997 if test ${enable_static+y}
9998 then :
9999 enableval=$enable_static; p=${PACKAGE-default}
10000 case $enableval in
10001 yes) enable_static=yes ;;
10002 no) enable_static=no ;;
10003 *)
10004 enable_static=no
10005 # Look at the argument we got. We use all the common list separators.
10006 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10007 for pkg in $enableval; do
10008 IFS=$lt_save_ifs
10009 if test "X$pkg" = "X$p"; then
10010 enable_static=yes
10011 fi
10012 done
10013 IFS=$lt_save_ifs
10014 ;;
10015 esac
10016 else case e in #(
10017 e) enable_static=yes ;;
10018 esac
10019 fi
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029 # Check whether --enable-pic was given.
10030 if test ${enable_pic+y}
10031 then :
10032 enableval=$enable_pic; lt_p=${PACKAGE-default}
10033 case $enableval in
10034 yes|no) pic_mode=$enableval ;;
10035 *)
10036 pic_mode=default
10037 # Look at the argument we got. We use all the common list separators.
10038 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10039 for lt_pkg in $enableval; do
10040 IFS=$lt_save_ifs
10041 if test "X$lt_pkg" = "X$lt_p"; then
10042 pic_mode=yes
10043 fi
10044 done
10045 IFS=$lt_save_ifs
10046 ;;
10047 esac
10048 else case e in #(
10049 e) # Check whether --with-pic was given.
10050 if test ${with_pic+y}
10051 then :
10052 withval=$with_pic; lt_p=${PACKAGE-default}
10053 case $withval in
10054 yes|no) pic_mode=$withval ;;
10055 *)
10056 pic_mode=default
10057 # Look at the argument we got. We use all the common list separators.
10058 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10059 for lt_pkg in $withval; do
10060 IFS=$lt_save_ifs
10061 if test "X$lt_pkg" = "X$lt_p"; then
10062 pic_mode=yes
10063 fi
10064 done
10065 IFS=$lt_save_ifs
10066 ;;
10067 esac
10068 else case e in #(
10069 e) pic_mode=default ;;
10070 esac
10071 fi
10072
10073 ;;
10074 esac
10075 fi
10076
10077
10078
10079
10080
10081
10082
10083
10084 # Check whether --enable-fast-install was given.
10085 if test ${enable_fast_install+y}
10086 then :
10087 enableval=$enable_fast_install; p=${PACKAGE-default}
10088 case $enableval in
10089 yes) enable_fast_install=yes ;;
10090 no) enable_fast_install=no ;;
10091 *)
10092 enable_fast_install=no
10093 # Look at the argument we got. We use all the common list separators.
10094 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10095 for pkg in $enableval; do
10096 IFS=$lt_save_ifs
10097 if test "X$pkg" = "X$p"; then
10098 enable_fast_install=yes
10099 fi
10100 done
10101 IFS=$lt_save_ifs
10102 ;;
10103 esac
10104 else case e in #(
10105 e) enable_fast_install=yes ;;
10106 esac
10107 fi
10108
10109
10110
10111
10112
10113
10114
10115
10116 shared_archive_member_spec=
10117 case $host,$enable_shared in
10118 power*-*-aix[5-9]*,yes)
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10120 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10121 # Check whether --enable-aix-soname was given.
10122 if test ${enable_aix_soname+y}
10123 then :
10124 enableval=$enable_aix_soname; case $enableval in
10125 aix|svr4|both)
10126 ;;
10127 *)
10128 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10129 ;;
10130 esac
10131 lt_cv_with_aix_soname=$enable_aix_soname
10132 else case e in #(
10133 e) # Check whether --with-aix-soname was given.
10134 if test ${with_aix_soname+y}
10135 then :
10136 withval=$with_aix_soname; case $withval in
10137 aix|svr4|both)
10138 ;;
10139 *)
10140 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10141 ;;
10142 esac
10143 lt_cv_with_aix_soname=$with_aix_soname
10144 else case e in #(
10145 e) if test ${lt_cv_with_aix_soname+y}
10146 then :
10147 printf %s "(cached) " >&6
10148 else case e in #(
10149 e) lt_cv_with_aix_soname=aix ;;
10150 esac
10151 fi
10152 ;;
10153 esac
10154 fi
10155
10156 enable_aix_soname=$lt_cv_with_aix_soname ;;
10157 esac
10158 fi
10159
10160 with_aix_soname=$enable_aix_soname
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10162 printf "%s\n" "$with_aix_soname" >&6; }
10163 if test aix != "$with_aix_soname"; then
10164 # For the AIX way of multilib, we name the shared archive member
10165 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10166 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10167 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10168 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10169 if test 64 = "${OBJECT_MODE-32}"; then
10170 shared_archive_member_spec=shr_64
10171 else
10172 shared_archive_member_spec=shr
10173 fi
10174 fi
10175 ;;
10176 *)
10177 with_aix_soname=aix
10178 ;;
10179 esac
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190 # This can be used to rebuild libtool when needed
10191 LIBTOOL_DEPS=$ltmain
10192
10193 # Always use our own libtool.
10194 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225 test -z "$LN_S" && LN_S="ln -s"
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240 if test -n "${ZSH_VERSION+set}"; then
10241 setopt NO_GLOB_SUBST
10242 fi
10243
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10245 printf %s "checking for objdir... " >&6; }
10246 if test ${lt_cv_objdir+y}
10247 then :
10248 printf %s "(cached) " >&6
10249 else case e in #(
10250 e) rm -f .libs 2>/dev/null
10251 mkdir .libs 2>/dev/null
10252 if test -d .libs; then
10253 lt_cv_objdir=.libs
10254 else
10255 # MS-DOS does not allow filenames that begin with a dot.
10256 lt_cv_objdir=_libs
10257 fi
10258 rmdir .libs 2>/dev/null ;;
10259 esac
10260 fi
10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10262 printf "%s\n" "$lt_cv_objdir" >&6; }
10263 objdir=$lt_cv_objdir
10264
10265
10266
10267
10268
10269 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10270
10271
10272
10273
10274 case $host_os in
10275 aix3*)
10276 # AIX sometimes has problems with the GCC collect2 program. For some
10277 # reason, if we set the COLLECT_NAMES environment variable, the problems
10278 # vanish in a puff of smoke.
10279 if test set != "${COLLECT_NAMES+set}"; then
10280 COLLECT_NAMES=
10281 export COLLECT_NAMES
10282 fi
10283 ;;
10284 esac
10285
10286 # Global variables:
10287 ofile=libtool
10288 can_build_shared=yes
10289
10290 # All known linkers require a '.a' archive for static linking (except MSVC and
10291 # ICC, which need '.lib').
10292 libext=a
10293
10294 with_gnu_ld=$lt_cv_prog_gnu_ld
10295
10296 old_CC=$CC
10297 old_CFLAGS=$CFLAGS
10298
10299 # Set sane defaults for various variables
10300 test -z "$CC" && CC=cc
10301 test -z "$LTCC" && LTCC=$CC
10302 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10303 test -z "$LD" && LD=ld
10304 test -z "$ac_objext" && ac_objext=o
10305
10306 func_cc_basename $compiler
10307 cc_basename=$func_cc_basename_result
10308
10309
10310 # Only perform the check for file, if the check method requires it
10311 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10312 case $deplibs_check_method in
10313 file_magic*)
10314 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10316 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10317 if test ${lt_cv_path_MAGIC_CMD+y}
10318 then :
10319 printf %s "(cached) " >&6
10320 else case e in #(
10321 e) case $MAGIC_CMD in
10322 [\\/*] | ?:[\\/]*)
10323 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10324 ;;
10325 *)
10326 lt_save_MAGIC_CMD=$MAGIC_CMD
10327 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10328 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10329 for ac_dir in $ac_dummy; do
10330 IFS=$lt_save_ifs
10331 test -z "$ac_dir" && ac_dir=.
10332 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10333 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10334 if test -n "$file_magic_test_file"; then
10335 case $deplibs_check_method in
10336 "file_magic "*)
10337 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10338 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10339 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10340 $EGREP "$file_magic_regex" > /dev/null; then
10341 :
10342 else
10343 cat <<_LT_EOF 1>&2
10344
10345 *** Warning: the command libtool uses to detect shared libraries,
10346 *** $file_magic_cmd, produces output that libtool cannot recognize.
10347 *** The result is that libtool may fail to recognize shared libraries
10348 *** as such. This will affect the creation of libtool libraries that
10349 *** depend on shared libraries, but programs linked with such libtool
10350 *** libraries will work regardless of this problem. Nevertheless, you
10351 *** may want to report the problem to your system manager and/or to
10352 *** [email protected]
10353
10354 _LT_EOF
10355 fi ;;
10356 esac
10357 fi
10358 break
10359 fi
10360 done
10361 IFS=$lt_save_ifs
10362 MAGIC_CMD=$lt_save_MAGIC_CMD
10363 ;;
10364 esac ;;
10365 esac
10366 fi
10367
10368 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10369 if test -n "$MAGIC_CMD"; then
10370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10371 printf "%s\n" "$MAGIC_CMD" >&6; }
10372 else
10373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 printf "%s\n" "no" >&6; }
10375 fi
10376
10377
10378
10379
10380
10381 if test -z "$lt_cv_path_MAGIC_CMD"; then
10382 if test -n "$ac_tool_prefix"; then
10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10384 printf %s "checking for file... " >&6; }
10385 if test ${lt_cv_path_MAGIC_CMD+y}
10386 then :
10387 printf %s "(cached) " >&6
10388 else case e in #(
10389 e) case $MAGIC_CMD in
10390 [\\/*] | ?:[\\/]*)
10391 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10392 ;;
10393 *)
10394 lt_save_MAGIC_CMD=$MAGIC_CMD
10395 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10397 for ac_dir in $ac_dummy; do
10398 IFS=$lt_save_ifs
10399 test -z "$ac_dir" && ac_dir=.
10400 if test -f "$ac_dir/file"; then
10401 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10402 if test -n "$file_magic_test_file"; then
10403 case $deplibs_check_method in
10404 "file_magic "*)
10405 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10406 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10408 $EGREP "$file_magic_regex" > /dev/null; then
10409 :
10410 else
10411 cat <<_LT_EOF 1>&2
10412
10413 *** Warning: the command libtool uses to detect shared libraries,
10414 *** $file_magic_cmd, produces output that libtool cannot recognize.
10415 *** The result is that libtool may fail to recognize shared libraries
10416 *** as such. This will affect the creation of libtool libraries that
10417 *** depend on shared libraries, but programs linked with such libtool
10418 *** libraries will work regardless of this problem. Nevertheless, you
10419 *** may want to report the problem to your system manager and/or to
10420 *** [email protected]
10421
10422 _LT_EOF
10423 fi ;;
10424 esac
10425 fi
10426 break
10427 fi
10428 done
10429 IFS=$lt_save_ifs
10430 MAGIC_CMD=$lt_save_MAGIC_CMD
10431 ;;
10432 esac ;;
10433 esac
10434 fi
10435
10436 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10437 if test -n "$MAGIC_CMD"; then
10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10439 printf "%s\n" "$MAGIC_CMD" >&6; }
10440 else
10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 printf "%s\n" "no" >&6; }
10443 fi
10444
10445
10446 else
10447 MAGIC_CMD=:
10448 fi
10449 fi
10450
10451 fi
10452 ;;
10453 esac
10454
10455 # Use C for the default configuration in the libtool script
10456
10457 lt_save_CC=$CC
10458 ac_ext=c
10459 ac_cpp='$CPP $CPPFLAGS'
10460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10463
10464
10465 # Source file extension for C test sources.
10466 ac_ext=c
10467
10468 # Object file extension for compiled C test sources.
10469 objext=o
10470 objext=$objext
10471
10472 # Code to be used in simple compile tests
10473 lt_simple_compile_test_code="int some_variable = 0;"
10474
10475 # Code to be used in simple link tests
10476 lt_simple_link_test_code='int main(void){return(0);}'
10477
10478
10479
10480
10481
10482
10483
10484 # If no C compiler was specified, use CC.
10485 LTCC=${LTCC-"$CC"}
10486
10487 # If no C compiler flags were specified, use CFLAGS.
10488 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10489
10490 # Allow CC to be a program name with arguments.
10491 compiler=$CC
10492
10493 # Save the default compiler, since it gets overwritten when the other
10494 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10495 compiler_DEFAULT=$CC
10496
10497 # save warnings/boilerplate of simple test code
10498 ac_outfile=conftest.$ac_objext
10499 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10500 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10501 _lt_compiler_boilerplate=`cat conftest.err`
10502 $RM conftest*
10503
10504 ac_outfile=conftest.$ac_objext
10505 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10506 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10507 _lt_linker_boilerplate=`cat conftest.err`
10508 $RM -r conftest*
10509
10510
10511 ## CAVEAT EMPTOR:
10512 ## There is no encapsulation within the following macros, do not change
10513 ## the running order or otherwise move them around unless you know exactly
10514 ## what you are doing...
10515 if test -n "$compiler"; then
10516
10517 lt_prog_compiler_no_builtin_flag=
10518
10519 if test yes = "$GCC"; then
10520 case $cc_basename in
10521 nvcc*)
10522 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10523 *)
10524 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10525 esac
10526
10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10528 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10529 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10530 then :
10531 printf %s "(cached) " >&6
10532 else case e in #(
10533 e) lt_cv_prog_compiler_rtti_exceptions=no
10534 ac_outfile=conftest.$ac_objext
10535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10536 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10537 # Insert the option either (1) after the last *FLAGS variable, or
10538 # (2) before a word containing "conftest.", or (3) at the end.
10539 # Note that $ac_compile itself does not contain backslashes and begins
10540 # with a dollar sign (not a hyphen), so the echo should work correctly.
10541 # The option is referenced via a variable to avoid confusing sed.
10542 lt_compile=`echo "$ac_compile" | $SED \
10543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10545 -e 's:$: $lt_compiler_flag:'`
10546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10547 (eval "$lt_compile" 2>conftest.err)
10548 ac_status=$?
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 if (exit $ac_status) && test -s "$ac_outfile"; then
10552 # The compiler can only warn and ignore the option if not recognized
10553 # So say no if there are warnings other than the usual output.
10554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10557 lt_cv_prog_compiler_rtti_exceptions=yes
10558 fi
10559 fi
10560 $RM conftest*
10561 ;;
10562 esac
10563 fi
10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10565 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10566
10567 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10569 else
10570 :
10571 fi
10572
10573 fi
10574
10575
10576
10577
10578
10579
10580 lt_prog_compiler_wl=
10581 lt_prog_compiler_pic=
10582 lt_prog_compiler_static=
10583
10584
10585 if test yes = "$GCC"; then
10586 lt_prog_compiler_wl='-Wl,'
10587 lt_prog_compiler_static='-static'
10588
10589 case $host_os in
10590 aix*)
10591 # All AIX code is PIC.
10592 if test ia64 = "$host_cpu"; then
10593 # AIX 5 now supports IA64 processor
10594 lt_prog_compiler_static='-Bstatic'
10595 fi
10596 lt_prog_compiler_pic='-fPIC'
10597 ;;
10598
10599 amigaos*)
10600 case $host_cpu in
10601 powerpc)
10602 # see comment about AmigaOS4 .so support
10603 lt_prog_compiler_pic='-fPIC'
10604 ;;
10605 m68k)
10606 # FIXME: we need at least 68020 code to build shared libraries, but
10607 # adding the '-m68020' flag to GCC prevents building anything better,
10608 # like '-m68040'.
10609 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10610 ;;
10611 esac
10612 ;;
10613
10614 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10615 # PIC is the default for these OSes.
10616 ;;
10617
10618 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10619 # This hack is so that the source file can tell whether it is being
10620 # built for inclusion in a dll (and should export symbols for example).
10621 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10622 # (--disable-auto-import) libraries
10623 lt_prog_compiler_pic='-DDLL_EXPORT'
10624 case $host_os in
10625 os2*)
10626 lt_prog_compiler_static='$wl-static'
10627 ;;
10628 esac
10629 ;;
10630
10631 darwin* | rhapsody*)
10632 # PIC is the default on this platform
10633 # Common symbols not allowed in MH_DYLIB files
10634 lt_prog_compiler_pic='-fno-common'
10635 ;;
10636
10637 haiku*)
10638 # PIC is the default for Haiku.
10639 # The "-static" flag exists, but is broken.
10640 lt_prog_compiler_static=
10641 ;;
10642
10643 hpux*)
10644 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10645 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10646 # sets the default TLS model and affects inlining.
10647 case $host_cpu in
10648 hppa*64*)
10649 # +Z the default
10650 ;;
10651 *)
10652 lt_prog_compiler_pic='-fPIC'
10653 ;;
10654 esac
10655 ;;
10656
10657 interix[3-9]*)
10658 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10659 # Instead, we relocate shared libraries at runtime.
10660 ;;
10661
10662 msdosdjgpp*)
10663 # Just because we use GCC doesn't mean we suddenly get shared libraries
10664 # on systems that don't support them.
10665 lt_prog_compiler_can_build_shared=no
10666 enable_shared=no
10667 ;;
10668
10669 *nto* | *qnx*)
10670 # QNX uses GNU C++, but need to define -shared option too, otherwise
10671 # it will coredump.
10672 lt_prog_compiler_pic='-fPIC -shared'
10673 ;;
10674
10675 sysv4*MP*)
10676 if test -d /usr/nec; then
10677 lt_prog_compiler_pic=-Kconform_pic
10678 fi
10679 ;;
10680
10681 *)
10682 lt_prog_compiler_pic='-fPIC'
10683 ;;
10684 esac
10685
10686 case $cc_basename in
10687 nvcc*) # Cuda Compiler Driver 2.2
10688 lt_prog_compiler_wl='-Xlinker '
10689 if test -n "$lt_prog_compiler_pic"; then
10690 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10691 fi
10692 ;;
10693 esac
10694 else
10695 # PORTME Check for flag to pass linker flags through the system compiler.
10696 case $host_os in
10697 aix*)
10698 lt_prog_compiler_wl='-Wl,'
10699 if test ia64 = "$host_cpu"; then
10700 # AIX 5 now supports IA64 processor
10701 lt_prog_compiler_static='-Bstatic'
10702 else
10703 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10704 fi
10705 ;;
10706
10707 darwin* | rhapsody*)
10708 # PIC is the default on this platform
10709 # Common symbols not allowed in MH_DYLIB files
10710 lt_prog_compiler_pic='-fno-common'
10711 case $cc_basename in
10712 nagfor*)
10713 # NAG Fortran compiler
10714 lt_prog_compiler_wl='-Wl,-Wl,,'
10715 lt_prog_compiler_pic='-PIC'
10716 lt_prog_compiler_static='-Bstatic'
10717 ;;
10718 esac
10719 ;;
10720
10721 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10722 # This hack is so that the source file can tell whether it is being
10723 # built for inclusion in a dll (and should export symbols for example).
10724 lt_prog_compiler_pic='-DDLL_EXPORT'
10725 case $host_os in
10726 os2*)
10727 lt_prog_compiler_static='$wl-static'
10728 ;;
10729 esac
10730 ;;
10731
10732 hpux9* | hpux10* | hpux11*)
10733 lt_prog_compiler_wl='-Wl,'
10734 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10735 # not for PA HP-UX.
10736 case $host_cpu in
10737 hppa*64*|ia64*)
10738 # +Z the default
10739 ;;
10740 *)
10741 lt_prog_compiler_pic='+Z'
10742 ;;
10743 esac
10744 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10745 lt_prog_compiler_static='$wl-a ${wl}archive'
10746 ;;
10747
10748 irix5* | irix6* | nonstopux*)
10749 lt_prog_compiler_wl='-Wl,'
10750 # PIC (with -KPIC) is the default.
10751 lt_prog_compiler_static='-non_shared'
10752 ;;
10753
10754 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10755 case $cc_basename in
10756 # old Intel for x86_64, which still supported -KPIC.
10757 ecc*)
10758 lt_prog_compiler_wl='-Wl,'
10759 lt_prog_compiler_pic='-KPIC'
10760 lt_prog_compiler_static='-static'
10761 ;;
10762 *flang* | ftn | f18* | f95*)
10763 # Flang compiler.
10764 lt_prog_compiler_wl='-Wl,'
10765 lt_prog_compiler_pic='-fPIC'
10766 lt_prog_compiler_static='-static'
10767 ;;
10768 # icc used to be incompatible with GCC.
10769 # ICC 10 doesn't accept -KPIC any more.
10770 icc* | ifort*)
10771 lt_prog_compiler_wl='-Wl,'
10772 lt_prog_compiler_pic='-fPIC'
10773 lt_prog_compiler_static='-static'
10774 ;;
10775 # Lahey Fortran 8.1.
10776 lf95*)
10777 lt_prog_compiler_wl='-Wl,'
10778 lt_prog_compiler_pic='--shared'
10779 lt_prog_compiler_static='--static'
10780 ;;
10781 nagfor*)
10782 # NAG Fortran compiler
10783 lt_prog_compiler_wl='-Wl,-Wl,,'
10784 lt_prog_compiler_pic='-PIC'
10785 lt_prog_compiler_static='-Bstatic'
10786 ;;
10787 tcc*)
10788 # Fabrice Bellard et al's Tiny C Compiler
10789 lt_prog_compiler_wl='-Wl,'
10790 lt_prog_compiler_pic='-fPIC'
10791 lt_prog_compiler_static='-static'
10792 ;;
10793 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10794 # Portland Group compilers (*not* the Pentium gcc compiler,
10795 # which looks to be a dead project)
10796 lt_prog_compiler_wl='-Wl,'
10797 lt_prog_compiler_pic='-fpic'
10798 lt_prog_compiler_static='-Bstatic'
10799 ;;
10800 ccc*)
10801 lt_prog_compiler_wl='-Wl,'
10802 # All Alpha code is PIC.
10803 lt_prog_compiler_static='-non_shared'
10804 ;;
10805 xl* | bgxl* | bgf* | mpixl*)
10806 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10807 lt_prog_compiler_wl='-Wl,'
10808 lt_prog_compiler_pic='-qpic'
10809 lt_prog_compiler_static='-qstaticlink'
10810 ;;
10811 *)
10812 case `$CC -V 2>&1 | $SED 5q` in
10813 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10814 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10815 lt_prog_compiler_pic='-KPIC'
10816 lt_prog_compiler_static='-Bstatic'
10817 lt_prog_compiler_wl=''
10818 ;;
10819 *Sun\ F* | *Sun*Fortran*)
10820 lt_prog_compiler_pic='-KPIC'
10821 lt_prog_compiler_static='-Bstatic'
10822 lt_prog_compiler_wl='-Qoption ld '
10823 ;;
10824 *Sun\ C*)
10825 # Sun C 5.9
10826 lt_prog_compiler_pic='-KPIC'
10827 lt_prog_compiler_static='-Bstatic'
10828 lt_prog_compiler_wl='-Wl,'
10829 ;;
10830 *Intel*\ [CF]*Compiler*)
10831 lt_prog_compiler_wl='-Wl,'
10832 lt_prog_compiler_pic='-fPIC'
10833 lt_prog_compiler_static='-static'
10834 ;;
10835 *Portland\ Group*)
10836 lt_prog_compiler_wl='-Wl,'
10837 lt_prog_compiler_pic='-fpic'
10838 lt_prog_compiler_static='-Bstatic'
10839 ;;
10840 esac
10841 ;;
10842 esac
10843 ;;
10844
10845 newsos6)
10846 lt_prog_compiler_pic='-KPIC'
10847 lt_prog_compiler_static='-Bstatic'
10848 ;;
10849
10850 *-mlibc)
10851 lt_prog_compiler_wl='-Wl,'
10852 lt_prog_compiler_pic='-fPIC'
10853 lt_prog_compiler_static='-static'
10854 ;;
10855
10856 *nto* | *qnx*)
10857 # QNX uses GNU C++, but need to define -shared option too, otherwise
10858 # it will coredump.
10859 lt_prog_compiler_pic='-fPIC -shared'
10860 ;;
10861
10862 osf3* | osf4* | osf5*)
10863 lt_prog_compiler_wl='-Wl,'
10864 # All OSF/1 code is PIC.
10865 lt_prog_compiler_static='-non_shared'
10866 ;;
10867
10868 rdos*)
10869 lt_prog_compiler_static='-non_shared'
10870 ;;
10871
10872 serenity*)
10873 ;;
10874
10875 solaris*)
10876 lt_prog_compiler_pic='-KPIC'
10877 lt_prog_compiler_static='-Bstatic'
10878 case $cc_basename in
10879 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10880 lt_prog_compiler_wl='-Qoption ld ';;
10881 *)
10882 lt_prog_compiler_wl='-Wl,';;
10883 esac
10884 ;;
10885
10886 sunos4*)
10887 lt_prog_compiler_wl='-Qoption ld '
10888 lt_prog_compiler_pic='-PIC'
10889 lt_prog_compiler_static='-Bstatic'
10890 ;;
10891
10892 sysv4 | sysv4.2uw2* | sysv4.3*)
10893 lt_prog_compiler_wl='-Wl,'
10894 lt_prog_compiler_pic='-KPIC'
10895 lt_prog_compiler_static='-Bstatic'
10896 ;;
10897
10898 sysv4*MP*)
10899 if test -d /usr/nec; then
10900 lt_prog_compiler_pic='-Kconform_pic'
10901 lt_prog_compiler_static='-Bstatic'
10902 fi
10903 ;;
10904
10905 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10906 lt_prog_compiler_wl='-Wl,'
10907 lt_prog_compiler_pic='-KPIC'
10908 lt_prog_compiler_static='-Bstatic'
10909 ;;
10910
10911 unicos*)
10912 lt_prog_compiler_wl='-Wl,'
10913 lt_prog_compiler_can_build_shared=no
10914 ;;
10915
10916 uts4*)
10917 lt_prog_compiler_pic='-pic'
10918 lt_prog_compiler_static='-Bstatic'
10919 ;;
10920
10921 *)
10922 lt_prog_compiler_can_build_shared=no
10923 ;;
10924 esac
10925 fi
10926
10927 case $host_os in
10928 # For platforms that do not support PIC, -DPIC is meaningless:
10929 *djgpp*)
10930 lt_prog_compiler_pic=
10931 ;;
10932 *)
10933 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10934 ;;
10935 esac
10936
10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10938 printf %s "checking for $compiler option to produce PIC... " >&6; }
10939 if test ${lt_cv_prog_compiler_pic+y}
10940 then :
10941 printf %s "(cached) " >&6
10942 else case e in #(
10943 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10944 esac
10945 fi
10946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10947 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10948 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10949
10950 #
10951 # Check to make sure the PIC flag actually works.
10952 #
10953 if test -n "$lt_prog_compiler_pic"; then
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10955 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10956 if test ${lt_cv_prog_compiler_pic_works+y}
10957 then :
10958 printf %s "(cached) " >&6
10959 else case e in #(
10960 e) lt_cv_prog_compiler_pic_works=no
10961 ac_outfile=conftest.$ac_objext
10962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10963 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10964 # Insert the option either (1) after the last *FLAGS variable, or
10965 # (2) before a word containing "conftest.", or (3) at the end.
10966 # Note that $ac_compile itself does not contain backslashes and begins
10967 # with a dollar sign (not a hyphen), so the echo should work correctly.
10968 # The option is referenced via a variable to avoid confusing sed.
10969 lt_compile=`echo "$ac_compile" | $SED \
10970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10972 -e 's:$: $lt_compiler_flag:'`
10973 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10974 (eval "$lt_compile" 2>conftest.err)
10975 ac_status=$?
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 if (exit $ac_status) && test -s "$ac_outfile"; then
10979 # The compiler can only warn and ignore the option if not recognized
10980 # So say no if there are warnings other than the usual output.
10981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10983 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10984 lt_cv_prog_compiler_pic_works=yes
10985 fi
10986 fi
10987 $RM conftest*
10988 ;;
10989 esac
10990 fi
10991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10992 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10993
10994 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10995 case $lt_prog_compiler_pic in
10996 "" | " "*) ;;
10997 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10998 esac
10999 else
11000 lt_prog_compiler_pic=
11001 lt_prog_compiler_can_build_shared=no
11002 fi
11003
11004 fi
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016 #
11017 # Check to make sure the static flag actually works.
11018 #
11019 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11021 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11022 if test ${lt_cv_prog_compiler_static_works+y}
11023 then :
11024 printf %s "(cached) " >&6
11025 else case e in #(
11026 e) lt_cv_prog_compiler_static_works=no
11027 save_LDFLAGS=$LDFLAGS
11028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11031 # The linker can only warn and ignore the option if not recognized
11032 # So say no if there are warnings
11033 if test -s conftest.err; then
11034 # Append any errors to the config.log.
11035 cat conftest.err 1>&5
11036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11038 if diff conftest.exp conftest.er2 >/dev/null; then
11039 lt_cv_prog_compiler_static_works=yes
11040 fi
11041 else
11042 lt_cv_prog_compiler_static_works=yes
11043 fi
11044 fi
11045 $RM -r conftest*
11046 LDFLAGS=$save_LDFLAGS
11047 ;;
11048 esac
11049 fi
11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11051 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11052
11053 if test yes = "$lt_cv_prog_compiler_static_works"; then
11054 :
11055 else
11056 lt_prog_compiler_static=
11057 fi
11058
11059
11060
11061
11062
11063
11064
11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11066 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11067 if test ${lt_cv_prog_compiler_c_o+y}
11068 then :
11069 printf %s "(cached) " >&6
11070 else case e in #(
11071 e) lt_cv_prog_compiler_c_o=no
11072 $RM -r conftest 2>/dev/null
11073 mkdir conftest
11074 cd conftest
11075 mkdir out
11076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11077
11078 lt_compiler_flag="-o out/conftest2.$ac_objext"
11079 # Insert the option either (1) after the last *FLAGS variable, or
11080 # (2) before a word containing "conftest.", or (3) at the end.
11081 # Note that $ac_compile itself does not contain backslashes and begins
11082 # with a dollar sign (not a hyphen), so the echo should work correctly.
11083 lt_compile=`echo "$ac_compile" | $SED \
11084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11086 -e 's:$: $lt_compiler_flag:'`
11087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11088 (eval "$lt_compile" 2>out/conftest.err)
11089 ac_status=$?
11090 cat out/conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11093 then
11094 # The compiler can only warn and ignore the option if not recognized
11095 # So say no if there are warnings
11096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11099 lt_cv_prog_compiler_c_o=yes
11100 fi
11101 fi
11102 chmod u+w . 2>&5
11103 $RM conftest*
11104 # SGI C++ compiler will create directory out/ii_files/ for
11105 # template instantiation
11106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11107 $RM out/* && rmdir out
11108 cd ..
11109 $RM -r conftest
11110 $RM conftest*
11111 ;;
11112 esac
11113 fi
11114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11115 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11116
11117
11118
11119
11120
11121
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11123 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11124 if test ${lt_cv_prog_compiler_c_o+y}
11125 then :
11126 printf %s "(cached) " >&6
11127 else case e in #(
11128 e) lt_cv_prog_compiler_c_o=no
11129 $RM -r conftest 2>/dev/null
11130 mkdir conftest
11131 cd conftest
11132 mkdir out
11133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11134
11135 lt_compiler_flag="-o out/conftest2.$ac_objext"
11136 # Insert the option either (1) after the last *FLAGS variable, or
11137 # (2) before a word containing "conftest.", or (3) at the end.
11138 # Note that $ac_compile itself does not contain backslashes and begins
11139 # with a dollar sign (not a hyphen), so the echo should work correctly.
11140 lt_compile=`echo "$ac_compile" | $SED \
11141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11143 -e 's:$: $lt_compiler_flag:'`
11144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11145 (eval "$lt_compile" 2>out/conftest.err)
11146 ac_status=$?
11147 cat out/conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11150 then
11151 # The compiler can only warn and ignore the option if not recognized
11152 # So say no if there are warnings
11153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11154 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11155 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11156 lt_cv_prog_compiler_c_o=yes
11157 fi
11158 fi
11159 chmod u+w . 2>&5
11160 $RM conftest*
11161 # SGI C++ compiler will create directory out/ii_files/ for
11162 # template instantiation
11163 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11164 $RM out/* && rmdir out
11165 cd ..
11166 $RM -r conftest
11167 $RM conftest*
11168 ;;
11169 esac
11170 fi
11171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11172 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11173
11174
11175
11176
11177 hard_links=nottested
11178 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11179 # do not overwrite the value of need_locks provided by the user
11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11181 printf %s "checking if we can lock with hard links... " >&6; }
11182 hard_links=yes
11183 $RM conftest*
11184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11185 touch conftest.a
11186 ln conftest.a conftest.b 2>&5 || hard_links=no
11187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11189 printf "%s\n" "$hard_links" >&6; }
11190 if test no = "$hard_links"; then
11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11192 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11193 need_locks=warn
11194 fi
11195 else
11196 need_locks=no
11197 fi
11198
11199
11200
11201
11202
11203
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11205 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11206
11207 runpath_var=
11208 allow_undefined_flag=
11209 always_export_symbols=no
11210 archive_cmds=
11211 archive_expsym_cmds=
11212 compiler_needs_object=no
11213 enable_shared_with_static_runtimes=no
11214 export_dynamic_flag_spec=
11215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11216 hardcode_automatic=no
11217 hardcode_direct=no
11218 hardcode_direct_absolute=no
11219 hardcode_libdir_flag_spec=
11220 hardcode_libdir_separator=
11221 hardcode_minus_L=no
11222 hardcode_shlibpath_var=unsupported
11223 inherit_rpath=no
11224 link_all_deplibs=unknown
11225 module_cmds=
11226 module_expsym_cmds=
11227 old_archive_from_new_cmds=
11228 old_archive_from_expsyms_cmds=
11229 thread_safe_flag_spec=
11230 whole_archive_flag_spec=
11231 # include_expsyms should be a list of space-separated symbols to be *always*
11232 # included in the symbol list
11233 include_expsyms=
11234 # exclude_expsyms can be an extended regexp of symbols to exclude
11235 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11236 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11237 # as well as any symbol that contains 'd'.
11238 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11239 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11240 # platforms (ab)use it in PIC code, but their linkers get confused if
11241 # the symbol is explicitly referenced. Since portable code cannot
11242 # rely on this symbol name, it's probably fine to never include it in
11243 # preloaded symbol tables.
11244 # Exclude shared library initialization/finalization symbols.
11245 extract_expsyms_cmds=
11246
11247 case $host_os in
11248 cygwin* | mingw* | windows* | pw32* | cegcc*)
11249 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11250 # When not using gcc, we currently assume that we are using
11251 # Microsoft Visual C++ or Intel C++ Compiler.
11252 if test yes != "$GCC"; then
11253 with_gnu_ld=no
11254 fi
11255 ;;
11256 interix*)
11257 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11258 with_gnu_ld=yes
11259 ;;
11260 esac
11261
11262 ld_shlibs=yes
11263
11264 # On some targets, GNU ld is compatible enough with the native linker
11265 # that we're better off using the native interface for both.
11266 lt_use_gnu_ld_interface=no
11267 if test yes = "$with_gnu_ld"; then
11268 case $host_os in
11269 aix*)
11270 # The AIX port of GNU ld has always aspired to compatibility
11271 # with the native linker. However, as the warning in the GNU ld
11272 # block says, versions before 2.19.5* couldn't really create working
11273 # shared libraries, regardless of the interface used.
11274 case `$LD -v 2>&1` in
11275 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11276 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11277 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11278 *)
11279 lt_use_gnu_ld_interface=yes
11280 ;;
11281 esac
11282 ;;
11283 *)
11284 lt_use_gnu_ld_interface=yes
11285 ;;
11286 esac
11287 fi
11288
11289 if test yes = "$lt_use_gnu_ld_interface"; then
11290 # If archive_cmds runs LD, not CC, wlarc should be empty
11291 wlarc='$wl'
11292
11293 # Set some defaults for GNU ld with shared library support. These
11294 # are reset later if shared libraries are not supported. Putting them
11295 # here allows them to be overridden if necessary.
11296 runpath_var=LD_RUN_PATH
11297 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11298 export_dynamic_flag_spec='$wl--export-dynamic'
11299 # ancient GNU ld didn't support --whole-archive et. al.
11300 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11301 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11302 else
11303 whole_archive_flag_spec=
11304 fi
11305 supports_anon_versioning=no
11306 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11307 *GNU\ gold*) supports_anon_versioning=yes ;;
11308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11311 *\ 2.11.*) ;; # other 2.11 versions
11312 *) supports_anon_versioning=yes ;;
11313 esac
11314
11315 # See if GNU ld supports shared libraries.
11316 case $host_os in
11317 aix[3-9]*)
11318 # On AIX/PPC, the GNU linker is very broken
11319 if test ia64 != "$host_cpu"; then
11320 ld_shlibs=no
11321 cat <<_LT_EOF 1>&2
11322
11323 *** Warning: the GNU linker, at least up to release 2.19, is reported
11324 *** to be unable to reliably create shared libraries on AIX.
11325 *** Therefore, libtool is disabling shared libraries support. If you
11326 *** really care for shared libraries, you may want to install binutils
11327 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11328 *** You will then need to restart the configuration process.
11329
11330 _LT_EOF
11331 fi
11332 ;;
11333
11334 amigaos*)
11335 case $host_cpu in
11336 powerpc)
11337 # see comment about AmigaOS4 .so support
11338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11339 archive_expsym_cmds=''
11340 ;;
11341 m68k)
11342 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)'
11343 hardcode_libdir_flag_spec='-L$libdir'
11344 hardcode_minus_L=yes
11345 ;;
11346 esac
11347 ;;
11348
11349 beos*)
11350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11351 allow_undefined_flag=unsupported
11352 # Joseph Beckenbach <[email protected]> says some releases of gcc
11353 # support --undefined. This deserves some investigation. FIXME
11354 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11355 else
11356 ld_shlibs=no
11357 fi
11358 ;;
11359
11360 cygwin* | mingw* | windows* | pw32* | cegcc*)
11361 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11362 # as there is no search path for DLLs.
11363 hardcode_libdir_flag_spec='-L$libdir'
11364 export_dynamic_flag_spec='$wl--export-all-symbols'
11365 allow_undefined_flag=unsupported
11366 always_export_symbols=no
11367 enable_shared_with_static_runtimes=yes
11368 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'
11369 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11370 file_list_spec='@'
11371
11372 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11374 # If the export-symbols file already is a .def file, use it as
11375 # is; otherwise, prepend EXPORTS...
11376 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11377 cp $export_symbols $output_objdir/$soname.def;
11378 else
11379 echo EXPORTS > $output_objdir/$soname.def;
11380 cat $export_symbols >> $output_objdir/$soname.def;
11381 fi~
11382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11383 else
11384 ld_shlibs=no
11385 fi
11386 ;;
11387
11388 haiku*)
11389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11390 link_all_deplibs=no
11391 ;;
11392
11393 os2*)
11394 hardcode_libdir_flag_spec='-L$libdir'
11395 hardcode_minus_L=yes
11396 allow_undefined_flag=unsupported
11397 shrext_cmds=.dll
11398 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11399 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11400 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11401 $ECHO EXPORTS >> $output_objdir/$libname.def~
11402 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11403 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11404 emximp -o $lib $output_objdir/$libname.def'
11405 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11406 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11407 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11408 $ECHO EXPORTS >> $output_objdir/$libname.def~
11409 prefix_cmds="$SED"~
11410 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11411 prefix_cmds="$prefix_cmds -e 1d";
11412 fi~
11413 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11414 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11416 emximp -o $lib $output_objdir/$libname.def'
11417 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11418 enable_shared_with_static_runtimes=yes
11419 file_list_spec='@'
11420 ;;
11421
11422 interix[3-9]*)
11423 hardcode_direct=no
11424 hardcode_shlibpath_var=no
11425 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11426 export_dynamic_flag_spec='$wl-E'
11427 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11428 # Instead, shared libraries are loaded at an image base (0x10000000 by
11429 # default) and relocated if they conflict, which is a slow very memory
11430 # consuming and fragmenting process. To avoid this, we pick a random,
11431 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11432 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11433 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11434 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'
11435 ;;
11436
11437 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11438 tmp_diet=no
11439 if test linux-dietlibc = "$host_os"; then
11440 case $cc_basename in
11441 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11442 esac
11443 fi
11444 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11445 && test no = "$tmp_diet"
11446 then
11447 tmp_addflag=' $pic_flag'
11448 tmp_sharedflag='-shared'
11449 case $cc_basename,$host_cpu in
11450 pgcc*) # Portland Group C compiler
11451 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'
11452 tmp_addflag=' $pic_flag'
11453 ;;
11454 pgf77* | pgf90* | pgf95* | pgfortran*)
11455 # Portland Group f77 and f90 compilers
11456 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'
11457 tmp_addflag=' $pic_flag -Mnomain' ;;
11458 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11459 tmp_addflag=' -i_dynamic' ;;
11460 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11461 tmp_addflag=' -i_dynamic -nofor_main' ;;
11462 ifc* | ifort*) # Intel Fortran compiler
11463 tmp_addflag=' -nofor_main' ;;
11464 lf95*) # Lahey Fortran 8.1
11465 whole_archive_flag_spec=
11466 tmp_sharedflag='--shared' ;;
11467 nagfor*) # NAGFOR 5.3
11468 tmp_sharedflag='-Wl,-shared' ;;
11469 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11470 tmp_sharedflag='-qmkshrobj'
11471 tmp_addflag= ;;
11472 nvcc*) # Cuda Compiler Driver 2.2
11473 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'
11474 compiler_needs_object=yes
11475 ;;
11476 esac
11477 case `$CC -V 2>&1 | $SED 5q` in
11478 *Sun\ C*) # Sun C 5.9
11479 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'
11480 compiler_needs_object=yes
11481 tmp_sharedflag='-G' ;;
11482 *Sun\ F*) # Sun Fortran 8.3
11483 tmp_sharedflag='-G' ;;
11484 esac
11485 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11486
11487 if test yes = "$supports_anon_versioning"; then
11488 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11489 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11490 echo "local: *; };" >> $output_objdir/$libname.ver~
11491 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11492 fi
11493
11494 case $cc_basename in
11495 tcc*)
11496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11497 export_dynamic_flag_spec='-rdynamic'
11498 ;;
11499 xlf* | bgf* | bgxlf* | mpixlf*)
11500 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11501 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11502 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11503 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11504 if test yes = "$supports_anon_versioning"; then
11505 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11506 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11507 echo "local: *; };" >> $output_objdir/$libname.ver~
11508 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11509 fi
11510 ;;
11511 esac
11512 else
11513 ld_shlibs=no
11514 fi
11515 ;;
11516
11517 *-mlibc)
11518 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11519 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11520 ;;
11521
11522 netbsd* | netbsdelf*-gnu)
11523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11524 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11525 wlarc=
11526 else
11527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11529 fi
11530 ;;
11531
11532 solaris*)
11533 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11534 ld_shlibs=no
11535 cat <<_LT_EOF 1>&2
11536
11537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11538 *** create shared libraries on Solaris systems. Therefore, libtool
11539 *** is disabling shared libraries support. We urge you to upgrade GNU
11540 *** binutils to release 2.9.1 or newer. Another option is to modify
11541 *** your PATH or compiler configuration so that the native linker is
11542 *** used, and then restart.
11543
11544 _LT_EOF
11545 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11548 else
11549 ld_shlibs=no
11550 fi
11551 ;;
11552
11553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11554 case `$LD -v 2>&1` in
11555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11556 ld_shlibs=no
11557 cat <<_LT_EOF 1>&2
11558
11559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11560 *** reliably create shared libraries on SCO systems. Therefore, libtool
11561 *** is disabling shared libraries support. We urge you to upgrade GNU
11562 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11563 *** your PATH or compiler configuration so that the native linker is
11564 *** used, and then restart.
11565
11566 _LT_EOF
11567 ;;
11568 *)
11569 # For security reasons, it is highly recommended that you always
11570 # use absolute paths for naming shared libraries, and exclude the
11571 # DT_RUNPATH tag from executables and libraries. But doing so
11572 # requires that you compile everything twice, which is a pain.
11573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11574 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11577 else
11578 ld_shlibs=no
11579 fi
11580 ;;
11581 esac
11582 ;;
11583
11584 sunos4*)
11585 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11586 wlarc=
11587 hardcode_direct=yes
11588 hardcode_shlibpath_var=no
11589 ;;
11590
11591 *)
11592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11595 else
11596 ld_shlibs=no
11597 fi
11598 ;;
11599 esac
11600
11601 if test no = "$ld_shlibs"; then
11602 runpath_var=
11603 hardcode_libdir_flag_spec=
11604 export_dynamic_flag_spec=
11605 whole_archive_flag_spec=
11606 fi
11607 else
11608 # PORTME fill in a description of your system's linker (not GNU ld)
11609 case $host_os in
11610 aix3*)
11611 allow_undefined_flag=unsupported
11612 always_export_symbols=yes
11613 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'
11614 # Note: this linker hardcodes the directories in LIBPATH if there
11615 # are no directories specified by -L.
11616 hardcode_minus_L=yes
11617 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11618 # Neither direct hardcoding nor static linking is supported with a
11619 # broken collect2.
11620 hardcode_direct=unsupported
11621 fi
11622 ;;
11623
11624 aix[4-9]*)
11625 if test ia64 = "$host_cpu"; then
11626 # On IA64, the linker does run time linking by default, so we don't
11627 # have to do anything special.
11628 aix_use_runtimelinking=no
11629 exp_sym_flag='-Bexport'
11630 no_entry_flag=
11631 else
11632 # If we're using GNU nm, then we don't want the "-C" option.
11633 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11634 # Without the "-l" option, or with the "-B" option, AIX nm treats
11635 # weak defined symbols like other global defined symbols, whereas
11636 # GNU nm marks them as "W".
11637 # While the 'weak' keyword is ignored in the Export File, we need
11638 # it in the Import File for the 'aix-soname' feature, so we have
11639 # to replace the "-B" option with "-P" for AIX nm.
11640 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11641 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'
11642 else
11643 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'
11644 fi
11645 aix_use_runtimelinking=no
11646
11647 # Test if we are trying to use run time linking or normal
11648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11649 # have runtime linking enabled, and use it for executables.
11650 # For shared libraries, we enable/disable runtime linking
11651 # depending on the kind of the shared library created -
11652 # when "with_aix_soname,aix_use_runtimelinking" is:
11653 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11654 # "aix,yes" lib.so shared, rtl:yes, for executables
11655 # lib.a static archive
11656 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11657 # lib.a(lib.so.V) shared, rtl:no, for executables
11658 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11659 # lib.a(lib.so.V) shared, rtl:no
11660 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11661 # lib.a static archive
11662 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11663 for ld_flag in $LDFLAGS; do
11664 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11665 aix_use_runtimelinking=yes
11666 break
11667 fi
11668 done
11669 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11670 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11671 # so we don't have lib.a shared libs to link our executables.
11672 # We have to force runtime linking in this case.
11673 aix_use_runtimelinking=yes
11674 LDFLAGS="$LDFLAGS -Wl,-brtl"
11675 fi
11676 ;;
11677 esac
11678
11679 exp_sym_flag='-bexport'
11680 no_entry_flag='-bnoentry'
11681 fi
11682
11683 # When large executables or shared objects are built, AIX ld can
11684 # have problems creating the table of contents. If linking a library
11685 # or program results in "error TOC overflow" add -mminimal-toc to
11686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11688
11689 archive_cmds=''
11690 hardcode_direct=yes
11691 hardcode_direct_absolute=yes
11692 hardcode_libdir_separator=':'
11693 link_all_deplibs=yes
11694 file_list_spec='$wl-f,'
11695 case $with_aix_soname,$aix_use_runtimelinking in
11696 aix,*) ;; # traditional, no import file
11697 svr4,* | *,yes) # use import file
11698 # The Import File defines what to hardcode.
11699 hardcode_direct=no
11700 hardcode_direct_absolute=no
11701 ;;
11702 esac
11703
11704 if test yes = "$GCC"; then
11705 case $host_os in aix4.[012]|aix4.[012].*)
11706 # We only want to do this on AIX 4.2 and lower, the check
11707 # below for broken collect2 doesn't work under 4.3+
11708 collect2name=`$CC -print-prog-name=collect2`
11709 if test -f "$collect2name" &&
11710 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11711 then
11712 # We have reworked collect2
11713 :
11714 else
11715 # We have old collect2
11716 hardcode_direct=unsupported
11717 # It fails to find uninstalled libraries when the uninstalled
11718 # path is not listed in the libpath. Setting hardcode_minus_L
11719 # to unsupported forces relinking
11720 hardcode_minus_L=yes
11721 hardcode_libdir_flag_spec='-L$libdir'
11722 hardcode_libdir_separator=
11723 fi
11724 ;;
11725 esac
11726 shared_flag='-shared'
11727 if test yes = "$aix_use_runtimelinking"; then
11728 shared_flag="$shared_flag "'$wl-G'
11729 fi
11730 # Need to ensure runtime linking is disabled for the traditional
11731 # shared library, or the linker may eventually find shared libraries
11732 # /with/ Import File - we do not want to mix them.
11733 shared_flag_aix='-shared'
11734 shared_flag_svr4='-shared $wl-G'
11735 else
11736 # not using gcc
11737 if test ia64 = "$host_cpu"; then
11738 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11739 # chokes on -Wl,-G. The following line is correct:
11740 shared_flag='-G'
11741 else
11742 if test yes = "$aix_use_runtimelinking"; then
11743 shared_flag='$wl-G'
11744 else
11745 shared_flag='$wl-bM:SRE'
11746 fi
11747 shared_flag_aix='$wl-bM:SRE'
11748 shared_flag_svr4='$wl-G'
11749 fi
11750 fi
11751
11752 export_dynamic_flag_spec='$wl-bexpall'
11753 # It seems that -bexpall does not export symbols beginning with
11754 # underscore (_), so it is better to generate a list of symbols to export.
11755 always_export_symbols=yes
11756 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11757 # Warning - without using the other runtime loading flags (-brtl),
11758 # -berok will link without error, but may produce a broken library.
11759 allow_undefined_flag='-berok'
11760 # Determine the default libpath from the value encoded in an
11761 # empty executable.
11762 if test set = "${lt_cv_aix_libpath+set}"; then
11763 aix_libpath=$lt_cv_aix_libpath
11764 else
11765 if test ${lt_cv_aix_libpath_+y}
11766 then :
11767 printf %s "(cached) " >&6
11768 else case e in #(
11769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771
11772 int
11773 main (void)
11774 {
11775
11776 ;
11777 return 0;
11778 }
11779 _ACEOF
11780 if ac_fn_c_try_link "$LINENO"
11781 then :
11782
11783 lt_aix_libpath_sed='
11784 /Import File Strings/,/^$/ {
11785 /^0/ {
11786 s/^0 *\([^ ]*\) *$/\1/
11787 p
11788 }
11789 }'
11790 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11791 # Check for a 64-bit object if we didn't find anything.
11792 if test -z "$lt_cv_aix_libpath_"; then
11793 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11794 fi
11795 fi
11796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11797 conftest$ac_exeext conftest.$ac_ext
11798 if test -z "$lt_cv_aix_libpath_"; then
11799 lt_cv_aix_libpath_=/usr/lib:/lib
11800 fi
11801 ;;
11802 esac
11803 fi
11804
11805 aix_libpath=$lt_cv_aix_libpath_
11806 fi
11807
11808 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11809 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
11810 else
11811 if test ia64 = "$host_cpu"; then
11812 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11813 allow_undefined_flag="-z nodefs"
11814 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"
11815 else
11816 # Determine the default libpath from the value encoded in an
11817 # empty executable.
11818 if test set = "${lt_cv_aix_libpath+set}"; then
11819 aix_libpath=$lt_cv_aix_libpath
11820 else
11821 if test ${lt_cv_aix_libpath_+y}
11822 then :
11823 printf %s "(cached) " >&6
11824 else case e in #(
11825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827
11828 int
11829 main (void)
11830 {
11831
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"
11837 then :
11838
11839 lt_aix_libpath_sed='
11840 /Import File Strings/,/^$/ {
11841 /^0/ {
11842 s/^0 *\([^ ]*\) *$/\1/
11843 p
11844 }
11845 }'
11846 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11847 # Check for a 64-bit object if we didn't find anything.
11848 if test -z "$lt_cv_aix_libpath_"; then
11849 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11850 fi
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11853 conftest$ac_exeext conftest.$ac_ext
11854 if test -z "$lt_cv_aix_libpath_"; then
11855 lt_cv_aix_libpath_=/usr/lib:/lib
11856 fi
11857 ;;
11858 esac
11859 fi
11860
11861 aix_libpath=$lt_cv_aix_libpath_
11862 fi
11863
11864 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11865 # Warning - without using the other run time loading flags,
11866 # -berok will link without error, but may produce a broken library.
11867 no_undefined_flag=' $wl-bernotok'
11868 allow_undefined_flag=' $wl-berok'
11869 if test yes = "$with_gnu_ld"; then
11870 # We only use this code for GNU lds that support --whole-archive.
11871 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11872 else
11873 # Exported symbols can be pulled into shared objects from archives
11874 whole_archive_flag_spec='$convenience'
11875 fi
11876 archive_cmds_need_lc=yes
11877 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11878 # -brtl affects multiple linker settings, -berok does not and is overridden later
11879 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11880 if test svr4 != "$with_aix_soname"; then
11881 # This is similar to how AIX traditionally builds its shared libraries.
11882 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'
11883 fi
11884 if test aix != "$with_aix_soname"; then
11885 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'
11886 else
11887 # used by -dlpreopen to get the symbols
11888 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11889 fi
11890 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11891 fi
11892 fi
11893 ;;
11894
11895 amigaos*)
11896 case $host_cpu in
11897 powerpc)
11898 # see comment about AmigaOS4 .so support
11899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11900 archive_expsym_cmds=''
11901 ;;
11902 m68k)
11903 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)'
11904 hardcode_libdir_flag_spec='-L$libdir'
11905 hardcode_minus_L=yes
11906 ;;
11907 esac
11908 ;;
11909
11910 bsdi[45]*)
11911 export_dynamic_flag_spec=-rdynamic
11912 ;;
11913
11914 cygwin* | mingw* | windows* | pw32* | cegcc*)
11915 # When not using gcc, we currently assume that we are using
11916 # Microsoft Visual C++ or Intel C++ Compiler.
11917 # hardcode_libdir_flag_spec is actually meaningless, as there is
11918 # no search path for DLLs.
11919 case $cc_basename in
11920 cl* | icl*)
11921 # Native MSVC or ICC
11922 hardcode_libdir_flag_spec=' '
11923 allow_undefined_flag=unsupported
11924 always_export_symbols=yes
11925 file_list_spec='@'
11926 # Tell ltmain to make .lib files, not .a files.
11927 libext=lib
11928 # Tell ltmain to make .dll files, not .so files.
11929 shrext_cmds=.dll
11930 # FIXME: Setting linknames here is a bad hack.
11931 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11932 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11933 cp "$export_symbols" "$output_objdir/$soname.def";
11934 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11935 else
11936 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11937 fi~
11938 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11939 linknames='
11940 # The linker will not automatically build a static lib if we build a DLL.
11941 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11942 enable_shared_with_static_runtimes=yes
11943 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11944 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11945 # Don't use ranlib
11946 old_postinstall_cmds='chmod 644 $oldlib'
11947 postlink_cmds='lt_outputfile="@OUTPUT@"~
11948 lt_tool_outputfile="@TOOL_OUTPUT@"~
11949 case $lt_outputfile in
11950 *.exe|*.EXE) ;;
11951 *)
11952 lt_outputfile=$lt_outputfile.exe
11953 lt_tool_outputfile=$lt_tool_outputfile.exe
11954 ;;
11955 esac~
11956 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11957 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11958 $RM "$lt_outputfile.manifest";
11959 fi'
11960 ;;
11961 *)
11962 # Assume MSVC and ICC wrapper
11963 hardcode_libdir_flag_spec=' '
11964 allow_undefined_flag=unsupported
11965 # Tell ltmain to make .lib files, not .a files.
11966 libext=lib
11967 # Tell ltmain to make .dll files, not .so files.
11968 shrext_cmds=.dll
11969 # FIXME: Setting linknames here is a bad hack.
11970 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11971 # The linker will automatically build a .lib file if we build a DLL.
11972 old_archive_from_new_cmds='true'
11973 # FIXME: Should let the user specify the lib program.
11974 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11975 enable_shared_with_static_runtimes=yes
11976 ;;
11977 esac
11978 ;;
11979
11980 darwin* | rhapsody*)
11981
11982
11983 archive_cmds_need_lc=no
11984 hardcode_direct=no
11985 hardcode_automatic=yes
11986 hardcode_shlibpath_var=unsupported
11987 if test yes = "$lt_cv_ld_force_load"; then
11988 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\"`'
11989
11990 else
11991 whole_archive_flag_spec=''
11992 fi
11993 link_all_deplibs=yes
11994 allow_undefined_flag=$_lt_dar_allow_undefined
11995 case $cc_basename in
11996 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11997 *) _lt_dar_can_shared=$GCC ;;
11998 esac
11999 if test yes = "$_lt_dar_can_shared"; then
12000 output_verbose_link_cmd=func_echo_all
12001 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12002 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12003 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"
12004 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"
12005
12006 else
12007 ld_shlibs=no
12008 fi
12009
12010 ;;
12011
12012 dgux*)
12013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12014 hardcode_libdir_flag_spec='-L$libdir'
12015 hardcode_shlibpath_var=no
12016 ;;
12017
12018 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12019 # support. Future versions do this automatically, but an explicit c++rt0.o
12020 # does not break anything, and helps significantly (at the cost of a little
12021 # extra space).
12022 freebsd2.2*)
12023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12024 hardcode_libdir_flag_spec='-R$libdir'
12025 hardcode_direct=yes
12026 hardcode_shlibpath_var=no
12027 ;;
12028
12029 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12030 freebsd2.*)
12031 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12032 hardcode_direct=yes
12033 hardcode_minus_L=yes
12034 hardcode_shlibpath_var=no
12035 ;;
12036
12037 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12038 freebsd* | dragonfly* | midnightbsd*)
12039 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12040 hardcode_libdir_flag_spec='-R$libdir'
12041 hardcode_direct=yes
12042 hardcode_shlibpath_var=no
12043 ;;
12044
12045 hpux9*)
12046 if test yes = "$GCC"; then
12047 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'
12048 else
12049 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'
12050 fi
12051 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12052 hardcode_libdir_separator=:
12053 hardcode_direct=yes
12054
12055 # hardcode_minus_L: Not really in the search PATH,
12056 # but as the default location of the library.
12057 hardcode_minus_L=yes
12058 export_dynamic_flag_spec='$wl-E'
12059 ;;
12060
12061 hpux10*)
12062 if test yes,no = "$GCC,$with_gnu_ld"; then
12063 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12064 else
12065 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12066 fi
12067 if test no = "$with_gnu_ld"; then
12068 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12069 hardcode_libdir_separator=:
12070 hardcode_direct=yes
12071 hardcode_direct_absolute=yes
12072 export_dynamic_flag_spec='$wl-E'
12073 # hardcode_minus_L: Not really in the search PATH,
12074 # but as the default location of the library.
12075 hardcode_minus_L=yes
12076 fi
12077 ;;
12078
12079 hpux11*)
12080 if test yes,no = "$GCC,$with_gnu_ld"; then
12081 case $host_cpu in
12082 hppa*64*)
12083 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12084 ;;
12085 ia64*)
12086 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12087 ;;
12088 *)
12089 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12090 ;;
12091 esac
12092 else
12093 case $host_cpu in
12094 hppa*64*)
12095 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12096 ;;
12097 ia64*)
12098 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12099 ;;
12100 *)
12101
12102 # Older versions of the 11.00 compiler do not understand -b yet
12103 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12105 printf %s "checking if $CC understands -b... " >&6; }
12106 if test ${lt_cv_prog_compiler__b+y}
12107 then :
12108 printf %s "(cached) " >&6
12109 else case e in #(
12110 e) lt_cv_prog_compiler__b=no
12111 save_LDFLAGS=$LDFLAGS
12112 LDFLAGS="$LDFLAGS -b"
12113 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12114 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12115 # The linker can only warn and ignore the option if not recognized
12116 # So say no if there are warnings
12117 if test -s conftest.err; then
12118 # Append any errors to the config.log.
12119 cat conftest.err 1>&5
12120 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12122 if diff conftest.exp conftest.er2 >/dev/null; then
12123 lt_cv_prog_compiler__b=yes
12124 fi
12125 else
12126 lt_cv_prog_compiler__b=yes
12127 fi
12128 fi
12129 $RM -r conftest*
12130 LDFLAGS=$save_LDFLAGS
12131 ;;
12132 esac
12133 fi
12134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12135 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12136
12137 if test yes = "$lt_cv_prog_compiler__b"; then
12138 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12139 else
12140 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12141 fi
12142
12143 ;;
12144 esac
12145 fi
12146 if test no = "$with_gnu_ld"; then
12147 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12148 hardcode_libdir_separator=:
12149
12150 case $host_cpu in
12151 hppa*64*|ia64*)
12152 hardcode_direct=no
12153 hardcode_shlibpath_var=no
12154 ;;
12155 *)
12156 hardcode_direct=yes
12157 hardcode_direct_absolute=yes
12158 export_dynamic_flag_spec='$wl-E'
12159
12160 # hardcode_minus_L: Not really in the search PATH,
12161 # but as the default location of the library.
12162 hardcode_minus_L=yes
12163 ;;
12164 esac
12165 fi
12166 ;;
12167
12168 irix5* | irix6* | nonstopux*)
12169 if test yes = "$GCC"; then
12170 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'
12171 # Try to use the -exported_symbol ld option, if it does not
12172 # work, assume that -exports_file does not work either and
12173 # implicitly export all symbols.
12174 # This should be the same for all languages, so no per-tag cache variable.
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12176 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12177 if test ${lt_cv_irix_exported_symbol+y}
12178 then :
12179 printf %s "(cached) " >&6
12180 else case e in #(
12181 e) save_LDFLAGS=$LDFLAGS
12182 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12185 int foo (void) { return 0; }
12186 _ACEOF
12187 if ac_fn_c_try_link "$LINENO"
12188 then :
12189 lt_cv_irix_exported_symbol=yes
12190 else case e in #(
12191 e) lt_cv_irix_exported_symbol=no ;;
12192 esac
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LDFLAGS=$save_LDFLAGS ;;
12197 esac
12198 fi
12199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12200 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12201 if test yes = "$lt_cv_irix_exported_symbol"; then
12202 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'
12203 fi
12204 else
12205 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'
12206 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'
12207 fi
12208 archive_cmds_need_lc='no'
12209 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12210 hardcode_libdir_separator=:
12211 inherit_rpath=yes
12212 link_all_deplibs=yes
12213 ;;
12214
12215 linux*)
12216 case $cc_basename in
12217 tcc*)
12218 # Fabrice Bellard et al's Tiny C Compiler
12219 ld_shlibs=yes
12220 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12221 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12222 ;;
12223 esac
12224 ;;
12225
12226 *-mlibc)
12227 ;;
12228
12229 netbsd* | netbsdelf*-gnu)
12230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12232 else
12233 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12234 fi
12235 hardcode_libdir_flag_spec='-R$libdir'
12236 hardcode_direct=yes
12237 hardcode_shlibpath_var=no
12238 ;;
12239
12240 newsos6)
12241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12242 hardcode_direct=yes
12243 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12244 hardcode_libdir_separator=:
12245 hardcode_shlibpath_var=no
12246 ;;
12247
12248 *nto* | *qnx*)
12249 ;;
12250
12251 openbsd*)
12252 if test -f /usr/libexec/ld.so; then
12253 hardcode_direct=yes
12254 hardcode_shlibpath_var=no
12255 hardcode_direct_absolute=yes
12256 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12258 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12259 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12260 export_dynamic_flag_spec='$wl-E'
12261 else
12262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12263 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12264 fi
12265 else
12266 ld_shlibs=no
12267 fi
12268 ;;
12269
12270 os2*)
12271 hardcode_libdir_flag_spec='-L$libdir'
12272 hardcode_minus_L=yes
12273 allow_undefined_flag=unsupported
12274 shrext_cmds=.dll
12275 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12278 $ECHO EXPORTS >> $output_objdir/$libname.def~
12279 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12280 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12281 emximp -o $lib $output_objdir/$libname.def'
12282 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12283 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12284 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12285 $ECHO EXPORTS >> $output_objdir/$libname.def~
12286 prefix_cmds="$SED"~
12287 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12288 prefix_cmds="$prefix_cmds -e 1d";
12289 fi~
12290 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12291 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12292 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12293 emximp -o $lib $output_objdir/$libname.def'
12294 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12295 enable_shared_with_static_runtimes=yes
12296 file_list_spec='@'
12297 ;;
12298
12299 osf3*)
12300 if test yes = "$GCC"; then
12301 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12302 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'
12303 else
12304 allow_undefined_flag=' -expect_unresolved \*'
12305 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'
12306 fi
12307 archive_cmds_need_lc='no'
12308 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12309 hardcode_libdir_separator=:
12310 ;;
12311
12312 osf4* | osf5*) # as osf3* with the addition of -msym flag
12313 if test yes = "$GCC"; then
12314 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12315 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'
12316 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12317 else
12318 allow_undefined_flag=' -expect_unresolved \*'
12319 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'
12320 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~
12321 $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'
12322
12323 # Both c and cxx compiler support -rpath directly
12324 hardcode_libdir_flag_spec='-rpath $libdir'
12325 fi
12326 archive_cmds_need_lc='no'
12327 hardcode_libdir_separator=:
12328 ;;
12329
12330 serenity*)
12331 ;;
12332
12333 solaris*)
12334 no_undefined_flag=' -z defs'
12335 if test yes = "$GCC"; then
12336 wlarc='$wl'
12337 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12338 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12339 $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'
12340 else
12341 case `$CC -V 2>&1` in
12342 *"Compilers 5.0"*)
12343 wlarc=''
12344 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12346 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12347 ;;
12348 *)
12349 wlarc='$wl'
12350 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12351 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12352 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12353 ;;
12354 esac
12355 fi
12356 hardcode_libdir_flag_spec='-R$libdir'
12357 hardcode_shlibpath_var=no
12358 case $host_os in
12359 solaris2.[0-5] | solaris2.[0-5].*) ;;
12360 *)
12361 # The compiler driver will combine and reorder linker options,
12362 # but understands '-z linker_flag'. GCC discards it without '$wl',
12363 # but is careful enough not to reorder.
12364 # Supported since Solaris 2.6 (maybe 2.5.1?)
12365 if test yes = "$GCC"; then
12366 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12367 else
12368 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12369 fi
12370 ;;
12371 esac
12372 link_all_deplibs=yes
12373 ;;
12374
12375 sunos4*)
12376 if test sequent = "$host_vendor"; then
12377 # Use $CC to link under sequent, because it throws in some extra .o
12378 # files that make .init and .fini sections work.
12379 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12380 else
12381 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12382 fi
12383 hardcode_libdir_flag_spec='-L$libdir'
12384 hardcode_direct=yes
12385 hardcode_minus_L=yes
12386 hardcode_shlibpath_var=no
12387 ;;
12388
12389 sysv4)
12390 case $host_vendor in
12391 sni)
12392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12393 hardcode_direct=yes # is this really true???
12394 ;;
12395 siemens)
12396 ## LD is ld it makes a PLAMLIB
12397 ## CC just makes a GrossModule.
12398 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12399 reload_cmds='$CC -r -o $output$reload_objs'
12400 hardcode_direct=no
12401 ;;
12402 motorola)
12403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12404 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12405 ;;
12406 esac
12407 runpath_var='LD_RUN_PATH'
12408 hardcode_shlibpath_var=no
12409 ;;
12410
12411 sysv4.3*)
12412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12413 hardcode_shlibpath_var=no
12414 export_dynamic_flag_spec='-Bexport'
12415 ;;
12416
12417 sysv4*MP*)
12418 if test -d /usr/nec; then
12419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12420 hardcode_shlibpath_var=no
12421 runpath_var=LD_RUN_PATH
12422 hardcode_runpath_var=yes
12423 ld_shlibs=yes
12424 fi
12425 ;;
12426
12427 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12428 no_undefined_flag='$wl-z,text'
12429 archive_cmds_need_lc=no
12430 hardcode_shlibpath_var=no
12431 runpath_var='LD_RUN_PATH'
12432
12433 if test yes = "$GCC"; then
12434 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12435 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12436 else
12437 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12438 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12439 fi
12440 ;;
12441
12442 sysv5* | sco3.2v5* | sco5v6*)
12443 # Note: We CANNOT use -z defs as we might desire, because we do not
12444 # link with -lc, and that would cause any symbols used from libc to
12445 # always be unresolved, which means just about no library would
12446 # ever link correctly. If we're not using GNU ld we use -z text
12447 # though, which does catch some bad symbols but isn't as heavy-handed
12448 # as -z defs.
12449 no_undefined_flag='$wl-z,text'
12450 allow_undefined_flag='$wl-z,nodefs'
12451 archive_cmds_need_lc=no
12452 hardcode_shlibpath_var=no
12453 hardcode_libdir_flag_spec='$wl-R,$libdir'
12454 hardcode_libdir_separator=':'
12455 link_all_deplibs=yes
12456 export_dynamic_flag_spec='$wl-Bexport'
12457 runpath_var='LD_RUN_PATH'
12458
12459 if test yes = "$GCC"; then
12460 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12461 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12462 else
12463 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12464 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12465 fi
12466 ;;
12467
12468 uts4*)
12469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12470 hardcode_libdir_flag_spec='-L$libdir'
12471 hardcode_shlibpath_var=no
12472 ;;
12473
12474 *)
12475 ld_shlibs=no
12476 ;;
12477 esac
12478
12479 if test sni = "$host_vendor"; then
12480 case $host in
12481 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12482 export_dynamic_flag_spec='$wl-Blargedynsym'
12483 ;;
12484 esac
12485 fi
12486 fi
12487
12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12489 printf "%s\n" "$ld_shlibs" >&6; }
12490 test no = "$ld_shlibs" && can_build_shared=no
12491
12492 with_gnu_ld=$with_gnu_ld
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508 #
12509 # Do we need to explicitly link libc?
12510 #
12511 case "x$archive_cmds_need_lc" in
12512 x|xyes)
12513 # Assume -lc should be added
12514 archive_cmds_need_lc=yes
12515
12516 if test yes,yes = "$GCC,$enable_shared"; then
12517 case $archive_cmds in
12518 *'~'*)
12519 # FIXME: we may have to deal with multi-command sequences.
12520 ;;
12521 '$CC '*)
12522 # Test whether the compiler implicitly links with -lc since on some
12523 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12524 # to ld, don't add -lc before -lgcc.
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12526 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12527 if test ${lt_cv_archive_cmds_need_lc+y}
12528 then :
12529 printf %s "(cached) " >&6
12530 else case e in #(
12531 e) $RM conftest*
12532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12533
12534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12535 (eval $ac_compile) 2>&5
12536 ac_status=$?
12537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12538 test $ac_status = 0; } 2>conftest.err; then
12539 soname=conftest
12540 lib=conftest
12541 libobjs=conftest.$ac_objext
12542 deplibs=
12543 wl=$lt_prog_compiler_wl
12544 pic_flag=$lt_prog_compiler_pic
12545 compiler_flags=-v
12546 linker_flags=-v
12547 verstring=
12548 output_objdir=.
12549 libname=conftest
12550 lt_save_allow_undefined_flag=$allow_undefined_flag
12551 allow_undefined_flag=
12552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12553 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12554 ac_status=$?
12555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12556 test $ac_status = 0; }
12557 then
12558 lt_cv_archive_cmds_need_lc=no
12559 else
12560 lt_cv_archive_cmds_need_lc=yes
12561 fi
12562 allow_undefined_flag=$lt_save_allow_undefined_flag
12563 else
12564 cat conftest.err 1>&5
12565 fi
12566 $RM conftest*
12567 ;;
12568 esac
12569 fi
12570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12571 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12572 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12573 ;;
12574 esac
12575 fi
12576 ;;
12577 esac
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12731 printf %s "checking dynamic linker characteristics... " >&6; }
12732
12733 if test yes = "$GCC"; then
12734 case $host_os in
12735 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12736 *) lt_awk_arg='/^libraries:/' ;;
12737 esac
12738 case $host_os in
12739 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12740 *) lt_sed_strip_eq='s|=/|/|g' ;;
12741 esac
12742 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12743 case $lt_search_path_spec in
12744 *\;*)
12745 # if the path contains ";" then we assume it to be the separator
12746 # otherwise default to the standard path separator (i.e. ":") - it is
12747 # assumed that no part of a normal pathname contains ";" but that should
12748 # okay in the real world where ";" in dirpaths is itself problematic.
12749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12750 ;;
12751 *)
12752 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12753 ;;
12754 esac
12755 # Ok, now we have the path, separated by spaces, we can step through it
12756 # and add multilib dir if necessary...
12757 lt_tmp_lt_search_path_spec=
12758 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12759 # ...but if some path component already ends with the multilib dir we assume
12760 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12761 case "$lt_multi_os_dir; $lt_search_path_spec " in
12762 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12763 lt_multi_os_dir=
12764 ;;
12765 esac
12766 for lt_sys_path in $lt_search_path_spec; do
12767 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12769 elif test -n "$lt_multi_os_dir"; then
12770 test -d "$lt_sys_path" && \
12771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12772 fi
12773 done
12774 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12775 BEGIN {RS = " "; FS = "/|\n";} {
12776 lt_foo = "";
12777 lt_count = 0;
12778 for (lt_i = NF; lt_i > 0; lt_i--) {
12779 if ($lt_i != "" && $lt_i != ".") {
12780 if ($lt_i == "..") {
12781 lt_count++;
12782 } else {
12783 if (lt_count == 0) {
12784 lt_foo = "/" $lt_i lt_foo;
12785 } else {
12786 lt_count--;
12787 }
12788 }
12789 }
12790 }
12791 if (lt_foo != "") { lt_freq[lt_foo]++; }
12792 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12793 }'`
12794 # AWK program above erroneously prepends '/' to C:/dos/paths
12795 # for these hosts.
12796 case $host_os in
12797 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12798 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12799 esac
12800 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12801 else
12802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12803 fi
12804 library_names_spec=
12805 libname_spec='lib$name'
12806 soname_spec=
12807 shrext_cmds=.so
12808 postinstall_cmds=
12809 postuninstall_cmds=
12810 finish_cmds=
12811 finish_eval=
12812 shlibpath_var=
12813 shlibpath_overrides_runpath=unknown
12814 version_type=none
12815 dynamic_linker="$host_os ld.so"
12816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12817 need_lib_prefix=unknown
12818 hardcode_into_libs=no
12819
12820 # when you set need_version to no, make sure it does not cause -set_version
12821 # flags to be left without arguments
12822 need_version=unknown
12823
12824
12825
12826 case $host_os in
12827 aix3*)
12828 version_type=linux # correct to gnu/linux during the next big refactor
12829 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12830 shlibpath_var=LIBPATH
12831
12832 # AIX 3 has no versioning support, so we append a major version to the name.
12833 soname_spec='$libname$release$shared_ext$major'
12834 ;;
12835
12836 aix[4-9]*)
12837 version_type=linux # correct to gnu/linux during the next big refactor
12838 need_lib_prefix=no
12839 need_version=no
12840 hardcode_into_libs=yes
12841 if test ia64 = "$host_cpu"; then
12842 # AIX 5 supports IA64
12843 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 else
12846 # With GCC up to 2.95.x, collect2 would create an import file
12847 # for dependence libraries. The import file would start with
12848 # the line '#! .'. This would cause the generated library to
12849 # depend on '.', always an invalid library. This was fixed in
12850 # development snapshots of GCC prior to 3.0.
12851 case $host_os in
12852 aix4 | aix4.[01] | aix4.[01].*)
12853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12854 echo ' yes '
12855 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12856 :
12857 else
12858 can_build_shared=no
12859 fi
12860 ;;
12861 esac
12862 # Using Import Files as archive members, it is possible to support
12863 # filename-based versioning of shared library archives on AIX. While
12864 # this would work for both with and without runtime linking, it will
12865 # prevent static linking of such archives. So we do filename-based
12866 # shared library versioning with .so extension only, which is used
12867 # when both runtime linking and shared linking is enabled.
12868 # Unfortunately, runtime linking may impact performance, so we do
12869 # not want this to be the default eventually. Also, we use the
12870 # versioned .so libs for executables only if there is the -brtl
12871 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12872 # To allow for filename-based versioning support, we need to create
12873 # libNAME.so.V as an archive file, containing:
12874 # *) an Import File, referring to the versioned filename of the
12875 # archive as well as the shared archive member, telling the
12876 # bitwidth (32 or 64) of that shared object, and providing the
12877 # list of exported symbols of that shared object, eventually
12878 # decorated with the 'weak' keyword
12879 # *) the shared object with the F_LOADONLY flag set, to really avoid
12880 # it being seen by the linker.
12881 # At run time we better use the real file rather than another symlink,
12882 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12883
12884 case $with_aix_soname,$aix_use_runtimelinking in
12885 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12886 # soname into executable. Probably we can add versioning support to
12887 # collect2, so additional links can be useful in future.
12888 aix,yes) # traditional libtool
12889 dynamic_linker='AIX unversionable lib.so'
12890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12891 # instead of lib<name>.a to let people know that these are not
12892 # typical AIX shared libraries.
12893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12894 ;;
12895 aix,no) # traditional AIX only
12896 dynamic_linker='AIX lib.a(lib.so.V)'
12897 # We preserve .a as extension for shared libraries through AIX4.2
12898 # and later when we are not doing run time linking.
12899 library_names_spec='$libname$release.a $libname.a'
12900 soname_spec='$libname$release$shared_ext$major'
12901 ;;
12902 svr4,*) # full svr4 only
12903 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12904 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12905 # We do not specify a path in Import Files, so LIBPATH fires.
12906 shlibpath_overrides_runpath=yes
12907 ;;
12908 *,yes) # both, prefer svr4
12909 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12910 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12911 # unpreferred sharedlib libNAME.a needs extra handling
12912 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"'
12913 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"'
12914 # We do not specify a path in Import Files, so LIBPATH fires.
12915 shlibpath_overrides_runpath=yes
12916 ;;
12917 *,no) # both, prefer aix
12918 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12919 library_names_spec='$libname$release.a $libname.a'
12920 soname_spec='$libname$release$shared_ext$major'
12921 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12922 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)'
12923 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"'
12924 ;;
12925 esac
12926 shlibpath_var=LIBPATH
12927 fi
12928 ;;
12929
12930 amigaos*)
12931 case $host_cpu in
12932 powerpc)
12933 # Since July 2007 AmigaOS4 officially supports .so libraries.
12934 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12936 ;;
12937 m68k)
12938 library_names_spec='$libname.ixlibrary $libname.a'
12939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12940 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'
12941 ;;
12942 esac
12943 ;;
12944
12945 beos*)
12946 library_names_spec='$libname$shared_ext'
12947 dynamic_linker="$host_os ld.so"
12948 shlibpath_var=LIBRARY_PATH
12949 ;;
12950
12951 bsdi[45]*)
12952 version_type=linux # correct to gnu/linux during the next big refactor
12953 need_version=no
12954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12955 soname_spec='$libname$release$shared_ext$major'
12956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12957 shlibpath_var=LD_LIBRARY_PATH
12958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12960 # the default ld.so.conf also contains /usr/contrib/lib and
12961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12962 # libtool to hard-code these into programs
12963 ;;
12964
12965 cygwin* | mingw* | windows* | pw32* | cegcc*)
12966 version_type=windows
12967 shrext_cmds=.dll
12968 need_version=no
12969 need_lib_prefix=no
12970
12971 case $GCC,$cc_basename in
12972 yes,*)
12973 # gcc
12974 library_names_spec='$libname.dll.a'
12975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12976 # If user builds GCC with multilib enabled,
12977 # it should just install on $(libdir)
12978 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12979 if test xyes = x"$multilib"; then
12980 postinstall_cmds='base_file=`basename \$file`~
12981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12982 dldir=$destdir/`dirname \$dlpath`~
12983 $install_prog $dir/$dlname $destdir/$dlname~
12984 chmod a+x $destdir/$dlname~
12985 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12986 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12987 fi'
12988 else
12989 postinstall_cmds='base_file=`basename \$file`~
12990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12991 dldir=$destdir/`dirname \$dlpath`~
12992 test -d \$dldir || mkdir -p \$dldir~
12993 $install_prog $dir/$dlname \$dldir/$dlname~
12994 chmod a+x \$dldir/$dlname~
12995 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12996 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12997 fi'
12998 fi
12999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13000 dlpath=$dir/\$dldll~
13001 $RM \$dlpath'
13002 shlibpath_overrides_runpath=yes
13003
13004 case $host_os in
13005 cygwin*)
13006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13007 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13008
13009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13010 ;;
13011 mingw* | windows* | cegcc*)
13012 # MinGW DLLs use traditional 'lib' prefix
13013 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13014 ;;
13015 pw32*)
13016 # pw32 DLLs use 'pw' prefix rather than 'lib'
13017 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13018 ;;
13019 esac
13020 dynamic_linker='Win32 ld.exe'
13021 ;;
13022
13023 *,cl* | *,icl*)
13024 # Native MSVC or ICC
13025 libname_spec='$name'
13026 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13027 library_names_spec='$libname.dll.lib'
13028
13029 case $build_os in
13030 mingw* | windows*)
13031 sys_lib_search_path_spec=
13032 lt_save_ifs=$IFS
13033 IFS=';'
13034 for lt_path in $LIB
13035 do
13036 IFS=$lt_save_ifs
13037 # Let DOS variable expansion print the short 8.3 style file name.
13038 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13039 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13040 done
13041 IFS=$lt_save_ifs
13042 # Convert to MSYS style.
13043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13044 ;;
13045 cygwin*)
13046 # Convert to unix form, then to dos form, then back to unix form
13047 # but this time dos style (no spaces!) so that the unix form looks
13048 # like /cygdrive/c/PROGRA~1:/cygdr...
13049 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13050 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13051 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13052 ;;
13053 *)
13054 sys_lib_search_path_spec=$LIB
13055 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13056 # It is most probably a Windows format PATH.
13057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13058 else
13059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13060 fi
13061 # FIXME: find the short name or the path components, as spaces are
13062 # common. (e.g. "Program Files" -> "PROGRA~1")
13063 ;;
13064 esac
13065
13066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13067 postinstall_cmds='base_file=`basename \$file`~
13068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13069 dldir=$destdir/`dirname \$dlpath`~
13070 test -d \$dldir || mkdir -p \$dldir~
13071 $install_prog $dir/$dlname \$dldir/$dlname'
13072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13073 dlpath=$dir/\$dldll~
13074 $RM \$dlpath'
13075 shlibpath_overrides_runpath=yes
13076 dynamic_linker='Win32 link.exe'
13077 ;;
13078
13079 *)
13080 # Assume MSVC and ICC wrapper
13081 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13082 dynamic_linker='Win32 ld.exe'
13083 ;;
13084 esac
13085 # FIXME: first we should search . and the directory the executable is in
13086 shlibpath_var=PATH
13087 ;;
13088
13089 darwin* | rhapsody*)
13090 dynamic_linker="$host_os dyld"
13091 version_type=darwin
13092 need_lib_prefix=no
13093 need_version=no
13094 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13095 soname_spec='$libname$release$major$shared_ext'
13096 shlibpath_overrides_runpath=yes
13097 shlibpath_var=DYLD_LIBRARY_PATH
13098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13099
13100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13102 ;;
13103
13104 dgux*)
13105 version_type=linux # correct to gnu/linux during the next big refactor
13106 need_lib_prefix=no
13107 need_version=no
13108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13109 soname_spec='$libname$release$shared_ext$major'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 ;;
13112
13113 freebsd* | dragonfly* | midnightbsd*)
13114 # DragonFly does not have aout. When/if they implement a new
13115 # versioning mechanism, adjust this.
13116 if test -x /usr/bin/objformat; then
13117 objformat=`/usr/bin/objformat`
13118 else
13119 case $host_os in
13120 freebsd[23].*) objformat=aout ;;
13121 *) objformat=elf ;;
13122 esac
13123 fi
13124 version_type=freebsd-$objformat
13125 case $version_type in
13126 freebsd-elf*)
13127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13128 soname_spec='$libname$release$shared_ext$major'
13129 need_version=no
13130 need_lib_prefix=no
13131 ;;
13132 freebsd-*)
13133 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13134 need_version=yes
13135 ;;
13136 esac
13137 case $host_cpu in
13138 powerpc64)
13139 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13140 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143 int test_pointer_size[sizeof (void *) - 5];
13144
13145 _ACEOF
13146 if ac_fn_c_try_compile "$LINENO"
13147 then :
13148 shlibpath_var=LD_LIBRARY_PATH
13149 else case e in #(
13150 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13151 esac
13152 fi
13153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13154 ;;
13155 *)
13156 shlibpath_var=LD_LIBRARY_PATH
13157 ;;
13158 esac
13159 case $host_os in
13160 freebsd2.*)
13161 shlibpath_overrides_runpath=yes
13162 ;;
13163 freebsd3.[01]* | freebsdelf3.[01]*)
13164 shlibpath_overrides_runpath=yes
13165 hardcode_into_libs=yes
13166 ;;
13167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13169 shlibpath_overrides_runpath=no
13170 hardcode_into_libs=yes
13171 ;;
13172 *) # from 4.6 on, and DragonFly
13173 shlibpath_overrides_runpath=yes
13174 hardcode_into_libs=yes
13175 ;;
13176 esac
13177 ;;
13178
13179 haiku*)
13180 version_type=linux # correct to gnu/linux during the next big refactor
13181 need_lib_prefix=no
13182 need_version=no
13183 dynamic_linker="$host_os runtime_loader"
13184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13185 soname_spec='$libname$release$shared_ext$major'
13186 shlibpath_var=LIBRARY_PATH
13187 shlibpath_overrides_runpath=no
13188 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13189 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13190 hardcode_into_libs=no
13191 ;;
13192
13193 hpux9* | hpux10* | hpux11*)
13194 # Give a soname corresponding to the major version so that dld.sl refuses to
13195 # link against other versions.
13196 version_type=sunos
13197 need_lib_prefix=no
13198 need_version=no
13199 case $host_cpu in
13200 ia64*)
13201 shrext_cmds='.so'
13202 hardcode_into_libs=yes
13203 dynamic_linker="$host_os dld.so"
13204 shlibpath_var=LD_LIBRARY_PATH
13205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13207 soname_spec='$libname$release$shared_ext$major'
13208 if test 32 = "$HPUX_IA64_MODE"; then
13209 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13210 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13211 else
13212 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13213 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13214 fi
13215 ;;
13216 hppa*64*)
13217 shrext_cmds='.sl'
13218 hardcode_into_libs=yes
13219 dynamic_linker="$host_os dld.sl"
13220 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13223 soname_spec='$libname$release$shared_ext$major'
13224 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13226 ;;
13227 *)
13228 shrext_cmds='.sl'
13229 dynamic_linker="$host_os dld.sl"
13230 shlibpath_var=SHLIB_PATH
13231 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13233 soname_spec='$libname$release$shared_ext$major'
13234 ;;
13235 esac
13236 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13237 postinstall_cmds='chmod 555 $lib'
13238 # or fails outright, so override atomically:
13239 install_override_mode=555
13240 ;;
13241
13242 interix[3-9]*)
13243 version_type=linux # correct to gnu/linux during the next big refactor
13244 need_lib_prefix=no
13245 need_version=no
13246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13247 soname_spec='$libname$release$shared_ext$major'
13248 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13249 shlibpath_var=LD_LIBRARY_PATH
13250 shlibpath_overrides_runpath=no
13251 hardcode_into_libs=yes
13252 ;;
13253
13254 irix5* | irix6* | nonstopux*)
13255 case $host_os in
13256 nonstopux*) version_type=nonstopux ;;
13257 *)
13258 if test yes = "$lt_cv_prog_gnu_ld"; then
13259 version_type=linux # correct to gnu/linux during the next big refactor
13260 else
13261 version_type=irix
13262 fi ;;
13263 esac
13264 need_lib_prefix=no
13265 need_version=no
13266 soname_spec='$libname$release$shared_ext$major'
13267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13268 case $host_os in
13269 irix5* | nonstopux*)
13270 libsuff= shlibsuff=
13271 ;;
13272 *)
13273 case $LD in # libtool.m4 will add one of these switches to LD
13274 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13275 libsuff= shlibsuff= libmagic=32-bit;;
13276 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13277 libsuff=32 shlibsuff=N32 libmagic=N32;;
13278 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13279 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13280 *) libsuff= shlibsuff= libmagic=never-match;;
13281 esac
13282 ;;
13283 esac
13284 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13285 shlibpath_overrides_runpath=no
13286 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13287 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13288 hardcode_into_libs=yes
13289 ;;
13290
13291 # No shared lib support for Linux oldld, aout, or coff.
13292 linux*oldld* | linux*aout* | linux*coff*)
13293 dynamic_linker=no
13294 ;;
13295
13296 linux*android*)
13297 version_type=none # Android doesn't support versioned libraries.
13298 need_lib_prefix=no
13299 need_version=no
13300 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13301 soname_spec='$libname$release$shared_ext'
13302 finish_cmds=
13303 shlibpath_var=LD_LIBRARY_PATH
13304 shlibpath_overrides_runpath=yes
13305
13306 # This implies no fast_install, which is unacceptable.
13307 # Some rework will be needed to allow for fast_install
13308 # before this can be enabled.
13309 hardcode_into_libs=yes
13310
13311 dynamic_linker='Android linker'
13312 # -rpath works at least for libraries that are not overridden by
13313 # libraries installed in system locations.
13314 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13315 ;;
13316
13317 # This must be glibc/ELF.
13318 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13319 version_type=linux # correct to gnu/linux during the next big refactor
13320 need_lib_prefix=no
13321 need_version=no
13322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13323 soname_spec='$libname$release$shared_ext$major'
13324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13325 shlibpath_var=LD_LIBRARY_PATH
13326 shlibpath_overrides_runpath=no
13327
13328 # Some binutils ld are patched to set DT_RUNPATH
13329 if test ${lt_cv_shlibpath_overrides_runpath+y}
13330 then :
13331 printf %s "(cached) " >&6
13332 else case e in #(
13333 e) lt_cv_shlibpath_overrides_runpath=no
13334 save_LDFLAGS=$LDFLAGS
13335 save_libdir=$libdir
13336 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13337 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13340
13341 int
13342 main (void)
13343 {
13344
13345 ;
13346 return 0;
13347 }
13348 _ACEOF
13349 if ac_fn_c_try_link "$LINENO"
13350 then :
13351 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13352 then :
13353 lt_cv_shlibpath_overrides_runpath=yes
13354 fi
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13357 conftest$ac_exeext conftest.$ac_ext
13358 LDFLAGS=$save_LDFLAGS
13359 libdir=$save_libdir
13360 ;;
13361 esac
13362 fi
13363
13364 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13365
13366 # This implies no fast_install, which is unacceptable.
13367 # Some rework will be needed to allow for fast_install
13368 # before this can be enabled.
13369 hardcode_into_libs=yes
13370
13371 # Ideally, we could use ldconfig to report *all* directories which are
13372 # searched for libraries, however this is still not possible. Aside from not
13373 # being certain /sbin/ldconfig is available, command
13374 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13375 # even though it is searched at run-time. Try to do the best guess by
13376 # appending ld.so.conf contents (and includes) to the search path.
13377 if test -f /etc/ld.so.conf; then
13378 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' ' '`
13379 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13380 fi
13381
13382 # We used to test for /lib/ld.so.1 and disable shared libraries on
13383 # powerpc, because MkLinux only supported shared libraries with the
13384 # GNU dynamic linker. Since this was broken with cross compilers,
13385 # most powerpc-linux boxes support dynamic linking these days and
13386 # people can always --disable-shared, the test was removed, and we
13387 # assume the GNU/Linux dynamic linker is in use.
13388 dynamic_linker='GNU/Linux ld.so'
13389 ;;
13390
13391 netbsdelf*-gnu)
13392 version_type=linux
13393 need_lib_prefix=no
13394 need_version=no
13395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13396 soname_spec='$libname$release$shared_ext$major'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=no
13399 hardcode_into_libs=yes
13400 dynamic_linker='NetBSD ld.elf_so'
13401 ;;
13402
13403 netbsd*)
13404 version_type=sunos
13405 need_lib_prefix=no
13406 need_version=no
13407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13408 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13410 dynamic_linker='NetBSD (a.out) ld.so'
13411 else
13412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13413 soname_spec='$libname$release$shared_ext$major'
13414 dynamic_linker='NetBSD ld.elf_so'
13415 fi
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=yes
13418 hardcode_into_libs=yes
13419 ;;
13420
13421 *-mlibc)
13422 version_type=linux # correct to gnu/linux during the next big refactor
13423 need_lib_prefix=no
13424 need_version=no
13425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13426 soname_spec='$libname$release$shared_ext$major'
13427 dynamic_linker='mlibc ld.so'
13428 shlibpath_var=LD_LIBRARY_PATH
13429 shlibpath_overrides_runpath=no
13430 hardcode_into_libs=yes
13431 ;;
13432
13433 newsos6)
13434 version_type=linux # correct to gnu/linux during the next big refactor
13435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=yes
13438 ;;
13439
13440 *nto* | *qnx*)
13441 version_type=qnx
13442 need_lib_prefix=no
13443 need_version=no
13444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13445 soname_spec='$libname$release$shared_ext$major'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 shlibpath_overrides_runpath=no
13448 hardcode_into_libs=yes
13449 dynamic_linker='ldqnx.so'
13450 ;;
13451
13452 openbsd*)
13453 version_type=sunos
13454 sys_lib_dlsearch_path_spec=/usr/lib
13455 need_lib_prefix=no
13456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13457 need_version=no
13458 else
13459 need_version=yes
13460 fi
13461 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 shlibpath_overrides_runpath=yes
13465 ;;
13466
13467 os2*)
13468 libname_spec='$name'
13469 version_type=windows
13470 shrext_cmds=.dll
13471 need_version=no
13472 need_lib_prefix=no
13473 # OS/2 can only load a DLL with a base name of 8 characters or less.
13474 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13475 v=$($ECHO $release$versuffix | tr -d .-);
13476 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13477 $ECHO $n$v`$shared_ext'
13478 library_names_spec='${libname}_dll.$libext'
13479 dynamic_linker='OS/2 ld.exe'
13480 shlibpath_var=BEGINLIBPATH
13481 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13483 postinstall_cmds='base_file=`basename \$file`~
13484 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13485 dldir=$destdir/`dirname \$dlpath`~
13486 test -d \$dldir || mkdir -p \$dldir~
13487 $install_prog $dir/$dlname \$dldir/$dlname~
13488 chmod a+x \$dldir/$dlname~
13489 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13490 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13491 fi'
13492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13493 dlpath=$dir/\$dldll~
13494 $RM \$dlpath'
13495 ;;
13496
13497 osf3* | osf4* | osf5*)
13498 version_type=osf
13499 need_lib_prefix=no
13500 need_version=no
13501 soname_spec='$libname$release$shared_ext$major'
13502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13503 shlibpath_var=LD_LIBRARY_PATH
13504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13505 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13506 ;;
13507
13508 rdos*)
13509 dynamic_linker=no
13510 ;;
13511
13512 serenity*)
13513 version_type=linux # correct to gnu/linux during the next big refactor
13514 need_lib_prefix=no
13515 need_version=no
13516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13517 soname_spec='$libname$release$shared_ext$major'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=no
13520 dynamic_linker='SerenityOS LibELF'
13521 ;;
13522
13523 solaris*)
13524 version_type=linux # correct to gnu/linux during the next big refactor
13525 need_lib_prefix=no
13526 need_version=no
13527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13528 soname_spec='$libname$release$shared_ext$major'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 shlibpath_overrides_runpath=yes
13531 hardcode_into_libs=yes
13532 # ldd complains unless libraries are executable
13533 postinstall_cmds='chmod +x $lib'
13534 ;;
13535
13536 sunos4*)
13537 version_type=sunos
13538 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13540 shlibpath_var=LD_LIBRARY_PATH
13541 shlibpath_overrides_runpath=yes
13542 if test yes = "$with_gnu_ld"; then
13543 need_lib_prefix=no
13544 fi
13545 need_version=yes
13546 ;;
13547
13548 sysv4 | sysv4.3*)
13549 version_type=linux # correct to gnu/linux during the next big refactor
13550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13551 soname_spec='$libname$release$shared_ext$major'
13552 shlibpath_var=LD_LIBRARY_PATH
13553 case $host_vendor in
13554 sni)
13555 shlibpath_overrides_runpath=no
13556 need_lib_prefix=no
13557 runpath_var=LD_RUN_PATH
13558 ;;
13559 siemens)
13560 need_lib_prefix=no
13561 ;;
13562 motorola)
13563 need_lib_prefix=no
13564 need_version=no
13565 shlibpath_overrides_runpath=no
13566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13567 ;;
13568 esac
13569 ;;
13570
13571 sysv4*MP*)
13572 if test -d /usr/nec; then
13573 version_type=linux # correct to gnu/linux during the next big refactor
13574 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13575 soname_spec='$libname$shared_ext.$major'
13576 shlibpath_var=LD_LIBRARY_PATH
13577 fi
13578 ;;
13579
13580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13581 version_type=sco
13582 need_lib_prefix=no
13583 need_version=no
13584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13585 soname_spec='$libname$release$shared_ext$major'
13586 shlibpath_var=LD_LIBRARY_PATH
13587 shlibpath_overrides_runpath=yes
13588 hardcode_into_libs=yes
13589 if test yes = "$with_gnu_ld"; then
13590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13591 else
13592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13593 case $host_os in
13594 sco3.2v5*)
13595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13596 ;;
13597 esac
13598 fi
13599 sys_lib_dlsearch_path_spec='/usr/lib'
13600 ;;
13601
13602 tpf*)
13603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13604 version_type=linux # correct to gnu/linux during the next big refactor
13605 need_lib_prefix=no
13606 need_version=no
13607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 shlibpath_overrides_runpath=no
13610 hardcode_into_libs=yes
13611 ;;
13612
13613 uts4*)
13614 version_type=linux # correct to gnu/linux during the next big refactor
13615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13616 soname_spec='$libname$release$shared_ext$major'
13617 shlibpath_var=LD_LIBRARY_PATH
13618 ;;
13619
13620 emscripten*)
13621 version_type=none
13622 need_lib_prefix=no
13623 need_version=no
13624 library_names_spec='$libname$release$shared_ext'
13625 soname_spec='$libname$release$shared_ext'
13626 finish_cmds=
13627 dynamic_linker="Emscripten linker"
13628 lt_prog_compiler_wl=
13629 lt_prog_compiler_pic=
13630 lt_prog_compiler_static=
13631
13632
13633 if test yes = "$GCC"; then
13634 lt_prog_compiler_wl='-Wl,'
13635 lt_prog_compiler_static='-static'
13636
13637 case $host_os in
13638 aix*)
13639 # All AIX code is PIC.
13640 if test ia64 = "$host_cpu"; then
13641 # AIX 5 now supports IA64 processor
13642 lt_prog_compiler_static='-Bstatic'
13643 fi
13644 lt_prog_compiler_pic='-fPIC'
13645 ;;
13646
13647 amigaos*)
13648 case $host_cpu in
13649 powerpc)
13650 # see comment about AmigaOS4 .so support
13651 lt_prog_compiler_pic='-fPIC'
13652 ;;
13653 m68k)
13654 # FIXME: we need at least 68020 code to build shared libraries, but
13655 # adding the '-m68020' flag to GCC prevents building anything better,
13656 # like '-m68040'.
13657 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13658 ;;
13659 esac
13660 ;;
13661
13662 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13663 # PIC is the default for these OSes.
13664 ;;
13665
13666 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13667 # This hack is so that the source file can tell whether it is being
13668 # built for inclusion in a dll (and should export symbols for example).
13669 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13670 # (--disable-auto-import) libraries
13671 lt_prog_compiler_pic='-DDLL_EXPORT'
13672 case $host_os in
13673 os2*)
13674 lt_prog_compiler_static='$wl-static'
13675 ;;
13676 esac
13677 ;;
13678
13679 darwin* | rhapsody*)
13680 # PIC is the default on this platform
13681 # Common symbols not allowed in MH_DYLIB files
13682 lt_prog_compiler_pic='-fno-common'
13683 ;;
13684
13685 haiku*)
13686 # PIC is the default for Haiku.
13687 # The "-static" flag exists, but is broken.
13688 lt_prog_compiler_static=
13689 ;;
13690
13691 hpux*)
13692 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13693 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13694 # sets the default TLS model and affects inlining.
13695 case $host_cpu in
13696 hppa*64*)
13697 # +Z the default
13698 ;;
13699 *)
13700 lt_prog_compiler_pic='-fPIC'
13701 ;;
13702 esac
13703 ;;
13704
13705 interix[3-9]*)
13706 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13707 # Instead, we relocate shared libraries at runtime.
13708 ;;
13709
13710 msdosdjgpp*)
13711 # Just because we use GCC doesn't mean we suddenly get shared libraries
13712 # on systems that don't support them.
13713 lt_prog_compiler_can_build_shared=no
13714 enable_shared=no
13715 ;;
13716
13717 *nto* | *qnx*)
13718 # QNX uses GNU C++, but need to define -shared option too, otherwise
13719 # it will coredump.
13720 lt_prog_compiler_pic='-fPIC -shared'
13721 ;;
13722
13723 sysv4*MP*)
13724 if test -d /usr/nec; then
13725 lt_prog_compiler_pic=-Kconform_pic
13726 fi
13727 ;;
13728
13729 *)
13730 lt_prog_compiler_pic='-fPIC'
13731 ;;
13732 esac
13733
13734 case $cc_basename in
13735 nvcc*) # Cuda Compiler Driver 2.2
13736 lt_prog_compiler_wl='-Xlinker '
13737 if test -n "$lt_prog_compiler_pic"; then
13738 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13739 fi
13740 ;;
13741 esac
13742 else
13743 # PORTME Check for flag to pass linker flags through the system compiler.
13744 case $host_os in
13745 aix*)
13746 lt_prog_compiler_wl='-Wl,'
13747 if test ia64 = "$host_cpu"; then
13748 # AIX 5 now supports IA64 processor
13749 lt_prog_compiler_static='-Bstatic'
13750 else
13751 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13752 fi
13753 ;;
13754
13755 darwin* | rhapsody*)
13756 # PIC is the default on this platform
13757 # Common symbols not allowed in MH_DYLIB files
13758 lt_prog_compiler_pic='-fno-common'
13759 case $cc_basename in
13760 nagfor*)
13761 # NAG Fortran compiler
13762 lt_prog_compiler_wl='-Wl,-Wl,,'
13763 lt_prog_compiler_pic='-PIC'
13764 lt_prog_compiler_static='-Bstatic'
13765 ;;
13766 esac
13767 ;;
13768
13769 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13770 # This hack is so that the source file can tell whether it is being
13771 # built for inclusion in a dll (and should export symbols for example).
13772 lt_prog_compiler_pic='-DDLL_EXPORT'
13773 case $host_os in
13774 os2*)
13775 lt_prog_compiler_static='$wl-static'
13776 ;;
13777 esac
13778 ;;
13779
13780 hpux9* | hpux10* | hpux11*)
13781 lt_prog_compiler_wl='-Wl,'
13782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13783 # not for PA HP-UX.
13784 case $host_cpu in
13785 hppa*64*|ia64*)
13786 # +Z the default
13787 ;;
13788 *)
13789 lt_prog_compiler_pic='+Z'
13790 ;;
13791 esac
13792 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13793 lt_prog_compiler_static='$wl-a ${wl}archive'
13794 ;;
13795
13796 irix5* | irix6* | nonstopux*)
13797 lt_prog_compiler_wl='-Wl,'
13798 # PIC (with -KPIC) is the default.
13799 lt_prog_compiler_static='-non_shared'
13800 ;;
13801
13802 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13803 case $cc_basename in
13804 # old Intel for x86_64, which still supported -KPIC.
13805 ecc*)
13806 lt_prog_compiler_wl='-Wl,'
13807 lt_prog_compiler_pic='-KPIC'
13808 lt_prog_compiler_static='-static'
13809 ;;
13810 *flang* | ftn | f18* | f95*)
13811 # Flang compiler.
13812 lt_prog_compiler_wl='-Wl,'
13813 lt_prog_compiler_pic='-fPIC'
13814 lt_prog_compiler_static='-static'
13815 ;;
13816 # icc used to be incompatible with GCC.
13817 # ICC 10 doesn't accept -KPIC any more.
13818 icc* | ifort*)
13819 lt_prog_compiler_wl='-Wl,'
13820 lt_prog_compiler_pic='-fPIC'
13821 lt_prog_compiler_static='-static'
13822 ;;
13823 # Lahey Fortran 8.1.
13824 lf95*)
13825 lt_prog_compiler_wl='-Wl,'
13826 lt_prog_compiler_pic='--shared'
13827 lt_prog_compiler_static='--static'
13828 ;;
13829 nagfor*)
13830 # NAG Fortran compiler
13831 lt_prog_compiler_wl='-Wl,-Wl,,'
13832 lt_prog_compiler_pic='-PIC'
13833 lt_prog_compiler_static='-Bstatic'
13834 ;;
13835 tcc*)
13836 # Fabrice Bellard et al's Tiny C Compiler
13837 lt_prog_compiler_wl='-Wl,'
13838 lt_prog_compiler_pic='-fPIC'
13839 lt_prog_compiler_static='-static'
13840 ;;
13841 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13842 # Portland Group compilers (*not* the Pentium gcc compiler,
13843 # which looks to be a dead project)
13844 lt_prog_compiler_wl='-Wl,'
13845 lt_prog_compiler_pic='-fpic'
13846 lt_prog_compiler_static='-Bstatic'
13847 ;;
13848 ccc*)
13849 lt_prog_compiler_wl='-Wl,'
13850 # All Alpha code is PIC.
13851 lt_prog_compiler_static='-non_shared'
13852 ;;
13853 xl* | bgxl* | bgf* | mpixl*)
13854 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13855 lt_prog_compiler_wl='-Wl,'
13856 lt_prog_compiler_pic='-qpic'
13857 lt_prog_compiler_static='-qstaticlink'
13858 ;;
13859 *)
13860 case `$CC -V 2>&1 | $SED 5q` in
13861 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13862 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13863 lt_prog_compiler_pic='-KPIC'
13864 lt_prog_compiler_static='-Bstatic'
13865 lt_prog_compiler_wl=''
13866 ;;
13867 *Sun\ F* | *Sun*Fortran*)
13868 lt_prog_compiler_pic='-KPIC'
13869 lt_prog_compiler_static='-Bstatic'
13870 lt_prog_compiler_wl='-Qoption ld '
13871 ;;
13872 *Sun\ C*)
13873 # Sun C 5.9
13874 lt_prog_compiler_pic='-KPIC'
13875 lt_prog_compiler_static='-Bstatic'
13876 lt_prog_compiler_wl='-Wl,'
13877 ;;
13878 *Intel*\ [CF]*Compiler*)
13879 lt_prog_compiler_wl='-Wl,'
13880 lt_prog_compiler_pic='-fPIC'
13881 lt_prog_compiler_static='-static'
13882 ;;
13883 *Portland\ Group*)
13884 lt_prog_compiler_wl='-Wl,'
13885 lt_prog_compiler_pic='-fpic'
13886 lt_prog_compiler_static='-Bstatic'
13887 ;;
13888 esac
13889 ;;
13890 esac
13891 ;;
13892
13893 newsos6)
13894 lt_prog_compiler_pic='-KPIC'
13895 lt_prog_compiler_static='-Bstatic'
13896 ;;
13897
13898 *-mlibc)
13899 lt_prog_compiler_wl='-Wl,'
13900 lt_prog_compiler_pic='-fPIC'
13901 lt_prog_compiler_static='-static'
13902 ;;
13903
13904 *nto* | *qnx*)
13905 # QNX uses GNU C++, but need to define -shared option too, otherwise
13906 # it will coredump.
13907 lt_prog_compiler_pic='-fPIC -shared'
13908 ;;
13909
13910 osf3* | osf4* | osf5*)
13911 lt_prog_compiler_wl='-Wl,'
13912 # All OSF/1 code is PIC.
13913 lt_prog_compiler_static='-non_shared'
13914 ;;
13915
13916 rdos*)
13917 lt_prog_compiler_static='-non_shared'
13918 ;;
13919
13920 serenity*)
13921 ;;
13922
13923 solaris*)
13924 lt_prog_compiler_pic='-KPIC'
13925 lt_prog_compiler_static='-Bstatic'
13926 case $cc_basename in
13927 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13928 lt_prog_compiler_wl='-Qoption ld ';;
13929 *)
13930 lt_prog_compiler_wl='-Wl,';;
13931 esac
13932 ;;
13933
13934 sunos4*)
13935 lt_prog_compiler_wl='-Qoption ld '
13936 lt_prog_compiler_pic='-PIC'
13937 lt_prog_compiler_static='-Bstatic'
13938 ;;
13939
13940 sysv4 | sysv4.2uw2* | sysv4.3*)
13941 lt_prog_compiler_wl='-Wl,'
13942 lt_prog_compiler_pic='-KPIC'
13943 lt_prog_compiler_static='-Bstatic'
13944 ;;
13945
13946 sysv4*MP*)
13947 if test -d /usr/nec; then
13948 lt_prog_compiler_pic='-Kconform_pic'
13949 lt_prog_compiler_static='-Bstatic'
13950 fi
13951 ;;
13952
13953 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13954 lt_prog_compiler_wl='-Wl,'
13955 lt_prog_compiler_pic='-KPIC'
13956 lt_prog_compiler_static='-Bstatic'
13957 ;;
13958
13959 unicos*)
13960 lt_prog_compiler_wl='-Wl,'
13961 lt_prog_compiler_can_build_shared=no
13962 ;;
13963
13964 uts4*)
13965 lt_prog_compiler_pic='-pic'
13966 lt_prog_compiler_static='-Bstatic'
13967 ;;
13968
13969 *)
13970 lt_prog_compiler_can_build_shared=no
13971 ;;
13972 esac
13973 fi
13974
13975 case $host_os in
13976 # For platforms that do not support PIC, -DPIC is meaningless:
13977 *djgpp*)
13978 lt_prog_compiler_pic=
13979 ;;
13980 *)
13981 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13982 ;;
13983 esac
13984
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13986 printf %s "checking for $compiler option to produce PIC... " >&6; }
13987 if test ${lt_cv_prog_compiler_pic+y}
13988 then :
13989 printf %s "(cached) " >&6
13990 else case e in #(
13991 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13992 esac
13993 fi
13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13995 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13996 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13997
13998 #
13999 # Check to make sure the PIC flag actually works.
14000 #
14001 if test -n "$lt_prog_compiler_pic"; then
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14003 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14004 if test ${lt_cv_prog_compiler_pic_works+y}
14005 then :
14006 printf %s "(cached) " >&6
14007 else case e in #(
14008 e) lt_cv_prog_compiler_pic_works=no
14009 ac_outfile=conftest.$ac_objext
14010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14011 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14012 # Insert the option either (1) after the last *FLAGS variable, or
14013 # (2) before a word containing "conftest.", or (3) at the end.
14014 # Note that $ac_compile itself does not contain backslashes and begins
14015 # with a dollar sign (not a hyphen), so the echo should work correctly.
14016 # The option is referenced via a variable to avoid confusing sed.
14017 lt_compile=`echo "$ac_compile" | $SED \
14018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14020 -e 's:$: $lt_compiler_flag:'`
14021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14022 (eval "$lt_compile" 2>conftest.err)
14023 ac_status=$?
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 if (exit $ac_status) && test -s "$ac_outfile"; then
14027 # The compiler can only warn and ignore the option if not recognized
14028 # So say no if there are warnings other than the usual output.
14029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14032 lt_cv_prog_compiler_pic_works=yes
14033 fi
14034 fi
14035 $RM conftest*
14036 ;;
14037 esac
14038 fi
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14040 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14041
14042 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14043 case $lt_prog_compiler_pic in
14044 "" | " "*) ;;
14045 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14046 esac
14047 else
14048 lt_prog_compiler_pic=
14049 lt_prog_compiler_can_build_shared=no
14050 fi
14051
14052 fi
14053
14054
14055
14056
14057
14058 #
14059 # Check to make sure the static flag actually works.
14060 #
14061 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14063 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14064 if test ${lt_cv_prog_compiler_static_works+y}
14065 then :
14066 printf %s "(cached) " >&6
14067 else case e in #(
14068 e) lt_cv_prog_compiler_static_works=no
14069 save_LDFLAGS=$LDFLAGS
14070 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14071 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14072 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14073 # The linker can only warn and ignore the option if not recognized
14074 # So say no if there are warnings
14075 if test -s conftest.err; then
14076 # Append any errors to the config.log.
14077 cat conftest.err 1>&5
14078 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14080 if diff conftest.exp conftest.er2 >/dev/null; then
14081 lt_cv_prog_compiler_static_works=yes
14082 fi
14083 else
14084 lt_cv_prog_compiler_static_works=yes
14085 fi
14086 fi
14087 $RM -r conftest*
14088 LDFLAGS=$save_LDFLAGS
14089 ;;
14090 esac
14091 fi
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14093 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14094
14095 if test yes = "$lt_cv_prog_compiler_static_works"; then
14096 :
14097 else
14098 lt_prog_compiler_static=
14099 fi
14100
14101
14102
14103 ='-fPIC'
14104 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14105 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'
14106 archive_cmds_need_lc=no
14107 no_undefined_flag=
14108 ;;
14109
14110 *)
14111 dynamic_linker=no
14112 ;;
14113 esac
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14115 printf "%s\n" "$dynamic_linker" >&6; }
14116 test no = "$dynamic_linker" && can_build_shared=no
14117
14118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14119 if test yes = "$GCC"; then
14120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14121 fi
14122
14123 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14124 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14125 fi
14126
14127 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14128 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14129 fi
14130
14131 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14132 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14133
14134 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14135 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14136
14137 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14138 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14237 printf %s "checking how to hardcode library paths into programs... " >&6; }
14238 hardcode_action=
14239 if test -n "$hardcode_libdir_flag_spec" ||
14240 test -n "$runpath_var" ||
14241 test yes = "$hardcode_automatic"; then
14242
14243 # We can hardcode non-existent directories.
14244 if test no != "$hardcode_direct" &&
14245 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14246 # have to relink, otherwise we might link with an installed library
14247 # when we should be linking with a yet-to-be-installed one
14248 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14249 test no != "$hardcode_minus_L"; then
14250 # Linking always hardcodes the temporary library directory.
14251 hardcode_action=relink
14252 else
14253 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14254 hardcode_action=immediate
14255 fi
14256 else
14257 # We cannot hardcode anything, or else we can only hardcode existing
14258 # directories.
14259 hardcode_action=unsupported
14260 fi
14261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14262 printf "%s\n" "$hardcode_action" >&6; }
14263
14264 if test relink = "$hardcode_action" ||
14265 test yes = "$inherit_rpath"; then
14266 # Fast installation is not supported
14267 enable_fast_install=no
14268 elif test yes = "$shlibpath_overrides_runpath" ||
14269 test no = "$enable_shared"; then
14270 # Fast installation is not necessary
14271 enable_fast_install=needless
14272 fi
14273
14274
14275
14276
14277
14278
14279 if test yes != "$enable_dlopen"; then
14280 enable_dlopen=unknown
14281 enable_dlopen_self=unknown
14282 enable_dlopen_self_static=unknown
14283 else
14284 lt_cv_dlopen=no
14285 lt_cv_dlopen_libs=
14286
14287 case $host_os in
14288 beos*)
14289 lt_cv_dlopen=load_add_on
14290 lt_cv_dlopen_libs=
14291 lt_cv_dlopen_self=yes
14292 ;;
14293
14294 mingw* | windows* | pw32* | cegcc*)
14295 lt_cv_dlopen=LoadLibrary
14296 lt_cv_dlopen_libs=
14297 ;;
14298
14299 cygwin*)
14300 lt_cv_dlopen=dlopen
14301 lt_cv_dlopen_libs=
14302 ;;
14303
14304 darwin*)
14305 # if libdl is installed we need to link against it
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14307 printf %s "checking for dlopen in -ldl... " >&6; }
14308 if test ${ac_cv_lib_dl_dlopen+y}
14309 then :
14310 printf %s "(cached) " >&6
14311 else case e in #(
14312 e) ac_check_lib_save_LIBS=$LIBS
14313 LIBS="-ldl $LIBS"
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316
14317 /* Override any GCC internal prototype to avoid an error.
14318 Use char because int might match the return type of a GCC
14319 builtin and then its argument prototype would still apply.
14320 The 'extern "C"' is for builds by C++ compilers;
14321 although this is not generally supported in C code supporting it here
14322 has little cost and some practical benefit (sr 110532). */
14323 #ifdef __cplusplus
14324 extern "C"
14325 #endif
14326 char dlopen (void);
14327 int
14328 main (void)
14329 {
14330 return dlopen ();
14331 ;
14332 return 0;
14333 }
14334 _ACEOF
14335 if ac_fn_c_try_link "$LINENO"
14336 then :
14337 ac_cv_lib_dl_dlopen=yes
14338 else case e in #(
14339 e) ac_cv_lib_dl_dlopen=no ;;
14340 esac
14341 fi
14342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14343 conftest$ac_exeext conftest.$ac_ext
14344 LIBS=$ac_check_lib_save_LIBS ;;
14345 esac
14346 fi
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14348 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14349 if test "x$ac_cv_lib_dl_dlopen" = xyes
14350 then :
14351 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14352 else case e in #(
14353 e)
14354 lt_cv_dlopen=dyld
14355 lt_cv_dlopen_libs=
14356 lt_cv_dlopen_self=yes
14357 ;;
14358 esac
14359 fi
14360
14361 ;;
14362
14363 tpf*)
14364 # Don't try to run any link tests for TPF. We know it's impossible
14365 # because TPF is a cross-compiler, and we know how we open DSOs.
14366 lt_cv_dlopen=dlopen
14367 lt_cv_dlopen_libs=
14368 lt_cv_dlopen_self=no
14369 ;;
14370
14371 *)
14372 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14373 if test "x$ac_cv_func_shl_load" = xyes
14374 then :
14375 lt_cv_dlopen=shl_load
14376 else case e in #(
14377 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14378 printf %s "checking for shl_load in -ldld... " >&6; }
14379 if test ${ac_cv_lib_dld_shl_load+y}
14380 then :
14381 printf %s "(cached) " >&6
14382 else case e in #(
14383 e) ac_check_lib_save_LIBS=$LIBS
14384 LIBS="-ldld $LIBS"
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply.
14391 The 'extern "C"' is for builds by C++ compilers;
14392 although this is not generally supported in C code supporting it here
14393 has little cost and some practical benefit (sr 110532). */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 char shl_load (void);
14398 int
14399 main (void)
14400 {
14401 return shl_load ();
14402 ;
14403 return 0;
14404 }
14405 _ACEOF
14406 if ac_fn_c_try_link "$LINENO"
14407 then :
14408 ac_cv_lib_dld_shl_load=yes
14409 else case e in #(
14410 e) ac_cv_lib_dld_shl_load=no ;;
14411 esac
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LIBS=$ac_check_lib_save_LIBS ;;
14416 esac
14417 fi
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14419 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14420 if test "x$ac_cv_lib_dld_shl_load" = xyes
14421 then :
14422 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14423 else case e in #(
14424 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14425 if test "x$ac_cv_func_dlopen" = xyes
14426 then :
14427 lt_cv_dlopen=dlopen
14428 else case e in #(
14429 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14430 printf %s "checking for dlopen in -ldl... " >&6; }
14431 if test ${ac_cv_lib_dl_dlopen+y}
14432 then :
14433 printf %s "(cached) " >&6
14434 else case e in #(
14435 e) ac_check_lib_save_LIBS=$LIBS
14436 LIBS="-ldl $LIBS"
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439
14440 /* Override any GCC internal prototype to avoid an error.
14441 Use char because int might match the return type of a GCC
14442 builtin and then its argument prototype would still apply.
14443 The 'extern "C"' is for builds by C++ compilers;
14444 although this is not generally supported in C code supporting it here
14445 has little cost and some practical benefit (sr 110532). */
14446 #ifdef __cplusplus
14447 extern "C"
14448 #endif
14449 char dlopen (void);
14450 int
14451 main (void)
14452 {
14453 return dlopen ();
14454 ;
14455 return 0;
14456 }
14457 _ACEOF
14458 if ac_fn_c_try_link "$LINENO"
14459 then :
14460 ac_cv_lib_dl_dlopen=yes
14461 else case e in #(
14462 e) ac_cv_lib_dl_dlopen=no ;;
14463 esac
14464 fi
14465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14466 conftest$ac_exeext conftest.$ac_ext
14467 LIBS=$ac_check_lib_save_LIBS ;;
14468 esac
14469 fi
14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14471 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14472 if test "x$ac_cv_lib_dl_dlopen" = xyes
14473 then :
14474 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14475 else case e in #(
14476 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14477 printf %s "checking for dlopen in -lsvld... " >&6; }
14478 if test ${ac_cv_lib_svld_dlopen+y}
14479 then :
14480 printf %s "(cached) " >&6
14481 else case e in #(
14482 e) ac_check_lib_save_LIBS=$LIBS
14483 LIBS="-lsvld $LIBS"
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486
14487 /* Override any GCC internal prototype to avoid an error.
14488 Use char because int might match the return type of a GCC
14489 builtin and then its argument prototype would still apply.
14490 The 'extern "C"' is for builds by C++ compilers;
14491 although this is not generally supported in C code supporting it here
14492 has little cost and some practical benefit (sr 110532). */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 char dlopen (void);
14497 int
14498 main (void)
14499 {
14500 return dlopen ();
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 if ac_fn_c_try_link "$LINENO"
14506 then :
14507 ac_cv_lib_svld_dlopen=yes
14508 else case e in #(
14509 e) ac_cv_lib_svld_dlopen=no ;;
14510 esac
14511 fi
14512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14513 conftest$ac_exeext conftest.$ac_ext
14514 LIBS=$ac_check_lib_save_LIBS ;;
14515 esac
14516 fi
14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14518 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14519 if test "x$ac_cv_lib_svld_dlopen" = xyes
14520 then :
14521 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14522 else case e in #(
14523 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14524 printf %s "checking for dld_link in -ldld... " >&6; }
14525 if test ${ac_cv_lib_dld_dld_link+y}
14526 then :
14527 printf %s "(cached) " >&6
14528 else case e in #(
14529 e) ac_check_lib_save_LIBS=$LIBS
14530 LIBS="-ldld $LIBS"
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533
14534 /* Override any GCC internal prototype to avoid an error.
14535 Use char because int might match the return type of a GCC
14536 builtin and then its argument prototype would still apply.
14537 The 'extern "C"' is for builds by C++ compilers;
14538 although this is not generally supported in C code supporting it here
14539 has little cost and some practical benefit (sr 110532). */
14540 #ifdef __cplusplus
14541 extern "C"
14542 #endif
14543 char dld_link (void);
14544 int
14545 main (void)
14546 {
14547 return dld_link ();
14548 ;
14549 return 0;
14550 }
14551 _ACEOF
14552 if ac_fn_c_try_link "$LINENO"
14553 then :
14554 ac_cv_lib_dld_dld_link=yes
14555 else case e in #(
14556 e) ac_cv_lib_dld_dld_link=no ;;
14557 esac
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14560 conftest$ac_exeext conftest.$ac_ext
14561 LIBS=$ac_check_lib_save_LIBS ;;
14562 esac
14563 fi
14564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14565 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14566 if test "x$ac_cv_lib_dld_dld_link" = xyes
14567 then :
14568 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14569 fi
14570
14571 ;;
14572 esac
14573 fi
14574
14575 ;;
14576 esac
14577 fi
14578
14579 ;;
14580 esac
14581 fi
14582
14583 ;;
14584 esac
14585 fi
14586
14587 ;;
14588 esac
14589 fi
14590
14591 ;;
14592 esac
14593
14594 if test no = "$lt_cv_dlopen"; then
14595 enable_dlopen=no
14596 else
14597 enable_dlopen=yes
14598 fi
14599
14600 case $lt_cv_dlopen in
14601 dlopen)
14602 save_CPPFLAGS=$CPPFLAGS
14603 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14604
14605 save_LDFLAGS=$LDFLAGS
14606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14607
14608 save_LIBS=$LIBS
14609 LIBS="$lt_cv_dlopen_libs $LIBS"
14610
14611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14612 printf %s "checking whether a program can dlopen itself... " >&6; }
14613 if test ${lt_cv_dlopen_self+y}
14614 then :
14615 printf %s "(cached) " >&6
14616 else case e in #(
14617 e) if test yes = "$cross_compiling"; then :
14618 lt_cv_dlopen_self=cross
14619 else
14620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14621 lt_status=$lt_dlunknown
14622 cat > conftest.$ac_ext <<_LT_EOF
14623 #line $LINENO "configure"
14624 #include "confdefs.h"
14625
14626 #if HAVE_DLFCN_H
14627 #include <dlfcn.h>
14628 #endif
14629
14630 #include <stdio.h>
14631
14632 #ifdef RTLD_GLOBAL
14633 # define LT_DLGLOBAL RTLD_GLOBAL
14634 #else
14635 # ifdef DL_GLOBAL
14636 # define LT_DLGLOBAL DL_GLOBAL
14637 # else
14638 # define LT_DLGLOBAL 0
14639 # endif
14640 #endif
14641
14642 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14643 find out it does not work in some platform. */
14644 #ifndef LT_DLLAZY_OR_NOW
14645 # ifdef RTLD_LAZY
14646 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14647 # else
14648 # ifdef DL_LAZY
14649 # define LT_DLLAZY_OR_NOW DL_LAZY
14650 # else
14651 # ifdef RTLD_NOW
14652 # define LT_DLLAZY_OR_NOW RTLD_NOW
14653 # else
14654 # ifdef DL_NOW
14655 # define LT_DLLAZY_OR_NOW DL_NOW
14656 # else
14657 # define LT_DLLAZY_OR_NOW 0
14658 # endif
14659 # endif
14660 # endif
14661 # endif
14662 #endif
14663
14664 /* When -fvisibility=hidden is used, assume the code has been annotated
14665 correspondingly for the symbols needed. */
14666 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14667 int fnord (void) __attribute__((visibility("default")));
14668 #endif
14669
14670 int fnord (void) { return 42; }
14671 int main (void)
14672 {
14673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14674 int status = $lt_dlunknown;
14675
14676 if (self)
14677 {
14678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14679 else
14680 {
14681 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14682 else puts (dlerror ());
14683 }
14684 /* dlclose (self); */
14685 }
14686 else
14687 puts (dlerror ());
14688
14689 return status;
14690 }
14691 _LT_EOF
14692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14693 (eval $ac_link) 2>&5
14694 ac_status=$?
14695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14696 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14697 (./conftest; exit; ) >&5 2>/dev/null
14698 lt_status=$?
14699 case x$lt_status in
14700 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14701 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14702 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14703 esac
14704 else :
14705 # compilation failed
14706 lt_cv_dlopen_self=no
14707 fi
14708 fi
14709 rm -fr conftest*
14710
14711 ;;
14712 esac
14713 fi
14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14715 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14716
14717 if test yes = "$lt_cv_dlopen_self"; then
14718 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14720 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14721 if test ${lt_cv_dlopen_self_static+y}
14722 then :
14723 printf %s "(cached) " >&6
14724 else case e in #(
14725 e) if test yes = "$cross_compiling"; then :
14726 lt_cv_dlopen_self_static=cross
14727 else
14728 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14729 lt_status=$lt_dlunknown
14730 cat > conftest.$ac_ext <<_LT_EOF
14731 #line $LINENO "configure"
14732 #include "confdefs.h"
14733
14734 #if HAVE_DLFCN_H
14735 #include <dlfcn.h>
14736 #endif
14737
14738 #include <stdio.h>
14739
14740 #ifdef RTLD_GLOBAL
14741 # define LT_DLGLOBAL RTLD_GLOBAL
14742 #else
14743 # ifdef DL_GLOBAL
14744 # define LT_DLGLOBAL DL_GLOBAL
14745 # else
14746 # define LT_DLGLOBAL 0
14747 # endif
14748 #endif
14749
14750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14751 find out it does not work in some platform. */
14752 #ifndef LT_DLLAZY_OR_NOW
14753 # ifdef RTLD_LAZY
14754 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14755 # else
14756 # ifdef DL_LAZY
14757 # define LT_DLLAZY_OR_NOW DL_LAZY
14758 # else
14759 # ifdef RTLD_NOW
14760 # define LT_DLLAZY_OR_NOW RTLD_NOW
14761 # else
14762 # ifdef DL_NOW
14763 # define LT_DLLAZY_OR_NOW DL_NOW
14764 # else
14765 # define LT_DLLAZY_OR_NOW 0
14766 # endif
14767 # endif
14768 # endif
14769 # endif
14770 #endif
14771
14772 /* When -fvisibility=hidden is used, assume the code has been annotated
14773 correspondingly for the symbols needed. */
14774 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14775 int fnord (void) __attribute__((visibility("default")));
14776 #endif
14777
14778 int fnord (void) { return 42; }
14779 int main (void)
14780 {
14781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14782 int status = $lt_dlunknown;
14783
14784 if (self)
14785 {
14786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14787 else
14788 {
14789 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14790 else puts (dlerror ());
14791 }
14792 /* dlclose (self); */
14793 }
14794 else
14795 puts (dlerror ());
14796
14797 return status;
14798 }
14799 _LT_EOF
14800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14801 (eval $ac_link) 2>&5
14802 ac_status=$?
14803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14804 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14805 (./conftest; exit; ) >&5 2>/dev/null
14806 lt_status=$?
14807 case x$lt_status in
14808 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14809 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14810 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14811 esac
14812 else :
14813 # compilation failed
14814 lt_cv_dlopen_self_static=no
14815 fi
14816 fi
14817 rm -fr conftest*
14818
14819 ;;
14820 esac
14821 fi
14822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14823 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14824 fi
14825
14826 CPPFLAGS=$save_CPPFLAGS
14827 LDFLAGS=$save_LDFLAGS
14828 LIBS=$save_LIBS
14829 ;;
14830 esac
14831
14832 case $lt_cv_dlopen_self in
14833 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14834 *) enable_dlopen_self=unknown ;;
14835 esac
14836
14837 case $lt_cv_dlopen_self_static in
14838 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14839 *) enable_dlopen_self_static=unknown ;;
14840 esac
14841 fi
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859 striplib=
14860 old_striplib=
14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14862 printf %s "checking whether stripping libraries is possible... " >&6; }
14863 if test -z "$STRIP"; then
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865 printf "%s\n" "no" >&6; }
14866 else
14867 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14868 old_striplib="$STRIP --strip-debug"
14869 striplib="$STRIP --strip-unneeded"
14870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14871 printf "%s\n" "yes" >&6; }
14872 else
14873 case $host_os in
14874 darwin*)
14875 # FIXME - insert some real tests, host_os isn't really good enough
14876 striplib="$STRIP -x"
14877 old_striplib="$STRIP -S"
14878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14879 printf "%s\n" "yes" >&6; }
14880 ;;
14881 freebsd*)
14882 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14883 old_striplib="$STRIP --strip-debug"
14884 striplib="$STRIP --strip-unneeded"
14885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14886 printf "%s\n" "yes" >&6; }
14887 else
14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 printf "%s\n" "no" >&6; }
14890 fi
14891 ;;
14892 *)
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894 printf "%s\n" "no" >&6; }
14895 ;;
14896 esac
14897 fi
14898 fi
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911 # Report what library types will actually be built
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14913 printf %s "checking if libtool supports shared libraries... " >&6; }
14914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14915 printf "%s\n" "$can_build_shared" >&6; }
14916
14917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14918 printf %s "checking whether to build shared libraries... " >&6; }
14919 test no = "$can_build_shared" && enable_shared=no
14920
14921 # On AIX, shared libraries and static libraries use the same namespace, and
14922 # are all built from PIC.
14923 case $host_os in
14924 aix3*)
14925 test yes = "$enable_shared" && enable_static=no
14926 if test -n "$RANLIB"; then
14927 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14928 postinstall_cmds='$RANLIB $lib'
14929 fi
14930 ;;
14931
14932 aix[4-9]*)
14933 if test ia64 != "$host_cpu"; then
14934 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14935 yes,aix,yes) ;; # shared object as lib.so file only
14936 yes,svr4,*) ;; # shared object as lib.so archive member only
14937 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14938 esac
14939 fi
14940 ;;
14941 esac
14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14943 printf "%s\n" "$enable_shared" >&6; }
14944
14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14946 printf %s "checking whether to build static libraries... " >&6; }
14947 # Make sure either enable_shared or enable_static is yes.
14948 test yes = "$enable_shared" || enable_static=yes
14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14950 printf "%s\n" "$enable_static" >&6; }
14951
14952
14953
14954
14955 fi
14956 ac_ext=c
14957 ac_cpp='$CPP $CPPFLAGS'
14958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14961
14962 CC=$lt_save_CC
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978 ac_config_commands="$ac_config_commands libtool"
14979
14980
14981
14982
14983 # Only expand once:
14984
14985
14986 # (end lt_init)
14987 # Check whether --enable-largefile was given.
14988 if test ${enable_largefile+y}
14989 then :
14990 enableval=$enable_largefile;
14991 fi
14992 if test "$enable_largefile,$enable_year2038" != no,no
14993 then :
14994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14995 printf %s "checking for $CC option to enable large file support... " >&6; }
14996 if test ${ac_cv_sys_largefile_opts+y}
14997 then :
14998 printf %s "(cached) " >&6
14999 else case e in #(
15000 e) ac_save_CC="$CC"
15001 ac_opt_found=no
15002 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15003 if test x"$ac_opt" != x"none needed"
15004 then :
15005 CC="$ac_save_CC $ac_opt"
15006 fi
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15009 #include <sys/types.h>
15010 #ifndef FTYPE
15011 # define FTYPE off_t
15012 #endif
15013 /* Check that FTYPE can represent 2**63 - 1 correctly.
15014 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15015 since some C++ compilers masquerading as C compilers
15016 incorrectly reject 9223372036854775807. */
15017 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15018 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15019 && LARGE_FTYPE % 2147483647 == 1)
15020 ? 1 : -1];
15021 int
15022 main (void)
15023 {
15024
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 if ac_fn_c_try_compile "$LINENO"
15030 then :
15031 if test x"$ac_opt" = x"none needed"
15032 then :
15033 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15034 CC="$CC -DFTYPE=ino_t"
15035 if ac_fn_c_try_compile "$LINENO"
15036 then :
15037
15038 else case e in #(
15039 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15040 if ac_fn_c_try_compile "$LINENO"
15041 then :
15042 ac_opt='-D_FILE_OFFSET_BITS=64'
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15045 esac
15046 fi
15047 rm -f core conftest.err conftest.$ac_objext conftest.beam
15048 fi
15049 ac_cv_sys_largefile_opts=$ac_opt
15050 ac_opt_found=yes
15051 fi
15052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15053 test $ac_opt_found = no || break
15054 done
15055 CC="$ac_save_CC"
15056
15057 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15058 esac
15059 fi
15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15061 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15062
15063 ac_have_largefile=yes
15064 case $ac_cv_sys_largefile_opts in #(
15065 "none needed") :
15066 ;; #(
15067 "supported through gnulib") :
15068 ;; #(
15069 "support not detected") :
15070 ac_have_largefile=no ;; #(
15071 "-D_FILE_OFFSET_BITS=64") :
15072
15073 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15074 ;; #(
15075 "-D_LARGE_FILES=1") :
15076
15077 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15078 ;; #(
15079 "-n32") :
15080 CC="$CC -n32" ;; #(
15081 *) :
15082 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15083 esac
15084
15085 if test "$enable_year2038" != no
15086 then :
15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15088 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15089 if test ${ac_cv_sys_year2038_opts+y}
15090 then :
15091 printf %s "(cached) " >&6
15092 else case e in #(
15093 e) ac_save_CPPFLAGS="$CPPFLAGS"
15094 ac_opt_found=no
15095 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
15096 if test x"$ac_opt" != x"none needed"
15097 then :
15098 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15099 fi
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102
15103 #include <time.h>
15104 /* Check that time_t can represent 2**32 - 1 correctly. */
15105 #define LARGE_TIME_T \\
15106 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15107 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15108 && LARGE_TIME_T % 65537 == 0)
15109 ? 1 : -1];
15110
15111 int
15112 main (void)
15113 {
15114
15115 ;
15116 return 0;
15117 }
15118 _ACEOF
15119 if ac_fn_c_try_compile "$LINENO"
15120 then :
15121 ac_cv_sys_year2038_opts="$ac_opt"
15122 ac_opt_found=yes
15123 fi
15124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15125 test $ac_opt_found = no || break
15126 done
15127 CPPFLAGS="$ac_save_CPPFLAGS"
15128 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15129 esac
15130 fi
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15132 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15133
15134 ac_have_year2038=yes
15135 case $ac_cv_sys_year2038_opts in #(
15136 "none needed") :
15137 ;; #(
15138 "support not detected") :
15139 ac_have_year2038=no ;; #(
15140 "-D_TIME_BITS=64") :
15141
15142 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15143 ;; #(
15144 "-D__MINGW_USE_VC2005_COMPAT") :
15145
15146 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15147 ;; #(
15148 "-U_USE_32_BIT_TIME_T"*) :
15149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15150 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15151 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15152 will stop working after mid-January 2038. Remove
15153 _USE_32BIT_TIME_T from the compiler flags.
15154 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15155 *) :
15156 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15157 esac
15158
15159 fi
15160
15161 fi
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15163 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15164 if test ${ac_cv_func_fseeko_ftello+y}
15165 then :
15166 printf %s "(cached) " >&6
15167 else case e in #(
15168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15170
15171 #if defined __hpux && !defined _LARGEFILE_SOURCE
15172 # include <limits.h>
15173 # if LONG_MAX >> 31 == 0
15174 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15175 # endif
15176 #endif
15177 #include <sys/types.h> /* for off_t */
15178 #include <stdio.h>
15179
15180 int
15181 main (void)
15182 {
15183
15184 int (*fp1) (FILE *, off_t, int) = fseeko;
15185 off_t (*fp2) (FILE *) = ftello;
15186 return fseeko (stdin, 0, 0)
15187 && fp1 (stdin, 0, 0)
15188 && ftello (stdin) >= 0
15189 && fp2 (stdin) >= 0;
15190
15191 ;
15192 return 0;
15193 }
15194 _ACEOF
15195 if ac_fn_c_try_compile "$LINENO"
15196 then :
15197 ac_cv_func_fseeko_ftello=yes
15198 else case e in #(
15199 e) ac_save_CPPFLAGS="$CPPFLAGS"
15200 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203
15204 #if defined __hpux && !defined _LARGEFILE_SOURCE
15205 # include <limits.h>
15206 # if LONG_MAX >> 31 == 0
15207 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15208 # endif
15209 #endif
15210 #include <sys/types.h> /* for off_t */
15211 #include <stdio.h>
15212
15213 int
15214 main (void)
15215 {
15216
15217 int (*fp1) (FILE *, off_t, int) = fseeko;
15218 off_t (*fp2) (FILE *) = ftello;
15219 return fseeko (stdin, 0, 0)
15220 && fp1 (stdin, 0, 0)
15221 && ftello (stdin) >= 0
15222 && fp2 (stdin) >= 0;
15223
15224 ;
15225 return 0;
15226 }
15227 _ACEOF
15228 if ac_fn_c_try_compile "$LINENO"
15229 then :
15230 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15231 else case e in #(
15232 e) ac_cv_func_fseeko_ftello=no ;;
15233 esac
15234 fi
15235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15236 esac
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15239 esac
15240 fi
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15242 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15243 if test "$ac_cv_func_fseeko_ftello" != no
15244 then :
15245
15246 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15247
15248 fi
15249 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15250 then :
15251
15252 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15253
15254 fi
15255
15256 ac_header_dirent=no
15257 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15258 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15260 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15261 if eval test \${$as_ac_Header+y}
15262 then :
15263 printf %s "(cached) " >&6
15264 else case e in #(
15265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 #include <sys/types.h>
15268 #include <$ac_hdr>
15269
15270 int
15271 main (void)
15272 {
15273 if ((DIR *) 0)
15274 return 0;
15275 ;
15276 return 0;
15277 }
15278 _ACEOF
15279 if ac_fn_c_try_compile "$LINENO"
15280 then :
15281 eval "$as_ac_Header=yes"
15282 else case e in #(
15283 e) eval "$as_ac_Header=no" ;;
15284 esac
15285 fi
15286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15287 esac
15288 fi
15289 eval ac_res=\$$as_ac_Header
15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15291 printf "%s\n" "$ac_res" >&6; }
15292 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15293 then :
15294 cat >>confdefs.h <<_ACEOF
15295 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15296 _ACEOF
15297
15298 ac_header_dirent=$ac_hdr; break
15299 fi
15300
15301 done
15302 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15303 if test $ac_header_dirent = dirent.h; then
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15305 printf %s "checking for library containing opendir... " >&6; }
15306 if test ${ac_cv_search_opendir+y}
15307 then :
15308 printf %s "(cached) " >&6
15309 else case e in #(
15310 e) ac_func_search_save_LIBS=$LIBS
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply.
15317 The 'extern "C"' is for builds by C++ compilers;
15318 although this is not generally supported in C code supporting it here
15319 has little cost and some practical benefit (sr 110532). */
15320 #ifdef __cplusplus
15321 extern "C"
15322 #endif
15323 char opendir (void);
15324 int
15325 main (void)
15326 {
15327 return opendir ();
15328 ;
15329 return 0;
15330 }
15331 _ACEOF
15332 for ac_lib in '' dir
15333 do
15334 if test -z "$ac_lib"; then
15335 ac_res="none required"
15336 else
15337 ac_res=-l$ac_lib
15338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15339 fi
15340 if ac_fn_c_try_link "$LINENO"
15341 then :
15342 ac_cv_search_opendir=$ac_res
15343 fi
15344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15345 conftest$ac_exeext
15346 if test ${ac_cv_search_opendir+y}
15347 then :
15348 break
15349 fi
15350 done
15351 if test ${ac_cv_search_opendir+y}
15352 then :
15353
15354 else case e in #(
15355 e) ac_cv_search_opendir=no ;;
15356 esac
15357 fi
15358 rm conftest.$ac_ext
15359 LIBS=$ac_func_search_save_LIBS ;;
15360 esac
15361 fi
15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15363 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15364 ac_res=$ac_cv_search_opendir
15365 if test "$ac_res" != no
15366 then :
15367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15368
15369 fi
15370
15371 else
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15373 printf %s "checking for library containing opendir... " >&6; }
15374 if test ${ac_cv_search_opendir+y}
15375 then :
15376 printf %s "(cached) " >&6
15377 else case e in #(
15378 e) ac_func_search_save_LIBS=$LIBS
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15381
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply.
15385 The 'extern "C"' is for builds by C++ compilers;
15386 although this is not generally supported in C code supporting it here
15387 has little cost and some practical benefit (sr 110532). */
15388 #ifdef __cplusplus
15389 extern "C"
15390 #endif
15391 char opendir (void);
15392 int
15393 main (void)
15394 {
15395 return opendir ();
15396 ;
15397 return 0;
15398 }
15399 _ACEOF
15400 for ac_lib in '' x
15401 do
15402 if test -z "$ac_lib"; then
15403 ac_res="none required"
15404 else
15405 ac_res=-l$ac_lib
15406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15407 fi
15408 if ac_fn_c_try_link "$LINENO"
15409 then :
15410 ac_cv_search_opendir=$ac_res
15411 fi
15412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15413 conftest$ac_exeext
15414 if test ${ac_cv_search_opendir+y}
15415 then :
15416 break
15417 fi
15418 done
15419 if test ${ac_cv_search_opendir+y}
15420 then :
15421
15422 else case e in #(
15423 e) ac_cv_search_opendir=no ;;
15424 esac
15425 fi
15426 rm conftest.$ac_ext
15427 LIBS=$ac_func_search_save_LIBS ;;
15428 esac
15429 fi
15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15431 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15432 ac_res=$ac_cv_search_opendir
15433 if test "$ac_res" != no
15434 then :
15435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15436
15437 fi
15438
15439 fi
15440
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15442 printf %s "checking whether closedir returns void... " >&6; }
15443 if test ${ac_cv_func_closedir_void+y}
15444 then :
15445 printf %s "(cached) " >&6
15446 else case e in #(
15447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449
15450 #include <$ac_header_dirent>
15451
15452 int
15453 main (void)
15454 {
15455
15456 return closedir(0);
15457
15458 ;
15459 return 0;
15460 }
15461 _ACEOF
15462 if ac_fn_c_try_compile "$LINENO"
15463 then :
15464 ac_cv_func_closedir_void=no
15465 else case e in #(
15466 e) ac_cv_func_closedir_void=yes ;;
15467 esac
15468 fi
15469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15470 esac
15471 fi
15472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15473 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15474 if test $ac_cv_func_closedir_void = yes; then
15475
15476 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15477
15478 fi
15479
15480 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15481 if test "x$ac_cv_header_assert_h" = xyes
15482 then :
15483 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15484
15485 fi
15486 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15487 if test "x$ac_cv_header_float_h" = xyes
15488 then :
15489 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15490
15491 fi
15492 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15493 if test "x$ac_cv_header_limits_h" = xyes
15494 then :
15495 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15496
15497 fi
15498 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15499 if test "x$ac_cv_header_pwd_h" = xyes
15500 then :
15501 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15502
15503 fi
15504 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15505 if test "x$ac_cv_header_stdlib_h" = xyes
15506 then :
15507 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15508
15509 fi
15510 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15511 if test "x$ac_cv_header_sys_param_h" = xyes
15512 then :
15513 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15514
15515 fi
15516
15517 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15518 if test "x$ac_cv_func_putenv" = xyes
15519 then :
15520 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15521
15522 fi
15523
15524 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15525 if test "x$ac_cv_func_getcwd" = xyes
15526 then :
15527 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15528
15529 fi
15530 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15531 if test "x$ac_cv_func_memcmp" = xyes
15532 then :
15533 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15534
15535 fi
15536 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15537 if test "x$ac_cv_func_memcpy" = xyes
15538 then :
15539 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15540
15541 fi
15542 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15543 if test "x$ac_cv_func_mkstemp" = xyes
15544 then :
15545 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15546
15547 fi
15548 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15549 if test "x$ac_cv_func_mktemp" = xyes
15550 then :
15551 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15552
15553 fi
15554 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15555 if test "x$ac_cv_func_strchr" = xyes
15556 then :
15557 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15558
15559 fi
15560 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15561 if test "x$ac_cv_func_strrchr" = xyes
15562 then :
15563 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15564
15565 fi
15566
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15568 printf %s "checking for an ANSI C-conforming const... " >&6; }
15569 if test ${ac_cv_c_const+y}
15570 then :
15571 printf %s "(cached) " >&6
15572 else case e in #(
15573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15575
15576 int
15577 main (void)
15578 {
15579
15580 #ifndef __cplusplus
15581 /* Ultrix mips cc rejects this sort of thing. */
15582 typedef int charset[2];
15583 const charset cs = { 0, 0 };
15584 /* SunOS 4.1.1 cc rejects this. */
15585 char const *const *pcpcc;
15586 char **ppc;
15587 /* NEC SVR4.0.2 mips cc rejects this. */
15588 struct point {int x, y;};
15589 static struct point const zero = {0,0};
15590 /* IBM XL C 1.02.0.0 rejects this.
15591 It does not let you subtract one const X* pointer from another in
15592 an arm of an if-expression whose if-part is not a constant
15593 expression */
15594 const char *g = "string";
15595 pcpcc = &g + (g ? g-g : 0);
15596 /* HPUX 7.0 cc rejects these. */
15597 ++pcpcc;
15598 ppc = (char**) pcpcc;
15599 pcpcc = (char const *const *) ppc;
15600 { /* SCO 3.2v4 cc rejects this sort of thing. */
15601 char tx;
15602 char *t = &tx;
15603 char const *s = 0 ? (char *) 0 : (char const *) 0;
15604
15605 *t++ = 0;
15606 if (s) return 0;
15607 }
15608 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15609 int x[] = {25, 17};
15610 const int *foo = &x[0];
15611 ++foo;
15612 }
15613 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15614 typedef const int *iptr;
15615 iptr p = 0;
15616 ++p;
15617 }
15618 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15619 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15620 struct s { int j; const int *ap[3]; } bx;
15621 struct s *b = &bx; b->j = 5;
15622 }
15623 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15624 const int foo = 10;
15625 if (!foo) return 0;
15626 }
15627 return !cs[0] && !zero.x;
15628 #endif
15629
15630 ;
15631 return 0;
15632 }
15633 _ACEOF
15634 if ac_fn_c_try_compile "$LINENO"
15635 then :
15636 ac_cv_c_const=yes
15637 else case e in #(
15638 e) ac_cv_c_const=no ;;
15639 esac
15640 fi
15641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15642 esac
15643 fi
15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15645 printf "%s\n" "$ac_cv_c_const" >&6; }
15646 if test $ac_cv_c_const = no; then
15647
15648 printf "%s\n" "#define const /**/" >>confdefs.h
15649
15650 fi
15651
15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15653 printf %s "checking for inline... " >&6; }
15654 if test ${ac_cv_c_inline+y}
15655 then :
15656 printf %s "(cached) " >&6
15657 else case e in #(
15658 e) ac_cv_c_inline=no
15659 for ac_kw in inline __inline__ __inline; do
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 #ifndef __cplusplus
15663 typedef int foo_t;
15664 static $ac_kw foo_t static_foo (void) {return 0; }
15665 $ac_kw foo_t foo (void) {return 0; }
15666 #endif
15667
15668 _ACEOF
15669 if ac_fn_c_try_compile "$LINENO"
15670 then :
15671 ac_cv_c_inline=$ac_kw
15672 fi
15673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15674 test "$ac_cv_c_inline" != no && break
15675 done
15676 ;;
15677 esac
15678 fi
15679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15680 printf "%s\n" "$ac_cv_c_inline" >&6; }
15681
15682 case $ac_cv_c_inline in
15683 inline | yes) ;;
15684 *)
15685 case $ac_cv_c_inline in
15686 no) ac_val=;;
15687 *) ac_val=$ac_cv_c_inline;;
15688 esac
15689 cat >>confdefs.h <<_ACEOF
15690 #ifndef __cplusplus
15691 #define inline $ac_val
15692 #endif
15693 _ACEOF
15694 ;;
15695 esac
15696
15697 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15698 if test "x$ac_cv_type_size_t" = xyes
15699 then :
15700
15701 else case e in #(
15702 e)
15703 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15704 ;;
15705 esac
15706 fi
15707
15708 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15709 case $ac_cv_c_int64_t in #(
15710 no|yes) ;; #(
15711 *)
15712
15713 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15714 ;;
15715 esac
15716
15717 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15718 case $ac_cv_c_uint64_t in #(
15719 no|yes) ;; #(
15720 *)
15721
15722 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15723
15724
15725 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15726 ;;
15727 esac
15728
15729 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15730 *':no:'*) :
15731 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15732 *) :
15733 ;;
15734 esac
15735 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15736 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15737 if test "x$ac_cv_have_decl_isascii" = xyes
15738 then :
15739 ac_have_decl=1
15740 else case e in #(
15741 e) ac_have_decl=0 ;;
15742 esac
15743 fi
15744 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15745
15746 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15747 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15748 then :
15749
15750 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15751
15752
15753 fi
15754
15755
15756 # Configure options for dvipng also shown at the TeX Live top-level.
15757 ## texk/dvipng/ac/dvipng.ac: configure.ac fragment for the TeX Live subdirectory texk/dvipng/
15758 ## configure options for dvipng
15759 # Check whether --enable-debug was given.
15760 if test ${enable_debug+y}
15761 then :
15762 enableval=$enable_debug;
15763 fi
15764
15765 # Check whether --enable-timing was given.
15766 if test ${enable_timing+y}
15767 then :
15768 enableval=$enable_timing;
15769 fi
15770
15771
15772 # Check whether --with-gs was given.
15773 if test ${with_gs+y}
15774 then :
15775 withval=$with_gs;
15776 fi
15777
15778
15779
15780
15781
15782 if test "x$cross_compiling" = xyes; then
15783 cross_TRUE=
15784 cross_FALSE='#'
15785 else
15786 cross_TRUE='#'
15787 cross_FALSE=
15788 fi
15789
15790
15791 if test "x$enable_debug" != xno; then
15792 enable_debug=yes
15793
15794 printf "%s\n" "#define DEBUG 1" >>confdefs.h
15795
15796 fi
15797
15798 if test "x$enable_timing" = xyes; then
15799
15800 printf "%s\n" "#define TIMING 1" >>confdefs.h
15801
15802 fi
15803
15804 # Checks for programs.
15805 # For a native TeX Live build '--with-gs' is ignored.
15806 if test "x$enable_native_texlive_build" = xyes
15807 then :
15808 with_gs=
15809 fi
15810 case $with_gs in #(
15811 "" | yes | no) :
15812 # Extract the first word of "gs", so it can be a program name with args.
15813 set dummy gs; ac_word=$2
15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15815 printf %s "checking for $ac_word... " >&6; }
15816 if test ${ac_cv_prog_GS+y}
15817 then :
15818 printf %s "(cached) " >&6
15819 else case e in #(
15820 e) if test -n "$GS"; then
15821 ac_cv_prog_GS="$GS" # Let the user override the test.
15822 else
15823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15824 for as_dir in $PATH
15825 do
15826 IFS=$as_save_IFS
15827 case $as_dir in #(((
15828 '') as_dir=./ ;;
15829 */) ;;
15830 *) as_dir=$as_dir/ ;;
15831 esac
15832 for ac_exec_ext in '' $ac_executable_extensions; do
15833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15834 ac_cv_prog_GS="gs"
15835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15836 break 2
15837 fi
15838 done
15839 done
15840 IFS=$as_save_IFS
15841
15842 fi ;;
15843 esac
15844 fi
15845 GS=$ac_cv_prog_GS
15846 if test -n "$GS"; then
15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
15848 printf "%s\n" "$GS" >&6; }
15849 else
15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15851 printf "%s\n" "no" >&6; }
15852 fi
15853
15854 ;; #(
15855 *) :
15856 # Extract the first word of ""$with_gs"", so it can be a program name with args.
15857 set dummy "$with_gs"; ac_word=$2
15858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15859 printf %s "checking for $ac_word... " >&6; }
15860 if test ${ac_cv_path_GS+y}
15861 then :
15862 printf %s "(cached) " >&6
15863 else case e in #(
15864 e) case $GS in
15865 [\\/]* | ?:[\\/]*)
15866 ac_cv_path_GS="$GS" # Let the user override the test with a path.
15867 ;;
15868 *)
15869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15870 for as_dir in $PATH
15871 do
15872 IFS=$as_save_IFS
15873 case $as_dir in #(((
15874 '') as_dir=./ ;;
15875 */) ;;
15876 *) as_dir=$as_dir/ ;;
15877 esac
15878 for ac_exec_ext in '' $ac_executable_extensions; do
15879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15880 ac_cv_path_GS="$as_dir$ac_word$ac_exec_ext"
15881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15882 break 2
15883 fi
15884 done
15885 done
15886 IFS=$as_save_IFS
15887
15888 ;;
15889 esac ;;
15890 esac
15891 fi
15892 GS=$ac_cv_path_GS
15893 if test -n "$GS"; then
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
15895 printf "%s\n" "$GS" >&6; }
15896 else
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898 printf "%s\n" "no" >&6; }
15899 fi
15900
15901 ;;
15902 esac
15903 if test -n "$GS"
15904 then :
15905 GS_WARN=
15906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $GS has the pngalpha device" >&5
15907 printf %s "checking whether $GS has the pngalpha device... " >&6; }
15908 if $GS -h | grep pngalpha >/dev/null; then
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15910 printf "%s\n" "yes" >&6; }
15911 else
15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15913 printf "%s\n" "no" >&6; }
15914 GS_WARN="Your EPS inclusions will be cropped to the
15915 boundingbox, and rendered on an opaque background.
15916 Upgrade GhostScript to avoid this."
15917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $GS has the png16m device" >&5
15918 printf %s "checking whether $GS has the png16m device... " >&6; }
15919 if $GS -h | grep png16m >/dev/null; then
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15921 printf "%s\n" "yes" >&6; }
15922 else
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 printf "%s\n" "no" >&6; }
15925 GS_WARN="Your EPS inclusions may not work.
15926 Upgrade/install GhostScript to avoid this."
15927 fi
15928
15929 fi
15930
15931 if test -n "$GS_WARN"; then
15932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $GS_WARN" >&5
15933 printf "%s\n" "$as_me: WARNING: $GS_WARN" >&2;}
15934 fi
15935
15936 else case e in #(
15937 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GhostScript in your PATH" >&5
15938 printf "%s\n" "$as_me: WARNING: Cannot find GhostScript in your PATH" >&2;}
15939 GS=gs ;;
15940 esac
15941 fi
15942
15943 printf "%s\n" "#define GS_PATH \"$GS\"" >>confdefs.h
15944
15945
15946 # Checks for libraries.
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
15948 printf %s "checking for library containing pow... " >&6; }
15949 if test ${ac_cv_search_pow+y}
15950 then :
15951 printf %s "(cached) " >&6
15952 else case e in #(
15953 e) ac_func_search_save_LIBS=$LIBS
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956
15957 /* Override any GCC internal prototype to avoid an error.
15958 Use char because int might match the return type of a GCC
15959 builtin and then its argument prototype would still apply.
15960 The 'extern "C"' is for builds by C++ compilers;
15961 although this is not generally supported in C code supporting it here
15962 has little cost and some practical benefit (sr 110532). */
15963 #ifdef __cplusplus
15964 extern "C"
15965 #endif
15966 char pow (void);
15967 int
15968 main (void)
15969 {
15970 return pow ();
15971 ;
15972 return 0;
15973 }
15974 _ACEOF
15975 for ac_lib in '' m
15976 do
15977 if test -z "$ac_lib"; then
15978 ac_res="none required"
15979 else
15980 ac_res=-l$ac_lib
15981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15982 fi
15983 if ac_fn_c_try_link "$LINENO"
15984 then :
15985 ac_cv_search_pow=$ac_res
15986 fi
15987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15988 conftest$ac_exeext
15989 if test ${ac_cv_search_pow+y}
15990 then :
15991 break
15992 fi
15993 done
15994 if test ${ac_cv_search_pow+y}
15995 then :
15996
15997 else case e in #(
15998 e) ac_cv_search_pow=no ;;
15999 esac
16000 fi
16001 rm conftest.$ac_ext
16002 LIBS=$ac_func_search_save_LIBS ;;
16003 esac
16004 fi
16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
16006 printf "%s\n" "$ac_cv_search_pow" >&6; }
16007 ac_res=$ac_cv_search_pow
16008 if test "$ac_res" != no
16009 then :
16010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16011
16012 fi
16013
16014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
16015 printf %s "checking for library containing basename... " >&6; }
16016 if test ${ac_cv_search_basename+y}
16017 then :
16018 printf %s "(cached) " >&6
16019 else case e in #(
16020 e) ac_func_search_save_LIBS=$LIBS
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16023
16024 /* Override any GCC internal prototype to avoid an error.
16025 Use char because int might match the return type of a GCC
16026 builtin and then its argument prototype would still apply.
16027 The 'extern "C"' is for builds by C++ compilers;
16028 although this is not generally supported in C code supporting it here
16029 has little cost and some practical benefit (sr 110532). */
16030 #ifdef __cplusplus
16031 extern "C"
16032 #endif
16033 char basename (void);
16034 int
16035 main (void)
16036 {
16037 return basename ();
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 for ac_lib in '' gen
16043 do
16044 if test -z "$ac_lib"; then
16045 ac_res="none required"
16046 else
16047 ac_res=-l$ac_lib
16048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16049 fi
16050 if ac_fn_c_try_link "$LINENO"
16051 then :
16052 ac_cv_search_basename=$ac_res
16053 fi
16054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16055 conftest$ac_exeext
16056 if test ${ac_cv_search_basename+y}
16057 then :
16058 break
16059 fi
16060 done
16061 if test ${ac_cv_search_basename+y}
16062 then :
16063
16064 else case e in #(
16065 e) ac_cv_search_basename=no ;;
16066 esac
16067 fi
16068 rm conftest.$ac_ext
16069 LIBS=$ac_func_search_save_LIBS ;;
16070 esac
16071 fi
16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
16073 printf "%s\n" "$ac_cv_search_basename" >&6; }
16074 ac_res=$ac_cv_search_basename
16075 if test "$ac_res" != no
16076 then :
16077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16078
16079 fi
16080
16081
16082 # Checks for header files.
16083 # Autoupdate added the next two lines to ensure that your configure
16084 # script's behavior did not change. They are probably safe to remove.
16085
16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
16087 printf %s "checking for egrep... " >&6; }
16088 if test ${ac_cv_path_EGREP+y}
16089 then :
16090 printf %s "(cached) " >&6
16091 else case e in #(
16092 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16093 then ac_cv_path_EGREP="$GREP -E"
16094 else
16095 if test -z "$EGREP"; then
16096 ac_path_EGREP_found=false
16097 # Loop through the user's path and test for each of PROGNAME-LIST
16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16100 do
16101 IFS=$as_save_IFS
16102 case $as_dir in #(((
16103 '') as_dir=./ ;;
16104 */) ;;
16105 *) as_dir=$as_dir/ ;;
16106 esac
16107 for ac_prog in egrep
16108 do
16109 for ac_exec_ext in '' $ac_executable_extensions; do
16110 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
16111 as_fn_executable_p "$ac_path_EGREP" || continue
16112 # Check for GNU ac_path_EGREP and select it if it is found.
16113 # Check for GNU $ac_path_EGREP
16114 case `"$ac_path_EGREP" --version 2>&1` in #(
16115 *GNU*)
16116 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16117 #(
16118 *)
16119 ac_count=0
16120 printf %s 0123456789 >"conftest.in"
16121 while :
16122 do
16123 cat "conftest.in" "conftest.in" >"conftest.tmp"
16124 mv "conftest.tmp" "conftest.in"
16125 cp "conftest.in" "conftest.nl"
16126 printf "%s\n" 'EGREP' >> "conftest.nl"
16127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16129 as_fn_arith $ac_count + 1 && ac_count=$as_val
16130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16131 # Best one so far, save it but keep looking for a better one
16132 ac_cv_path_EGREP="$ac_path_EGREP"
16133 ac_path_EGREP_max=$ac_count
16134 fi
16135 # 10*(2^10) chars as input seems more than enough
16136 test $ac_count -gt 10 && break
16137 done
16138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16139 esac
16140
16141 $ac_path_EGREP_found && break 3
16142 done
16143 done
16144 done
16145 IFS=$as_save_IFS
16146 if test -z "$ac_cv_path_EGREP"; then
16147 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16148 fi
16149 else
16150 ac_cv_path_EGREP=$EGREP
16151 fi
16152
16153 fi ;;
16154 esac
16155 fi
16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
16157 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
16158 EGREP="$ac_cv_path_EGREP"
16159
16160 EGREP_TRADITIONAL=$EGREP
16161 ac_cv_path_EGREP_TRADITIONAL=$EGREP
16162
16163
16164 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
16165 if test "x$ac_cv_header_fcntl_h" = xyes
16166 then :
16167 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
16168
16169 fi
16170 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16171 if test "x$ac_cv_header_sys_time_h" = xyes
16172 then :
16173 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
16174
16175 fi
16176
16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16178 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16179 if test ${ac_cv_header_sys_wait_h+y}
16180 then :
16181 printf %s "(cached) " >&6
16182 else case e in #(
16183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185 #include <sys/types.h>
16186 #include <sys/wait.h>
16187 #ifndef WEXITSTATUS
16188 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16189 #endif
16190 #ifndef WIFEXITED
16191 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16192 #endif
16193
16194 int
16195 main (void)
16196 {
16197 int s;
16198 wait (&s);
16199 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16200 ;
16201 return 0;
16202 }
16203 _ACEOF
16204 if ac_fn_c_try_compile "$LINENO"
16205 then :
16206 ac_cv_header_sys_wait_h=yes
16207 else case e in #(
16208 e) ac_cv_header_sys_wait_h=no ;;
16209 esac
16210 fi
16211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16212 esac
16213 fi
16214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16215 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
16216 if test $ac_cv_header_sys_wait_h = yes; then
16217
16218 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16219
16220 fi
16221
16222
16223
16224 # Obsolete code to be removed.
16225 if test $ac_cv_header_sys_time_h = yes; then
16226
16227 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16228
16229 fi
16230 # End of obsolete code.
16231
16232 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16233 if test "x$ac_cv_type__Bool" = xyes
16234 then :
16235
16236 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
16237
16238
16239 fi
16240
16241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
16242 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
16243 if test ${ac_cv_header_stdbool_h+y}
16244 then :
16245 printf %s "(cached) " >&6
16246 else case e in #(
16247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 #include <stdbool.h>
16250
16251 /* "true" and "false" should be usable in #if expressions and
16252 integer constant expressions, and "bool" should be a valid
16253 type name.
16254
16255 Although C99 requires bool, true, and false to be macros,
16256 C23 and C++11 overrule that, so do not test for that.
16257 Although C99 requires __bool_true_false_are_defined and
16258 _Bool, C23 says they are obsolescent, so do not require
16259 them. */
16260
16261 #if !true
16262 #error "'true' is not true"
16263 #endif
16264 #if true != 1
16265 #error "'true' is not equal to 1"
16266 #endif
16267 char b[true == 1 ? 1 : -1];
16268 char c[true];
16269
16270 #if false
16271 #error "'false' is not false"
16272 #endif
16273 #if false != 0
16274 #error "'false' is not equal to 0"
16275 #endif
16276 char d[false == 0 ? 1 : -1];
16277
16278 enum { e = false, f = true, g = false * true, h = true * 256 };
16279
16280 char i[(bool) 0.5 == true ? 1 : -1];
16281 char j[(bool) 0.0 == false ? 1 : -1];
16282 char k[sizeof (bool) > 0 ? 1 : -1];
16283
16284 struct sb { bool s: 1; bool t; } s;
16285 char l[sizeof s.t > 0 ? 1 : -1];
16286
16287 /* The following fails for
16288 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16289 bool m[h];
16290 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
16291 char o[-1 - (bool) 0 < 0 ? 1 : -1];
16292 /* Catch a bug in an HP-UX C compiler. See
16293 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16294 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16295 */
16296 bool p = true;
16297 bool *pp = &p;
16298
16299 int
16300 main (void)
16301 {
16302
16303 bool ps = &s;
16304 *pp |= p;
16305 *pp |= ! p;
16306
16307 /* Refer to every declared value, so they cannot be
16308 discarded as unused. */
16309 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
16310 + !l + !m + !n + !o + !p + !pp + !ps);
16311
16312 ;
16313 return 0;
16314 }
16315 _ACEOF
16316 if ac_fn_c_try_compile "$LINENO"
16317 then :
16318 ac_cv_header_stdbool_h=yes
16319 else case e in #(
16320 e) ac_cv_header_stdbool_h=no ;;
16321 esac
16322 fi
16323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16324 esac
16325 fi
16326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16327 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
16328
16329 if test $ac_cv_header_stdbool_h = yes; then
16330
16331 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
16332
16333 fi
16334
16335
16336 # Checks for typedefs, structures, and compiler characteristics.
16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16338 printf %s "checking for an ANSI C-conforming const... " >&6; }
16339 if test ${ac_cv_c_const+y}
16340 then :
16341 printf %s "(cached) " >&6
16342 else case e in #(
16343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345
16346 int
16347 main (void)
16348 {
16349
16350 #ifndef __cplusplus
16351 /* Ultrix mips cc rejects this sort of thing. */
16352 typedef int charset[2];
16353 const charset cs = { 0, 0 };
16354 /* SunOS 4.1.1 cc rejects this. */
16355 char const *const *pcpcc;
16356 char **ppc;
16357 /* NEC SVR4.0.2 mips cc rejects this. */
16358 struct point {int x, y;};
16359 static struct point const zero = {0,0};
16360 /* IBM XL C 1.02.0.0 rejects this.
16361 It does not let you subtract one const X* pointer from another in
16362 an arm of an if-expression whose if-part is not a constant
16363 expression */
16364 const char *g = "string";
16365 pcpcc = &g + (g ? g-g : 0);
16366 /* HPUX 7.0 cc rejects these. */
16367 ++pcpcc;
16368 ppc = (char**) pcpcc;
16369 pcpcc = (char const *const *) ppc;
16370 { /* SCO 3.2v4 cc rejects this sort of thing. */
16371 char tx;
16372 char *t = &tx;
16373 char const *s = 0 ? (char *) 0 : (char const *) 0;
16374
16375 *t++ = 0;
16376 if (s) return 0;
16377 }
16378 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16379 int x[] = {25, 17};
16380 const int *foo = &x[0];
16381 ++foo;
16382 }
16383 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16384 typedef const int *iptr;
16385 iptr p = 0;
16386 ++p;
16387 }
16388 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
16389 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16390 struct s { int j; const int *ap[3]; } bx;
16391 struct s *b = &bx; b->j = 5;
16392 }
16393 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16394 const int foo = 10;
16395 if (!foo) return 0;
16396 }
16397 return !cs[0] && !zero.x;
16398 #endif
16399
16400 ;
16401 return 0;
16402 }
16403 _ACEOF
16404 if ac_fn_c_try_compile "$LINENO"
16405 then :
16406 ac_cv_c_const=yes
16407 else case e in #(
16408 e) ac_cv_c_const=no ;;
16409 esac
16410 fi
16411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16412 esac
16413 fi
16414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16415 printf "%s\n" "$ac_cv_c_const" >&6; }
16416 if test $ac_cv_c_const = no; then
16417
16418 printf "%s\n" "#define const /**/" >>confdefs.h
16419
16420 fi
16421
16422
16423 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
16424 "
16425 if test "x$ac_cv_type_pid_t" = xyes
16426 then :
16427
16428 else case e in #(
16429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h. */
16431
16432 #if defined _WIN64 && !defined __CYGWIN__
16433 LLP64
16434 #endif
16435
16436 int
16437 main (void)
16438 {
16439
16440 ;
16441 return 0;
16442 }
16443
16444 _ACEOF
16445 if ac_fn_c_try_compile "$LINENO"
16446 then :
16447 ac_pid_type='int'
16448 else case e in #(
16449 e) ac_pid_type='__int64' ;;
16450 esac
16451 fi
16452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16453
16454 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
16455
16456 ;;
16457 esac
16458 fi
16459
16460
16461
16462 # Checks for library functions.
16463
16464 ac_func=
16465 for ac_item in $ac_func_c_list
16466 do
16467 if test $ac_func; then
16468 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
16469 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
16470 echo "#define $ac_item 1" >> confdefs.h
16471 fi
16472 ac_func=
16473 else
16474 ac_func=$ac_item
16475 fi
16476 done
16477
16478
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16480 printf %s "checking for working mmap... " >&6; }
16481 if test ${ac_cv_func_mmap_fixed_mapped+y}
16482 then :
16483 printf %s "(cached) " >&6
16484 else case e in #(
16485 e) if test "$cross_compiling" = yes
16486 then :
16487 case "$host_os" in # ((
16488 # Guess yes on platforms where we know the result.
16489 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
16490 # If we don't know, assume the worst.
16491 *) ac_cv_func_mmap_fixed_mapped=no ;;
16492 esac
16493 else case e in #(
16494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16496 $ac_includes_default
16497 /* malloc might have been renamed as rpl_malloc. */
16498 #undef malloc
16499
16500 /* Thanks to Mike Haertel and Jim Avera for this test.
16501 Here is a matrix of mmap possibilities:
16502 mmap private not fixed
16503 mmap private fixed at somewhere currently unmapped
16504 mmap private fixed at somewhere already mapped
16505 mmap shared not fixed
16506 mmap shared fixed at somewhere currently unmapped
16507 mmap shared fixed at somewhere already mapped
16508 For private mappings, we should verify that changes cannot be read()
16509 back from the file, nor mmap's back from the file at a different
16510 address. (There have been systems where private was not correctly
16511 implemented like the infamous i386 svr4.0, and systems where the
16512 VM page cache was not coherent with the file system buffer cache
16513 like early versions of FreeBSD and possibly contemporary NetBSD.)
16514 For shared mappings, we should conversely verify that changes get
16515 propagated back to all the places they're supposed to be. */
16516
16517 #include <fcntl.h>
16518 #include <sys/mman.h>
16519
16520 #ifndef getpagesize
16521 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
16522 been removed from POSIX and is limited to page sizes that fit in 'int'. */
16523 # ifdef _SC_PAGESIZE
16524 # define getpagesize() sysconf (_SC_PAGESIZE)
16525 # elif defined _SC_PAGE_SIZE
16526 # define getpagesize() sysconf (_SC_PAGE_SIZE)
16527 # elif HAVE_GETPAGESIZE
16528 int getpagesize ();
16529 # else
16530 # ifdef HAVE_SYS_PARAM_H
16531 # include <sys/param.h>
16532 # ifdef EXEC_PAGESIZE
16533 # define getpagesize() EXEC_PAGESIZE
16534 # else /* no EXEC_PAGESIZE */
16535 # ifdef NBPG
16536 # define getpagesize() NBPG * CLSIZE
16537 # ifndef CLSIZE
16538 # define CLSIZE 1
16539 # endif /* no CLSIZE */
16540 # else /* no NBPG */
16541 # ifdef NBPC
16542 # define getpagesize() NBPC
16543 # else /* no NBPC */
16544 # ifdef PAGESIZE
16545 # define getpagesize() PAGESIZE
16546 # endif /* PAGESIZE */
16547 # endif /* no NBPC */
16548 # endif /* no NBPG */
16549 # endif /* no EXEC_PAGESIZE */
16550 # else /* no HAVE_SYS_PARAM_H */
16551 # define getpagesize() 8192 /* punt totally */
16552 # endif /* no HAVE_SYS_PARAM_H */
16553 # endif
16554 #endif
16555
16556 int
16557 main (void)
16558 {
16559 char *data, *data2, *data3;
16560 const char *cdata2;
16561 long i, pagesize;
16562 int fd, fd2;
16563
16564 pagesize = getpagesize ();
16565
16566 /* First, make a file with some known garbage in it. */
16567 data = (char *) malloc (pagesize);
16568 if (!data)
16569 return 1;
16570 for (i = 0; i < pagesize; ++i)
16571 *(data + i) = rand ();
16572 umask (0);
16573 fd = creat ("conftest.mmap", 0600);
16574 if (fd < 0)
16575 return 2;
16576 if (write (fd, data, pagesize) != pagesize)
16577 return 3;
16578 close (fd);
16579
16580 /* Next, check that the tail of a page is zero-filled. File must have
16581 non-zero length, otherwise we risk SIGBUS for entire page. */
16582 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16583 if (fd2 < 0)
16584 return 4;
16585 cdata2 = "";
16586 if (write (fd2, cdata2, 1) != 1)
16587 return 5;
16588 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16589 if (data2 == MAP_FAILED)
16590 return 6;
16591 for (i = 0; i < pagesize; ++i)
16592 if (*(data2 + i))
16593 return 7;
16594 close (fd2);
16595 /* 'return 8;' not currently used. */
16596
16597 /* Next, try to mmap the file at a fixed address which already has
16598 something else allocated at it. If we can, also make sure that
16599 we see the same garbage. */
16600 fd = open ("conftest.mmap", O_RDWR);
16601 if (fd < 0)
16602 return 9;
16603 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16605 return 10;
16606 for (i = 0; i < pagesize; ++i)
16607 if (*(data + i) != *(data2 + i))
16608 return 11;
16609
16610 /* Finally, make sure that changes to the mapped area do not
16611 percolate back to the file as seen by read(). (This is a bug on
16612 some variants of i386 svr4.0.) */
16613 for (i = 0; i < pagesize; ++i)
16614 *(data2 + i) = *(data2 + i) + 1;
16615 data3 = (char *) malloc (pagesize);
16616 if (!data3)
16617 return 12;
16618 if (read (fd, data3, pagesize) != pagesize)
16619 return 13;
16620 for (i = 0; i < pagesize; ++i)
16621 if (*(data + i) != *(data3 + i))
16622 return 14;
16623 close (fd);
16624 free (data);
16625 free (data3);
16626 return 0;
16627 }
16628 _ACEOF
16629 if ac_fn_c_try_run "$LINENO"
16630 then :
16631 ac_cv_func_mmap_fixed_mapped=yes
16632 else case e in #(
16633 e) ac_cv_func_mmap_fixed_mapped=no ;;
16634 esac
16635 fi
16636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16637 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16638 esac
16639 fi
16640 ;;
16641 esac
16642 fi
16643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16644 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
16645 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16646
16647 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
16648
16649 fi
16650 rm -f conftest.mmap conftest.txt
16651
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16653 printf %s "checking for working strtod... " >&6; }
16654 if test ${ac_cv_func_strtod+y}
16655 then :
16656 printf %s "(cached) " >&6
16657 else case e in #(
16658 e) if test "$cross_compiling" = yes
16659 then :
16660 ac_cv_func_strtod=no
16661 else case e in #(
16662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16664
16665 $ac_includes_default
16666 int
16667 main (void)
16668 {
16669 {
16670 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16671 char *string = " +69";
16672 char *term;
16673 double value;
16674 value = strtod (string, &term);
16675 if (value != 69 || term != (string + 4))
16676 return 1;
16677 }
16678
16679 {
16680 /* Under Solaris 2.4, strtod returns the wrong value for the
16681 terminating character under some conditions. */
16682 char *string = "NaN";
16683 char *term;
16684 strtod (string, &term);
16685 if (term != string && *(term - 1) == 0)
16686 return 1;
16687 }
16688 return 0;
16689 }
16690
16691 _ACEOF
16692 if ac_fn_c_try_run "$LINENO"
16693 then :
16694 ac_cv_func_strtod=yes
16695 else case e in #(
16696 e) ac_cv_func_strtod=no ;;
16697 esac
16698 fi
16699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16700 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16701 esac
16702 fi
16703 ;;
16704 esac
16705 fi
16706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16707 printf "%s\n" "$ac_cv_func_strtod" >&6; }
16708 if test $ac_cv_func_strtod = no; then
16709 case " $LIBOBJS " in
16710 *" strtod.$ac_objext "* ) ;;
16711 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16712 ;;
16713 esac
16714
16715 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16716 if test "x$ac_cv_func_pow" = xyes
16717 then :
16718
16719 fi
16720
16721 if test $ac_cv_func_pow = no; then
16722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16723 printf %s "checking for pow in -lm... " >&6; }
16724 if test ${ac_cv_lib_m_pow+y}
16725 then :
16726 printf %s "(cached) " >&6
16727 else case e in #(
16728 e) ac_check_lib_save_LIBS=$LIBS
16729 LIBS="-lm $LIBS"
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h. */
16732
16733 /* Override any GCC internal prototype to avoid an error.
16734 Use char because int might match the return type of a GCC
16735 builtin and then its argument prototype would still apply.
16736 The 'extern "C"' is for builds by C++ compilers;
16737 although this is not generally supported in C code supporting it here
16738 has little cost and some practical benefit (sr 110532). */
16739 #ifdef __cplusplus
16740 extern "C"
16741 #endif
16742 char pow (void);
16743 int
16744 main (void)
16745 {
16746 return pow ();
16747 ;
16748 return 0;
16749 }
16750 _ACEOF
16751 if ac_fn_c_try_link "$LINENO"
16752 then :
16753 ac_cv_lib_m_pow=yes
16754 else case e in #(
16755 e) ac_cv_lib_m_pow=no ;;
16756 esac
16757 fi
16758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16759 conftest$ac_exeext conftest.$ac_ext
16760 LIBS=$ac_check_lib_save_LIBS ;;
16761 esac
16762 fi
16763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16764 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
16765 if test "x$ac_cv_lib_m_pow" = xyes
16766 then :
16767 POW_LIB=-lm
16768 else case e in #(
16769 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
16770 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;;
16771 esac
16772 fi
16773
16774 fi
16775
16776 fi
16777
16778
16779
16780 if test "x$ac_cv_func_vprintf" = xno
16781 then :
16782 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16783 if test "x$ac_cv_func__doprnt" = xyes
16784 then :
16785
16786 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
16787
16788 fi
16789
16790 fi
16791 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
16792 if test "x$ac_cv_func_dup2" = xyes
16793 then :
16794 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
16795
16796 fi
16797 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
16798 if test "x$ac_cv_func_memset" = xyes
16799 then :
16800 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
16801
16802 fi
16803 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
16804 if test "x$ac_cv_func_munmap" = xyes
16805 then :
16806 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
16807
16808 fi
16809 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16810 if test "x$ac_cv_func_pow" = xyes
16811 then :
16812 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
16813
16814 fi
16815 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
16816 if test "x$ac_cv_func_putenv" = xyes
16817 then :
16818 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
16819
16820 fi
16821 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
16822 if test "x$ac_cv_func_strchr" = xyes
16823 then :
16824 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
16825
16826 fi
16827 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
16828 if test "x$ac_cv_func_strrchr" = xyes
16829 then :
16830 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
16831
16832 fi
16833
16834
16835 if test "x$enable_timing" = xyes; then
16836 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
16837 if test "x$ac_cv_func_ftime" = xyes
16838 then :
16839 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
16840
16841 fi
16842 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16843 if test "x$ac_cv_func_gettimeofday" = xyes
16844 then :
16845 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16846
16847 fi
16848
16849 fi
16850
16851 # Documentation-related checks.
16852 # Extract the first word of "makeinfo", so it can be a program name with args.
16853 set dummy makeinfo; ac_word=$2
16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16855 printf %s "checking for $ac_word... " >&6; }
16856 if test ${ac_cv_path_MAKEINFO+y}
16857 then :
16858 printf %s "(cached) " >&6
16859 else case e in #(
16860 e) case $MAKEINFO in
16861 [\\/]* | ?:[\\/]*)
16862 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
16863 ;;
16864 *)
16865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16866 for as_dir in $PATH
16867 do
16868 IFS=$as_save_IFS
16869 case $as_dir in #(((
16870 '') as_dir=./ ;;
16871 */) ;;
16872 *) as_dir=$as_dir/ ;;
16873 esac
16874 for ac_exec_ext in '' $ac_executable_extensions; do
16875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16876 ac_cv_path_MAKEINFO="$as_dir$ac_word$ac_exec_ext"
16877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16878 break 2
16879 fi
16880 done
16881 done
16882 IFS=$as_save_IFS
16883
16884 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO=":"
16885 ;;
16886 esac ;;
16887 esac
16888 fi
16889 MAKEINFO=$ac_cv_path_MAKEINFO
16890 if test -n "$MAKEINFO"; then
16891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16892 printf "%s\n" "$MAKEINFO" >&6; }
16893 else
16894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16895 printf "%s\n" "no" >&6; }
16896 fi
16897
16898
16899 if test -n "$MAKEINFO" -a "$MAKEINFO" != ":"; then
16900 for ac_macro in acronym env option; do
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MAKEINFO understands @$ac_macro{}" >&5
16902 printf %s "checking if $MAKEINFO understands @$ac_macro{}... " >&6; }
16903 echo \\\\input texinfo > conftest.texi
16904 echo @$ac_macro{test} >> conftest.texi
16905 if $MAKEINFO conftest.texi > /dev/null 2> /dev/null; then
16906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16907 printf "%s\n" "yes" >&6; }
16908 else
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910 printf "%s\n" "no" >&6; }
16911 AM_MAKEINFOFLAGS="-D no-$ac_macro $AM_MAKEINFOFLAGS"
16912 fi
16913 rm -f conftest.texi conftest.info
16914
16915 done
16916 fi
16917
16918
16919 # Extract the first word of "install-info", so it can be a program name with args.
16920 set dummy install-info; ac_word=$2
16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16922 printf %s "checking for $ac_word... " >&6; }
16923 if test ${ac_cv_path_INSTALL_INFO+y}
16924 then :
16925 printf %s "(cached) " >&6
16926 else case e in #(
16927 e) case $INSTALL_INFO in
16928 [\\/]* | ?:[\\/]*)
16929 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
16930 ;;
16931 *)
16932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16933 for as_dir in $PATH /usr/sbin /sbin
16934 do
16935 IFS=$as_save_IFS
16936 case $as_dir in #(((
16937 '') as_dir=./ ;;
16938 */) ;;
16939 *) as_dir=$as_dir/ ;;
16940 esac
16941 for ac_exec_ext in '' $ac_executable_extensions; do
16942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16943 ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext"
16944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16945 break 2
16946 fi
16947 done
16948 done
16949 IFS=$as_save_IFS
16950
16951 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
16952 ;;
16953 esac ;;
16954 esac
16955 fi
16956 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
16957 if test -n "$INSTALL_INFO"; then
16958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
16959 printf "%s\n" "$INSTALL_INFO" >&6; }
16960 else
16961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16962 printf "%s\n" "no" >&6; }
16963 fi
16964
16965
16966
16967 # SELFAUTO -- not used when built as part of the TeX Live tree.
16968
16969 # We have to check properties of libraries, either installed (system)
16970 # libraries or unistalled (possibly libtool) ones from the TeX Live tree.
16971 # Thus we can not use, e.g., AC_CHECK_LIB(LIB, FUNCTION)
16972
16973 kpse_save_CPPFLAGS=$CPPFLAGS
16974 kpse_save_LIBS=$LIBS
16975
16976 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
16977 kpse_BLD=`(cd "./../../." && pwd)`
16978 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
16979
16980 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
16981 : ${CONFIG_LT=./config.lt}
16982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
16983 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
16984 as_write_fail=0
16985 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
16986 #! $SHELL
16987 # Generated by $as_me.
16988 # Run this file to recreate a libtool stub with the current configuration.
16989 SHELL=\${CONFIG_SHELL-$SHELL}
16990 export SHELL
16991 _ASEOF
16992 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
16993 ## -------------------- ##
16994 ## M4sh Initialization. ##
16995 ## -------------------- ##
16996
16997 # Be more Bourne compatible
16998 DUALCASE=1; export DUALCASE # for MKS sh
16999 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17000 then :
17001 emulate sh
17002 NULLCMD=:
17003 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17004 # is contrary to our usage. Disable this feature.
17005 alias -g '${1+"$@"}'='"$@"'
17006 setopt NO_GLOB_SUBST
17007 else case e in #(
17008 e) case `(set -o) 2>/dev/null` in #(
17009 *posix*) :
17010 set -o posix ;; #(
17011 *) :
17012 ;;
17013 esac ;;
17014 esac
17015 fi
17016
17017
17018
17019 # Reset variables that may have inherited troublesome values from
17020 # the environment.
17021
17022 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17023 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17024 # side effect of setting IFS to empty, thus disabling word splitting.)
17025 # Quoting is to prevent editors from complaining about space-tab.
17026 as_nl='
17027 '
17028 export as_nl
17029 IFS=" "" $as_nl"
17030
17031 PS1='$ '
17032 PS2='> '
17033 PS4='+ '
17034
17035 # Ensure predictable behavior from utilities with locale-dependent output.
17036 LC_ALL=C
17037 export LC_ALL
17038 LANGUAGE=C
17039 export LANGUAGE
17040
17041 # We cannot yet rely on "unset" to work, but we need these variables
17042 # to be unset--not just set to an empty or harmless value--now, to
17043 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17044 # also avoids known problems related to "unset" and subshell syntax
17045 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17046 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17047 do eval test \${$as_var+y} \
17048 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17049 done
17050
17051 # Ensure that fds 0, 1, and 2 are open.
17052 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17053 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17054 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17055
17056 # The user is always right.
17057 if ${PATH_SEPARATOR+false} :; then
17058 PATH_SEPARATOR=:
17059 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17060 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17061 PATH_SEPARATOR=';'
17062 }
17063 fi
17064
17065
17066 # Find who we are. Look in the path if we contain no directory separator.
17067 as_myself=
17068 case $0 in #((
17069 *[\\/]* ) as_myself=$0 ;;
17070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17071 for as_dir in $PATH
17072 do
17073 IFS=$as_save_IFS
17074 case $as_dir in #(((
17075 '') as_dir=./ ;;
17076 */) ;;
17077 *) as_dir=$as_dir/ ;;
17078 esac
17079 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17080 done
17081 IFS=$as_save_IFS
17082
17083 ;;
17084 esac
17085 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17086 # in which case we are not to be found in the path.
17087 if test "x$as_myself" = x; then
17088 as_myself=$0
17089 fi
17090 if test ! -f "$as_myself"; then
17091 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17092 exit 1
17093 fi
17094
17095
17096
17097 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17098 # ----------------------------------------
17099 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17100 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17101 # script with STATUS, using 1 if that was 0.
17102 as_fn_error ()
17103 {
17104 as_status=$1; test $as_status -eq 0 && as_status=1
17105 if test "$4"; then
17106 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17108 fi
17109 printf "%s\n" "$as_me: error: $2" >&2
17110 as_fn_exit $as_status
17111 } # as_fn_error
17112
17113
17114 # as_fn_set_status STATUS
17115 # -----------------------
17116 # Set $? to STATUS, without forking.
17117 as_fn_set_status ()
17118 {
17119 return $1
17120 } # as_fn_set_status
17121
17122 # as_fn_exit STATUS
17123 # -----------------
17124 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17125 as_fn_exit ()
17126 {
17127 set +e
17128 as_fn_set_status $1
17129 exit $1
17130 } # as_fn_exit
17131
17132 # as_fn_unset VAR
17133 # ---------------
17134 # Portably unset VAR.
17135 as_fn_unset ()
17136 {
17137 { eval $1=; unset $1;}
17138 }
17139 as_unset=as_fn_unset
17140
17141 # as_fn_append VAR VALUE
17142 # ----------------------
17143 # Append the text in VALUE to the end of the definition contained in VAR. Take
17144 # advantage of any shell optimizations that allow amortized linear growth over
17145 # repeated appends, instead of the typical quadratic growth present in naive
17146 # implementations.
17147 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17148 then :
17149 eval 'as_fn_append ()
17150 {
17151 eval $1+=\$2
17152 }'
17153 else case e in #(
17154 e) as_fn_append ()
17155 {
17156 eval $1=\$$1\$2
17157 } ;;
17158 esac
17159 fi # as_fn_append
17160
17161 # as_fn_arith ARG...
17162 # ------------------
17163 # Perform arithmetic evaluation on the ARGs, and store the result in the
17164 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17165 # must be portable across $(()) and expr.
17166 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17167 then :
17168 eval 'as_fn_arith ()
17169 {
17170 as_val=$(( $* ))
17171 }'
17172 else case e in #(
17173 e) as_fn_arith ()
17174 {
17175 as_val=`expr "$@" || test $? -eq 1`
17176 } ;;
17177 esac
17178 fi # as_fn_arith
17179
17180
17181 if expr a : '\(a\)' >/dev/null 2>&1 &&
17182 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17183 as_expr=expr
17184 else
17185 as_expr=false
17186 fi
17187
17188 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17189 as_basename=basename
17190 else
17191 as_basename=false
17192 fi
17193
17194 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17195 as_dirname=dirname
17196 else
17197 as_dirname=false
17198 fi
17199
17200 as_me=`$as_basename -- "$0" ||
17201 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17202 X"$0" : 'X\(//\)$' \| \
17203 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17204 printf "%s\n" X/"$0" |
17205 sed '/^.*\/\([^/][^/]*\)\/*$/{
17206 s//\1/
17207 q
17208 }
17209 /^X\/\(\/\/\)$/{
17210 s//\1/
17211 q
17212 }
17213 /^X\/\(\/\).*/{
17214 s//\1/
17215 q
17216 }
17217 s/.*/./; q'`
17218
17219 # Avoid depending upon Character Ranges.
17220 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17221 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17222 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17223 as_cr_digits='0123456789'
17224 as_cr_alnum=$as_cr_Letters$as_cr_digits
17225
17226
17227 # Determine whether it's possible to make 'echo' print without a newline.
17228 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17229 # for compatibility with existing Makefiles.
17230 ECHO_C= ECHO_N= ECHO_T=
17231 case `echo -n x` in #(((((
17232 -n*)
17233 case `echo 'xy\c'` in
17234 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17235 xy) ECHO_C='\c';;
17236 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17237 ECHO_T=' ';;
17238 esac;;
17239 *)
17240 ECHO_N='-n';;
17241 esac
17242
17243 # For backward compatibility with old third-party macros, we provide
17244 # the shell variables $as_echo and $as_echo_n. New code should use
17245 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17246 as_echo='printf %s\n'
17247 as_echo_n='printf %s'
17248
17249 rm -f conf$$ conf$$.exe conf$$.file
17250 if test -d conf$$.dir; then
17251 rm -f conf$$.dir/conf$$.file
17252 else
17253 rm -f conf$$.dir
17254 mkdir conf$$.dir 2>/dev/null
17255 fi
17256 if (echo >conf$$.file) 2>/dev/null; then
17257 if ln -s conf$$.file conf$$ 2>/dev/null; then
17258 as_ln_s='ln -s'
17259 # ... but there are two gotchas:
17260 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17261 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17262 # In both cases, we have to default to 'cp -pR'.
17263 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17264 as_ln_s='cp -pR'
17265 elif ln conf$$.file conf$$ 2>/dev/null; then
17266 as_ln_s=ln
17267 else
17268 as_ln_s='cp -pR'
17269 fi
17270 else
17271 as_ln_s='cp -pR'
17272 fi
17273 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17274 rmdir conf$$.dir 2>/dev/null
17275
17276
17277 # as_fn_mkdir_p
17278 # -------------
17279 # Create "$as_dir" as a directory, including parents if necessary.
17280 as_fn_mkdir_p ()
17281 {
17282
17283 case $as_dir in #(
17284 -*) as_dir=./$as_dir;;
17285 esac
17286 test -d "$as_dir" || eval $as_mkdir_p || {
17287 as_dirs=
17288 while :; do
17289 case $as_dir in #(
17290 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17291 *) as_qdir=$as_dir;;
17292 esac
17293 as_dirs="'$as_qdir' $as_dirs"
17294 as_dir=`$as_dirname -- "$as_dir" ||
17295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17296 X"$as_dir" : 'X\(//\)[^/]' \| \
17297 X"$as_dir" : 'X\(//\)$' \| \
17298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17299 printf "%s\n" X"$as_dir" |
17300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17301 s//\1/
17302 q
17303 }
17304 /^X\(\/\/\)[^/].*/{
17305 s//\1/
17306 q
17307 }
17308 /^X\(\/\/\)$/{
17309 s//\1/
17310 q
17311 }
17312 /^X\(\/\).*/{
17313 s//\1/
17314 q
17315 }
17316 s/.*/./; q'`
17317 test -d "$as_dir" && break
17318 done
17319 test -z "$as_dirs" || eval "mkdir $as_dirs"
17320 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17321
17322
17323 } # as_fn_mkdir_p
17324 if mkdir -p . 2>/dev/null; then
17325 as_mkdir_p='mkdir -p "$as_dir"'
17326 else
17327 test -d ./-p && rmdir ./-p
17328 as_mkdir_p=false
17329 fi
17330
17331
17332 # as_fn_executable_p FILE
17333 # -----------------------
17334 # Test if FILE is an executable regular file.
17335 as_fn_executable_p ()
17336 {
17337 test -f "$1" && test -x "$1"
17338 } # as_fn_executable_p
17339 as_test_x='test -x'
17340 as_executable_p=as_fn_executable_p
17341
17342 # Sed expression to map a string onto a valid CPP name.
17343 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17344 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17345
17346 # Sed expression to map a string onto a valid variable name.
17347 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17348 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17349
17350
17351 exec 6>&1
17352 ## --------------------------------- ##
17353 ## Main body of "$CONFIG_LT" script. ##
17354 ## --------------------------------- ##
17355 _ASEOF
17356 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
17357
17358 cat >>"$CONFIG_LT" <<\_LTEOF
17359 lt_cl_silent=false
17360 exec 5>>config.log
17361 {
17362 echo
17363 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17364 ## Running $as_me. ##
17365 _ASBOX
17366 } >&5
17367
17368 lt_cl_help="\
17369 '$as_me' creates a local libtool stub from the current configuration,
17370 for use in further configure time tests before the real libtool is
17371 generated.
17372
17373 Usage: $0 [OPTIONS]
17374
17375 -h, --help print this help, then exit
17376 -V, --version print version number, then exit
17377 -q, --quiet do not print progress messages
17378 -d, --debug don't remove temporary files
17379
17380 Report bugs to <[email protected]>."
17381
17382 lt_cl_version="\
17383 dvipng (TeX Live) config.lt 1.18
17384 configured by $0, generated by GNU Autoconf 2.72.
17385
17386 Copyright (C) 2024 Free Software Foundation, Inc.
17387 This config.lt script is free software; the Free Software Foundation
17388 gives unlimited permission to copy, distribute and modify it."
17389
17390 while test 0 != $#
17391 do
17392 case $1 in
17393 --version | --v* | -V )
17394 echo "$lt_cl_version"; exit 0 ;;
17395 --help | --h* | -h )
17396 echo "$lt_cl_help"; exit 0 ;;
17397 --debug | --d* | -d )
17398 debug=: ;;
17399 --quiet | --q* | --silent | --s* | -q )
17400 lt_cl_silent=: ;;
17401
17402 -*) as_fn_error $? "unrecognized option: $1
17403 Try '$0 --help' for more information." "$LINENO" 5 ;;
17404
17405 *) as_fn_error $? "unrecognized argument: $1
17406 Try '$0 --help' for more information." "$LINENO" 5 ;;
17407 esac
17408 shift
17409 done
17410
17411 if $lt_cl_silent; then
17412 exec 6>/dev/null
17413 fi
17414 _LTEOF
17415
17416 cat >>"$CONFIG_LT" <<_LTEOF
17417
17418
17419 # The HP-UX ksh and POSIX shell print the target directory to stdout
17420 # if CDPATH is set.
17421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17422
17423 sed_quote_subst='$sed_quote_subst'
17424 double_quote_subst='$double_quote_subst'
17425 delay_variable_subst='$delay_variable_subst'
17426 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17427 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17428 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17429 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17430 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17431 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17432 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17433 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17434 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17435 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17436 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17437 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17438 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17439 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17440 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17441 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17442 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17443 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17444 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17445 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17446 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17447 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17448 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17449 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17450 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17451 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17452 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17453 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17454 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17455 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17456 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17457 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17458 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17459 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17460 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17461 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17462 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17463 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17464 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17465 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17466 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17467 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17468 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17469 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17470 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17471 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17472 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17473 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17474 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17475 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17476 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17477 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17478 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17479 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17480 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17481 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17482 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17483 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17484 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17485 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17486 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17487 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"`'
17488 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17489 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17490 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17491 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17492 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17493 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17494 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17495 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17496 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17497 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17498 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17499 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17500 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17501 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17502 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17503 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17504 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17505 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17506 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17507 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17508 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17509 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17510 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17511 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17512 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17513 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17514 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17515 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17516 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17517 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17518 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17519 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17520 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17521 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17522 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17523 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17524 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17525 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17526 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17527 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17528 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17529 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17530 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17531 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17532 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17533 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17534 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17535 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17536 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17537 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17538 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17539 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17540 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17541 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17542 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17543 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17544 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17545 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17546 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17547 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17548 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17549 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17550 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17551 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17552 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17553 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17554 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17555 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17556 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17557 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17558 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17559 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17560 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17561 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17562 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17563 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17564
17565 LTCC='$LTCC'
17566 LTCFLAGS='$LTCFLAGS'
17567 compiler='$compiler_DEFAULT'
17568
17569 # A function that is used when there is no print builtin or printf.
17570 func_fallback_echo ()
17571 {
17572 eval 'cat <<_LTECHO_EOF
17573 \$1
17574 _LTECHO_EOF'
17575 }
17576
17577 # Quote evaled strings.
17578 for var in AS \
17579 DLLTOOL \
17580 OBJDUMP \
17581 SHELL \
17582 ECHO \
17583 PATH_SEPARATOR \
17584 SED \
17585 GREP \
17586 EGREP \
17587 FGREP \
17588 LD \
17589 NM \
17590 LN_S \
17591 lt_SP2NL \
17592 lt_NL2SP \
17593 reload_flag \
17594 FILECMD \
17595 deplibs_check_method \
17596 file_magic_cmd \
17597 file_magic_glob \
17598 want_nocaseglob \
17599 sharedlib_from_linklib_cmd \
17600 AR \
17601 archiver_list_spec \
17602 STRIP \
17603 RANLIB \
17604 CC \
17605 CFLAGS \
17606 compiler \
17607 lt_cv_sys_global_symbol_pipe \
17608 lt_cv_sys_global_symbol_to_cdecl \
17609 lt_cv_sys_global_symbol_to_import \
17610 lt_cv_sys_global_symbol_to_c_name_address \
17611 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17612 lt_cv_nm_interface \
17613 nm_file_list_spec \
17614 lt_cv_truncate_bin \
17615 lt_prog_compiler_no_builtin_flag \
17616 lt_prog_compiler_pic \
17617 lt_prog_compiler_wl \
17618 lt_prog_compiler_static \
17619 lt_cv_prog_compiler_c_o \
17620 need_locks \
17621 MANIFEST_TOOL \
17622 DSYMUTIL \
17623 NMEDIT \
17624 LIPO \
17625 OTOOL \
17626 OTOOL64 \
17627 shrext_cmds \
17628 export_dynamic_flag_spec \
17629 whole_archive_flag_spec \
17630 compiler_needs_object \
17631 with_gnu_ld \
17632 allow_undefined_flag \
17633 no_undefined_flag \
17634 hardcode_libdir_flag_spec \
17635 hardcode_libdir_separator \
17636 exclude_expsyms \
17637 include_expsyms \
17638 file_list_spec \
17639 variables_saved_for_relink \
17640 libname_spec \
17641 library_names_spec \
17642 soname_spec \
17643 install_override_mode \
17644 finish_eval \
17645 old_striplib \
17646 striplib; do
17647 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17648 *[\\\\\\\`\\"\\\$]*)
17649 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17650 ;;
17651 *)
17652 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17653 ;;
17654 esac
17655 done
17656
17657 # Double-quote double-evaled strings.
17658 for var in reload_cmds \
17659 old_postinstall_cmds \
17660 old_postuninstall_cmds \
17661 old_archive_cmds \
17662 extract_expsyms_cmds \
17663 old_archive_from_new_cmds \
17664 old_archive_from_expsyms_cmds \
17665 archive_cmds \
17666 archive_expsym_cmds \
17667 module_cmds \
17668 module_expsym_cmds \
17669 export_symbols_cmds \
17670 prelink_cmds \
17671 postlink_cmds \
17672 postinstall_cmds \
17673 postuninstall_cmds \
17674 finish_cmds \
17675 sys_lib_search_path_spec \
17676 configure_time_dlsearch_path \
17677 configure_time_lt_sys_library_path; do
17678 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17679 *[\\\\\\\`\\"\\\$]*)
17680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17681 ;;
17682 *)
17683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17684 ;;
17685 esac
17686 done
17687
17688 ac_aux_dir='$ac_aux_dir'
17689
17690 # See if we are running on zsh, and set the options that allow our
17691 # commands through without removal of \ escapes INIT.
17692 if test -n "\${ZSH_VERSION+set}"; then
17693 setopt NO_GLOB_SUBST
17694 fi
17695
17696
17697 PACKAGE='$PACKAGE'
17698 VERSION='$VERSION'
17699 RM='$RM'
17700 ofile='$ofile'
17701
17702
17703
17704 _LTEOF
17705
17706 cat >>"$CONFIG_LT" <<\_LTEOF
17707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
17708 printf "%s\n" "$as_me: creating $ofile" >&6;}
17709
17710
17711 # See if we are running on zsh, and set the options that allow our
17712 # commands through without removal of \ escapes.
17713 if test -n "${ZSH_VERSION+set}"; then
17714 setopt NO_GLOB_SUBST
17715 fi
17716
17717 cfgfile=${ofile}T
17718 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17719 $RM "$cfgfile"
17720
17721 cat <<_LT_EOF >> "$cfgfile"
17722 #! $SHELL
17723 # Generated automatically by $as_me ($PACKAGE) $VERSION
17724 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17725
17726 # Provide generalized library-building support services.
17727 # Written by Gordon Matzigkeit, 1996
17728
17729 # Copyright (C) 2024 Free Software Foundation, Inc.
17730 # This is free software; see the source for copying conditions. There is NO
17731 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17732
17733 # GNU Libtool is free software; you can redistribute it and/or modify
17734 # it under the terms of the GNU General Public License as published by
17735 # the Free Software Foundation; either version 2 of the License, or
17736 # (at your option) any later version.
17737 #
17738 # As a special exception to the GNU General Public License, if you
17739 # distribute this file as part of a program or library that is built
17740 # using GNU Libtool, you may include this file under the same
17741 # distribution terms that you use for the rest of that program.
17742 #
17743 # GNU Libtool is distributed in the hope that it will be useful, but
17744 # WITHOUT ANY WARRANTY; without even the implied warranty of
17745 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17746 # GNU General Public License for more details.
17747 #
17748 # You should have received a copy of the GNU General Public License
17749 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17750
17751
17752 # The names of the tagged configurations supported by this script.
17753 available_tags=''
17754
17755 # Configured defaults for sys_lib_dlsearch_path munging.
17756 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17757
17758 # ### BEGIN LIBTOOL CONFIG
17759
17760 # Which release of libtool.m4 was used?
17761 macro_version=$macro_version
17762 macro_revision=$macro_revision
17763
17764 # Assembler program.
17765 AS=$lt_AS
17766
17767 # DLL creation program.
17768 DLLTOOL=$lt_DLLTOOL
17769
17770 # Object dumper program.
17771 OBJDUMP=$lt_OBJDUMP
17772
17773 # Whether or not to build shared libraries.
17774 build_libtool_libs=$enable_shared
17775
17776 # Whether or not to build static libraries.
17777 build_old_libs=$enable_static
17778
17779 # What type of objects to build.
17780 pic_mode=$pic_mode
17781
17782 # Whether or not to optimize for fast installation.
17783 fast_install=$enable_fast_install
17784
17785 # Shared archive member basename,for filename based shared library versioning on AIX.
17786 shared_archive_member_spec=$shared_archive_member_spec
17787
17788 # Shell to use when invoking shell scripts.
17789 SHELL=$lt_SHELL
17790
17791 # An echo program that protects backslashes.
17792 ECHO=$lt_ECHO
17793
17794 # The PATH separator for the build system.
17795 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17796
17797 # The host system.
17798 host_alias=$host_alias
17799 host=$host
17800 host_os=$host_os
17801
17802 # The build system.
17803 build_alias=$build_alias
17804 build=$build
17805 build_os=$build_os
17806
17807 # A sed program that does not truncate output.
17808 SED=$lt_SED
17809
17810 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17811 Xsed="\$SED -e 1s/^X//"
17812
17813 # A grep program that handles long lines.
17814 GREP=$lt_GREP
17815
17816 # An ERE matcher.
17817 EGREP=$lt_EGREP
17818
17819 # A literal string matcher.
17820 FGREP=$lt_FGREP
17821
17822 # A BSD- or MS-compatible name lister.
17823 NM=$lt_NM
17824
17825 # Whether we need soft or hard links.
17826 LN_S=$lt_LN_S
17827
17828 # What is the maximum length of a command?
17829 max_cmd_len=$max_cmd_len
17830
17831 # Object file suffix (normally "o").
17832 objext=$ac_objext
17833
17834 # Executable file suffix (normally "").
17835 exeext=$exeext
17836
17837 # whether the shell understands "unset".
17838 lt_unset=$lt_unset
17839
17840 # turn spaces into newlines.
17841 SP2NL=$lt_lt_SP2NL
17842
17843 # turn newlines into spaces.
17844 NL2SP=$lt_lt_NL2SP
17845
17846 # convert \$build file names to \$host format.
17847 to_host_file_cmd=$lt_cv_to_host_file_cmd
17848
17849 # convert \$build files to toolchain format.
17850 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17851
17852 # A file(cmd) program that detects file types.
17853 FILECMD=$lt_FILECMD
17854
17855 # Method to check whether dependent libraries are shared objects.
17856 deplibs_check_method=$lt_deplibs_check_method
17857
17858 # Command to use when deplibs_check_method = "file_magic".
17859 file_magic_cmd=$lt_file_magic_cmd
17860
17861 # How to find potential files when deplibs_check_method = "file_magic".
17862 file_magic_glob=$lt_file_magic_glob
17863
17864 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17865 want_nocaseglob=$lt_want_nocaseglob
17866
17867 # Command to associate shared and link libraries.
17868 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17869
17870 # The archiver.
17871 AR=$lt_AR
17872
17873 # Flags to create an archive (by configure).
17874 lt_ar_flags=$lt_ar_flags
17875
17876 # Flags to create an archive.
17877 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17878
17879 # How to feed a file listing to the archiver.
17880 archiver_list_spec=$lt_archiver_list_spec
17881
17882 # A symbol stripping program.
17883 STRIP=$lt_STRIP
17884
17885 # Commands used to install an old-style archive.
17886 RANLIB=$lt_RANLIB
17887 old_postinstall_cmds=$lt_old_postinstall_cmds
17888 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17889
17890 # Whether to use a lock for old archive extraction.
17891 lock_old_archive_extraction=$lock_old_archive_extraction
17892
17893 # A C compiler.
17894 LTCC=$lt_CC
17895
17896 # LTCC compiler flags.
17897 LTCFLAGS=$lt_CFLAGS
17898
17899 # Take the output of nm and produce a listing of raw symbols and C names.
17900 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17901
17902 # Transform the output of nm in a proper C declaration.
17903 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17904
17905 # Transform the output of nm into a list of symbols to manually relocate.
17906 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17907
17908 # Transform the output of nm in a C name address pair.
17909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17910
17911 # Transform the output of nm in a C name address pair when lib prefix is needed.
17912 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17913
17914 # The name lister interface.
17915 nm_interface=$lt_lt_cv_nm_interface
17916
17917 # Specify filename containing input files for \$NM.
17918 nm_file_list_spec=$lt_nm_file_list_spec
17919
17920 # The root where to search for dependent libraries,and where our libraries should be installed.
17921 lt_sysroot=$lt_sysroot
17922
17923 # Command to truncate a binary pipe.
17924 lt_truncate_bin=$lt_lt_cv_truncate_bin
17925
17926 # The name of the directory that contains temporary libtool files.
17927 objdir=$objdir
17928
17929 # Used to examine libraries when file_magic_cmd begins with "file".
17930 MAGIC_CMD=$MAGIC_CMD
17931
17932 # Must we lock files when doing compilation?
17933 need_locks=$lt_need_locks
17934
17935 # Manifest tool.
17936 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17937
17938 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17939 DSYMUTIL=$lt_DSYMUTIL
17940
17941 # Tool to change global to local symbols on Mac OS X.
17942 NMEDIT=$lt_NMEDIT
17943
17944 # Tool to manipulate fat objects and archives on Mac OS X.
17945 LIPO=$lt_LIPO
17946
17947 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17948 OTOOL=$lt_OTOOL
17949
17950 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17951 OTOOL64=$lt_OTOOL64
17952
17953 # Old archive suffix (normally "a").
17954 libext=$libext
17955
17956 # Shared library suffix (normally ".so").
17957 shrext_cmds=$lt_shrext_cmds
17958
17959 # The commands to extract the exported symbol list from a shared archive.
17960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17961
17962 # Variables whose values should be saved in libtool wrapper scripts and
17963 # restored at link time.
17964 variables_saved_for_relink=$lt_variables_saved_for_relink
17965
17966 # Do we need the "lib" prefix for modules?
17967 need_lib_prefix=$need_lib_prefix
17968
17969 # Do we need a version for libraries?
17970 need_version=$need_version
17971
17972 # Library versioning type.
17973 version_type=$version_type
17974
17975 # Shared library runtime path variable.
17976 runpath_var=$runpath_var
17977
17978 # Shared library path variable.
17979 shlibpath_var=$shlibpath_var
17980
17981 # Is shlibpath searched before the hard-coded library search path?
17982 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17983
17984 # Format of library name prefix.
17985 libname_spec=$lt_libname_spec
17986
17987 # List of archive names. First name is the real one, the rest are links.
17988 # The last name is the one that the linker finds with -lNAME
17989 library_names_spec=$lt_library_names_spec
17990
17991 # The coded name of the library, if different from the real name.
17992 soname_spec=$lt_soname_spec
17993
17994 # Permission mode override for installation of shared libraries.
17995 install_override_mode=$lt_install_override_mode
17996
17997 # Command to use after installation of a shared archive.
17998 postinstall_cmds=$lt_postinstall_cmds
17999
18000 # Command to use after uninstallation of a shared archive.
18001 postuninstall_cmds=$lt_postuninstall_cmds
18002
18003 # Commands used to finish a libtool library installation in a directory.
18004 finish_cmds=$lt_finish_cmds
18005
18006 # As "finish_cmds", except a single script fragment to be evaled but
18007 # not shown.
18008 finish_eval=$lt_finish_eval
18009
18010 # Whether we should hardcode library paths into libraries.
18011 hardcode_into_libs=$hardcode_into_libs
18012
18013 # Compile-time system search path for libraries.
18014 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18015
18016 # Detected run-time system search path for libraries.
18017 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18018
18019 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18020 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18021
18022 # Whether dlopen is supported.
18023 dlopen_support=$enable_dlopen
18024
18025 # Whether dlopen of programs is supported.
18026 dlopen_self=$enable_dlopen_self
18027
18028 # Whether dlopen of statically linked programs is supported.
18029 dlopen_self_static=$enable_dlopen_self_static
18030
18031 # Commands to strip libraries.
18032 old_striplib=$lt_old_striplib
18033 striplib=$lt_striplib
18034
18035
18036 # The linker used to build libraries.
18037 LD=$lt_LD
18038
18039 # How to create reloadable object files.
18040 reload_flag=$lt_reload_flag
18041 reload_cmds=$lt_reload_cmds
18042
18043 # Commands used to build an old-style archive.
18044 old_archive_cmds=$lt_old_archive_cmds
18045
18046 # A language specific compiler.
18047 CC=$lt_compiler
18048
18049 # Is the compiler the GNU compiler?
18050 with_gcc=$GCC
18051
18052 # Compiler flag to turn off builtin functions.
18053 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18054
18055 # Additional compiler flags for building library objects.
18056 pic_flag=$lt_lt_prog_compiler_pic
18057
18058 # How to pass a linker flag through the compiler.
18059 wl=$lt_lt_prog_compiler_wl
18060
18061 # Compiler flag to prevent dynamic linking.
18062 link_static_flag=$lt_lt_prog_compiler_static
18063
18064 # Does compiler simultaneously support -c and -o options?
18065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18066
18067 # Whether or not to add -lc for building shared libraries.
18068 build_libtool_need_lc=$archive_cmds_need_lc
18069
18070 # Whether or not to disallow shared libs when runtime libs are static.
18071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18072
18073 # Compiler flag to allow reflexive dlopens.
18074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18075
18076 # Compiler flag to generate shared objects directly from archives.
18077 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18078
18079 # Whether the compiler copes with passing no objects directly.
18080 compiler_needs_object=$lt_compiler_needs_object
18081
18082 # Create an old-style archive from a shared archive.
18083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18084
18085 # Create a temporary old-style archive to link instead of a shared archive.
18086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18087
18088 # Commands used to build a shared archive.
18089 archive_cmds=$lt_archive_cmds
18090 archive_expsym_cmds=$lt_archive_expsym_cmds
18091
18092 # Commands used to build a loadable module if different from building
18093 # a shared archive.
18094 module_cmds=$lt_module_cmds
18095 module_expsym_cmds=$lt_module_expsym_cmds
18096
18097 # Whether we are building with GNU ld or not.
18098 with_gnu_ld=$lt_with_gnu_ld
18099
18100 # Flag that allows shared libraries with undefined symbols to be built.
18101 allow_undefined_flag=$lt_allow_undefined_flag
18102
18103 # Flag that enforces no undefined symbols.
18104 no_undefined_flag=$lt_no_undefined_flag
18105
18106 # Flag to hardcode \$libdir into a binary during linking.
18107 # This must work even if \$libdir does not exist
18108 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18109
18110 # Whether we need a single "-rpath" flag with a separated argument.
18111 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18112
18113 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18114 # DIR into the resulting binary.
18115 hardcode_direct=$hardcode_direct
18116
18117 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18118 # DIR into the resulting binary and the resulting library dependency is
18119 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
18120 # library is relocated.
18121 hardcode_direct_absolute=$hardcode_direct_absolute
18122
18123 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18124 # into the resulting binary.
18125 hardcode_minus_L=$hardcode_minus_L
18126
18127 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18128 # into the resulting binary.
18129 hardcode_shlibpath_var=$hardcode_shlibpath_var
18130
18131 # Set to "yes" if building a shared library automatically hardcodes DIR
18132 # into the library and all subsequent libraries and executables linked
18133 # against it.
18134 hardcode_automatic=$hardcode_automatic
18135
18136 # Set to yes if linker adds runtime paths of dependent libraries
18137 # to runtime path list.
18138 inherit_rpath=$inherit_rpath
18139
18140 # Whether libtool must link a program against all its dependency libraries.
18141 link_all_deplibs=$link_all_deplibs
18142
18143 # Set to "yes" if exported symbols are required.
18144 always_export_symbols=$always_export_symbols
18145
18146 # The commands to list exported symbols.
18147 export_symbols_cmds=$lt_export_symbols_cmds
18148
18149 # Symbols that should not be listed in the preloaded symbols.
18150 exclude_expsyms=$lt_exclude_expsyms
18151
18152 # Symbols that must always be exported.
18153 include_expsyms=$lt_include_expsyms
18154
18155 # Commands necessary for linking programs (against libraries) with templates.
18156 prelink_cmds=$lt_prelink_cmds
18157
18158 # Commands necessary for finishing linking programs.
18159 postlink_cmds=$lt_postlink_cmds
18160
18161 # Specify filename containing input files.
18162 file_list_spec=$lt_file_list_spec
18163
18164 # How to hardcode a shared library path into an executable.
18165 hardcode_action=$hardcode_action
18166
18167 # ### END LIBTOOL CONFIG
18168
18169 _LT_EOF
18170
18171 cat <<'_LT_EOF' >> "$cfgfile"
18172
18173 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18174
18175 # func_munge_path_list VARIABLE PATH
18176 # -----------------------------------
18177 # VARIABLE is name of variable containing _space_ separated list of
18178 # directories to be munged by the contents of PATH, which is string
18179 # having a format:
18180 # "DIR[:DIR]:"
18181 # string "DIR[ DIR]" will be prepended to VARIABLE
18182 # ":DIR[:DIR]"
18183 # string "DIR[ DIR]" will be appended to VARIABLE
18184 # "DIRP[:DIRP]::[DIRA:]DIRA"
18185 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18186 # "DIRA[ DIRA]" will be appended to VARIABLE
18187 # "DIR[:DIR]"
18188 # VARIABLE will be replaced by "DIR[ DIR]"
18189 func_munge_path_list ()
18190 {
18191 case x$2 in
18192 x)
18193 ;;
18194 *:)
18195 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18196 ;;
18197 x:*)
18198 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18199 ;;
18200 *::*)
18201 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18202 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18203 ;;
18204 *)
18205 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18206 ;;
18207 esac
18208 }
18209
18210
18211 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18212 func_cc_basename ()
18213 {
18214 for cc_temp in $*""; do
18215 case $cc_temp in
18216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18218 \-*) ;;
18219 *) break;;
18220 esac
18221 done
18222 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18223 }
18224
18225
18226 # ### END FUNCTIONS SHARED WITH CONFIGURE
18227
18228 _LT_EOF
18229
18230 case $host_os in
18231 aix3*)
18232 cat <<\_LT_EOF >> "$cfgfile"
18233 # AIX sometimes has problems with the GCC collect2 program. For some
18234 # reason, if we set the COLLECT_NAMES environment variable, the problems
18235 # vanish in a puff of smoke.
18236 if test set != "${COLLECT_NAMES+set}"; then
18237 COLLECT_NAMES=
18238 export COLLECT_NAMES
18239 fi
18240 _LT_EOF
18241 ;;
18242 esac
18243
18244
18245
18246 ltmain=$ac_aux_dir/ltmain.sh
18247
18248
18249 # We use sed instead of cat because bash on DJGPP gets confused if
18250 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18251 # text mode, it properly converts lines to CR/LF. This bash problem
18252 # is reportedly fixed, but why not run on old versions too?
18253 $SED '$q' "$ltmain" >> "$cfgfile" \
18254 || (rm -f "$cfgfile"; exit 1)
18255
18256 mv -f "$cfgfile" "$ofile" ||
18257 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18258 chmod +x "$ofile"
18259
18260
18261 as_fn_exit 0
18262 _LTEOF
18263 chmod +x "$CONFIG_LT"
18264
18265 # configure is writing to config.log, but config.lt does its own redirection,
18266 # appending to config.log, which fails on DOS, as config.log is still kept
18267 # open by configure. Here we exec the FD to /dev/null, effectively closing
18268 # config.log, so it can be properly (re)opened and appended to by config.lt.
18269 lt_cl_success=:
18270 test yes = "$silent" &&
18271 lt_config_lt_args="$lt_config_lt_args --quiet"
18272 exec 5>/dev/null
18273 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
18274 exec 5>>config.log
18275 $lt_cl_success || as_fn_exit 1
18276
18277 #
18278 #
18279 ac_ext=c
18280 ac_cpp='$CPP $CPPFLAGS'
18281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18284 ac_link="./libtool --mode=link --tag=CC $ac_link"
18285
18286 if test -n "$ac_tool_prefix"; then
18287 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18288 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18290 printf %s "checking for $ac_word... " >&6; }
18291 if test ${ac_cv_prog_PKG_CONFIG+y}
18292 then :
18293 printf %s "(cached) " >&6
18294 else case e in #(
18295 e) if test -n "$PKG_CONFIG"; then
18296 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
18297 else
18298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18299 for as_dir in $PATH
18300 do
18301 IFS=$as_save_IFS
18302 case $as_dir in #(((
18303 '') as_dir=./ ;;
18304 */) ;;
18305 *) as_dir=$as_dir/ ;;
18306 esac
18307 for ac_exec_ext in '' $ac_executable_extensions; do
18308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18309 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
18310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18311 break 2
18312 fi
18313 done
18314 done
18315 IFS=$as_save_IFS
18316
18317 fi ;;
18318 esac
18319 fi
18320 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
18321 if test -n "$PKG_CONFIG"; then
18322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18323 printf "%s\n" "$PKG_CONFIG" >&6; }
18324 else
18325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18326 printf "%s\n" "no" >&6; }
18327 fi
18328
18329
18330 fi
18331 if test -z "$ac_cv_prog_PKG_CONFIG"; then
18332 ac_ct_PKG_CONFIG=$PKG_CONFIG
18333 # Extract the first word of "pkg-config", so it can be a program name with args.
18334 set dummy pkg-config; ac_word=$2
18335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18336 printf %s "checking for $ac_word... " >&6; }
18337 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
18338 then :
18339 printf %s "(cached) " >&6
18340 else case e in #(
18341 e) if test -n "$ac_ct_PKG_CONFIG"; then
18342 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
18343 else
18344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18345 for as_dir in $PATH
18346 do
18347 IFS=$as_save_IFS
18348 case $as_dir in #(((
18349 '') as_dir=./ ;;
18350 */) ;;
18351 *) as_dir=$as_dir/ ;;
18352 esac
18353 for ac_exec_ext in '' $ac_executable_extensions; do
18354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18355 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
18356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18357 break 2
18358 fi
18359 done
18360 done
18361 IFS=$as_save_IFS
18362
18363 fi ;;
18364 esac
18365 fi
18366 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
18367 if test -n "$ac_ct_PKG_CONFIG"; then
18368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
18369 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
18370 else
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372 printf "%s\n" "no" >&6; }
18373 fi
18374
18375 if test "x$ac_ct_PKG_CONFIG" = x; then
18376 PKG_CONFIG="false"
18377 else
18378 case $cross_compiling:$ac_tool_warned in
18379 yes:)
18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18381 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18382 ac_tool_warned=yes ;;
18383 esac
18384 PKG_CONFIG=$ac_ct_PKG_CONFIG
18385 fi
18386 else
18387 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
18388 fi
18389
18390 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
18391 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
18392 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
18393
18394 # Check whether --with-system-kpathsea was given.
18395 if test ${with_system_kpathsea+y}
18396 then :
18397 withval=$with_system_kpathsea;
18398 fi
18399 if test "x$with_system_kpathsea" = xyes; then
18400 if $PKG_CONFIG kpathsea; then
18401 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
18402 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
18403 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
18404 as_fn_error $? "did not find kpathsea" "$LINENO" 5
18405 fi
18406 else
18407 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
18408 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
18409 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
18410 KPATHSEA_RULE='# Rebuild libkpathsea
18411 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
18412 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
18413 ${top_builddir}/../kpathsea/paths.h:
18414 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
18415 fi
18416
18417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
18418 printf %s "checking if libkpathsea supports debugging... " >&6; }
18419 if test ${kpse_cv_kpse_debug+y}
18420 then :
18421 printf %s "(cached) " >&6
18422 else case e in #(
18423 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
18424 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
18425
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 #include <kpathsea/kpathsea.h>
18429 int
18430 main (void)
18431 {
18432 FILE *f = fopen("f", "r")
18433 ;
18434 return 0;
18435 }
18436 _ACEOF
18437 if ac_fn_c_try_link "$LINENO"
18438 then :
18439 kpse_cv_kpse_debug=yes
18440 else case e in #(
18441 e) kpse_cv_kpse_debug=no ;;
18442 esac
18443 fi
18444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18445 conftest$ac_exeext conftest.$ac_ext
18446 CPPFLAGS=$kpse_save_CPPFLAGS
18447 LIBS=$kpse_save_LIBS
18448 ;;
18449 esac
18450 fi
18451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
18452 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
18453 if test "x$kpse_cv_kpse_debug" != xyes
18454 then :
18455 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
18456 fi
18457
18458 ##tldbg _KPSE_LIB_FLAGS: Setup zlib (-lz) flags.
18459 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=zlib, libname=z, options=, tlincl=-IBLD/libs/zlib/include, tllib=BLD/libs/zlib/libz.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/zlib/include/zconf.h.' >&5
18460 ##tldbg _KPSE_LIB_FLAGS_TL: zlib (z) .
18461
18462 # Check whether --with-system-zlib was given.
18463 if test ${with_system_zlib+y}
18464 then :
18465 withval=$with_system_zlib;
18466 fi
18467
18468 # Check whether --with-zlib-includes was given.
18469 if test ${with_zlib_includes+y}
18470 then :
18471 withval=$with_zlib_includes;
18472 fi
18473
18474 # Check whether --with-zlib-libdir was given.
18475 if test ${with_zlib_libdir+y}
18476 then :
18477 withval=$with_zlib_libdir;
18478 fi
18479 if test "x$with_system_zlib" = xyes; then
18480 ##tldbg _KPSE_LIB_FLAGS_SYSTEM: zlib (z).
18481 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
18482 ZLIB_INCLUDES="-I$with_zlib_includes"
18483 fi
18484 ZLIB_LIBS="-lz"
18485 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
18486 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
18487 fi
18488 else
18489 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
18490 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
18491 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
18492 ZLIB_RULE='# Rebuild libz
18493 $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
18494 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
18495 ${top_builddir}/../../libs/zlib/include/zconf.h:
18496 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
18497 fi
18498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
18499 printf %s "checking if <zlib.h> defines 'z_const'... " >&6; }
18500 if test ${kpse_cv_have_decl_z_const+y}
18501 then :
18502 printf %s "(cached) " >&6
18503 else case e in #(
18504 e) eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
18505 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
18506
18507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18508 /* end confdefs.h. */
18509 #include <zlib.h>
18510 int
18511 main (void)
18512 {
18513 z_const char * foo();
18514 ;
18515 return 0;
18516 }
18517 _ACEOF
18518 if ac_fn_c_try_compile "$LINENO"
18519 then :
18520 kpse_cv_have_decl_z_const=yes
18521 else case e in #(
18522 e) kpse_cv_have_decl_z_const=no ;;
18523 esac
18524 fi
18525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18526 CPPFLAGS=$kpse_save_CPPFLAGS
18527 LIBS=$kpse_save_LIBS
18528 ;;
18529 esac
18530 fi
18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
18532 printf "%s\n" "$kpse_cv_have_decl_z_const" >&6; }
18533 case $kpse_cv_have_decl_z_const in #(
18534 yes) :
18535
18536 printf "%s\n" "#define ZLIB_CONST 1" >>confdefs.h
18537 ;; #(
18538 *) :
18539
18540 printf "%s\n" "#define z_const /**/" >>confdefs.h
18541 ;;
18542 esac
18543
18544 ##tldbg _KPSE_LIB_FLAGS: Setup libpng (-lpng) flags.
18545 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=libpng, libname=png, options=, tlincl=-IBLD/libs/libpng/include, tllib=BLD/libs/libpng/libpng.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/libpng/include/png.h.' >&5
18546 ##tldbg _KPSE_LIB_FLAGS_TL: libpng (png) .
18547
18548 # Check whether --with-system-libpng was given.
18549 if test ${with_system_libpng+y}
18550 then :
18551 withval=$with_system_libpng;
18552 fi
18553 if test "x$with_system_libpng" = xyes; then
18554 if $PKG_CONFIG libpng; then
18555 LIBPNG_INCLUDES=`$PKG_CONFIG libpng --cflags`
18556 LIBPNG_LIBS=`$PKG_CONFIG libpng --libs`
18557 elif test "x$need_libpng:$with_system_libpng" = xyes:yes; then
18558 as_fn_error $? "did not find libpng" "$LINENO" 5
18559 fi
18560 else
18561 LIBPNG_INCLUDES="-I$kpse_BLD/libs/libpng/include"
18562 LIBPNG_LIBS="$kpse_BLD/libs/libpng/libpng.a"
18563 LIBPNG_DEPEND='${top_builddir}/../../libs/libpng/libpng.a'
18564 LIBPNG_RULE='# Rebuild libpng
18565 $(LIBPNG_DEPEND): ${top_builddir}/../../libs/libpng/include/png.h
18566 cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild
18567 ${top_builddir}/../../libs/libpng/include/png.h:
18568 cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild'
18569 fi
18570
18571 ##tldbg _KPSE_LIB_FLAGS: Setup freetype2 (-lfreetype) flags.
18572 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=freetype2, libname=freetype, options=, tlincl=-IBLD/libs/freetype2/freetype2, tllib=BLD/libs/freetype2/libfreetype.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/freetype2/freetype2/ft2build.h.' >&5
18573 ##tldbg _KPSE_LIB_FLAGS_TL: freetype2 (freetype) .
18574
18575 # Check whether --with-system-freetype2 was given.
18576 if test ${with_system_freetype2+y}
18577 then :
18578 withval=$with_system_freetype2;
18579 fi
18580 if test "x$with_system_freetype2" = xyes; then
18581 if test -n "$ac_tool_prefix"; then
18582 # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
18583 set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
18584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18585 printf %s "checking for $ac_word... " >&6; }
18586 if test ${ac_cv_prog_FT2_CONFIG+y}
18587 then :
18588 printf %s "(cached) " >&6
18589 else case e in #(
18590 e) if test -n "$FT2_CONFIG"; then
18591 ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test.
18592 else
18593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18594 for as_dir in $PATH
18595 do
18596 IFS=$as_save_IFS
18597 case $as_dir in #(((
18598 '') as_dir=./ ;;
18599 */) ;;
18600 *) as_dir=$as_dir/ ;;
18601 esac
18602 for ac_exec_ext in '' $ac_executable_extensions; do
18603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18604 ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config"
18605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18606 break 2
18607 fi
18608 done
18609 done
18610 IFS=$as_save_IFS
18611
18612 fi ;;
18613 esac
18614 fi
18615 FT2_CONFIG=$ac_cv_prog_FT2_CONFIG
18616 if test -n "$FT2_CONFIG"; then
18617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
18618 printf "%s\n" "$FT2_CONFIG" >&6; }
18619 else
18620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18621 printf "%s\n" "no" >&6; }
18622 fi
18623
18624
18625 fi
18626 if test -z "$ac_cv_prog_FT2_CONFIG"; then
18627 ac_ct_FT2_CONFIG=$FT2_CONFIG
18628 # Extract the first word of "freetype-config", so it can be a program name with args.
18629 set dummy freetype-config; ac_word=$2
18630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18631 printf %s "checking for $ac_word... " >&6; }
18632 if test ${ac_cv_prog_ac_ct_FT2_CONFIG+y}
18633 then :
18634 printf %s "(cached) " >&6
18635 else case e in #(
18636 e) if test -n "$ac_ct_FT2_CONFIG"; then
18637 ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test.
18638 else
18639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18640 for as_dir in $PATH
18641 do
18642 IFS=$as_save_IFS
18643 case $as_dir in #(((
18644 '') as_dir=./ ;;
18645 */) ;;
18646 *) as_dir=$as_dir/ ;;
18647 esac
18648 for ac_exec_ext in '' $ac_executable_extensions; do
18649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18650 ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config"
18651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18652 break 2
18653 fi
18654 done
18655 done
18656 IFS=$as_save_IFS
18657
18658 fi ;;
18659 esac
18660 fi
18661 ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG
18662 if test -n "$ac_ct_FT2_CONFIG"; then
18663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5
18664 printf "%s\n" "$ac_ct_FT2_CONFIG" >&6; }
18665 else
18666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18667 printf "%s\n" "no" >&6; }
18668 fi
18669
18670 if test "x$ac_ct_FT2_CONFIG" = x; then
18671 FT2_CONFIG="false"
18672 else
18673 case $cross_compiling:$ac_tool_warned in
18674 yes:)
18675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18676 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18677 ac_tool_warned=yes ;;
18678 esac
18679 FT2_CONFIG=$ac_ct_FT2_CONFIG
18680 fi
18681 else
18682 FT2_CONFIG="$ac_cv_prog_FT2_CONFIG"
18683 fi
18684 if test -n "$ac_tool_prefix"; then
18685 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18686 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18688 printf %s "checking for $ac_word... " >&6; }
18689 if test ${ac_cv_prog_PKG_CONFIG+y}
18690 then :
18691 printf %s "(cached) " >&6
18692 else case e in #(
18693 e) if test -n "$PKG_CONFIG"; then
18694 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
18695 else
18696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18697 for as_dir in $PATH
18698 do
18699 IFS=$as_save_IFS
18700 case $as_dir in #(((
18701 '') as_dir=./ ;;
18702 */) ;;
18703 *) as_dir=$as_dir/ ;;
18704 esac
18705 for ac_exec_ext in '' $ac_executable_extensions; do
18706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18707 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
18708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18709 break 2
18710 fi
18711 done
18712 done
18713 IFS=$as_save_IFS
18714
18715 fi ;;
18716 esac
18717 fi
18718 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
18719 if test -n "$PKG_CONFIG"; then
18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18721 printf "%s\n" "$PKG_CONFIG" >&6; }
18722 else
18723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18724 printf "%s\n" "no" >&6; }
18725 fi
18726
18727
18728 fi
18729 if test -z "$ac_cv_prog_PKG_CONFIG"; then
18730 ac_ct_PKG_CONFIG=$PKG_CONFIG
18731 # Extract the first word of "pkg-config", so it can be a program name with args.
18732 set dummy pkg-config; ac_word=$2
18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18734 printf %s "checking for $ac_word... " >&6; }
18735 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
18736 then :
18737 printf %s "(cached) " >&6
18738 else case e in #(
18739 e) if test -n "$ac_ct_PKG_CONFIG"; then
18740 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
18741 else
18742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18743 for as_dir in $PATH
18744 do
18745 IFS=$as_save_IFS
18746 case $as_dir in #(((
18747 '') as_dir=./ ;;
18748 */) ;;
18749 *) as_dir=$as_dir/ ;;
18750 esac
18751 for ac_exec_ext in '' $ac_executable_extensions; do
18752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18753 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
18754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18755 break 2
18756 fi
18757 done
18758 done
18759 IFS=$as_save_IFS
18760
18761 fi ;;
18762 esac
18763 fi
18764 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
18765 if test -n "$ac_ct_PKG_CONFIG"; then
18766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
18767 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
18768 else
18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 printf "%s\n" "no" >&6; }
18771 fi
18772
18773 if test "x$ac_ct_PKG_CONFIG" = x; then
18774 PKG_CONFIG="false"
18775 else
18776 case $cross_compiling:$ac_tool_warned in
18777 yes:)
18778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18779 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18780 ac_tool_warned=yes ;;
18781 esac
18782 PKG_CONFIG=$ac_ct_PKG_CONFIG
18783 fi
18784 else
18785 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
18786 fi
18787 if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
18788 FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags`
18789 FREETYPE2_LIBS=`$FT2_CONFIG --libs`
18790 elif $PKG_CONFIG --libs freetype2 >/dev/null 2>&1; then
18791 FREETYPE2_INCLUDES=`$PKG_CONFIG --cflags freetype2`
18792 FREETYPE2_LIBS=`$PKG_CONFIG --libs freetype2`
18793 elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then
18794 as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5
18795 fi
18796 else
18797 FREETYPE2_INCLUDES="-I$kpse_BLD/libs/freetype2/freetype2"
18798 FREETYPE2_LIBS="$kpse_BLD/libs/freetype2/libfreetype.a"
18799 FREETYPE2_DEPEND='${top_builddir}/../../libs/freetype2/libfreetype.a'
18800 FREETYPE2_RULE='# Rebuild libfreetype
18801 $(FREETYPE2_DEPEND): ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h
18802 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild
18803 ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h:
18804 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild'
18805 fi
18806
18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
18808 printf %s "checking for native WIN32 or MINGW32... " >&6; }
18809 if test ${kpse_cv_have_win32+y}
18810 then :
18811 printf %s "(cached) " >&6
18812 else case e in #(
18813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18815 #ifndef WIN32
18816 choke me
18817 #endif
18818 int
18819 main (void)
18820 {
18821
18822 ;
18823 return 0;
18824 }
18825 _ACEOF
18826 if ac_fn_c_try_compile "$LINENO"
18827 then :
18828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h. */
18830 #ifndef __MINGW32__
18831 choke me
18832 #endif
18833 int
18834 main (void)
18835 {
18836
18837 ;
18838 return 0;
18839 }
18840 _ACEOF
18841 if ac_fn_c_try_compile "$LINENO"
18842 then :
18843 kpse_cv_have_win32=mingw32
18844 else case e in #(
18845 e) kpse_cv_have_win32=native ;;
18846 esac
18847 fi
18848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18849 else case e in #(
18850 e) kpse_cv_have_win32=no ;;
18851 esac
18852 fi
18853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18854 esac
18855 fi
18856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
18857 printf "%s\n" "$kpse_cv_have_win32" >&6; }
18858
18859 ##tldbg _KPSE_LIB_FLAGS: Setup gd (-lgd) flags.
18860 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=gd, libname=gd, options=, tlincl=-IBLD/libs/gd/include, tllib=BLD/libs/gd/libgd.a, tlextra=test "x$kpse_cv_have_win32" = xno || GD_INCLUDES="$GD_INCLUDES -DBGDWIN32 -DNONDLL", rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/gd/include/gd.h.' >&5
18861 ##tldbg _KPSE_LIB_FLAGS_TL: gd (gd) .
18862
18863 # Check whether --with-system-gd was given.
18864 if test ${with_system_gd+y}
18865 then :
18866 withval=$with_system_gd;
18867 fi
18868
18869 # Check whether --with-gd-includes was given.
18870 if test ${with_gd_includes+y}
18871 then :
18872 withval=$with_gd_includes;
18873 fi
18874
18875 # Check whether --with-gd-libdir was given.
18876 if test ${with_gd_libdir+y}
18877 then :
18878 withval=$with_gd_libdir;
18879 fi
18880 if test "x$with_system_gd" = xyes; then
18881 ##tldbg _KPSE_LIB_FLAGS_SYSTEM: gd (gd).
18882 if test "x$with_gd_includes" != x && test "x$with_gd_includes" != xyes; then
18883 GD_INCLUDES="-I$with_gd_includes"
18884 fi
18885 GD_LIBS="-lgd"
18886 if test "x$with_gd_libdir" != x && test "x$with_gd_libdir" != xyes; then
18887 GD_LIBS="-L$with_gd_libdir $GD_LIBS"
18888 fi
18889 else
18890 GD_INCLUDES="-I$kpse_BLD/libs/gd/include"
18891 GD_LIBS="$kpse_BLD/libs/gd/libgd.a"
18892 test "x$kpse_cv_have_win32" = xno || GD_INCLUDES="$GD_INCLUDES -DBGDWIN32 -DNONDLL"
18893 GD_DEPEND='${top_builddir}/../../libs/gd/libgd.a'
18894 GD_RULE='# Rebuild libgd
18895 $(GD_DEPEND): ${top_builddir}/../../libs/gd/include/gd.h
18896 cd ${top_builddir}/../../libs/gd && $(MAKE) $(AM_MAKEFLAGS) rebuild
18897 ${top_builddir}/../../libs/gd/include/gd.h:
18898 cd ${top_builddir}/../../libs/gd && $(MAKE) $(AM_MAKEFLAGS) rebuild'
18899 fi
18900
18901
18902 # Assume we have freetype2.
18903 have_ft2=yes
18904
18905 if test "x$enable_build" != xno || test -f config.force; then
18906
18907 # Checks for more libraries.
18908 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
18909 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
18910
18911 ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
18912 if test "x$ac_cv_func_deflate" = xyes
18913 then :
18914
18915 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
18916
18917 fi
18918
18919
18920 eval CPPFLAGS=\"$LIBPNG_INCLUDES \$CPPFLAGS\"
18921 eval LIBS=\"$LIBPNG_LIBS \$LIBS\"
18922
18923 ac_fn_c_check_func "$LINENO" "png_read_image" "ac_cv_func_png_read_image"
18924 if test "x$ac_cv_func_png_read_image" = xyes
18925 then :
18926
18927 printf "%s\n" "#define HAVE_LIBPNG 1" >>confdefs.h
18928
18929 else case e in #(
18930 e) as_fn_error $? "cannot find/use libpng" "$LINENO" 5 ;;
18931 esac
18932 fi
18933
18934
18935 eval CPPFLAGS=\"$FREETYPE2_INCLUDES \$CPPFLAGS\"
18936 eval LIBS=\"$FREETYPE2_LIBS \$LIBS\"
18937
18938 ac_fn_c_check_func "$LINENO" "FT_Init_FreeType" "ac_cv_func_FT_Init_FreeType"
18939 if test "x$ac_cv_func_FT_Init_FreeType" = xyes
18940 then :
18941
18942 printf "%s\n" "#define HAVE_FT2 1" >>confdefs.h
18943
18944 else case e in #(
18945 e) have_ft2=no ;;
18946 esac
18947 fi
18948
18949
18950 eval CPPFLAGS=\"$GD_INCLUDES \$CPPFLAGS\"
18951 eval LIBS=\"$GD_LIBS \$LIBS\"
18952
18953 ac_fn_c_check_func "$LINENO" "gdImageCreate" "ac_cv_func_gdImageCreate"
18954 if test "x$ac_cv_func_gdImageCreate" = xyes
18955 then :
18956
18957 printf "%s\n" "#define HAVE_LIBGD 1" >>confdefs.h
18958
18959 else case e in #(
18960 e) as_fn_error $? "cannot find/use gd
18961 This drawing library can be downloaded at http://www.boutell.com/gd" "$LINENO" 5 ;;
18962 esac
18963 fi
18964
18965
18966 eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
18967 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
18968
18969 ac_fn_c_check_func "$LINENO" "kpse_set_program_name" "ac_cv_func_kpse_set_program_name"
18970 if test "x$ac_cv_func_kpse_set_program_name" = xyes
18971 then :
18972
18973 printf "%s\n" "#define HAVE_LIBKPATHSEA 1" >>confdefs.h
18974
18975 else case e in #(
18976 e) as_fn_error $? "cannot find/use libkpathsea" "$LINENO" 5 ;;
18977 esac
18978 fi
18979
18980
18981 ac_fn_c_check_func "$LINENO" "kpse_program_basename" "ac_cv_func_kpse_program_basename"
18982 if test "x$ac_cv_func_kpse_program_basename" = xyes
18983 then :
18984 printf "%s\n" "#define HAVE_KPSE_PROGRAM_BASENAME 1" >>confdefs.h
18985
18986 fi
18987
18988
18989 if test "x$kpse_cv_have_win32" != xno
18990 then :
18991 ac_fn_c_check_func "$LINENO" "texlive_gs_init" "ac_cv_func_texlive_gs_init"
18992 if test "x$ac_cv_func_texlive_gs_init" = xyes
18993 then :
18994 printf "%s\n" "#define HAVE_TEXLIVE_GS_INIT 1" >>confdefs.h
18995
18996 fi
18997
18998 fi
18999
19000
19001 # We need enc, cmap, and sfd formats.
19002 # Introduced together with opentype format (Dec 2003).
19003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether kpathsea declares the kpse_opentype_format" >&5
19004 printf %s "checking whether kpathsea declares the kpse_opentype_format... " >&6; }
19005 if test ${kpse_cv_have_opentype_format+y}
19006 then :
19007 printf %s "(cached) " >&6
19008 else case e in #(
19009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19011 #include <kpathsea/kpathsea.h>
19012 int
19013 main (void)
19014 {
19015 kpse_opentype_format
19016 ;
19017 return 0;
19018 }
19019 _ACEOF
19020 if ac_fn_c_try_link "$LINENO"
19021 then :
19022 kpse_cv_have_opentype_format=yes
19023 else case e in #(
19024 e) kpse_cv_have_opentype_format=no ;;
19025 esac
19026 fi
19027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19028 conftest$ac_exeext conftest.$ac_ext ;;
19029 esac
19030 fi
19031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_opentype_format" >&5
19032 printf "%s\n" "$kpse_cv_have_opentype_format" >&6; }
19033 if test "x$kpse_cv_have_opentype_format" = xyes
19034 then :
19035
19036 printf "%s\n" "#define HAVE_KPSE_ENC_FORMATS 1" >>confdefs.h
19037
19038 fi
19039
19040
19041 # Checks for more header files.
19042 for ac_header in gd.h png.h kpathsea/kpathsea.h
19043 do :
19044 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
19045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19046 if eval test \"x\$"$as_ac_Header"\" = x"yes"
19047 then :
19048 cat >>confdefs.h <<_ACEOF
19049 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
19050 _ACEOF
19051
19052 else case e in #(
19053 e) as_fn_error $? "cannot find/use $ac_header" "$LINENO" 5 ;;
19054 esac
19055 fi
19056
19057 done
19058
19059 # Checks for more library functions.
19060 ac_fn_c_check_func "$LINENO" "gdImageCreateTrueColor" "ac_cv_func_gdImageCreateTrueColor"
19061 if test "x$ac_cv_func_gdImageCreateTrueColor" = xyes
19062 then :
19063 printf "%s\n" "#define HAVE_GDIMAGECREATETRUECOLOR 1" >>confdefs.h
19064
19065 fi
19066 ac_fn_c_check_func "$LINENO" "gdImageCreateFromJpeg" "ac_cv_func_gdImageCreateFromJpeg"
19067 if test "x$ac_cv_func_gdImageCreateFromJpeg" = xyes
19068 then :
19069 printf "%s\n" "#define HAVE_GDIMAGECREATEFROMJPEG 1" >>confdefs.h
19070
19071 fi
19072 ac_fn_c_check_func "$LINENO" "gdImagePngEx" "ac_cv_func_gdImagePngEx"
19073 if test "x$ac_cv_func_gdImagePngEx" = xyes
19074 then :
19075 printf "%s\n" "#define HAVE_GDIMAGEPNGEX 1" >>confdefs.h
19076
19077 fi
19078 ac_fn_c_check_func "$LINENO" "gdImageCreateFromPngPtr" "ac_cv_func_gdImageCreateFromPngPtr"
19079 if test "x$ac_cv_func_gdImageCreateFromPngPtr" = xyes
19080 then :
19081 printf "%s\n" "#define HAVE_GDIMAGECREATEFROMPNGPTR 1" >>confdefs.h
19082
19083 fi
19084 ac_fn_c_check_func "$LINENO" "gdImageGif" "ac_cv_func_gdImageGif"
19085 if test "x$ac_cv_func_gdImageGif" = xyes
19086 then :
19087 printf "%s\n" "#define HAVE_GDIMAGEGIF 1" >>confdefs.h
19088
19089 fi
19090 ac_fn_c_check_func "$LINENO" "FT_Library_Version" "ac_cv_func_FT_Library_Version"
19091 if test "x$ac_cv_func_FT_Library_Version" = xyes
19092 then :
19093 printf "%s\n" "#define HAVE_FT_LIBRARY_VERSION 1" >>confdefs.h
19094
19095 fi
19096
19097
19098 CPPFLAGS=$kpse_save_CPPFLAGS
19099 LIBS=$kpse_save_LIBS
19100
19101
19102 echo timestamp >config.force
19103
19104 fi
19105
19106 if test "x$have_ft2" = xyes; then
19107 have_ft2_TRUE=
19108 have_ft2_FALSE='#'
19109 else
19110 have_ft2_TRUE='#'
19111 have_ft2_FALSE=
19112 fi
19113
19114 if test "x$ac_cv_func_gdImageGif" = xyes; then
19115 have_gif_TRUE=
19116 have_gif_FALSE='#'
19117 else
19118 have_gif_TRUE='#'
19119 have_gif_FALSE=
19120 fi
19121
19122
19123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
19124 ** Configuration summary for $PACKAGE_STRING:
19125
19126 The -d (debug) switch is enabled: $enable_debug
19127 Your gd is new enough (>=2.0) to enable
19128 the --truecolor switch, full alpha
19129 transparency, proper rescaling of
19130 included bitmaps, and jpeg inclusion: $ac_cv_func_gdImageCreateTrueColor
19131 Your gd has jpeg inclusion enabled: $ac_cv_func_gdImageCreateFromJpeg
19132 Your gd is new enough (>=2.0.12) to
19133 enable transparent backgrounds for EPS
19134 inclusion and the -z (compression)
19135 switch: $ac_cv_func_gdImagePngEx
19136 Your gd is new enough (>=2.0.21) to
19137 allow image creation from memory $ac_cv_func_gdImageCreateFromPngPtr
19138 Your gd is new enough (>=2.0.28) to
19139 enable gif inclusion and output
19140 (dvigif): $ac_cv_func_gdImageGif
19141 FreeType font rendering available: $ac_cv_func_FT_Init_FreeType
19142 Support for subfonts (CJK-LaTeX): $ac_cv_func_FT_Init_FreeType
19143 " >&5
19144 printf "%s\n" "
19145 ** Configuration summary for $PACKAGE_STRING:
19146
19147 The -d (debug) switch is enabled: $enable_debug
19148 Your gd is new enough (>=2.0) to enable
19149 the --truecolor switch, full alpha
19150 transparency, proper rescaling of
19151 included bitmaps, and jpeg inclusion: $ac_cv_func_gdImageCreateTrueColor
19152 Your gd has jpeg inclusion enabled: $ac_cv_func_gdImageCreateFromJpeg
19153 Your gd is new enough (>=2.0.12) to
19154 enable transparent backgrounds for EPS
19155 inclusion and the -z (compression)
19156 switch: $ac_cv_func_gdImagePngEx
19157 Your gd is new enough (>=2.0.21) to
19158 allow image creation from memory $ac_cv_func_gdImageCreateFromPngPtr
19159 Your gd is new enough (>=2.0.28) to
19160 enable gif inclusion and output
19161 (dvigif): $ac_cv_func_gdImageGif
19162 FreeType font rendering available: $ac_cv_func_FT_Init_FreeType
19163 Support for subfonts (CJK-LaTeX): $ac_cv_func_FT_Init_FreeType
19164 " >&6; }
19165
19166 ac_config_headers="$ac_config_headers config.h"
19167
19168
19169 DVIPNG_TREE=dvipng-src
19170
19171
19172 if test "x$kpse_cv_have_win32" != xno; then
19173 WIN32_TRUE=
19174 WIN32_FALSE='#'
19175 else
19176 WIN32_TRUE='#'
19177 WIN32_FALSE=
19178 fi
19179
19180
19181 if test -r "$srcdir/../texlive/windows_wrapper/callexe.c"; then
19182 WIN32_CALL_TRUE=
19183 WIN32_CALL_FALSE='#'
19184 else
19185 WIN32_CALL_TRUE='#'
19186 WIN32_CALL_FALSE=
19187 fi
19188
19189 if test -z "$WIN32_TRUE"; then :
19190 ac_config_links="$ac_config_links callexe.c:../texlive/windows_wrapper/callexe.c"
19191
19192 fi
19193
19194
19195 ac_config_files="$ac_config_files Makefile help/Makefile doc/Makefile"
19196
19197
19198 cat >confcache <<\_ACEOF
19199 # This file is a shell script that caches the results of configure
19200 # tests run on this system so they can be shared between configure
19201 # scripts and configure runs, see configure's option --config-cache.
19202 # It is not useful on other systems. If it contains results you don't
19203 # want to keep, you may remove or edit it.
19204 #
19205 # config.status only pays attention to the cache file if you give it
19206 # the --recheck option to rerun configure.
19207 #
19208 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
19209 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
19210 # following values.
19211
19212 _ACEOF
19213
19214 # The following way of writing the cache mishandles newlines in values,
19215 # but we know of no workaround that is simple, portable, and efficient.
19216 # So, we kill variables containing newlines.
19217 # Ultrix sh set writes to stderr and can't be redirected directly,
19218 # and sets the high bit in the cache file unless we assign to the vars.
19219 (
19220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19221 eval ac_val=\$$ac_var
19222 case $ac_val in #(
19223 *${as_nl}*)
19224 case $ac_var in #(
19225 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19226 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19227 esac
19228 case $ac_var in #(
19229 _ | IFS | as_nl) ;; #(
19230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19231 *) { eval $ac_var=; unset $ac_var;} ;;
19232 esac ;;
19233 esac
19234 done
19235
19236 (set) 2>&1 |
19237 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19238 *${as_nl}ac_space=\ *)
19239 # 'set' does not quote correctly, so add quotes: double-quote
19240 # substitution turns \\\\ into \\, and sed turns \\ into \.
19241 sed -n \
19242 "s/'/'\\\\''/g;
19243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19244 ;; #(
19245 *)
19246 # 'set' quotes correctly as required by POSIX, so do not add quotes.
19247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19248 ;;
19249 esac |
19250 sort
19251 ) |
19252 sed '
19253 /^ac_cv_env_/b end
19254 t clear
19255 :clear
19256 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19257 t end
19258 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19259 :end' >>confcache
19260 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19261 if test -w "$cache_file"; then
19262 if test "x$cache_file" != "x/dev/null"; then
19263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19264 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19265 if test ! -f "$cache_file" || test -h "$cache_file"; then
19266 cat confcache >"$cache_file"
19267 else
19268 case $cache_file in #(
19269 */* | ?:*)
19270 mv -f confcache "$cache_file"$$ &&
19271 mv -f "$cache_file"$$ "$cache_file" ;; #(
19272 *)
19273 mv -f confcache "$cache_file" ;;
19274 esac
19275 fi
19276 fi
19277 else
19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19279 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19280 fi
19281 fi
19282 rm -f confcache
19283
19284 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19285 # Let make expand exec_prefix.
19286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19287
19288 DEFS=-DHAVE_CONFIG_H
19289
19290 ac_libobjs=
19291 ac_ltlibobjs=
19292 U=
19293 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19294 # 1. Remove the extension, and $U if already installed.
19295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19296 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19298 # will be set to the directory where LIBOBJS objects are built.
19299 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19300 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19301 done
19302 LIBOBJS=$ac_libobjs
19303
19304 LTLIBOBJS=$ac_ltlibobjs
19305
19306
19307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19308 printf %s "checking that generated files are newer than configure... " >&6; }
19309 if test -n "$am_sleep_pid"; then
19310 # Hide warnings about reused PIDs.
19311 wait $am_sleep_pid 2>/dev/null
19312 fi
19313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19314 printf "%s\n" "done" >&6; }
19315 case $enable_silent_rules in # (((
19316 yes) AM_DEFAULT_VERBOSITY=0;;
19317 no) AM_DEFAULT_VERBOSITY=1;;
19318 esac
19319 if test $am_cv_make_support_nested_variables = yes; then
19320 AM_V='$(V)'
19321 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19322 else
19323 AM_V=$AM_DEFAULT_VERBOSITY
19324 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19325 fi
19326
19327 if test -n "$EXEEXT"; then
19328 am__EXEEXT_TRUE=
19329 am__EXEEXT_FALSE='#'
19330 else
19331 am__EXEEXT_TRUE='#'
19332 am__EXEEXT_FALSE=
19333 fi
19334
19335 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19336 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19338 fi
19339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19340 as_fn_error $? "conditional \"AMDEP\" was never defined.
19341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19342 fi
19343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19344 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19346 fi
19347 # Check whether --enable-year2038 was given.
19348 if test ${enable_year2038+y}
19349 then :
19350 enableval=$enable_year2038;
19351 fi
19352
19353 if test -z "${cross_TRUE}" && test -z "${cross_FALSE}"; then
19354 as_fn_error $? "conditional \"cross\" was never defined.
19355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19356 fi
19357 if test -z "${have_ft2_TRUE}" && test -z "${have_ft2_FALSE}"; then
19358 as_fn_error $? "conditional \"have_ft2\" was never defined.
19359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19360 fi
19361 if test -z "${have_gif_TRUE}" && test -z "${have_gif_FALSE}"; then
19362 as_fn_error $? "conditional \"have_gif\" was never defined.
19363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19364 fi
19365 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
19366 as_fn_error $? "conditional \"WIN32\" was never defined.
19367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19368 fi
19369 if test -z "${WIN32_CALL_TRUE}" && test -z "${WIN32_CALL_FALSE}"; then
19370 as_fn_error $? "conditional \"WIN32_CALL\" was never defined.
19371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19372 fi
19373
19374 : "${CONFIG_STATUS=./config.status}"
19375 ac_write_fail=0
19376 ac_clean_files_save=$ac_clean_files
19377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19379 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19380 as_write_fail=0
19381 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19382 #! $SHELL
19383 # Generated by $as_me.
19384 # Run this file to recreate the current configuration.
19385 # Compiler output produced by configure, useful for debugging
19386 # configure, is in config.log if it exists.
19387
19388 debug=false
19389 ac_cs_recheck=false
19390 ac_cs_silent=false
19391
19392 SHELL=\${CONFIG_SHELL-$SHELL}
19393 export SHELL
19394 _ASEOF
19395 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19396 ## -------------------- ##
19397 ## M4sh Initialization. ##
19398 ## -------------------- ##
19399
19400 # Be more Bourne compatible
19401 DUALCASE=1; export DUALCASE # for MKS sh
19402 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19403 then :
19404 emulate sh
19405 NULLCMD=:
19406 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19407 # is contrary to our usage. Disable this feature.
19408 alias -g '${1+"$@"}'='"$@"'
19409 setopt NO_GLOB_SUBST
19410 else case e in #(
19411 e) case `(set -o) 2>/dev/null` in #(
19412 *posix*) :
19413 set -o posix ;; #(
19414 *) :
19415 ;;
19416 esac ;;
19417 esac
19418 fi
19419
19420
19421
19422 # Reset variables that may have inherited troublesome values from
19423 # the environment.
19424
19425 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19426 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19427 # side effect of setting IFS to empty, thus disabling word splitting.)
19428 # Quoting is to prevent editors from complaining about space-tab.
19429 as_nl='
19430 '
19431 export as_nl
19432 IFS=" "" $as_nl"
19433
19434 PS1='$ '
19435 PS2='> '
19436 PS4='+ '
19437
19438 # Ensure predictable behavior from utilities with locale-dependent output.
19439 LC_ALL=C
19440 export LC_ALL
19441 LANGUAGE=C
19442 export LANGUAGE
19443
19444 # We cannot yet rely on "unset" to work, but we need these variables
19445 # to be unset--not just set to an empty or harmless value--now, to
19446 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19447 # also avoids known problems related to "unset" and subshell syntax
19448 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19449 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19450 do eval test \${$as_var+y} \
19451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19452 done
19453
19454 # Ensure that fds 0, 1, and 2 are open.
19455 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19456 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19457 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19458
19459 # The user is always right.
19460 if ${PATH_SEPARATOR+false} :; then
19461 PATH_SEPARATOR=:
19462 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19463 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19464 PATH_SEPARATOR=';'
19465 }
19466 fi
19467
19468
19469 # Find who we are. Look in the path if we contain no directory separator.
19470 as_myself=
19471 case $0 in #((
19472 *[\\/]* ) as_myself=$0 ;;
19473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in $PATH
19475 do
19476 IFS=$as_save_IFS
19477 case $as_dir in #(((
19478 '') as_dir=./ ;;
19479 */) ;;
19480 *) as_dir=$as_dir/ ;;
19481 esac
19482 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19483 done
19484 IFS=$as_save_IFS
19485
19486 ;;
19487 esac
19488 # We did not find ourselves, most probably we were run as 'sh COMMAND'
19489 # in which case we are not to be found in the path.
19490 if test "x$as_myself" = x; then
19491 as_myself=$0
19492 fi
19493 if test ! -f "$as_myself"; then
19494 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19495 exit 1
19496 fi
19497
19498
19499
19500 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19501 # ----------------------------------------
19502 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19503 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19504 # script with STATUS, using 1 if that was 0.
19505 as_fn_error ()
19506 {
19507 as_status=$1; test $as_status -eq 0 && as_status=1
19508 if test "$4"; then
19509 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19511 fi
19512 printf "%s\n" "$as_me: error: $2" >&2
19513 as_fn_exit $as_status
19514 } # as_fn_error
19515
19516
19517 # as_fn_set_status STATUS
19518 # -----------------------
19519 # Set $? to STATUS, without forking.
19520 as_fn_set_status ()
19521 {
19522 return $1
19523 } # as_fn_set_status
19524
19525 # as_fn_exit STATUS
19526 # -----------------
19527 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19528 as_fn_exit ()
19529 {
19530 set +e
19531 as_fn_set_status $1
19532 exit $1
19533 } # as_fn_exit
19534
19535 # as_fn_unset VAR
19536 # ---------------
19537 # Portably unset VAR.
19538 as_fn_unset ()
19539 {
19540 { eval $1=; unset $1;}
19541 }
19542 as_unset=as_fn_unset
19543
19544 # as_fn_append VAR VALUE
19545 # ----------------------
19546 # Append the text in VALUE to the end of the definition contained in VAR. Take
19547 # advantage of any shell optimizations that allow amortized linear growth over
19548 # repeated appends, instead of the typical quadratic growth present in naive
19549 # implementations.
19550 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19551 then :
19552 eval 'as_fn_append ()
19553 {
19554 eval $1+=\$2
19555 }'
19556 else case e in #(
19557 e) as_fn_append ()
19558 {
19559 eval $1=\$$1\$2
19560 } ;;
19561 esac
19562 fi # as_fn_append
19563
19564 # as_fn_arith ARG...
19565 # ------------------
19566 # Perform arithmetic evaluation on the ARGs, and store the result in the
19567 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19568 # must be portable across $(()) and expr.
19569 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19570 then :
19571 eval 'as_fn_arith ()
19572 {
19573 as_val=$(( $* ))
19574 }'
19575 else case e in #(
19576 e) as_fn_arith ()
19577 {
19578 as_val=`expr "$@" || test $? -eq 1`
19579 } ;;
19580 esac
19581 fi # as_fn_arith
19582
19583
19584 if expr a : '\(a\)' >/dev/null 2>&1 &&
19585 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19586 as_expr=expr
19587 else
19588 as_expr=false
19589 fi
19590
19591 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19592 as_basename=basename
19593 else
19594 as_basename=false
19595 fi
19596
19597 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19598 as_dirname=dirname
19599 else
19600 as_dirname=false
19601 fi
19602
19603 as_me=`$as_basename -- "$0" ||
19604 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19605 X"$0" : 'X\(//\)$' \| \
19606 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19607 printf "%s\n" X/"$0" |
19608 sed '/^.*\/\([^/][^/]*\)\/*$/{
19609 s//\1/
19610 q
19611 }
19612 /^X\/\(\/\/\)$/{
19613 s//\1/
19614 q
19615 }
19616 /^X\/\(\/\).*/{
19617 s//\1/
19618 q
19619 }
19620 s/.*/./; q'`
19621
19622 # Avoid depending upon Character Ranges.
19623 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19624 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19625 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19626 as_cr_digits='0123456789'
19627 as_cr_alnum=$as_cr_Letters$as_cr_digits
19628
19629
19630 # Determine whether it's possible to make 'echo' print without a newline.
19631 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19632 # for compatibility with existing Makefiles.
19633 ECHO_C= ECHO_N= ECHO_T=
19634 case `echo -n x` in #(((((
19635 -n*)
19636 case `echo 'xy\c'` in
19637 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19638 xy) ECHO_C='\c';;
19639 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19640 ECHO_T=' ';;
19641 esac;;
19642 *)
19643 ECHO_N='-n';;
19644 esac
19645
19646 # For backward compatibility with old third-party macros, we provide
19647 # the shell variables $as_echo and $as_echo_n. New code should use
19648 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19649 as_echo='printf %s\n'
19650 as_echo_n='printf %s'
19651
19652 rm -f conf$$ conf$$.exe conf$$.file
19653 if test -d conf$$.dir; then
19654 rm -f conf$$.dir/conf$$.file
19655 else
19656 rm -f conf$$.dir
19657 mkdir conf$$.dir 2>/dev/null
19658 fi
19659 if (echo >conf$$.file) 2>/dev/null; then
19660 if ln -s conf$$.file conf$$ 2>/dev/null; then
19661 as_ln_s='ln -s'
19662 # ... but there are two gotchas:
19663 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
19664 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
19665 # In both cases, we have to default to 'cp -pR'.
19666 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19667 as_ln_s='cp -pR'
19668 elif ln conf$$.file conf$$ 2>/dev/null; then
19669 as_ln_s=ln
19670 else
19671 as_ln_s='cp -pR'
19672 fi
19673 else
19674 as_ln_s='cp -pR'
19675 fi
19676 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19677 rmdir conf$$.dir 2>/dev/null
19678
19679
19680 # as_fn_mkdir_p
19681 # -------------
19682 # Create "$as_dir" as a directory, including parents if necessary.
19683 as_fn_mkdir_p ()
19684 {
19685
19686 case $as_dir in #(
19687 -*) as_dir=./$as_dir;;
19688 esac
19689 test -d "$as_dir" || eval $as_mkdir_p || {
19690 as_dirs=
19691 while :; do
19692 case $as_dir in #(
19693 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19694 *) as_qdir=$as_dir;;
19695 esac
19696 as_dirs="'$as_qdir' $as_dirs"
19697 as_dir=`$as_dirname -- "$as_dir" ||
19698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19699 X"$as_dir" : 'X\(//\)[^/]' \| \
19700 X"$as_dir" : 'X\(//\)$' \| \
19701 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19702 printf "%s\n" X"$as_dir" |
19703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19704 s//\1/
19705 q
19706 }
19707 /^X\(\/\/\)[^/].*/{
19708 s//\1/
19709 q
19710 }
19711 /^X\(\/\/\)$/{
19712 s//\1/
19713 q
19714 }
19715 /^X\(\/\).*/{
19716 s//\1/
19717 q
19718 }
19719 s/.*/./; q'`
19720 test -d "$as_dir" && break
19721 done
19722 test -z "$as_dirs" || eval "mkdir $as_dirs"
19723 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19724
19725
19726 } # as_fn_mkdir_p
19727 if mkdir -p . 2>/dev/null; then
19728 as_mkdir_p='mkdir -p "$as_dir"'
19729 else
19730 test -d ./-p && rmdir ./-p
19731 as_mkdir_p=false
19732 fi
19733
19734
19735 # as_fn_executable_p FILE
19736 # -----------------------
19737 # Test if FILE is an executable regular file.
19738 as_fn_executable_p ()
19739 {
19740 test -f "$1" && test -x "$1"
19741 } # as_fn_executable_p
19742 as_test_x='test -x'
19743 as_executable_p=as_fn_executable_p
19744
19745 # Sed expression to map a string onto a valid CPP name.
19746 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19747 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
19748
19749 # Sed expression to map a string onto a valid variable name.
19750 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19751 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
19752
19753
19754 exec 6>&1
19755 ## ----------------------------------- ##
19756 ## Main body of $CONFIG_STATUS script. ##
19757 ## ----------------------------------- ##
19758 _ASEOF
19759 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19760
19761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19762 # Save the log message, to keep $0 and so on meaningful, and to
19763 # report actual input values of CONFIG_FILES etc. instead of their
19764 # values after options handling.
19765 ac_log="
19766 This file was extended by dvipng (TeX Live) $as_me 1.18, which was
19767 generated by GNU Autoconf 2.72. Invocation command line was
19768
19769 CONFIG_FILES = $CONFIG_FILES
19770 CONFIG_HEADERS = $CONFIG_HEADERS
19771 CONFIG_LINKS = $CONFIG_LINKS
19772 CONFIG_COMMANDS = $CONFIG_COMMANDS
19773 $ $0 $@
19774
19775 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19776 "
19777
19778 _ACEOF
19779
19780 case $ac_config_files in *"
19781 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19782 esac
19783
19784 case $ac_config_headers in *"
19785 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19786 esac
19787
19788
19789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19790 # Files that config.status was made for.
19791 config_files="$ac_config_files"
19792 config_headers="$ac_config_headers"
19793 config_links="$ac_config_links"
19794 config_commands="$ac_config_commands"
19795
19796 _ACEOF
19797
19798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19799 ac_cs_usage="\
19800 '$as_me' instantiates files and other configuration actions
19801 from templates according to the current configuration. Unless the files
19802 and actions are specified as TAGs, all are instantiated by default.
19803
19804 Usage: $0 [OPTION]... [TAG]...
19805
19806 -h, --help print this help, then exit
19807 -V, --version print version number and configuration settings, then exit
19808 --config print configuration, then exit
19809 -q, --quiet, --silent
19810 do not print progress messages
19811 -d, --debug don't remove temporary files
19812 --recheck update $as_me by reconfiguring in the same conditions
19813 --file=FILE[:TEMPLATE]
19814 instantiate the configuration file FILE
19815 --header=FILE[:TEMPLATE]
19816 instantiate the configuration header FILE
19817
19818 Configuration files:
19819 $config_files
19820
19821 Configuration headers:
19822 $config_headers
19823
19824 Configuration links:
19825 $config_links
19826
19827 Configuration commands:
19828 $config_commands
19829
19830 Report bugs to <[email protected]>."
19831
19832 _ACEOF
19833 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19834 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19836 ac_cs_config='$ac_cs_config_escaped'
19837 ac_cs_version="\\
19838 dvipng (TeX Live) config.status 1.18
19839 configured by $0, generated by GNU Autoconf 2.72,
19840 with options \\"\$ac_cs_config\\"
19841
19842 Copyright (C) 2023 Free Software Foundation, Inc.
19843 This config.status script is free software; the Free Software Foundation
19844 gives unlimited permission to copy, distribute and modify it."
19845
19846 ac_pwd='$ac_pwd'
19847 srcdir='$srcdir'
19848 INSTALL='$INSTALL'
19849 MKDIR_P='$MKDIR_P'
19850 AWK='$AWK'
19851 test -n "\$AWK" || AWK=awk
19852 _ACEOF
19853
19854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19855 # The default lists apply if the user does not specify any file.
19856 ac_need_defaults=:
19857 while test $# != 0
19858 do
19859 case $1 in
19860 --*=?*)
19861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19862 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19863 ac_shift=:
19864 ;;
19865 --*=)
19866 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19867 ac_optarg=
19868 ac_shift=:
19869 ;;
19870 *)
19871 ac_option=$1
19872 ac_optarg=$2
19873 ac_shift=shift
19874 ;;
19875 esac
19876
19877 case $ac_option in
19878 # Handling of the options.
19879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19880 ac_cs_recheck=: ;;
19881 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19882 printf "%s\n" "$ac_cs_version"; exit ;;
19883 --config | --confi | --conf | --con | --co | --c )
19884 printf "%s\n" "$ac_cs_config"; exit ;;
19885 --debug | --debu | --deb | --de | --d | -d )
19886 debug=: ;;
19887 --file | --fil | --fi | --f )
19888 $ac_shift
19889 case $ac_optarg in
19890 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19891 '') as_fn_error $? "missing file argument" ;;
19892 esac
19893 as_fn_append CONFIG_FILES " '$ac_optarg'"
19894 ac_need_defaults=false;;
19895 --header | --heade | --head | --hea )
19896 $ac_shift
19897 case $ac_optarg in
19898 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19899 esac
19900 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19901 ac_need_defaults=false;;
19902 --he | --h)
19903 # Conflict between --help and --header
19904 as_fn_error $? "ambiguous option: '$1'
19905 Try '$0 --help' for more information.";;
19906 --help | --hel | -h )
19907 printf "%s\n" "$ac_cs_usage"; exit ;;
19908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19909 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19910 ac_cs_silent=: ;;
19911
19912 # This is an error.
19913 -*) as_fn_error $? "unrecognized option: '$1'
19914 Try '$0 --help' for more information." ;;
19915
19916 *) as_fn_append ac_config_targets " $1"
19917 ac_need_defaults=false ;;
19918
19919 esac
19920 shift
19921 done
19922
19923 ac_configure_extra_args=
19924
19925 if $ac_cs_silent; then
19926 exec 6>/dev/null
19927 ac_configure_extra_args="$ac_configure_extra_args --silent"
19928 fi
19929
19930 _ACEOF
19931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19932 if \$ac_cs_recheck; then
19933 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19934 shift
19935 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19936 CONFIG_SHELL='$SHELL'
19937 export CONFIG_SHELL
19938 exec "\$@"
19939 fi
19940
19941 _ACEOF
19942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19943 exec 5>>config.log
19944 {
19945 echo
19946 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19947 ## Running $as_me. ##
19948 _ASBOX
19949 printf "%s\n" "$ac_log"
19950 } >&5
19951
19952 _ACEOF
19953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19954 #
19955 # INIT-COMMANDS
19956 #
19957 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19958
19959
19960 # The HP-UX ksh and POSIX shell print the target directory to stdout
19961 # if CDPATH is set.
19962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19963
19964 sed_quote_subst='$sed_quote_subst'
19965 double_quote_subst='$double_quote_subst'
19966 delay_variable_subst='$delay_variable_subst'
19967 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19968 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19969 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19970 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19971 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19972 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19973 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19974 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19975 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19976 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19977 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19978 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19979 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19980 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19981 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19982 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19983 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19984 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19985 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19986 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19987 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19988 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19989 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19990 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19991 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19992 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19993 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19994 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19995 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19996 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19997 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19998 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19999 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20000 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20001 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20002 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20003 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20004 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20005 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20006 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20007 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20008 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20009 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20010 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20011 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20012 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20013 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20014 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20015 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20016 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20017 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20018 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20019 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20020 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20021 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20022 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20023 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20024 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20025 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20026 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20027 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20028 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"`'
20029 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20030 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20031 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20032 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20033 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20034 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20035 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20036 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20037 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20038 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20039 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20040 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20041 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20042 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20043 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20044 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20045 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20046 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20047 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20048 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20049 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20050 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20051 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20052 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20053 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20054 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20055 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20056 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20057 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20058 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20059 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20060 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20061 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20062 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20063 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20064 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20065 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20066 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20067 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20068 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20069 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20070 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20071 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20072 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20073 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20074 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20075 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20076 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20077 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20078 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20079 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20080 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20081 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20082 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20083 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20084 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20085 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20086 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20087 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20088 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20089 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20090 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20091 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20092 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20093 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20094 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20095 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20096 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20097 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20098 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20099 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20100 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20101 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20102 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20103 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20104 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20105
20106 LTCC='$LTCC'
20107 LTCFLAGS='$LTCFLAGS'
20108 compiler='$compiler_DEFAULT'
20109
20110 # A function that is used when there is no print builtin or printf.
20111 func_fallback_echo ()
20112 {
20113 eval 'cat <<_LTECHO_EOF
20114 \$1
20115 _LTECHO_EOF'
20116 }
20117
20118 # Quote evaled strings.
20119 for var in AS \
20120 DLLTOOL \
20121 OBJDUMP \
20122 SHELL \
20123 ECHO \
20124 PATH_SEPARATOR \
20125 SED \
20126 GREP \
20127 EGREP \
20128 FGREP \
20129 LD \
20130 NM \
20131 LN_S \
20132 lt_SP2NL \
20133 lt_NL2SP \
20134 reload_flag \
20135 FILECMD \
20136 deplibs_check_method \
20137 file_magic_cmd \
20138 file_magic_glob \
20139 want_nocaseglob \
20140 sharedlib_from_linklib_cmd \
20141 AR \
20142 archiver_list_spec \
20143 STRIP \
20144 RANLIB \
20145 CC \
20146 CFLAGS \
20147 compiler \
20148 lt_cv_sys_global_symbol_pipe \
20149 lt_cv_sys_global_symbol_to_cdecl \
20150 lt_cv_sys_global_symbol_to_import \
20151 lt_cv_sys_global_symbol_to_c_name_address \
20152 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20153 lt_cv_nm_interface \
20154 nm_file_list_spec \
20155 lt_cv_truncate_bin \
20156 lt_prog_compiler_no_builtin_flag \
20157 lt_prog_compiler_pic \
20158 lt_prog_compiler_wl \
20159 lt_prog_compiler_static \
20160 lt_cv_prog_compiler_c_o \
20161 need_locks \
20162 MANIFEST_TOOL \
20163 DSYMUTIL \
20164 NMEDIT \
20165 LIPO \
20166 OTOOL \
20167 OTOOL64 \
20168 shrext_cmds \
20169 export_dynamic_flag_spec \
20170 whole_archive_flag_spec \
20171 compiler_needs_object \
20172 with_gnu_ld \
20173 allow_undefined_flag \
20174 no_undefined_flag \
20175 hardcode_libdir_flag_spec \
20176 hardcode_libdir_separator \
20177 exclude_expsyms \
20178 include_expsyms \
20179 file_list_spec \
20180 variables_saved_for_relink \
20181 libname_spec \
20182 library_names_spec \
20183 soname_spec \
20184 install_override_mode \
20185 finish_eval \
20186 old_striplib \
20187 striplib; do
20188 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20189 *[\\\\\\\`\\"\\\$]*)
20190 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20191 ;;
20192 *)
20193 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20194 ;;
20195 esac
20196 done
20197
20198 # Double-quote double-evaled strings.
20199 for var in reload_cmds \
20200 old_postinstall_cmds \
20201 old_postuninstall_cmds \
20202 old_archive_cmds \
20203 extract_expsyms_cmds \
20204 old_archive_from_new_cmds \
20205 old_archive_from_expsyms_cmds \
20206 archive_cmds \
20207 archive_expsym_cmds \
20208 module_cmds \
20209 module_expsym_cmds \
20210 export_symbols_cmds \
20211 prelink_cmds \
20212 postlink_cmds \
20213 postinstall_cmds \
20214 postuninstall_cmds \
20215 finish_cmds \
20216 sys_lib_search_path_spec \
20217 configure_time_dlsearch_path \
20218 configure_time_lt_sys_library_path; do
20219 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20220 *[\\\\\\\`\\"\\\$]*)
20221 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20222 ;;
20223 *)
20224 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20225 ;;
20226 esac
20227 done
20228
20229 ac_aux_dir='$ac_aux_dir'
20230
20231 # See if we are running on zsh, and set the options that allow our
20232 # commands through without removal of \ escapes INIT.
20233 if test -n "\${ZSH_VERSION+set}"; then
20234 setopt NO_GLOB_SUBST
20235 fi
20236
20237
20238 PACKAGE='$PACKAGE'
20239 VERSION='$VERSION'
20240 RM='$RM'
20241 ofile='$ofile'
20242
20243 ac_aux_dir='$ac_aux_dir'
20244
20245
20246
20247 _ACEOF
20248
20249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20250
20251 # Handling of arguments.
20252 for ac_config_target in $ac_config_targets
20253 do
20254 case $ac_config_target in
20255 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20256 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20257 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20258 "callexe.c") CONFIG_LINKS="$CONFIG_LINKS callexe.c:../texlive/windows_wrapper/callexe.c" ;;
20259 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20260 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
20261 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20262
20263 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
20264 esac
20265 done
20266
20267
20268 # If the user did not use the arguments to specify the items to instantiate,
20269 # then the envvar interface is used. Set only those that are not.
20270 # We use the long form for the default assignment because of an extremely
20271 # bizarre bug on SunOS 4.1.3.
20272 if $ac_need_defaults; then
20273 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20274 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20275 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
20276 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20277 fi
20278
20279 # Have a temporary directory for convenience. Make it in the build tree
20280 # simply because there is no reason against having it here, and in addition,
20281 # creating and moving files from /tmp can sometimes cause problems.
20282 # Hook for its removal unless debugging.
20283 # Note that there is a small window in which the directory will not be cleaned:
20284 # after its creation but before its name has been assigned to '$tmp'.
20285 $debug ||
20286 {
20287 tmp= ac_tmp=
20288 trap 'exit_status=$?
20289 : "${ac_tmp:=$tmp}"
20290 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20291 ' 0
20292 trap 'as_fn_exit 1' 1 2 13 15
20293 }
20294 # Create a (secure) tmp directory for tmp files.
20295
20296 {
20297 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20298 test -d "$tmp"
20299 } ||
20300 {
20301 tmp=./conf$$-$RANDOM
20302 (umask 077 && mkdir "$tmp")
20303 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20304 ac_tmp=$tmp
20305
20306 # Set up the scripts for CONFIG_FILES section.
20307 # No need to generate them if there are no CONFIG_FILES.
20308 # This happens for instance with './config.status config.h'.
20309 if test -n "$CONFIG_FILES"; then
20310
20311
20312 ac_cr=`echo X | tr X '\015'`
20313 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20314 # But we know of no other shell where ac_cr would be empty at this
20315 # point, so we can use a bashism as a fallback.
20316 if test "x$ac_cr" = x; then
20317 eval ac_cr=\$\'\\r\'
20318 fi
20319 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20320 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20321 ac_cs_awk_cr='\\r'
20322 else
20323 ac_cs_awk_cr=$ac_cr
20324 fi
20325
20326 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20327 _ACEOF
20328
20329
20330 {
20331 echo "cat >conf$$subs.awk <<_ACEOF" &&
20332 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20333 echo "_ACEOF"
20334 } >conf$$subs.sh ||
20335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20336 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20337 ac_delim='%!_!# '
20338 for ac_last_try in false false false false false :; do
20339 . ./conf$$subs.sh ||
20340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20341
20342 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20343 if test $ac_delim_n = $ac_delim_num; then
20344 break
20345 elif $ac_last_try; then
20346 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20347 else
20348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20349 fi
20350 done
20351 rm -f conf$$subs.sh
20352
20353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20354 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20355 _ACEOF
20356 sed -n '
20357 h
20358 s/^/S["/; s/!.*/"]=/
20359 p
20360 g
20361 s/^[^!]*!//
20362 :repl
20363 t repl
20364 s/'"$ac_delim"'$//
20365 t delim
20366 :nl
20367 h
20368 s/\(.\{148\}\)..*/\1/
20369 t more1
20370 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20371 p
20372 n
20373 b repl
20374 :more1
20375 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20376 p
20377 g
20378 s/.\{148\}//
20379 t nl
20380 :delim
20381 h
20382 s/\(.\{148\}\)..*/\1/
20383 t more2
20384 s/["\\]/\\&/g; s/^/"/; s/$/"/
20385 p
20386 b
20387 :more2
20388 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20389 p
20390 g
20391 s/.\{148\}//
20392 t delim
20393 ' <conf$$subs.awk | sed '
20394 /^[^""]/{
20395 N
20396 s/\n//
20397 }
20398 ' >>$CONFIG_STATUS || ac_write_fail=1
20399 rm -f conf$$subs.awk
20400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20401 _ACAWK
20402 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20403 for (key in S) S_is_set[key] = 1
20404 FS = ""
20405
20406 }
20407 {
20408 line = $ 0
20409 nfields = split(line, field, "@")
20410 substed = 0
20411 len = length(field[1])
20412 for (i = 2; i < nfields; i++) {
20413 key = field[i]
20414 keylen = length(key)
20415 if (S_is_set[key]) {
20416 value = S[key]
20417 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20418 len += length(value) + length(field[++i])
20419 substed = 1
20420 } else
20421 len += 1 + keylen
20422 }
20423
20424 print line
20425 }
20426
20427 _ACAWK
20428 _ACEOF
20429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20430 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20431 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20432 else
20433 cat
20434 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20435 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20436 _ACEOF
20437
20438 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20439 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20440 # trailing colons and then remove the whole line if VPATH becomes empty
20441 # (actually we leave an empty line to preserve line numbers).
20442 if test "x$srcdir" = x.; then
20443 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20444 h
20445 s///
20446 s/^/:/
20447 s/[ ]*$/:/
20448 s/:\$(srcdir):/:/g
20449 s/:\${srcdir}:/:/g
20450 s/:@srcdir@:/:/g
20451 s/^:*//
20452 s/:*$//
20453 x
20454 s/\(=[ ]*\).*/\1/
20455 G
20456 s/\n//
20457 s/^[^=]*=[ ]*$//
20458 }'
20459 fi
20460
20461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20462 fi # test -n "$CONFIG_FILES"
20463
20464 # Set up the scripts for CONFIG_HEADERS section.
20465 # No need to generate them if there are no CONFIG_HEADERS.
20466 # This happens for instance with './config.status Makefile'.
20467 if test -n "$CONFIG_HEADERS"; then
20468 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20469 BEGIN {
20470 _ACEOF
20471
20472 # Transform confdefs.h into an awk script 'defines.awk', embedded as
20473 # here-document in config.status, that substitutes the proper values into
20474 # config.h.in to produce config.h.
20475
20476 # Create a delimiter string that does not exist in confdefs.h, to ease
20477 # handling of long lines.
20478 ac_delim='%!_!# '
20479 for ac_last_try in false false :; do
20480 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20481 if test -z "$ac_tt"; then
20482 break
20483 elif $ac_last_try; then
20484 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20485 else
20486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20487 fi
20488 done
20489
20490 # For the awk script, D is an array of macro values keyed by name,
20491 # likewise P contains macro parameters if any. Preserve backslash
20492 # newline sequences.
20493
20494 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20495 sed -n '
20496 s/.\{148\}/&'"$ac_delim"'/g
20497 t rset
20498 :rset
20499 s/^[ ]*#[ ]*define[ ][ ]*/ /
20500 t def
20501 d
20502 :def
20503 s/\\$//
20504 t bsnl
20505 s/["\\]/\\&/g
20506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20507 D["\1"]=" \3"/p
20508 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20509 d
20510 :bsnl
20511 s/["\\]/\\&/g
20512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20513 D["\1"]=" \3\\\\\\n"\\/p
20514 t cont
20515 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20516 t cont
20517 d
20518 :cont
20519 n
20520 s/.\{148\}/&'"$ac_delim"'/g
20521 t clear
20522 :clear
20523 s/\\$//
20524 t bsnlc
20525 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20526 d
20527 :bsnlc
20528 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20529 b cont
20530 ' <confdefs.h | sed '
20531 s/'"$ac_delim"'/"\\\
20532 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20533
20534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20535 for (key in D) D_is_set[key] = 1
20536 FS = ""
20537 }
20538 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20539 line = \$ 0
20540 split(line, arg, " ")
20541 if (arg[1] == "#") {
20542 defundef = arg[2]
20543 mac1 = arg[3]
20544 } else {
20545 defundef = substr(arg[1], 2)
20546 mac1 = arg[2]
20547 }
20548 split(mac1, mac2, "(") #)
20549 macro = mac2[1]
20550 prefix = substr(line, 1, index(line, defundef) - 1)
20551 if (D_is_set[macro]) {
20552 # Preserve the white space surrounding the "#".
20553 print prefix "define", macro P[macro] D[macro]
20554 next
20555 } else {
20556 # Replace #undef with comments. This is necessary, for example,
20557 # in the case of _POSIX_SOURCE, which is predefined and required
20558 # on some systems where configure will not decide to define it.
20559 if (defundef == "undef") {
20560 print "/*", prefix defundef, macro, "*/"
20561 next
20562 }
20563 }
20564 }
20565 { print }
20566 _ACAWK
20567 _ACEOF
20568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20569 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20570 fi # test -n "$CONFIG_HEADERS"
20571
20572
20573 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20574 shift
20575 for ac_tag
20576 do
20577 case $ac_tag in
20578 :[FHLC]) ac_mode=$ac_tag; continue;;
20579 esac
20580 case $ac_mode$ac_tag in
20581 :[FHL]*:*);;
20582 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
20583 :[FH]-) ac_tag=-:-;;
20584 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20585 esac
20586 ac_save_IFS=$IFS
20587 IFS=:
20588 set x $ac_tag
20589 IFS=$ac_save_IFS
20590 shift
20591 ac_file=$1
20592 shift
20593
20594 case $ac_mode in
20595 :L) ac_source=$1;;
20596 :[FH])
20597 ac_file_inputs=
20598 for ac_f
20599 do
20600 case $ac_f in
20601 -) ac_f="$ac_tmp/stdin";;
20602 *) # Look for the file first in the build tree, then in the source tree
20603 # (if the path is not absolute). The absolute path cannot be DOS-style,
20604 # because $ac_f cannot contain ':'.
20605 test -f "$ac_f" ||
20606 case $ac_f in
20607 [\\/$]*) false;;
20608 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20609 esac ||
20610 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
20611 esac
20612 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20613 as_fn_append ac_file_inputs " '$ac_f'"
20614 done
20615
20616 # Let's still pretend it is 'configure' which instantiates (i.e., don't
20617 # use $as_me), people would be surprised to read:
20618 # /* config.h. Generated by config.status. */
20619 configure_input='Generated from '`
20620 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20621 `' by configure.'
20622 if test x"$ac_file" != x-; then
20623 configure_input="$ac_file. $configure_input"
20624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20625 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20626 fi
20627 # Neutralize special characters interpreted by sed in replacement strings.
20628 case $configure_input in #(
20629 *\&* | *\|* | *\\* )
20630 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20631 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20632 *) ac_sed_conf_input=$configure_input;;
20633 esac
20634
20635 case $ac_tag in
20636 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20638 esac
20639 ;;
20640 esac
20641
20642 ac_dir=`$as_dirname -- "$ac_file" ||
20643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20644 X"$ac_file" : 'X\(//\)[^/]' \| \
20645 X"$ac_file" : 'X\(//\)$' \| \
20646 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20647 printf "%s\n" X"$ac_file" |
20648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20649 s//\1/
20650 q
20651 }
20652 /^X\(\/\/\)[^/].*/{
20653 s//\1/
20654 q
20655 }
20656 /^X\(\/\/\)$/{
20657 s//\1/
20658 q
20659 }
20660 /^X\(\/\).*/{
20661 s//\1/
20662 q
20663 }
20664 s/.*/./; q'`
20665 as_dir="$ac_dir"; as_fn_mkdir_p
20666 ac_builddir=.
20667
20668 case "$ac_dir" in
20669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20670 *)
20671 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20672 # A ".." for each directory in $ac_dir_suffix.
20673 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20674 case $ac_top_builddir_sub in
20675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20677 esac ;;
20678 esac
20679 ac_abs_top_builddir=$ac_pwd
20680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20681 # for backward compatibility:
20682 ac_top_builddir=$ac_top_build_prefix
20683
20684 case $srcdir in
20685 .) # We are building in place.
20686 ac_srcdir=.
20687 ac_top_srcdir=$ac_top_builddir_sub
20688 ac_abs_top_srcdir=$ac_pwd ;;
20689 [\\/]* | ?:[\\/]* ) # Absolute name.
20690 ac_srcdir=$srcdir$ac_dir_suffix;
20691 ac_top_srcdir=$srcdir
20692 ac_abs_top_srcdir=$srcdir ;;
20693 *) # Relative name.
20694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20695 ac_top_srcdir=$ac_top_build_prefix$srcdir
20696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20697 esac
20698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20699
20700
20701 case $ac_mode in
20702 :F)
20703 #
20704 # CONFIG_FILE
20705 #
20706
20707 case $INSTALL in
20708 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20709 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20710 esac
20711 ac_MKDIR_P=$MKDIR_P
20712 case $MKDIR_P in
20713 [\\/$]* | ?:[\\/]* ) ;;
20714 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20715 esac
20716 _ACEOF
20717
20718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20719 # If the template does not know about datarootdir, expand it.
20720 # FIXME: This hack should be removed a few years after 2.60.
20721 ac_datarootdir_hack=; ac_datarootdir_seen=
20722 ac_sed_dataroot='
20723 /datarootdir/ {
20724 p
20725 q
20726 }
20727 /@datadir@/p
20728 /@docdir@/p
20729 /@infodir@/p
20730 /@localedir@/p
20731 /@mandir@/p'
20732 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20733 *datarootdir*) ac_datarootdir_seen=yes;;
20734 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20736 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20737 _ACEOF
20738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20739 ac_datarootdir_hack='
20740 s&@datadir@&$datadir&g
20741 s&@docdir@&$docdir&g
20742 s&@infodir@&$infodir&g
20743 s&@localedir@&$localedir&g
20744 s&@mandir@&$mandir&g
20745 s&\\\${datarootdir}&$datarootdir&g' ;;
20746 esac
20747 _ACEOF
20748
20749 # Neutralize VPATH when '$srcdir' = '.'.
20750 # Shell code in configure.ac might set extrasub.
20751 # FIXME: do we really want to maintain this feature?
20752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20753 ac_sed_extra="$ac_vpsub
20754 $extrasub
20755 _ACEOF
20756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20757 :t
20758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20759 s|@configure_input@|$ac_sed_conf_input|;t t
20760 s&@top_builddir@&$ac_top_builddir_sub&;t t
20761 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20762 s&@srcdir@&$ac_srcdir&;t t
20763 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20764 s&@top_srcdir@&$ac_top_srcdir&;t t
20765 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20766 s&@builddir@&$ac_builddir&;t t
20767 s&@abs_builddir@&$ac_abs_builddir&;t t
20768 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20769 s&@INSTALL@&$ac_INSTALL&;t t
20770 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20771 $ac_datarootdir_hack
20772 "
20773 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20774 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20775
20776 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20777 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20778 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20779 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20781 which seems to be undefined. Please make sure it is defined" >&5
20782 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20783 which seems to be undefined. Please make sure it is defined" >&2;}
20784
20785 rm -f "$ac_tmp/stdin"
20786 case $ac_file in
20787 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20788 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20789 esac \
20790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20791 ;;
20792 :H)
20793 #
20794 # CONFIG_HEADER
20795 #
20796 if test x"$ac_file" != x-; then
20797 {
20798 printf "%s\n" "/* $configure_input */" >&1 \
20799 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20800 } >"$ac_tmp/config.h" \
20801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20802 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20804 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20805 else
20806 rm -f "$ac_file"
20807 mv "$ac_tmp/config.h" "$ac_file" \
20808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20809 fi
20810 else
20811 printf "%s\n" "/* $configure_input */" >&1 \
20812 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20813 || as_fn_error $? "could not create -" "$LINENO" 5
20814 fi
20815 # Compute "$ac_file"'s index in $config_headers.
20816 _am_arg="$ac_file"
20817 _am_stamp_count=1
20818 for _am_header in $config_headers :; do
20819 case $_am_header in
20820 $_am_arg | $_am_arg:* )
20821 break ;;
20822 * )
20823 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20824 esac
20825 done
20826 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20827 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20828 X"$_am_arg" : 'X\(//\)[^/]' \| \
20829 X"$_am_arg" : 'X\(//\)$' \| \
20830 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20831 printf "%s\n" X"$_am_arg" |
20832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20833 s//\1/
20834 q
20835 }
20836 /^X\(\/\/\)[^/].*/{
20837 s//\1/
20838 q
20839 }
20840 /^X\(\/\/\)$/{
20841 s//\1/
20842 q
20843 }
20844 /^X\(\/\).*/{
20845 s//\1/
20846 q
20847 }
20848 s/.*/./; q'`/stamp-h$_am_stamp_count
20849 ;;
20850 :L)
20851 #
20852 # CONFIG_LINK
20853 #
20854
20855 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20856 :
20857 else
20858 # Prefer the file from the source tree if names are identical.
20859 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20860 ac_source=$srcdir/$ac_source
20861 fi
20862
20863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20864 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
20865
20866 if test ! -r "$ac_source"; then
20867 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20868 fi
20869 rm -f "$ac_file"
20870
20871 # Try a relative symlink, then a hard link, then a copy.
20872 case $ac_source in
20873 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20874 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20875 esac
20876 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20877 ln "$ac_source" "$ac_file" 2>/dev/null ||
20878 cp -p "$ac_source" "$ac_file" ||
20879 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20880 fi
20881 ;;
20882 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20883 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20884 ;;
20885 esac
20886
20887
20888 case $ac_file$ac_mode in
20889 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20890 # Older Autoconf quotes --file arguments for eval, but not when files
20891 # are listed without --file. Let's play safe and only enable the eval
20892 # if we detect the quoting.
20893 # TODO: see whether this extra hack can be removed once we start
20894 # requiring Autoconf 2.70 or later.
20895 case $CONFIG_FILES in #(
20896 *\'*) :
20897 eval set x "$CONFIG_FILES" ;; #(
20898 *) :
20899 set x $CONFIG_FILES ;; #(
20900 *) :
20901 ;;
20902 esac
20903 shift
20904 # Used to flag and report bootstrapping failures.
20905 am_rc=0
20906 for am_mf
20907 do
20908 # Strip MF so we end up with the name of the file.
20909 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20910 # Check whether this is an Automake generated Makefile which includes
20911 # dependency-tracking related rules and includes.
20912 # Grep'ing the whole file directly is not great: AIX grep has a line
20913 # limit of 2048, but all sed's we know have understand at least 4000.
20914 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20915 || continue
20916 am_dirpart=`$as_dirname -- "$am_mf" ||
20917 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20918 X"$am_mf" : 'X\(//\)[^/]' \| \
20919 X"$am_mf" : 'X\(//\)$' \| \
20920 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20921 printf "%s\n" X"$am_mf" |
20922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20923 s//\1/
20924 q
20925 }
20926 /^X\(\/\/\)[^/].*/{
20927 s//\1/
20928 q
20929 }
20930 /^X\(\/\/\)$/{
20931 s//\1/
20932 q
20933 }
20934 /^X\(\/\).*/{
20935 s//\1/
20936 q
20937 }
20938 s/.*/./; q'`
20939 am_filepart=`$as_basename -- "$am_mf" ||
20940 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20941 X"$am_mf" : 'X\(//\)$' \| \
20942 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20943 printf "%s\n" X/"$am_mf" |
20944 sed '/^.*\/\([^/][^/]*\)\/*$/{
20945 s//\1/
20946 q
20947 }
20948 /^X\/\(\/\/\)$/{
20949 s//\1/
20950 q
20951 }
20952 /^X\/\(\/\).*/{
20953 s//\1/
20954 q
20955 }
20956 s/.*/./; q'`
20957 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20958 && sed -e '/# am--include-marker/d' "$am_filepart" \
20959 | $MAKE -f - am--depfiles" >&5
20960 (cd "$am_dirpart" \
20961 && sed -e '/# am--include-marker/d' "$am_filepart" \
20962 | $MAKE -f - am--depfiles) >&5 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } || am_rc=$?
20966 done
20967 if test $am_rc -ne 0; then
20968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20969 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20970 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20971 for automatic dependency tracking. If GNU make was not used, consider
20972 re-running the configure script with MAKE=\"gmake\" (or whatever is
20973 necessary). You can also try re-running configure with the
20974 '--disable-dependency-tracking' option to at least be able to build
20975 the package (albeit without support for automatic dependency tracking).
20976 See 'config.log' for more details" "$LINENO" 5; }
20977 fi
20978 { am_dirpart=; unset am_dirpart;}
20979 { am_filepart=; unset am_filepart;}
20980 { am_mf=; unset am_mf;}
20981 { am_rc=; unset am_rc;}
20982 rm -f conftest-deps.mk
20983 }
20984 ;;
20985 "libtool":C)
20986
20987 # See if we are running on zsh, and set the options that allow our
20988 # commands through without removal of \ escapes.
20989 if test -n "${ZSH_VERSION+set}"; then
20990 setopt NO_GLOB_SUBST
20991 fi
20992
20993 cfgfile=${ofile}T
20994 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20995 $RM "$cfgfile"
20996
20997 cat <<_LT_EOF >> "$cfgfile"
20998 #! $SHELL
20999 # Generated automatically by $as_me ($PACKAGE) $VERSION
21000 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21001
21002 # Provide generalized library-building support services.
21003 # Written by Gordon Matzigkeit, 1996
21004
21005 # Copyright (C) 2024 Free Software Foundation, Inc.
21006 # This is free software; see the source for copying conditions. There is NO
21007 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21008
21009 # GNU Libtool is free software; you can redistribute it and/or modify
21010 # it under the terms of the GNU General Public License as published by
21011 # the Free Software Foundation; either version 2 of the License, or
21012 # (at your option) any later version.
21013 #
21014 # As a special exception to the GNU General Public License, if you
21015 # distribute this file as part of a program or library that is built
21016 # using GNU Libtool, you may include this file under the same
21017 # distribution terms that you use for the rest of that program.
21018 #
21019 # GNU Libtool is distributed in the hope that it will be useful, but
21020 # WITHOUT ANY WARRANTY; without even the implied warranty of
21021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21022 # GNU General Public License for more details.
21023 #
21024 # You should have received a copy of the GNU General Public License
21025 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21026
21027
21028 # The names of the tagged configurations supported by this script.
21029 available_tags=''
21030
21031 # Configured defaults for sys_lib_dlsearch_path munging.
21032 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21033
21034 # ### BEGIN LIBTOOL CONFIG
21035
21036 # Which release of libtool.m4 was used?
21037 macro_version=$macro_version
21038 macro_revision=$macro_revision
21039
21040 # Assembler program.
21041 AS=$lt_AS
21042
21043 # DLL creation program.
21044 DLLTOOL=$lt_DLLTOOL
21045
21046 # Object dumper program.
21047 OBJDUMP=$lt_OBJDUMP
21048
21049 # Whether or not to build shared libraries.
21050 build_libtool_libs=$enable_shared
21051
21052 # Whether or not to build static libraries.
21053 build_old_libs=$enable_static
21054
21055 # What type of objects to build.
21056 pic_mode=$pic_mode
21057
21058 # Whether or not to optimize for fast installation.
21059 fast_install=$enable_fast_install
21060
21061 # Shared archive member basename,for filename based shared library versioning on AIX.
21062 shared_archive_member_spec=$shared_archive_member_spec
21063
21064 # Shell to use when invoking shell scripts.
21065 SHELL=$lt_SHELL
21066
21067 # An echo program that protects backslashes.
21068 ECHO=$lt_ECHO
21069
21070 # The PATH separator for the build system.
21071 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21072
21073 # The host system.
21074 host_alias=$host_alias
21075 host=$host
21076 host_os=$host_os
21077
21078 # The build system.
21079 build_alias=$build_alias
21080 build=$build
21081 build_os=$build_os
21082
21083 # A sed program that does not truncate output.
21084 SED=$lt_SED
21085
21086 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21087 Xsed="\$SED -e 1s/^X//"
21088
21089 # A grep program that handles long lines.
21090 GREP=$lt_GREP
21091
21092 # An ERE matcher.
21093 EGREP=$lt_EGREP
21094
21095 # A literal string matcher.
21096 FGREP=$lt_FGREP
21097
21098 # A BSD- or MS-compatible name lister.
21099 NM=$lt_NM
21100
21101 # Whether we need soft or hard links.
21102 LN_S=$lt_LN_S
21103
21104 # What is the maximum length of a command?
21105 max_cmd_len=$max_cmd_len
21106
21107 # Object file suffix (normally "o").
21108 objext=$ac_objext
21109
21110 # Executable file suffix (normally "").
21111 exeext=$exeext
21112
21113 # whether the shell understands "unset".
21114 lt_unset=$lt_unset
21115
21116 # turn spaces into newlines.
21117 SP2NL=$lt_lt_SP2NL
21118
21119 # turn newlines into spaces.
21120 NL2SP=$lt_lt_NL2SP
21121
21122 # convert \$build file names to \$host format.
21123 to_host_file_cmd=$lt_cv_to_host_file_cmd
21124
21125 # convert \$build files to toolchain format.
21126 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21127
21128 # A file(cmd) program that detects file types.
21129 FILECMD=$lt_FILECMD
21130
21131 # Method to check whether dependent libraries are shared objects.
21132 deplibs_check_method=$lt_deplibs_check_method
21133
21134 # Command to use when deplibs_check_method = "file_magic".
21135 file_magic_cmd=$lt_file_magic_cmd
21136
21137 # How to find potential files when deplibs_check_method = "file_magic".
21138 file_magic_glob=$lt_file_magic_glob
21139
21140 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21141 want_nocaseglob=$lt_want_nocaseglob
21142
21143 # Command to associate shared and link libraries.
21144 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21145
21146 # The archiver.
21147 AR=$lt_AR
21148
21149 # Flags to create an archive (by configure).
21150 lt_ar_flags=$lt_ar_flags
21151
21152 # Flags to create an archive.
21153 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21154
21155 # How to feed a file listing to the archiver.
21156 archiver_list_spec=$lt_archiver_list_spec
21157
21158 # A symbol stripping program.
21159 STRIP=$lt_STRIP
21160
21161 # Commands used to install an old-style archive.
21162 RANLIB=$lt_RANLIB
21163 old_postinstall_cmds=$lt_old_postinstall_cmds
21164 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21165
21166 # Whether to use a lock for old archive extraction.
21167 lock_old_archive_extraction=$lock_old_archive_extraction
21168
21169 # A C compiler.
21170 LTCC=$lt_CC
21171
21172 # LTCC compiler flags.
21173 LTCFLAGS=$lt_CFLAGS
21174
21175 # Take the output of nm and produce a listing of raw symbols and C names.
21176 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21177
21178 # Transform the output of nm in a proper C declaration.
21179 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21180
21181 # Transform the output of nm into a list of symbols to manually relocate.
21182 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21183
21184 # Transform the output of nm in a C name address pair.
21185 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21186
21187 # Transform the output of nm in a C name address pair when lib prefix is needed.
21188 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21189
21190 # The name lister interface.
21191 nm_interface=$lt_lt_cv_nm_interface
21192
21193 # Specify filename containing input files for \$NM.
21194 nm_file_list_spec=$lt_nm_file_list_spec
21195
21196 # The root where to search for dependent libraries,and where our libraries should be installed.
21197 lt_sysroot=$lt_sysroot
21198
21199 # Command to truncate a binary pipe.
21200 lt_truncate_bin=$lt_lt_cv_truncate_bin
21201
21202 # The name of the directory that contains temporary libtool files.
21203 objdir=$objdir
21204
21205 # Used to examine libraries when file_magic_cmd begins with "file".
21206 MAGIC_CMD=$MAGIC_CMD
21207
21208 # Must we lock files when doing compilation?
21209 need_locks=$lt_need_locks
21210
21211 # Manifest tool.
21212 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21213
21214 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21215 DSYMUTIL=$lt_DSYMUTIL
21216
21217 # Tool to change global to local symbols on Mac OS X.
21218 NMEDIT=$lt_NMEDIT
21219
21220 # Tool to manipulate fat objects and archives on Mac OS X.
21221 LIPO=$lt_LIPO
21222
21223 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21224 OTOOL=$lt_OTOOL
21225
21226 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21227 OTOOL64=$lt_OTOOL64
21228
21229 # Old archive suffix (normally "a").
21230 libext=$libext
21231
21232 # Shared library suffix (normally ".so").
21233 shrext_cmds=$lt_shrext_cmds
21234
21235 # The commands to extract the exported symbol list from a shared archive.
21236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21237
21238 # Variables whose values should be saved in libtool wrapper scripts and
21239 # restored at link time.
21240 variables_saved_for_relink=$lt_variables_saved_for_relink
21241
21242 # Do we need the "lib" prefix for modules?
21243 need_lib_prefix=$need_lib_prefix
21244
21245 # Do we need a version for libraries?
21246 need_version=$need_version
21247
21248 # Library versioning type.
21249 version_type=$version_type
21250
21251 # Shared library runtime path variable.
21252 runpath_var=$runpath_var
21253
21254 # Shared library path variable.
21255 shlibpath_var=$shlibpath_var
21256
21257 # Is shlibpath searched before the hard-coded library search path?
21258 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21259
21260 # Format of library name prefix.
21261 libname_spec=$lt_libname_spec
21262
21263 # List of archive names. First name is the real one, the rest are links.
21264 # The last name is the one that the linker finds with -lNAME
21265 library_names_spec=$lt_library_names_spec
21266
21267 # The coded name of the library, if different from the real name.
21268 soname_spec=$lt_soname_spec
21269
21270 # Permission mode override for installation of shared libraries.
21271 install_override_mode=$lt_install_override_mode
21272
21273 # Command to use after installation of a shared archive.
21274 postinstall_cmds=$lt_postinstall_cmds
21275
21276 # Command to use after uninstallation of a shared archive.
21277 postuninstall_cmds=$lt_postuninstall_cmds
21278
21279 # Commands used to finish a libtool library installation in a directory.
21280 finish_cmds=$lt_finish_cmds
21281
21282 # As "finish_cmds", except a single script fragment to be evaled but
21283 # not shown.
21284 finish_eval=$lt_finish_eval
21285
21286 # Whether we should hardcode library paths into libraries.
21287 hardcode_into_libs=$hardcode_into_libs
21288
21289 # Compile-time system search path for libraries.
21290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21291
21292 # Detected run-time system search path for libraries.
21293 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21294
21295 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21296 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21297
21298 # Whether dlopen is supported.
21299 dlopen_support=$enable_dlopen
21300
21301 # Whether dlopen of programs is supported.
21302 dlopen_self=$enable_dlopen_self
21303
21304 # Whether dlopen of statically linked programs is supported.
21305 dlopen_self_static=$enable_dlopen_self_static
21306
21307 # Commands to strip libraries.
21308 old_striplib=$lt_old_striplib
21309 striplib=$lt_striplib
21310
21311
21312 # The linker used to build libraries.
21313 LD=$lt_LD
21314
21315 # How to create reloadable object files.
21316 reload_flag=$lt_reload_flag
21317 reload_cmds=$lt_reload_cmds
21318
21319 # Commands used to build an old-style archive.
21320 old_archive_cmds=$lt_old_archive_cmds
21321
21322 # A language specific compiler.
21323 CC=$lt_compiler
21324
21325 # Is the compiler the GNU compiler?
21326 with_gcc=$GCC
21327
21328 # Compiler flag to turn off builtin functions.
21329 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21330
21331 # Additional compiler flags for building library objects.
21332 pic_flag=$lt_lt_prog_compiler_pic
21333
21334 # How to pass a linker flag through the compiler.
21335 wl=$lt_lt_prog_compiler_wl
21336
21337 # Compiler flag to prevent dynamic linking.
21338 link_static_flag=$lt_lt_prog_compiler_static
21339
21340 # Does compiler simultaneously support -c and -o options?
21341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21342
21343 # Whether or not to add -lc for building shared libraries.
21344 build_libtool_need_lc=$archive_cmds_need_lc
21345
21346 # Whether or not to disallow shared libs when runtime libs are static.
21347 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21348
21349 # Compiler flag to allow reflexive dlopens.
21350 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21351
21352 # Compiler flag to generate shared objects directly from archives.
21353 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21354
21355 # Whether the compiler copes with passing no objects directly.
21356 compiler_needs_object=$lt_compiler_needs_object
21357
21358 # Create an old-style archive from a shared archive.
21359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21360
21361 # Create a temporary old-style archive to link instead of a shared archive.
21362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21363
21364 # Commands used to build a shared archive.
21365 archive_cmds=$lt_archive_cmds
21366 archive_expsym_cmds=$lt_archive_expsym_cmds
21367
21368 # Commands used to build a loadable module if different from building
21369 # a shared archive.
21370 module_cmds=$lt_module_cmds
21371 module_expsym_cmds=$lt_module_expsym_cmds
21372
21373 # Whether we are building with GNU ld or not.
21374 with_gnu_ld=$lt_with_gnu_ld
21375
21376 # Flag that allows shared libraries with undefined symbols to be built.
21377 allow_undefined_flag=$lt_allow_undefined_flag
21378
21379 # Flag that enforces no undefined symbols.
21380 no_undefined_flag=$lt_no_undefined_flag
21381
21382 # Flag to hardcode \$libdir into a binary during linking.
21383 # This must work even if \$libdir does not exist
21384 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21385
21386 # Whether we need a single "-rpath" flag with a separated argument.
21387 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21388
21389 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21390 # DIR into the resulting binary.
21391 hardcode_direct=$hardcode_direct
21392
21393 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21394 # DIR into the resulting binary and the resulting library dependency is
21395 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
21396 # library is relocated.
21397 hardcode_direct_absolute=$hardcode_direct_absolute
21398
21399 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21400 # into the resulting binary.
21401 hardcode_minus_L=$hardcode_minus_L
21402
21403 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21404 # into the resulting binary.
21405 hardcode_shlibpath_var=$hardcode_shlibpath_var
21406
21407 # Set to "yes" if building a shared library automatically hardcodes DIR
21408 # into the library and all subsequent libraries and executables linked
21409 # against it.
21410 hardcode_automatic=$hardcode_automatic
21411
21412 # Set to yes if linker adds runtime paths of dependent libraries
21413 # to runtime path list.
21414 inherit_rpath=$inherit_rpath
21415
21416 # Whether libtool must link a program against all its dependency libraries.
21417 link_all_deplibs=$link_all_deplibs
21418
21419 # Set to "yes" if exported symbols are required.
21420 always_export_symbols=$always_export_symbols
21421
21422 # The commands to list exported symbols.
21423 export_symbols_cmds=$lt_export_symbols_cmds
21424
21425 # Symbols that should not be listed in the preloaded symbols.
21426 exclude_expsyms=$lt_exclude_expsyms
21427
21428 # Symbols that must always be exported.
21429 include_expsyms=$lt_include_expsyms
21430
21431 # Commands necessary for linking programs (against libraries) with templates.
21432 prelink_cmds=$lt_prelink_cmds
21433
21434 # Commands necessary for finishing linking programs.
21435 postlink_cmds=$lt_postlink_cmds
21436
21437 # Specify filename containing input files.
21438 file_list_spec=$lt_file_list_spec
21439
21440 # How to hardcode a shared library path into an executable.
21441 hardcode_action=$hardcode_action
21442
21443 # ### END LIBTOOL CONFIG
21444
21445 _LT_EOF
21446
21447 cat <<'_LT_EOF' >> "$cfgfile"
21448
21449 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21450
21451 # func_munge_path_list VARIABLE PATH
21452 # -----------------------------------
21453 # VARIABLE is name of variable containing _space_ separated list of
21454 # directories to be munged by the contents of PATH, which is string
21455 # having a format:
21456 # "DIR[:DIR]:"
21457 # string "DIR[ DIR]" will be prepended to VARIABLE
21458 # ":DIR[:DIR]"
21459 # string "DIR[ DIR]" will be appended to VARIABLE
21460 # "DIRP[:DIRP]::[DIRA:]DIRA"
21461 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21462 # "DIRA[ DIRA]" will be appended to VARIABLE
21463 # "DIR[:DIR]"
21464 # VARIABLE will be replaced by "DIR[ DIR]"
21465 func_munge_path_list ()
21466 {
21467 case x$2 in
21468 x)
21469 ;;
21470 *:)
21471 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21472 ;;
21473 x:*)
21474 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21475 ;;
21476 *::*)
21477 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21478 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21479 ;;
21480 *)
21481 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21482 ;;
21483 esac
21484 }
21485
21486
21487 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21488 func_cc_basename ()
21489 {
21490 for cc_temp in $*""; do
21491 case $cc_temp in
21492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21494 \-*) ;;
21495 *) break;;
21496 esac
21497 done
21498 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21499 }
21500
21501
21502 # ### END FUNCTIONS SHARED WITH CONFIGURE
21503
21504 _LT_EOF
21505
21506 case $host_os in
21507 aix3*)
21508 cat <<\_LT_EOF >> "$cfgfile"
21509 # AIX sometimes has problems with the GCC collect2 program. For some
21510 # reason, if we set the COLLECT_NAMES environment variable, the problems
21511 # vanish in a puff of smoke.
21512 if test set != "${COLLECT_NAMES+set}"; then
21513 COLLECT_NAMES=
21514 export COLLECT_NAMES
21515 fi
21516 _LT_EOF
21517 ;;
21518 esac
21519
21520
21521
21522 ltmain=$ac_aux_dir/ltmain.sh
21523
21524
21525 # We use sed instead of cat because bash on DJGPP gets confused if
21526 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21527 # text mode, it properly converts lines to CR/LF. This bash problem
21528 # is reportedly fixed, but why not run on old versions too?
21529 $SED '$q' "$ltmain" >> "$cfgfile" \
21530 || (rm -f "$cfgfile"; exit 1)
21531
21532 mv -f "$cfgfile" "$ofile" ||
21533 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21534 chmod +x "$ofile"
21535
21536 ;;
21537
21538 esac
21539 done # for ac_tag
21540
21541
21542 as_fn_exit 0
21543 _ACEOF
21544 ac_clean_files=$ac_clean_files_save
21545
21546 test $ac_write_fail = 0 ||
21547 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21548
21549
21550 # configure is writing to config.log, and then calls config.status.
21551 # config.status does its own redirection, appending to config.log.
21552 # Unfortunately, on DOS this fails, as config.log is still kept open
21553 # by configure, so config.status won't be able to write to it; its
21554 # output is simply discarded. So we exec the FD to /dev/null,
21555 # effectively closing config.log, so it can be properly (re)opened and
21556 # appended to by config.status. When coming back to configure, we
21557 # need to make the FD available again.
21558 if test "$no_create" != yes; then
21559 ac_cs_success=:
21560 ac_config_status_args=
21561 test "$silent" = yes &&
21562 ac_config_status_args="$ac_config_status_args --quiet"
21563 exec 5>/dev/null
21564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21565 exec 5>>config.log
21566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21567 # would make configure fail if this is the last instruction.
21568 $ac_cs_success || as_fn_exit 1
21569 fi
21570 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21572 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21573 fi
21574
21575