Debian Codegraph @

texk/dvipdfm-x/configure

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
•3 # Generated by GNU Autoconf 2.72 for dvipdfm-x (TeX Live) 20260317.
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='dvipdfm-x (TeX Live)'
616 PACKAGE_TARNAME='dvipdfm-x--tex-live-'
•617 PACKAGE_VERSION='20260317'
618 PACKAGE_STRING='dvipdfm-x (TeX Live) 20260317'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="agl.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 WIN32_CALL_FALSE
660 WIN32_CALL_TRUE
661 WIN32_FALSE
662 WIN32_TRUE
663 LIBPAPER_RULE
664 LIBPAPER_DEPEND
665 LIBPAPER_LIBS
666 LIBPAPER_INCLUDES
667 LIBPNG_RULE
668 LIBPNG_DEPEND
669 LIBPNG_LIBS
670 LIBPNG_INCLUDES
671 ZLIB_RULE
672 ZLIB_DEPEND
673 ZLIB_LIBS
674 ZLIB_INCLUDES
675 KPATHSEA_RULE
676 KPATHSEA_DEPEND
677 KPATHSEA_LIBS
678 KPATHSEA_INCLUDES
679 PKG_CONFIG
680 LIBOBJS
681 LT_SYS_LIBRARY_PATH
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
687 MANIFEST_TOOL
688 RANLIB
689 FILECMD
690 LN_S
691 NM
692 ac_ct_DUMPBIN
693 DUMPBIN
694 LD
695 FGREP
696 EGREP
697 GREP
698 SED
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 LIBTOOL
708 OBJDUMP
709 DLLTOOL
710 AS
711 ac_ct_AR
712 AR
713 WARNING_CFLAGS
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 MAINT
731 MAINTAINER_MODE_FALSE
732 MAINTAINER_MODE_TRUE
733 am__xargs_n
734 am__rm_f_notfound
735 AM_BACKSLASH
736 AM_DEFAULT_VERBOSITY
737 AM_DEFAULT_V
738 AM_V
739 CSCOPE
740 ETAGS
741 CTAGS
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
747 AWK
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 runstatedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL
804 am__quote'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_silent_rules
809 enable_maintainer_mode
810 enable_dependency_tracking
811 enable_compiler_warnings
812 enable_shared
813 enable_static
814 enable_pic
815 with_pic
816 enable_fast_install
817 enable_aix_soname
818 with_aix_soname
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 enable_largefile
823 with_system_kpathsea
824 with_system_zlib
825 with_zlib_includes
826 with_zlib_libdir
827 with_system_libpng
828 with_system_libpaper
829 with_libpaper_includes
830 with_libpaper_libdir
831 enable_year2038
832 '
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 LT_SYS_LIBRARY_PATH'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 runstatedir='${localstatedir}/run'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: '$ac_useropt'"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: '$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -runstatedir | --runstatedir | --runstatedi | --runstated \
1132 | --runstate | --runstat | --runsta | --runst | --runs \
1133 | --run | --ru | --r)
1134 ac_prev=runstatedir ;;
1135 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137 | --run=* | --ru=* | --r=*)
1138 runstatedir=$ac_optarg ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: '$ac_useropt'"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: '$ac_useropt'"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: '$ac_option'
1236 Try '$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir runstatedir
1278 do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1293
1294 # There might be people who depend on the old broken behavior: '$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 printf "%s\n" X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355 else
1356 ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361 fi
1362 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
•1390 'configure' configures dvipdfm-x (TeX Live) 20260317 to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print 'checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for '--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or '..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, 'make install' will install all the files in
1417 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than '$ac_default_prefix' using '--prefix',
1419 for instance '--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root
1440 [DATAROOTDIR/doc/dvipdfm-x--tex-live-]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1446
1447 cat <<\_ACEOF
1448
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
•1462 short | recursive ) echo "Configuration of dvipdfm-x (TeX Live) 20260317:";;
1463 esac
1464 cat <<\_ACEOF
1465
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-silent-rules less verbose build output (undo: "make V=1")
1471 --disable-silent-rules verbose build output (undo: "make V=0")
1472 --enable-maintainer-mode
1473 enable make rules and dependencies not useful (and
1474 sometimes confusing) to the casual installer
1475 --enable-dependency-tracking
1476 do not reject slow dependency extractors
1477 --disable-dependency-tracking
1478 speeds up one-time build
1479 --enable-compiler-warnings=[no|min|yes|max|all]
1480 Turn on compiler warnings [default: yes if
1481 maintainer-mode, min otherwise]
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --enable-aix-soname=aix|svr4|both
1489 shared library versioning (aka "SONAME") variant to
1490 provide on AIX, [default=aix].
1491 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --disable-largefile omit support for large files
1493 --enable-year2038 support timestamps after 2038
1494
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1500 compiler's sysroot if not specified).
1501 --with-system-kpathsea use installed kpathsea headers and library (requires
1502 pkg-config)
1503 --with-system-zlib use installed zlib headers and library
1504 --with-zlib-includes=DIR
1505 zlib headers installed in DIR
1506 --with-zlib-libdir=DIR zlib library installed in DIR
1507 --with-system-libpng use installed libpng headers and library (requires
1508 pkg-config)
1509 --with-system-libpaper use installed libpaper headers and library
1510 --with-libpaper-includes=DIR
1511 libpaper headers installed in DIR
1512 --with-libpaper-libdir=DIR
1513 libpaper library installed in DIR
1514
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 LT_SYS_LIBRARY_PATH
1524 User-defined run-time library search path.
1525
1526 Use these variables to override the choices made by 'configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to <[email protected]>.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 continue
1540 ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559 .) # We are building in place.
1560 ac_srcdir=.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for configure.gnu first; this name is used for a wrapper for
1576 # Metaconfig's "Configure" on case-insensitive file systems.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1583 else
1584 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 fi || ac_status=$?
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1587 done
1588 fi
1589
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592 cat <<\_ACEOF
•1593 dvipdfm-x (TeX Live) configure 20260317
1594 generated by GNU Autoconf 2.72
1595
1596 Copyright (C) 2023 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600 exit
1601 fi
1602
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1606
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest.beam
1614 if { { ac_try="$ac_compile"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 printf "%s\n" "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext
1633 then :
1634 ac_retval=0
1635 else case e in #(
1636 e) printf "%s\n" "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1 ;;
1640 esac
1641 fi
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_compile
1646
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 printf %s "checking for $2... " >&6; }
1656 if eval test \${$3+y}
1657 then :
1658 printf %s "(cached) " >&6
1659 else case e in #(
1660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"
1666 then :
1667 eval "$3=yes"
1668 else case e in #(
1669 e) eval "$3=no" ;;
1670 esac
1671 fi
1672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1673 esac
1674 fi
1675 eval ac_res=\$$3
1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 printf "%s\n" "$ac_res" >&6; }
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680 } # ac_fn_c_check_header_compile
1681
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 printf "%s\n" "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 test -x conftest$ac_exeext
1710 }
1711 then :
1712 ac_retval=0
1713 else case e in #(
1714 e) printf "%s\n" "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1 ;;
1718 esac
1719 fi
1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722 # interfere with the next link command; also delete a directory that is
1723 # left behind by Apple's compiler. We do this before executing the actions.
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_link
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 printf %s "checking for $2... " >&6; }
1738 if eval test \${$3+y}
1739 then :
1740 printf %s "(cached) " >&6
1741 else case e in #(
1742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1746 #define $2 innocuous_$2
1747
1748 /* System header to define __stub macros and hopefully few prototypes,
1749 which can conflict with char $2 (void); below. */
1750
1751 #include <limits.h>
1752 #undef $2
1753
1754 /* Override any GCC internal prototype to avoid an error.
1755 Use char because int might match the return type of a GCC
1756 builtin and then its argument prototype would still apply. */
1757 #ifdef __cplusplus
1758 extern "C"
1759 #endif
1760 char $2 (void);
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined __stub_$2 || defined __stub___$2
1765 choke me
1766 #endif
1767
1768 int
1769 main (void)
1770 {
1771 return $2 ();
1772 ;
1773 return 0;
1774 }
1775 _ACEOF
1776 if ac_fn_c_try_link "$LINENO"
1777 then :
1778 eval "$3=yes"
1779 else case e in #(
1780 e) eval "$3=no" ;;
1781 esac
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1784 conftest$ac_exeext conftest.$ac_ext ;;
1785 esac
1786 fi
1787 eval ac_res=\$$3
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 printf "%s\n" "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_func
1793
1794 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1795 # -------------------------------------------
1796 # Tests whether TYPE exists after having included INCLUDES, setting cache
1797 # variable VAR accordingly.
1798 ac_fn_c_check_type ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 printf %s "checking for $2... " >&6; }
1803 if eval test \${$3+y}
1804 then :
1805 printf %s "(cached) " >&6
1806 else case e in #(
1807 e) eval "$3=no"
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 $4
1811 int
1812 main (void)
1813 {
1814 if (sizeof ($2))
1815 return 0;
1816 ;
1817 return 0;
1818 }
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"
1821 then :
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 $4
1825 int
1826 main (void)
1827 {
1828 if (sizeof (($2)))
1829 return 0;
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"
1835 then :
1836
1837 else case e in #(
1838 e) eval "$3=yes" ;;
1839 esac
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1844 esac
1845 fi
1846 eval ac_res=\$$3
1847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 printf "%s\n" "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_type
1852
1853 # ac_fn_c_find_intX_t LINENO BITS VAR
1854 # -----------------------------------
1855 # Finds a signed integer type with width BITS, setting cache variable VAR
1856 # accordingly.
1857 ac_fn_c_find_intX_t ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1861 printf %s "checking for int$2_t... " >&6; }
1862 if eval test \${$3+y}
1863 then :
1864 printf %s "(cached) " >&6
1865 else case e in #(
1866 e) eval "$3=no"
1867 # Order is important - never check a type that is potentially smaller
1868 # than half of the expected target width.
1869 for ac_type in int$2_t 'int' 'long int' \
1870 'long long int' 'short int' 'signed char'; do
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1873 $ac_includes_default
1874 enum { N = $2 / 2 - 1 };
1875 int
1876 main (void)
1877 {
1878 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1879 test_array [0] = 0;
1880 return test_array [0];
1881
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"
1887 then :
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $ac_includes_default
1891 enum { N = $2 / 2 - 1 };
1892 int
1893 main (void)
1894 {
1895 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1896 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1897 test_array [0] = 0;
1898 return test_array [0];
1899
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"
1905 then :
1906
1907 else case e in #(
1908 e) case $ac_type in #(
1909 int$2_t) :
1910 eval "$3=yes" ;; #(
1911 *) :
1912 eval "$3=\$ac_type" ;;
1913 esac ;;
1914 esac
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1919 if eval test \"x\$"$3"\" = x"no"
1920 then :
1921
1922 else case e in #(
1923 e) break ;;
1924 esac
1925 fi
1926 done ;;
1927 esac
1928 fi
1929 eval ac_res=\$$3
1930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 printf "%s\n" "$ac_res" >&6; }
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934 } # ac_fn_c_find_intX_t
1935
1936 # ac_fn_c_find_uintX_t LINENO BITS VAR
1937 # ------------------------------------
1938 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1939 # accordingly.
1940 ac_fn_c_find_uintX_t ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1944 printf %s "checking for uint$2_t... " >&6; }
1945 if eval test \${$3+y}
1946 then :
1947 printf %s "(cached) " >&6
1948 else case e in #(
1949 e) eval "$3=no"
1950 # Order is important - never check a type that is potentially smaller
1951 # than half of the expected target width.
1952 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1953 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 $ac_includes_default
1957 int
1958 main (void)
1959 {
1960 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1961 test_array [0] = 0;
1962 return test_array [0];
1963
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"
1969 then :
1970 case $ac_type in #(
1971 uint$2_t) :
1972 eval "$3=yes" ;; #(
1973 *) :
1974 eval "$3=\$ac_type" ;;
1975 esac
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1978 if eval test \"x\$"$3"\" = x"no"
1979 then :
1980
1981 else case e in #(
1982 e) break ;;
1983 esac
1984 fi
1985 done ;;
1986 esac
1987 fi
1988 eval ac_res=\$$3
1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 printf "%s\n" "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_find_uintX_t
1994
1995 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1996 # ------------------------------------------------------------------
1997 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1998 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1999 ac_fn_check_decl ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 as_decl_name=`echo $2|sed 's/ *(.*//'`
2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2004 printf %s "checking whether $as_decl_name is declared... " >&6; }
2005 if eval test \${$3+y}
2006 then :
2007 printf %s "(cached) " >&6
2008 else case e in #(
2009 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2010 eval ac_save_FLAGS=\$$6
2011 as_fn_append $6 " $5"
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 $4
2015 int
2016 main (void)
2017 {
2018 #ifndef $as_decl_name
2019 #ifdef __cplusplus
2020 (void) $as_decl_use;
2021 #else
2022 (void) $as_decl_name;
2023 #endif
2024 #endif
2025
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"
2031 then :
2032 eval "$3=yes"
2033 else case e in #(
2034 e) eval "$3=no" ;;
2035 esac
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2038 eval $6=\$ac_save_FLAGS
2039 ;;
2040 esac
2041 fi
2042 eval ac_res=\$$3
2043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 printf "%s\n" "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047 } # ac_fn_check_decl
2048
2049 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2050 # ----------------------------------------------------
2051 # Tries to find if the field MEMBER exists in type AGGR, after including
2052 # INCLUDES, setting cache variable VAR accordingly.
2053 ac_fn_c_check_member ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2057 printf %s "checking for $2.$3... " >&6; }
2058 if eval test \${$4+y}
2059 then :
2060 printf %s "(cached) " >&6
2061 else case e in #(
2062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $5
2065 int
2066 main (void)
2067 {
2068 static $2 ac_aggr;
2069 if (ac_aggr.$3)
2070 return 0;
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"
2076 then :
2077 eval "$4=yes"
2078 else case e in #(
2079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $5
2082 int
2083 main (void)
2084 {
2085 static $2 ac_aggr;
2086 if (sizeof ac_aggr.$3)
2087 return 0;
2088 ;
2089 return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"
2093 then :
2094 eval "$4=yes"
2095 else case e in #(
2096 e) eval "$4=no" ;;
2097 esac
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2100 esac
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2103 esac
2104 fi
2105 eval ac_res=\$$4
2106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 printf "%s\n" "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109
2110 } # ac_fn_c_check_member
2111
2112 # ac_fn_c_try_run LINENO
2113 # ----------------------
2114 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2115 # executables *can* be run.
2116 ac_fn_c_try_run ()
2117 {
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_link"
2120 case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 printf "%s\n" "$ac_try_echo"; } >&5
2126 (eval "$ac_link") 2>&5
2127 ac_status=$?
2128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2130 { { case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 printf "%s\n" "$ac_try_echo"; } >&5
2136 (eval "$ac_try") 2>&5
2137 ac_status=$?
2138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; }; }
2140 then :
2141 ac_retval=0
2142 else case e in #(
2143 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2144 printf "%s\n" "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=$ac_status ;;
2148 esac
2149 fi
2150 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 as_fn_set_status $ac_retval
2153
2154 } # ac_fn_c_try_run
2155
2156 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2157 # --------------------------------------------
2158 # Tries to find the compile-time value of EXPR in a program that includes
2159 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2160 # computed
2161 ac_fn_c_compute_int ()
2162 {
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 if test "$cross_compiling" = yes; then
2165 # Depending upon the size, compute the lo and hi bounds.
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2168 $4
2169 int
2170 main (void)
2171 {
2172 static int test_array [1 - 2 * !(($2) >= 0)];
2173 test_array [0] = 0;
2174 return test_array [0];
2175
2176 ;
2177 return 0;
2178 }
2179 _ACEOF
2180 if ac_fn_c_try_compile "$LINENO"
2181 then :
2182 ac_lo=0 ac_mid=0
2183 while :; do
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 $4
2187 int
2188 main (void)
2189 {
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2191 test_array [0] = 0;
2192 return test_array [0];
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"
2199 then :
2200 ac_hi=$ac_mid; break
2201 else case e in #(
2202 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2203 if test $ac_lo -le $ac_mid; then
2204 ac_lo= ac_hi=
2205 break
2206 fi
2207 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2208 esac
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2211 done
2212 else case e in #(
2213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2215 $4
2216 int
2217 main (void)
2218 {
2219 static int test_array [1 - 2 * !(($2) < 0)];
2220 test_array [0] = 0;
2221 return test_array [0];
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"
2228 then :
2229 ac_hi=-1 ac_mid=-1
2230 while :; do
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2233 $4
2234 int
2235 main (void)
2236 {
2237 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2238 test_array [0] = 0;
2239 return test_array [0];
2240
2241 ;
2242 return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"
2246 then :
2247 ac_lo=$ac_mid; break
2248 else case e in #(
2249 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2250 if test $ac_mid -le $ac_hi; then
2251 ac_lo= ac_hi=
2252 break
2253 fi
2254 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2255 esac
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2258 done
2259 else case e in #(
2260 e) ac_lo= ac_hi= ;;
2261 esac
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2264 esac
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2267 # Binary search between lo and hi bounds.
2268 while test "x$ac_lo" != "x$ac_hi"; do
2269 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2272 $4
2273 int
2274 main (void)
2275 {
2276 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 test_array [0] = 0;
2278 return test_array [0];
2279
2280 ;
2281 return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"
2285 then :
2286 ac_hi=$ac_mid
2287 else case e in #(
2288 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2289 esac
2290 fi
2291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2292 done
2293 case $ac_lo in #((
2294 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2295 '') ac_retval=1 ;;
2296 esac
2297 else
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 $4
2301 static long int longval (void) { return $2; }
2302 static unsigned long int ulongval (void) { return $2; }
2303 #include <stdio.h>
2304 #include <stdlib.h>
2305 int
2306 main (void)
2307 {
2308
2309 FILE *f = fopen ("conftest.val", "w");
2310 if (! f)
2311 return 1;
2312 if (($2) < 0)
2313 {
2314 long int i = longval ();
2315 if (i != ($2))
2316 return 1;
2317 fprintf (f, "%ld", i);
2318 }
2319 else
2320 {
2321 unsigned long int i = ulongval ();
2322 if (i != ($2))
2323 return 1;
2324 fprintf (f, "%lu", i);
2325 }
2326 /* Do not output a trailing newline, as this causes \r\n confusion
2327 on some platforms. */
2328 return ferror (f) || fclose (f) != 0;
2329
2330 ;
2331 return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_run "$LINENO"
2335 then :
2336 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2337 else case e in #(
2338 e) ac_retval=1 ;;
2339 esac
2340 fi
2341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2342 conftest.$ac_objext conftest.beam conftest.$ac_ext
2343 rm -f conftest.val
2344
2345 fi
2346 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347 as_fn_set_status $ac_retval
2348
2349 } # ac_fn_c_compute_int
2350 ac_configure_args_raw=
2351 for ac_arg
2352 do
2353 case $ac_arg in
2354 *\'*)
2355 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2356 esac
2357 as_fn_append ac_configure_args_raw " '$ac_arg'"
2358 done
2359
2360 case $ac_configure_args_raw in
2361 *$as_nl*)
2362 ac_safe_unquote= ;;
2363 *)
2364 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2365 ac_unsafe_a="$ac_unsafe_z#~"
2366 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2367 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2368 esac
2369
2370 cat >config.log <<_ACEOF
2371 This file contains any messages produced by compilers while
2372 running configure, to aid debugging if configure makes a mistake.
2373
•2374 It was created by dvipdfm-x (TeX Live) $as_me 20260317, which was
2375 generated by GNU Autoconf 2.72. Invocation command line was
2376
2377 $ $0$ac_configure_args_raw
2378
2379 _ACEOF
2380 exec 5>>config.log
2381 {
2382 cat <<_ASUNAME
2383 ## --------- ##
2384 ## Platform. ##
2385 ## --------- ##
2386
2387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2392
2393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2395
2396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2403
2404 _ASUNAME
2405
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409 IFS=$as_save_IFS
2410 case $as_dir in #(((
2411 '') as_dir=./ ;;
2412 */) ;;
2413 *) as_dir=$as_dir/ ;;
2414 esac
2415 printf "%s\n" "PATH: $as_dir"
2416 done
2417 IFS=$as_save_IFS
2418
2419 } >&5
2420
2421 cat >&5 <<_ACEOF
2422
2423
2424 ## ----------- ##
2425 ## Core tests. ##
2426 ## ----------- ##
2427
2428 _ACEOF
2429
2430
2431 # Keep a trace of the command line.
2432 # Strip out --no-create and --no-recursion so they do not pile up.
2433 # Strip out --silent because we don't want to record it for future runs.
2434 # Also quote any args containing shell meta-characters.
2435 # Make two passes to allow for proper duplicate-argument suppression.
2436 ac_configure_args=
2437 ac_configure_args0=
2438 ac_configure_args1=
2439 ac_must_keep_next=false
2440 for ac_pass in 1 2
2441 do
2442 for ac_arg
2443 do
2444 case $ac_arg in
2445 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2447 | -silent | --silent | --silen | --sile | --sil)
2448 continue ;;
2449 *\'*)
2450 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2451 esac
2452 case $ac_pass in
2453 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2454 2)
2455 as_fn_append ac_configure_args1 " '$ac_arg'"
2456 if test $ac_must_keep_next = true; then
2457 ac_must_keep_next=false # Got value, back to normal.
2458 else
2459 case $ac_arg in
2460 *=* | --config-cache | -C | -disable-* | --disable-* \
2461 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2462 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2463 | -with-* | --with-* | -without-* | --without-* | --x)
2464 case "$ac_configure_args0 " in
2465 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2466 esac
2467 ;;
2468 -* ) ac_must_keep_next=true ;;
2469 esac
2470 fi
2471 as_fn_append ac_configure_args " '$ac_arg'"
2472 ;;
2473 esac
2474 done
2475 done
2476 { ac_configure_args0=; unset ac_configure_args0;}
2477 { ac_configure_args1=; unset ac_configure_args1;}
2478
2479 # When interrupted or exit'd, cleanup temporary files, and complete
2480 # config.log. We remove comments because anyway the quotes in there
2481 # would cause problems or look ugly.
2482 # WARNING: Use '\'' to represent an apostrophe within the trap.
2483 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2484 trap 'exit_status=$?
2485 # Sanitize IFS.
2486 IFS=" "" $as_nl"
2487 # Save into config.log some information that might help in debugging.
2488 {
2489 echo
2490
2491 printf "%s\n" "## ---------------- ##
2492 ## Cache variables. ##
2493 ## ---------------- ##"
2494 echo
2495 # The following way of writing the cache mishandles newlines in values,
2496 (
2497 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2498 eval ac_val=\$$ac_var
2499 case $ac_val in #(
2500 *${as_nl}*)
2501 case $ac_var in #(
2502 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2503 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2504 esac
2505 case $ac_var in #(
2506 _ | IFS | as_nl) ;; #(
2507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2508 *) { eval $ac_var=; unset $ac_var;} ;;
2509 esac ;;
2510 esac
2511 done
2512 (set) 2>&1 |
2513 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2514 *${as_nl}ac_space=\ *)
2515 sed -n \
2516 "s/'\''/'\''\\\\'\'''\''/g;
2517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2518 ;; #(
2519 *)
2520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2521 ;;
2522 esac |
2523 sort
2524 )
2525 echo
2526
2527 printf "%s\n" "## ----------------- ##
2528 ## Output variables. ##
2529 ## ----------------- ##"
2530 echo
2531 for ac_var in $ac_subst_vars
2532 do
2533 eval ac_val=\$$ac_var
2534 case $ac_val in
2535 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac
2537 printf "%s\n" "$ac_var='\''$ac_val'\''"
2538 done | sort
2539 echo
2540
2541 if test -n "$ac_subst_files"; then
2542 printf "%s\n" "## ------------------- ##
2543 ## File substitutions. ##
2544 ## ------------------- ##"
2545 echo
2546 for ac_var in $ac_subst_files
2547 do
2548 eval ac_val=\$$ac_var
2549 case $ac_val in
2550 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551 esac
2552 printf "%s\n" "$ac_var='\''$ac_val'\''"
2553 done | sort
2554 echo
2555 fi
2556
2557 if test -s confdefs.h; then
2558 printf "%s\n" "## ----------- ##
2559 ## confdefs.h. ##
2560 ## ----------- ##"
2561 echo
2562 cat confdefs.h
2563 echo
2564 fi
2565 test "$ac_signal" != 0 &&
2566 printf "%s\n" "$as_me: caught signal $ac_signal"
2567 printf "%s\n" "$as_me: exit $exit_status"
2568 } >&5
2569 rm -f core *.core core.conftest.* &&
2570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2571 exit $exit_status
2572 ' 0
2573 for ac_signal in 1 2 13 15; do
2574 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2575 done
2576 ac_signal=0
2577
2578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2579 rm -f -r conftest* confdefs.h
2580
2581 printf "%s\n" "/* confdefs.h */" > confdefs.h
2582
2583 # Predefined preprocessor variables.
2584
2585 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2586
2587 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2588
2589 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2590
2591 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2592
2593 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2594
2595 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2596
2597
2598 # Let the site file select an alternate cache file if it wants to.
2599 # Prefer an explicitly selected file to automatically selected ones.
2600 if test -n "$CONFIG_SITE"; then
2601 ac_site_files="$CONFIG_SITE"
2602 elif test "x$prefix" != xNONE; then
2603 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2604 else
2605 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2606 fi
2607
2608 for ac_site_file in $ac_site_files
2609 do
2610 case $ac_site_file in #(
2611 */*) :
2612 ;; #(
2613 *) :
2614 ac_site_file=./$ac_site_file ;;
2615 esac
2616 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2618 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2619 sed 's/^/| /' "$ac_site_file" >&5
2620 . "$ac_site_file" \
2621 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2622 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2623 as_fn_error $? "failed to load site script $ac_site_file
2624 See 'config.log' for more details" "$LINENO" 5; }
2625 fi
2626 done
2627
2628 if test -r "$cache_file"; then
2629 # Some versions of bash will fail to source /dev/null (special files
2630 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2631 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2633 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2634 case $cache_file in
2635 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2636 *) . "./$cache_file";;
2637 esac
2638 fi
2639 else
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2641 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2642 >$cache_file
2643 fi
2644
2645 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2646 # Test code for whether the C compiler supports C89 (global declarations)
2647 ac_c_conftest_c89_globals='
2648 /* Does the compiler advertise C89 conformance?
2649 Do not test the value of __STDC__, because some compilers set it to 0
2650 while being otherwise adequately conformant. */
2651 #if !defined __STDC__
2652 # error "Compiler does not advertise C89 conformance"
2653 #endif
2654
2655 #include <stddef.h>
2656 #include <stdarg.h>
2657 struct stat;
2658 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2659 struct buf { int x; };
2660 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2661 static char *e (char **p, int i)
2662 {
2663 return p[i];
2664 }
2665 static char *f (char * (*g) (char **, int), char **p, ...)
2666 {
2667 char *s;
2668 va_list v;
2669 va_start (v,p);
2670 s = g (p, va_arg (v,int));
2671 va_end (v);
2672 return s;
2673 }
2674
2675 /* C89 style stringification. */
2676 #define noexpand_stringify(a) #a
2677 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2678
2679 /* C89 style token pasting. Exercises some of the corner cases that
2680 e.g. old MSVC gets wrong, but not very hard. */
2681 #define noexpand_concat(a,b) a##b
2682 #define expand_concat(a,b) noexpand_concat(a,b)
2683 extern int vA;
2684 extern int vbee;
2685 #define aye A
2686 #define bee B
2687 int *pvA = &expand_concat(v,aye);
2688 int *pvbee = &noexpand_concat(v,bee);
2689
2690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2691 function prototypes and stuff, but not \xHH hex character constants.
2692 These do not provoke an error unfortunately, instead are silently treated
2693 as an "x". The following induces an error, until -std is added to get
2694 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2695 array size at least. It is necessary to write \x00 == 0 to get something
2696 that is true only with -std. */
2697 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2698
2699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2700 inside strings and character constants. */
2701 #define FOO(x) '\''x'\''
2702 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2703
2704 int test (int i, double x);
2705 struct s1 {int (*f) (int a);};
2706 struct s2 {int (*f) (double a);};
2707 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2708 int, int);'
2709
2710 # Test code for whether the C compiler supports C89 (body of main).
2711 ac_c_conftest_c89_main='
2712 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2713 '
2714
2715 # Test code for whether the C compiler supports C99 (global declarations)
2716 ac_c_conftest_c99_globals='
2717 /* Does the compiler advertise C99 conformance? */
2718 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2719 # error "Compiler does not advertise C99 conformance"
2720 #endif
2721
2722 // See if C++-style comments work.
2723
2724 #include <stdbool.h>
2725 extern int puts (const char *);
2726 extern int printf (const char *, ...);
2727 extern int dprintf (int, const char *, ...);
2728 extern void *malloc (size_t);
2729 extern void free (void *);
2730
2731 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2732 // dprintf is used instead of fprintf to avoid needing to declare
2733 // FILE and stderr.
2734 #define debug(...) dprintf (2, __VA_ARGS__)
2735 #define showlist(...) puts (#__VA_ARGS__)
2736 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2737 static void
2738 test_varargs_macros (void)
2739 {
2740 int x = 1234;
2741 int y = 5678;
2742 debug ("Flag");
2743 debug ("X = %d\n", x);
2744 showlist (The first, second, and third items.);
2745 report (x>y, "x is %d but y is %d", x, y);
2746 }
2747
2748 // Check long long types.
2749 #define BIG64 18446744073709551615ull
2750 #define BIG32 4294967295ul
2751 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2752 #if !BIG_OK
2753 #error "your preprocessor is broken"
2754 #endif
2755 #if BIG_OK
2756 #else
2757 #error "your preprocessor is broken"
2758 #endif
2759 static long long int bignum = -9223372036854775807LL;
2760 static unsigned long long int ubignum = BIG64;
2761
2762 struct incomplete_array
2763 {
2764 int datasize;
2765 double data[];
2766 };
2767
2768 struct named_init {
2769 int number;
2770 const wchar_t *name;
2771 double average;
2772 };
2773
2774 typedef const char *ccp;
2775
2776 static inline int
2777 test_restrict (ccp restrict text)
2778 {
2779 // Iterate through items via the restricted pointer.
2780 // Also check for declarations in for loops.
2781 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2782 continue;
2783 return 0;
2784 }
2785
2786 // Check varargs and va_copy.
2787 static bool
2788 test_varargs (const char *format, ...)
2789 {
2790 va_list args;
2791 va_start (args, format);
2792 va_list args_copy;
2793 va_copy (args_copy, args);
2794
2795 const char *str = "";
2796 int number = 0;
2797 float fnumber = 0;
2798
2799 while (*format)
2800 {
2801 switch (*format++)
2802 {
2803 case '\''s'\'': // string
2804 str = va_arg (args_copy, const char *);
2805 break;
2806 case '\''d'\'': // int
2807 number = va_arg (args_copy, int);
2808 break;
2809 case '\''f'\'': // float
2810 fnumber = va_arg (args_copy, double);
2811 break;
2812 default:
2813 break;
2814 }
2815 }
2816 va_end (args_copy);
2817 va_end (args);
2818
2819 return *str && number && fnumber;
2820 }
2821 '
2822
2823 # Test code for whether the C compiler supports C99 (body of main).
2824 ac_c_conftest_c99_main='
2825 // Check bool.
2826 _Bool success = false;
2827 success |= (argc != 0);
2828
2829 // Check restrict.
2830 if (test_restrict ("String literal") == 0)
2831 success = true;
2832 char *restrict newvar = "Another string";
2833
2834 // Check varargs.
2835 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2836 test_varargs_macros ();
2837
2838 // Check flexible array members.
2839 struct incomplete_array *ia =
2840 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2841 ia->datasize = 10;
2842 for (int i = 0; i < ia->datasize; ++i)
2843 ia->data[i] = i * 1.234;
2844 // Work around memory leak warnings.
2845 free (ia);
2846
2847 // Check named initializers.
2848 struct named_init ni = {
2849 .number = 34,
2850 .name = L"Test wide string",
2851 .average = 543.34343,
2852 };
2853
2854 ni.number = 58;
2855
2856 int dynamic_array[ni.number];
2857 dynamic_array[0] = argv[0][0];
2858 dynamic_array[ni.number - 1] = 543;
2859
2860 // work around unused variable warnings
2861 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2862 || dynamic_array[ni.number - 1] != 543);
2863 '
2864
2865 # Test code for whether the C compiler supports C11 (global declarations)
2866 ac_c_conftest_c11_globals='
2867 /* Does the compiler advertise C11 conformance? */
2868 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2869 # error "Compiler does not advertise C11 conformance"
2870 #endif
2871
2872 // Check _Alignas.
2873 char _Alignas (double) aligned_as_double;
2874 char _Alignas (0) no_special_alignment;
2875 extern char aligned_as_int;
2876 char _Alignas (0) _Alignas (int) aligned_as_int;
2877
2878 // Check _Alignof.
2879 enum
2880 {
2881 int_alignment = _Alignof (int),
2882 int_array_alignment = _Alignof (int[100]),
2883 char_alignment = _Alignof (char)
2884 };
2885 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2886
2887 // Check _Noreturn.
2888 int _Noreturn does_not_return (void) { for (;;) continue; }
2889
2890 // Check _Static_assert.
2891 struct test_static_assert
2892 {
2893 int x;
2894 _Static_assert (sizeof (int) <= sizeof (long int),
2895 "_Static_assert does not work in struct");
2896 long int y;
2897 };
2898
2899 // Check UTF-8 literals.
2900 #define u8 syntax error!
2901 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2902
2903 // Check duplicate typedefs.
2904 typedef long *long_ptr;
2905 typedef long int *long_ptr;
2906 typedef long_ptr long_ptr;
2907
2908 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2909 struct anonymous
2910 {
2911 union {
2912 struct { int i; int j; };
2913 struct { int k; long int l; } w;
2914 };
2915 int m;
2916 } v1;
2917 '
2918
2919 # Test code for whether the C compiler supports C11 (body of main).
2920 ac_c_conftest_c11_main='
2921 _Static_assert ((offsetof (struct anonymous, i)
2922 == offsetof (struct anonymous, w.k)),
2923 "Anonymous union alignment botch");
2924 v1.i = 2;
2925 v1.w.k = 5;
2926 ok |= v1.i != 5;
2927 '
2928
2929 # Test code for whether the C compiler supports C11 (complete).
2930 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2931 ${ac_c_conftest_c99_globals}
2932 ${ac_c_conftest_c11_globals}
2933
2934 int
2935 main (int argc, char **argv)
2936 {
2937 int ok = 0;
2938 ${ac_c_conftest_c89_main}
2939 ${ac_c_conftest_c99_main}
2940 ${ac_c_conftest_c11_main}
2941 return ok;
2942 }
2943 "
2944
2945 # Test code for whether the C compiler supports C99 (complete).
2946 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2947 ${ac_c_conftest_c99_globals}
2948
2949 int
2950 main (int argc, char **argv)
2951 {
2952 int ok = 0;
2953 ${ac_c_conftest_c89_main}
2954 ${ac_c_conftest_c99_main}
2955 return ok;
2956 }
2957 "
2958
2959 # Test code for whether the C compiler supports C89 (complete).
2960 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2961
2962 int
2963 main (int argc, char **argv)
2964 {
2965 int ok = 0;
2966 ${ac_c_conftest_c89_main}
2967 return ok;
2968 }
2969 "
2970
2971 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2972 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2973 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2974 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2975 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2976 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2977 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2978 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2979 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2980 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2981
2982 # Auxiliary files required by this configure script.
2983 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2984
2985 # Locations in which to look for auxiliary files.
2986 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2987
2988 # Search for a directory containing all of the required auxiliary files,
2989 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2990 # If we don't find one directory that contains all the files we need,
2991 # we report the set of missing files from the *first* directory in
2992 # $ac_aux_dir_candidates and give up.
2993 ac_missing_aux_files=""
2994 ac_first_candidate=:
2995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 as_found=false
2998 for as_dir in $ac_aux_dir_candidates
2999 do
3000 IFS=$as_save_IFS
3001 case $as_dir in #(((
3002 '') as_dir=./ ;;
3003 */) ;;
3004 *) as_dir=$as_dir/ ;;
3005 esac
3006 as_found=:
3007
3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3009 ac_aux_dir_found=yes
3010 ac_install_sh=
3011 for ac_aux in $ac_aux_files
3012 do
3013 # As a special case, if "install-sh" is required, that requirement
3014 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3015 # and $ac_install_sh is set appropriately for whichever one is found.
3016 if test x"$ac_aux" = x"install-sh"
3017 then
3018 if test -f "${as_dir}install-sh"; then
3019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3020 ac_install_sh="${as_dir}install-sh -c"
3021 elif test -f "${as_dir}install.sh"; then
3022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3023 ac_install_sh="${as_dir}install.sh -c"
3024 elif test -f "${as_dir}shtool"; then
3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3026 ac_install_sh="${as_dir}shtool install -c"
3027 else
3028 ac_aux_dir_found=no
3029 if $ac_first_candidate; then
3030 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3031 else
3032 break
3033 fi
3034 fi
3035 else
3036 if test -f "${as_dir}${ac_aux}"; then
3037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3038 else
3039 ac_aux_dir_found=no
3040 if $ac_first_candidate; then
3041 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3042 else
3043 break
3044 fi
3045 fi
3046 fi
3047 done
3048 if test "$ac_aux_dir_found" = yes; then
3049 ac_aux_dir="$as_dir"
3050 break
3051 fi
3052 ac_first_candidate=false
3053
3054 as_found=false
3055 done
3056 IFS=$as_save_IFS
3057 if $as_found
3058 then :
3059
3060 else case e in #(
3061 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3062 esac
3063 fi
3064
3065
3066 # These three variables are undocumented and unsupported,
3067 # and are intended to be withdrawn in a future Autoconf release.
3068 # They can cause serious problems if a builder's source tree is in a directory
3069 # whose full name contains unusual characters.
3070 if test -f "${ac_aux_dir}config.guess"; then
3071 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3072 fi
3073 if test -f "${ac_aux_dir}config.sub"; then
3074 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3075 fi
3076 if test -f "$ac_aux_dir/configure"; then
3077 ac_configure="$SHELL ${ac_aux_dir}configure"
3078 fi
3079
3080 # Check that the precious variables saved in the cache have kept the same
3081 # value.
3082 ac_cache_corrupted=false
3083 for ac_var in $ac_precious_vars; do
3084 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3085 eval ac_new_set=\$ac_env_${ac_var}_set
3086 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3087 eval ac_new_val=\$ac_env_${ac_var}_value
3088 case $ac_old_set,$ac_new_set in
3089 set,)
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3091 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3092 ac_cache_corrupted=: ;;
3093 ,set)
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3095 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3096 ac_cache_corrupted=: ;;
3097 ,);;
3098 *)
3099 if test "x$ac_old_val" != "x$ac_new_val"; then
3100 # differences in whitespace do not lead to failure.
3101 ac_old_val_w=`echo x $ac_old_val`
3102 ac_new_val_w=`echo x $ac_new_val`
3103 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3105 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3106 ac_cache_corrupted=:
3107 else
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3109 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3110 eval $ac_var=\$ac_old_val
3111 fi
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3113 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3115 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3116 fi;;
3117 esac
3118 # Pass precious variables to config.status.
3119 if test "$ac_new_set" = set; then
3120 case $ac_new_val in
3121 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3122 *) ac_arg=$ac_var=$ac_new_val ;;
3123 esac
3124 case " $ac_configure_args " in
3125 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3126 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3127 esac
3128 fi
3129 done
3130 if $ac_cache_corrupted; then
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3132 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3134 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3135 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3136 and start over" "$LINENO" 5
3137 fi
3138 ## -------------------- ##
3139 ## Main body of script. ##
3140 ## -------------------- ##
3141
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148
3149
3150
3151
3152
3153
3154 am__api_version='1.18'
3155
3156
3157
3158 # Find a good install program. We prefer a C program (faster),
3159 # so one script is as good as another. But avoid the broken or
3160 # incompatible versions:
3161 # SysV /etc/install, /usr/sbin/install
3162 # SunOS /usr/etc/install
3163 # IRIX /sbin/install
3164 # AIX /bin/install
3165 # AmigaOS /C/install, which installs bootblocks on floppy discs
3166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3169 # OS/2's system install, which has a completely different semantic
3170 # ./install, which can be erroneously created by make from ./install.sh.
3171 # Reject install programs that cannot install multiple files.
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3173 printf %s "checking for a BSD-compatible install... " >&6; }
3174 if test -z "$INSTALL"; then
3175 if test ${ac_cv_path_install+y}
3176 then :
3177 printf %s "(cached) " >&6
3178 else case e in #(
3179 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 case $as_dir in #(((
3184 '') as_dir=./ ;;
3185 */) ;;
3186 *) as_dir=$as_dir/ ;;
3187 esac
3188 # Account for fact that we put trailing slashes in our PATH walk.
3189 case $as_dir in #((
3190 ./ | /[cC]/* | \
3191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3192 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3193 /usr/ucb/* ) ;;
3194 *)
3195 # OSF1 and SCO ODT 3.0 have their own names for install.
3196 # Don't use installbsd from OSF since it installs stuff as root
3197 # by default.
3198 for ac_prog in ginstall scoinst install; do
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3201 if test $ac_prog = install &&
3202 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3203 # AIX install. It has an incompatible calling convention.
3204 :
3205 elif test $ac_prog = install &&
3206 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3207 # program-specific install script used by HP pwplus--don't use.
3208 :
3209 else
3210 rm -rf conftest.one conftest.two conftest.dir
3211 echo one > conftest.one
3212 echo two > conftest.two
3213 mkdir conftest.dir
3214 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3215 test -s conftest.one && test -s conftest.two &&
3216 test -s conftest.dir/conftest.one &&
3217 test -s conftest.dir/conftest.two
3218 then
3219 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3220 break 3
3221 fi
3222 fi
3223 fi
3224 done
3225 done
3226 ;;
3227 esac
3228
3229 done
3230 IFS=$as_save_IFS
3231
3232 rm -rf conftest.one conftest.two conftest.dir
3233 ;;
3234 esac
3235 fi
3236 if test ${ac_cv_path_install+y}; then
3237 INSTALL=$ac_cv_path_install
3238 else
3239 # As a last resort, use the slow shell script. Don't cache a
3240 # value for INSTALL within a source directory, because that will
3241 # break other packages using the cache if that directory is
3242 # removed, or if the value is a relative name.
3243 INSTALL=$ac_install_sh
3244 fi
3245 fi
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3247 printf "%s\n" "$INSTALL" >&6; }
3248
3249 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3250 # It thinks the first close brace ends the variable substitution.
3251 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3252
3253 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3254
3255 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3256
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3258 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3259 if test ${am_cv_sleep_fractional_seconds+y}
3260 then :
3261 printf %s "(cached) " >&6
3262 else case e in #(
3263 e) if sleep 0.001 2>/dev/null
3264 then :
3265 am_cv_sleep_fractional_seconds=yes
3266 else case e in #(
3267 e) am_cv_sleep_fractional_seconds=no ;;
3268 esac
3269 fi
3270 ;;
3271 esac
3272 fi
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3274 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3275
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3277 printf %s "checking filesystem timestamp resolution... " >&6; }
3278 if test ${am_cv_filesystem_timestamp_resolution+y}
3279 then :
3280 printf %s "(cached) " >&6
3281 else case e in #(
3282 e) # Default to the worst case.
3283 am_cv_filesystem_timestamp_resolution=2
3284
3285 # Only try to go finer than 1 sec if sleep can do it.
3286 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3287 # - 1 sec is not much of a win compared to 2 sec, and
3288 # - it takes 2 seconds to perform the test whether 1 sec works.
3289 #
3290 # Instead, just use the default 2s on platforms that have 1s resolution,
3291 # accept the extra 1s delay when using $sleep in the Automake tests, in
3292 # exchange for not incurring the 2s delay for running the test for all
3293 # packages.
3294 #
3295 am_try_resolutions=
3296 if test "$am_cv_sleep_fractional_seconds" = yes; then
3297 # Even a millisecond often causes a bunch of false positives,
3298 # so just try a hundredth of a second. The time saved between .001 and
3299 # .01 is not terribly consequential.
3300 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3301 fi
3302
3303 # In order to catch current-generation FAT out, we must *modify* files
3304 # that already exist; the *creation* timestamp is finer. Use names
3305 # that make ls -t sort them differently when they have equal
3306 # timestamps than when they have distinct timestamps, keeping
3307 # in mind that ls -t prints the *newest* file first.
3308 rm -f conftest.ts?
3309 : > conftest.ts1
3310 : > conftest.ts2
3311 : > conftest.ts3
3312
3313 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3314 # clobber the current shell's arguments. (Outer-level square brackets
3315 # are removed by m4; they're present so that m4 does not expand
3316 # <dollar><star>; be careful, easy to get confused.)
3317 if (
3318 set X `ls -t conftest.ts[12]` &&
3319 {
3320 test "$*" != "X conftest.ts1 conftest.ts2" ||
3321 test "$*" != "X conftest.ts2 conftest.ts1";
3322 }
3323 ); then :; else
3324 # If neither matched, then we have a broken ls. This can happen
3325 # if, for instance, CONFIG_SHELL is bash and it inherits a
3326 # broken ls alias from the environment. This has actually
3327 # happened. Such a system could not be considered "sane".
3328 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3329 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3330 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3331 as_fn_error $? "ls -t produces unexpected output.
3332 Make sure there is not a broken ls alias in your environment.
3333 See 'config.log' for more details" "$LINENO" 5; }
3334 fi
3335
3336 for am_try_res in $am_try_resolutions; do
3337 # Any one fine-grained sleep might happen to cross the boundary
3338 # between two values of a coarser actual resolution, but if we do
3339 # two fine-grained sleeps in a row, at least one of them will fall
3340 # entirely within a coarse interval.
3341 echo alpha > conftest.ts1
3342 sleep $am_try_res
3343 echo beta > conftest.ts2
3344 sleep $am_try_res
3345 echo gamma > conftest.ts3
3346
3347 # We assume that 'ls -t' will make use of high-resolution
3348 # timestamps if the operating system supports them at all.
3349 if (set X `ls -t conftest.ts?` &&
3350 test "$2" = conftest.ts3 &&
3351 test "$3" = conftest.ts2 &&
3352 test "$4" = conftest.ts1); then
3353 #
3354 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3355 # because we don't need to test make.
3356 make_ok=true
3357 if test $am_try_res != 1; then
3358 # But if we've succeeded so far with a subsecond resolution, we
3359 # have one more thing to check: make. It can happen that
3360 # everything else supports the subsecond mtimes, but make doesn't;
3361 # notably on macOS, which ships make 3.81 from 2006 (the last one
3362 # released under GPLv2). https://bugs.gnu.org/68808
3363 #
3364 # We test $MAKE if it is defined in the environment, else "make".
3365 # It might get overridden later, but our hope is that in practice
3366 # it does not matter: it is the system "make" which is (by far)
3367 # the most likely to be broken, whereas if the user overrides it,
3368 # probably they did so with a better, or at least not worse, make.
3369 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3370 #
3371 # Create a Makefile (real tab character here):
3372 rm -f conftest.mk
3373 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3374 echo ' touch conftest.ts2' >>conftest.mk
3375 #
3376 # Now, running
3377 # touch conftest.ts1; touch conftest.ts2; make
3378 # should touch ts1 because ts2 is newer. This could happen by luck,
3379 # but most often, it will fail if make's support is insufficient. So
3380 # test for several consecutive successes.
3381 #
3382 # (We reuse conftest.ts[12] because we still want to modify existing
3383 # files, not create new ones, per above.)
3384 n=0
3385 make=${MAKE-make}
3386 until test $n -eq 3; do
3387 echo one > conftest.ts1
3388 sleep $am_try_res
3389 echo two > conftest.ts2 # ts2 should now be newer than ts1
3390 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3391 make_ok=false
3392 break # out of $n loop
3393 fi
3394 n=`expr $n + 1`
3395 done
3396 fi
3397 #
3398 if $make_ok; then
3399 # Everything we know to check worked out, so call this resolution good.
3400 am_cv_filesystem_timestamp_resolution=$am_try_res
3401 break # out of $am_try_res loop
3402 fi
3403 # Otherwise, we'll go on to check the next resolution.
3404 fi
3405 done
3406 rm -f conftest.ts?
3407 # (end _am_filesystem_timestamp_resolution)
3408 ;;
3409 esac
3410 fi
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3412 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3413
3414 # This check should not be cached, as it may vary across builds of
3415 # different projects.
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3417 printf %s "checking whether build environment is sane... " >&6; }
3418 # Reject unsafe characters in $srcdir or the absolute working directory
3419 # name. Accept space and tab only in the latter.
3420 am_lf='
3421 '
3422 case `pwd` in
3423 *[\\\"\#\$\&\'\`$am_lf]*)
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 printf "%s\n" "no" >&6; }
3426 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3427 esac
3428 case $srcdir in
3429 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 printf "%s\n" "no" >&6; }
3432 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3433 esac
3434
3435 # Do 'set' in a subshell so we don't clobber the current shell's
3436 # arguments. Must try -L first in case configure is actually a
3437 # symlink; some systems play weird games with the mod time of symlinks
3438 # (eg FreeBSD returns the mod time of the symlink's containing
3439 # directory).
3440 am_build_env_is_sane=no
3441 am_has_slept=no
3442 rm -f conftest.file
3443 for am_try in 1 2; do
3444 echo "timestamp, slept: $am_has_slept" > conftest.file
3445 if (
3446 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3447 if test "$*" = "X"; then
3448 # -L didn't work.
3449 set X `ls -t "$srcdir/configure" conftest.file`
3450 fi
3451 test "$2" = conftest.file
3452 ); then
3453 am_build_env_is_sane=yes
3454 break
3455 fi
3456 # Just in case.
3457 sleep "$am_cv_filesystem_timestamp_resolution"
3458 am_has_slept=yes
3459 done
3460
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3462 printf "%s\n" "$am_build_env_is_sane" >&6; }
3463 if test "$am_build_env_is_sane" = no; then
3464 as_fn_error $? "newly created file is older than distributed files!
3465 Check your system clock" "$LINENO" 5
3466 fi
3467
3468 # If we didn't sleep, we still need to ensure time stamps of config.status and
3469 # generated files are strictly newer.
3470 am_sleep_pid=
3471 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3472 then :
3473
3474 else case e in #(
3475 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3476 am_sleep_pid=$!
3477 ;;
3478 esac
3479 fi
3480
3481 rm -f conftest.file
3482
3483 test "$program_prefix" != NONE &&
3484 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3485 # Use a double $ so make ignores it.
3486 test "$program_suffix" != NONE &&
3487 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3488 # Double any \ or $.
3489 # By default was 's,x,x', remove it if useless.
3490 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3491 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3492
3493
3494 # Expand $ac_aux_dir to an absolute path.
3495 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3496
3497
3498 if test x"${MISSING+set}" != xset; then
3499 MISSING="\${SHELL} '$am_aux_dir/missing'"
3500 fi
3501 # Use eval to expand $SHELL
3502 if eval "$MISSING --is-lightweight"; then
3503 am_missing_run="$MISSING "
3504 else
3505 am_missing_run=
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3507 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3508 fi
3509
3510 if test x"${install_sh+set}" != xset; then
3511 case $am_aux_dir in
3512 *\ * | *\ *)
3513 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3514 *)
3515 install_sh="\${SHELL} $am_aux_dir/install-sh"
3516 esac
3517 fi
3518
3519 # Installed binaries are usually stripped using 'strip' when the user
3520 # run "make install-strip". However 'strip' might not be the right
3521 # tool to use in cross-compilation environments, therefore Automake
3522 # will honor the 'STRIP' environment variable to overrule this program.
3523 if test "$cross_compiling" != no; then
3524 if test -n "$ac_tool_prefix"; then
3525 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3526 set dummy ${ac_tool_prefix}strip; ac_word=$2
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 printf %s "checking for $ac_word... " >&6; }
3529 if test ${ac_cv_prog_STRIP+y}
3530 then :
3531 printf %s "(cached) " >&6
3532 else case e in #(
3533 e) if test -n "$STRIP"; then
3534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539 IFS=$as_save_IFS
3540 case $as_dir in #(((
3541 '') as_dir=./ ;;
3542 */) ;;
3543 *) as_dir=$as_dir/ ;;
3544 esac
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551 done
3552 done
3553 IFS=$as_save_IFS
3554
3555 fi ;;
3556 esac
3557 fi
3558 STRIP=$ac_cv_prog_STRIP
3559 if test -n "$STRIP"; then
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3561 printf "%s\n" "$STRIP" >&6; }
3562 else
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 printf "%s\n" "no" >&6; }
3565 fi
3566
3567
3568 fi
3569 if test -z "$ac_cv_prog_STRIP"; then
3570 ac_ct_STRIP=$STRIP
3571 # Extract the first word of "strip", so it can be a program name with args.
3572 set dummy strip; ac_word=$2
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 printf %s "checking for $ac_word... " >&6; }
3575 if test ${ac_cv_prog_ac_ct_STRIP+y}
3576 then :
3577 printf %s "(cached) " >&6
3578 else case e in #(
3579 e) if test -n "$ac_ct_STRIP"; then
3580 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 case $as_dir in #(((
3587 '') as_dir=./ ;;
3588 */) ;;
3589 *) as_dir=$as_dir/ ;;
3590 esac
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_ac_ct_STRIP="strip"
3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi ;;
3602 esac
3603 fi
3604 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3605 if test -n "$ac_ct_STRIP"; then
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3607 printf "%s\n" "$ac_ct_STRIP" >&6; }
3608 else
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 printf "%s\n" "no" >&6; }
3611 fi
3612
3613 if test "x$ac_ct_STRIP" = x; then
3614 STRIP=":"
3615 else
3616 case $cross_compiling:$ac_tool_warned in
3617 yes:)
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620 ac_tool_warned=yes ;;
3621 esac
3622 STRIP=$ac_ct_STRIP
3623 fi
3624 else
3625 STRIP="$ac_cv_prog_STRIP"
3626 fi
3627
3628 fi
3629 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3630
3631
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3633 printf %s "checking for a race-free mkdir -p... " >&6; }
3634 if test -z "$MKDIR_P"; then
3635 if test ${ac_cv_path_mkdir+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else case e in #(
3639 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3641 do
3642 IFS=$as_save_IFS
3643 case $as_dir in #(((
3644 '') as_dir=./ ;;
3645 */) ;;
3646 *) as_dir=$as_dir/ ;;
3647 esac
3648 for ac_prog in mkdir gmkdir; do
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3651 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3652 'mkdir ('*'coreutils) '* | \
3653 *'BusyBox '* | \
3654 'mkdir (fileutils) '4.1*)
3655 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3656 break 3;;
3657 esac
3658 done
3659 done
3660 done
3661 IFS=$as_save_IFS
3662 ;;
3663 esac
3664 fi
3665
3666 test -d ./--version && rmdir ./--version
3667 if test ${ac_cv_path_mkdir+y}; then
3668 MKDIR_P="$ac_cv_path_mkdir -p"
3669 else
3670 # As a last resort, use plain mkdir -p,
3671 # in the hope it doesn't have the bugs of ancient mkdir.
3672 MKDIR_P='mkdir -p'
3673 fi
3674 fi
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3676 printf "%s\n" "$MKDIR_P" >&6; }
3677
3678 for ac_prog in gawk mawk nawk awk
3679 do
3680 # Extract the first word of "$ac_prog", so it can be a program name with args.
3681 set dummy $ac_prog; ac_word=$2
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 printf %s "checking for $ac_word... " >&6; }
3684 if test ${ac_cv_prog_AWK+y}
3685 then :
3686 printf %s "(cached) " >&6
3687 else case e in #(
3688 e) if test -n "$AWK"; then
3689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694 IFS=$as_save_IFS
3695 case $as_dir in #(((
3696 '') as_dir=./ ;;
3697 */) ;;
3698 *) as_dir=$as_dir/ ;;
3699 esac
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_AWK="$ac_prog"
3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 fi ;;
3711 esac
3712 fi
3713 AWK=$ac_cv_prog_AWK
3714 if test -n "$AWK"; then
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3716 printf "%s\n" "$AWK" >&6; }
3717 else
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 printf "%s\n" "no" >&6; }
3720 fi
3721
3722
3723 test -n "$AWK" && break
3724 done
3725
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3727 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3728 set x ${MAKE-make}
3729 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3730 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3731 then :
3732 printf %s "(cached) " >&6
3733 else case e in #(
3734 e) cat >conftest.make <<\_ACEOF
3735 SHELL = /bin/sh
3736 all:
3737 @echo '@@@%%%=$(MAKE)=@@@%%%'
3738 _ACEOF
3739 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3740 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3741 *@@@%%%=?*=@@@%%%*)
3742 eval ac_cv_prog_make_${ac_make}_set=yes;;
3743 *)
3744 eval ac_cv_prog_make_${ac_make}_set=no;;
3745 esac
3746 rm -f conftest.make ;;
3747 esac
3748 fi
3749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3751 printf "%s\n" "yes" >&6; }
3752 SET_MAKE=
3753 else
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 printf "%s\n" "no" >&6; }
3756 SET_MAKE="MAKE=${MAKE-make}"
3757 fi
3758
3759 rm -rf .tst 2>/dev/null
3760 mkdir .tst 2>/dev/null
3761 if test -d .tst; then
3762 am__leading_dot=.
3763 else
3764 am__leading_dot=_
3765 fi
3766 rmdir .tst 2>/dev/null
3767
3768 AM_DEFAULT_VERBOSITY=1
3769 # Check whether --enable-silent-rules was given.
3770 if test ${enable_silent_rules+y}
3771 then :
3772 enableval=$enable_silent_rules;
3773 fi
3774
3775 am_make=${MAKE-make}
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3777 printf %s "checking whether $am_make supports nested variables... " >&6; }
3778 if test ${am_cv_make_support_nested_variables+y}
3779 then :
3780 printf %s "(cached) " >&6
3781 else case e in #(
3782 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3783 BAR0=false
3784 BAR1=true
3785 V=1
3786 am__doit:
3787 @$(TRUE)
3788 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3789 am_cv_make_support_nested_variables=yes
3790 else
3791 am_cv_make_support_nested_variables=no
3792 fi ;;
3793 esac
3794 fi
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3796 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3797 AM_BACKSLASH='\'
3798
3799 am__rm_f_notfound=
3800 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3801 then :
3802
3803 else case e in #(
3804 e) am__rm_f_notfound='""' ;;
3805 esac
3806 fi
3807
3808
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3810 printf %s "checking xargs -n works... " >&6; }
3811 if test ${am_cv_xargs_n_works+y}
3812 then :
3813 printf %s "(cached) " >&6
3814 else case e in #(
3815 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3816 3"
3817 then :
3818 am_cv_xargs_n_works=yes
3819 else case e in #(
3820 e) am_cv_xargs_n_works=no ;;
3821 esac
3822 fi ;;
3823 esac
3824 fi
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3826 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3827 if test "$am_cv_xargs_n_works" = yes
3828 then :
3829 am__xargs_n='xargs -n'
3830 else case e in #(
3831 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3832 ;;
3833 esac
3834 fi
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845 DEPDIR="${am__leading_dot}deps"
3846
3847 ac_config_commands="$ac_config_commands depfiles"
3848
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3850 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3851 cat > confinc.mk << 'END'
3852 am__doit:
3853 @echo this is the am__doit target >confinc.out
3854 .PHONY: am__doit
3855 END
3856 am__include="#"
3857 am__quote=
3858 # BSD make does it like this.
3859 echo '.include "confinc.mk" # ignored' > confmf.BSD
3860 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3861 echo 'include confinc.mk # ignored' > confmf.GNU
3862 _am_result=no
3863 for s in GNU BSD; do
3864 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3865 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }
3869 case $?:`cat confinc.out 2>/dev/null` in #(
3870 '0:this is the am__doit target') :
3871 case $s in #(
3872 BSD) :
3873 am__include='.include' am__quote='"' ;; #(
3874 *) :
3875 am__include='include' am__quote='' ;;
3876 esac ;; #(
3877 *) :
3878 ;;
3879 esac
3880 if test "$am__include" != "#"; then
3881 _am_result="yes ($s style)"
3882 break
3883 fi
3884 done
3885 rm -f confinc.* confmf.*
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3887 printf "%s\n" "${_am_result}" >&6; }
3888
3889 # Check whether --enable-dependency-tracking was given.
3890 if test ${enable_dependency_tracking+y}
3891 then :
3892 enableval=$enable_dependency_tracking;
3893 fi
3894
3895 if test "x$enable_dependency_tracking" != xno; then
3896 am_depcomp="$ac_aux_dir/depcomp"
3897 AMDEPBACKSLASH='\'
3898 am__nodep='_no'
3899 fi
3900 if test "x$enable_dependency_tracking" != xno; then
3901 AMDEP_TRUE=
3902 AMDEP_FALSE='#'
3903 else
3904 AMDEP_TRUE='#'
3905 AMDEP_FALSE=
3906 fi
3907
3908
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914 if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 printf %s "checking for $ac_word... " >&6; }
3919 if test ${ac_cv_prog_CC+y}
3920 then :
3921 printf %s "(cached) " >&6
3922 else case e in #(
3923 e) if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 case $as_dir in #(((
3931 '') as_dir=./ ;;
3932 */) ;;
3933 *) as_dir=$as_dir/ ;;
3934 esac
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 fi ;;
3946 esac
3947 fi
3948 CC=$ac_cv_prog_CC
3949 if test -n "$CC"; then
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3951 printf "%s\n" "$CC" >&6; }
3952 else
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 printf "%s\n" "no" >&6; }
3955 fi
3956
3957
3958 fi
3959 if test -z "$ac_cv_prog_CC"; then
3960 ac_ct_CC=$CC
3961 # Extract the first word of "gcc", so it can be a program name with args.
3962 set dummy gcc; ac_word=$2
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 printf %s "checking for $ac_word... " >&6; }
3965 if test ${ac_cv_prog_ac_ct_CC+y}
3966 then :
3967 printf %s "(cached) " >&6
3968 else case e in #(
3969 e) if test -n "$ac_ct_CC"; then
3970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 case $as_dir in #(((
3977 '') as_dir=./ ;;
3978 */) ;;
3979 *) as_dir=$as_dir/ ;;
3980 esac
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3983 ac_cv_prog_ac_ct_CC="gcc"
3984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3985 break 2
3986 fi
3987 done
3988 done
3989 IFS=$as_save_IFS
3990
3991 fi ;;
3992 esac
3993 fi
3994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3995 if test -n "$ac_ct_CC"; then
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3997 printf "%s\n" "$ac_ct_CC" >&6; }
3998 else
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 printf "%s\n" "no" >&6; }
4001 fi
4002
4003 if test "x$ac_ct_CC" = x; then
4004 CC=""
4005 else
4006 case $cross_compiling:$ac_tool_warned in
4007 yes:)
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010 ac_tool_warned=yes ;;
4011 esac
4012 CC=$ac_ct_CC
4013 fi
4014 else
4015 CC="$ac_cv_prog_CC"
4016 fi
4017
4018 if test -z "$CC"; then
4019 if test -n "$ac_tool_prefix"; then
4020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4021 set dummy ${ac_tool_prefix}cc; ac_word=$2
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 printf %s "checking for $ac_word... " >&6; }
4024 if test ${ac_cv_prog_CC+y}
4025 then :
4026 printf %s "(cached) " >&6
4027 else case e in #(
4028 e) if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034 IFS=$as_save_IFS
4035 case $as_dir in #(((
4036 '') as_dir=./ ;;
4037 */) ;;
4038 *) as_dir=$as_dir/ ;;
4039 esac
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_CC="${ac_tool_prefix}cc"
4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 fi ;;
4051 esac
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 printf "%s\n" "$CC" >&6; }
4057 else
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 printf "%s\n" "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 fi
4065 if test -z "$CC"; then
4066 # Extract the first word of "cc", so it can be a program name with args.
4067 set dummy cc; ac_word=$2
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 printf %s "checking for $ac_word... " >&6; }
4070 if test ${ac_cv_prog_CC+y}
4071 then :
4072 printf %s "(cached) " >&6
4073 else case e in #(
4074 e) if test -n "$CC"; then
4075 ac_cv_prog_CC="$CC" # Let the user override the test.
4076 else
4077 ac_prog_rejected=no
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081 IFS=$as_save_IFS
4082 case $as_dir in #(((
4083 '') as_dir=./ ;;
4084 */) ;;
4085 *) as_dir=$as_dir/ ;;
4086 esac
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4089 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4090 ac_prog_rejected=yes
4091 continue
4092 fi
4093 ac_cv_prog_CC="cc"
4094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097 done
4098 done
4099 IFS=$as_save_IFS
4100
4101 if test $ac_prog_rejected = yes; then
4102 # We found a bogon in the path, so make sure we never use it.
4103 set dummy $ac_cv_prog_CC
4104 shift
4105 if test $# != 0; then
4106 # We chose a different compiler from the bogus one.
4107 # However, it has the same basename, so the bogon will be chosen
4108 # first if we set CC to just the basename; use the full file name.
4109 shift
4110 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4111 fi
4112 fi
4113 fi ;;
4114 esac
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 printf "%s\n" "$CC" >&6; }
4120 else
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 printf "%s\n" "no" >&6; }
4123 fi
4124
4125
4126 fi
4127 if test -z "$CC"; then
4128 if test -n "$ac_tool_prefix"; then
4129 for ac_prog in cl.exe
4130 do
4131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 printf %s "checking for $ac_word... " >&6; }
4135 if test ${ac_cv_prog_CC+y}
4136 then :
4137 printf %s "(cached) " >&6
4138 else case e in #(
4139 e) if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145 IFS=$as_save_IFS
4146 case $as_dir in #(((
4147 '') as_dir=./ ;;
4148 */) ;;
4149 *) as_dir=$as_dir/ ;;
4150 esac
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159 IFS=$as_save_IFS
4160
4161 fi ;;
4162 esac
4163 fi
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 printf "%s\n" "$CC" >&6; }
4168 else
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 printf "%s\n" "no" >&6; }
4171 fi
4172
4173
4174 test -n "$CC" && break
4175 done
4176 fi
4177 if test -z "$CC"; then
4178 ac_ct_CC=$CC
4179 for ac_prog in cl.exe
4180 do
4181 # Extract the first word of "$ac_prog", so it can be a program name with args.
4182 set dummy $ac_prog; ac_word=$2
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 printf %s "checking for $ac_word... " >&6; }
4185 if test ${ac_cv_prog_ac_ct_CC+y}
4186 then :
4187 printf %s "(cached) " >&6
4188 else case e in #(
4189 e) if test -n "$ac_ct_CC"; then
4190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195 IFS=$as_save_IFS
4196 case $as_dir in #(((
4197 '') as_dir=./ ;;
4198 */) ;;
4199 *) as_dir=$as_dir/ ;;
4200 esac
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_ac_ct_CC="$ac_prog"
4204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207 done
4208 done
4209 IFS=$as_save_IFS
4210
4211 fi ;;
4212 esac
4213 fi
4214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4215 if test -n "$ac_ct_CC"; then
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4217 printf "%s\n" "$ac_ct_CC" >&6; }
4218 else
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 printf "%s\n" "no" >&6; }
4221 fi
4222
4223
4224 test -n "$ac_ct_CC" && break
4225 done
4226
4227 if test "x$ac_ct_CC" = x; then
4228 CC=""
4229 else
4230 case $cross_compiling:$ac_tool_warned in
4231 yes:)
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4233 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234 ac_tool_warned=yes ;;
4235 esac
4236 CC=$ac_ct_CC
4237 fi
4238 fi
4239
4240 fi
4241 if test -z "$CC"; then
4242 if test -n "$ac_tool_prefix"; then
4243 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4244 set dummy ${ac_tool_prefix}clang; ac_word=$2
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 printf %s "checking for $ac_word... " >&6; }
4247 if test ${ac_cv_prog_CC+y}
4248 then :
4249 printf %s "(cached) " >&6
4250 else case e in #(
4251 e) if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 case $as_dir in #(((
4259 '') as_dir=./ ;;
4260 */) ;;
4261 *) as_dir=$as_dir/ ;;
4262 esac
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4265 ac_cv_prog_CC="${ac_tool_prefix}clang"
4266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4267 break 2
4268 fi
4269 done
4270 done
4271 IFS=$as_save_IFS
4272
4273 fi ;;
4274 esac
4275 fi
4276 CC=$ac_cv_prog_CC
4277 if test -n "$CC"; then
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4279 printf "%s\n" "$CC" >&6; }
4280 else
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 printf "%s\n" "no" >&6; }
4283 fi
4284
4285
4286 fi
4287 if test -z "$ac_cv_prog_CC"; then
4288 ac_ct_CC=$CC
4289 # Extract the first word of "clang", so it can be a program name with args.
4290 set dummy clang; ac_word=$2
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 printf %s "checking for $ac_word... " >&6; }
4293 if test ${ac_cv_prog_ac_ct_CC+y}
4294 then :
4295 printf %s "(cached) " >&6
4296 else case e in #(
4297 e) if test -n "$ac_ct_CC"; then
4298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4299 else
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303 IFS=$as_save_IFS
4304 case $as_dir in #(((
4305 '') as_dir=./ ;;
4306 */) ;;
4307 *) as_dir=$as_dir/ ;;
4308 esac
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_CC="clang"
4312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 fi ;;
4320 esac
4321 fi
4322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4323 if test -n "$ac_ct_CC"; then
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4325 printf "%s\n" "$ac_ct_CC" >&6; }
4326 else
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 printf "%s\n" "no" >&6; }
4329 fi
4330
4331 if test "x$ac_ct_CC" = x; then
4332 CC=""
4333 else
4334 case $cross_compiling:$ac_tool_warned in
4335 yes:)
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4337 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4339 esac
4340 CC=$ac_ct_CC
4341 fi
4342 else
4343 CC="$ac_cv_prog_CC"
4344 fi
4345
4346 fi
4347
4348
4349 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4350 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4351 as_fn_error $? "no acceptable C compiler found in \$PATH
4352 See 'config.log' for more details" "$LINENO" 5; }
4353
4354 # Provide some information about the compiler.
4355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4356 set X $ac_compile
4357 ac_compiler=$2
4358 for ac_option in --version -v -V -qversion -version; do
4359 { { ac_try="$ac_compiler $ac_option >&5"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 printf "%s\n" "$ac_try_echo"; } >&5
4366 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4367 ac_status=$?
4368 if test -s conftest.err; then
4369 sed '10a\
4370 ... rest of stderr output deleted ...
4371 10q' conftest.err >conftest.er1
4372 cat conftest.er1 >&5
4373 fi
4374 rm -f conftest.er1 conftest.err
4375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }
4377 done
4378
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382 int
4383 main (void)
4384 {
4385
4386 ;
4387 return 0;
4388 }
4389 _ACEOF
4390 ac_clean_files_save=$ac_clean_files
4391 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4392 # Try to create an executable without -o first, disregard a.out.
4393 # It will help us diagnose broken compilers, and finding out an intuition
4394 # of exeext.
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4396 printf %s "checking whether the C compiler works... " >&6; }
4397 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4398
4399 # The possible output files:
4400 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4401
4402 ac_rmfiles=
4403 for ac_file in $ac_files
4404 do
4405 case $ac_file in
4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4407 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4408 esac
4409 done
4410 rm -f $ac_rmfiles
4411
4412 if { { ac_try="$ac_link_default"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 printf "%s\n" "$ac_try_echo"; } >&5
4419 (eval "$ac_link_default") 2>&5
4420 ac_status=$?
4421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }
4423 then :
4424 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4425 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4427 # so that the user can short-circuit this test for compilers unknown to
4428 # Autoconf.
4429 for ac_file in $ac_files ''
4430 do
4431 test -f "$ac_file" || continue
4432 case $ac_file in
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4434 ;;
4435 [ab].out )
4436 # We found the default executable, but exeext='' is most
4437 # certainly right.
4438 break;;
4439 *.* )
4440 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4441 then :; else
4442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4443 fi
4444 # We set ac_cv_exeext here because the later test for it is not
4445 # safe: cross compilers may not add the suffix if given an '-o'
4446 # argument, so we may need to know it at that point already.
4447 # Even if this section looks crufty: it has the advantage of
4448 # actually working.
4449 break;;
4450 * )
4451 break;;
4452 esac
4453 done
4454 test "$ac_cv_exeext" = no && ac_cv_exeext=
4455
4456 else case e in #(
4457 e) ac_file='' ;;
4458 esac
4459 fi
4460 if test -z "$ac_file"
4461 then :
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 printf "%s\n" "no" >&6; }
4464 printf "%s\n" "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4468 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4469 as_fn_error 77 "C compiler cannot create executables
4470 See 'config.log' for more details" "$LINENO" 5; }
4471 else case e in #(
4472 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4473 printf "%s\n" "yes" >&6; } ;;
4474 esac
4475 fi
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4477 printf %s "checking for C compiler default output file name... " >&6; }
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4479 printf "%s\n" "$ac_file" >&6; }
4480 ac_exeext=$ac_cv_exeext
4481
4482 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4483 ac_clean_files=$ac_clean_files_save
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4485 printf %s "checking for suffix of executables... " >&6; }
4486 if { { ac_try="$ac_link"
4487 case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492 printf "%s\n" "$ac_try_echo"; } >&5
4493 (eval "$ac_link") 2>&5
4494 ac_status=$?
4495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496 test $ac_status = 0; }
4497 then :
4498 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4499 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4500 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4501 # 'rm'.
4502 for ac_file in conftest.exe conftest conftest.*; do
4503 test -f "$ac_file" || continue
4504 case $ac_file in
4505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4506 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4507 break;;
4508 * ) break;;
4509 esac
4510 done
4511 else case e in #(
4512 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4513 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4514 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4515 See 'config.log' for more details" "$LINENO" 5; } ;;
4516 esac
4517 fi
4518 rm -f conftest conftest$ac_cv_exeext
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4520 printf "%s\n" "$ac_cv_exeext" >&6; }
4521
4522 rm -f conftest.$ac_ext
4523 EXEEXT=$ac_cv_exeext
4524 ac_exeext=$EXEEXT
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 #include <stdio.h>
4528 int
4529 main (void)
4530 {
4531 FILE *f = fopen ("conftest.out", "w");
4532 if (!f)
4533 return 1;
4534 return ferror (f) || fclose (f) != 0;
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 ac_clean_files="$ac_clean_files conftest.out"
4541 # Check that the compiler produces executables we can run. If not, either
4542 # the compiler is broken, or we cross compile.
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4544 printf %s "checking whether we are cross compiling... " >&6; }
4545 if test "$cross_compiling" != yes; then
4546 { { ac_try="$ac_link"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4552 printf "%s\n" "$ac_try_echo"; } >&5
4553 (eval "$ac_link") 2>&5
4554 ac_status=$?
4555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4556 test $ac_status = 0; }
4557 if { ac_try='./conftest$ac_cv_exeext'
4558 { { case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 printf "%s\n" "$ac_try_echo"; } >&5
4564 (eval "$ac_try") 2>&5
4565 ac_status=$?
4566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; }; then
4568 cross_compiling=no
4569 else
4570 if test "$cross_compiling" = maybe; then
4571 cross_compiling=yes
4572 else
4573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4574 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4575 as_fn_error 77 "cannot run C compiled programs.
4576 If you meant to cross compile, use '--host'.
4577 See 'config.log' for more details" "$LINENO" 5; }
4578 fi
4579 fi
4580 fi
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4582 printf "%s\n" "$cross_compiling" >&6; }
4583
4584 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4585 conftest.o conftest.obj conftest.out
4586 ac_clean_files=$ac_clean_files_save
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4588 printf %s "checking for suffix of object files... " >&6; }
4589 if test ${ac_cv_objext+y}
4590 then :
4591 printf %s "(cached) " >&6
4592 else case e in #(
4593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595
4596 int
4597 main (void)
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.o conftest.obj
4605 if { { ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 printf "%s\n" "$ac_try_echo"; } >&5
4612 (eval "$ac_compile") 2>&5
4613 ac_status=$?
4614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4615 test $ac_status = 0; }
4616 then :
4617 for ac_file in conftest.o conftest.obj conftest.*; do
4618 test -f "$ac_file" || continue;
4619 case $ac_file in
4620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4622 break;;
4623 esac
4624 done
4625 else case e in #(
4626 e) printf "%s\n" "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4630 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4631 as_fn_error $? "cannot compute suffix of object files: cannot compile
4632 See 'config.log' for more details" "$LINENO" 5; } ;;
4633 esac
4634 fi
4635 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4636 esac
4637 fi
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4639 printf "%s\n" "$ac_cv_objext" >&6; }
4640 OBJEXT=$ac_cv_objext
4641 ac_objext=$OBJEXT
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4643 printf %s "checking whether the compiler supports GNU C... " >&6; }
4644 if test ${ac_cv_c_compiler_gnu+y}
4645 then :
4646 printf %s "(cached) " >&6
4647 else case e in #(
4648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650
4651 int
4652 main (void)
4653 {
4654 #ifndef __GNUC__
4655 choke me
4656 #endif
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"
4663 then :
4664 ac_compiler_gnu=yes
4665 else case e in #(
4666 e) ac_compiler_gnu=no ;;
4667 esac
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4671 ;;
4672 esac
4673 fi
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4675 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677
4678 if test $ac_compiler_gnu = yes; then
4679 GCC=yes
4680 else
4681 GCC=
4682 fi
4683 ac_test_CFLAGS=${CFLAGS+y}
4684 ac_save_CFLAGS=$CFLAGS
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4686 printf %s "checking whether $CC accepts -g... " >&6; }
4687 if test ${ac_cv_prog_cc_g+y}
4688 then :
4689 printf %s "(cached) " >&6
4690 else case e in #(
4691 e) ac_save_c_werror_flag=$ac_c_werror_flag
4692 ac_c_werror_flag=yes
4693 ac_cv_prog_cc_g=no
4694 CFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697
4698 int
4699 main (void)
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"
4707 then :
4708 ac_cv_prog_cc_g=yes
4709 else case e in #(
4710 e) CFLAGS=""
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713
4714 int
4715 main (void)
4716 {
4717
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"
4723 then :
4724
4725 else case e in #(
4726 e) ac_c_werror_flag=$ac_save_c_werror_flag
4727 CFLAGS="-g"
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main (void)
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"
4740 then :
4741 ac_cv_prog_cc_g=yes
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4744 esac
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4747 esac
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4750 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4751 esac
4752 fi
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4754 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4755 if test $ac_test_CFLAGS; then
4756 CFLAGS=$ac_save_CFLAGS
4757 elif test $ac_cv_prog_cc_g = yes; then
4758 if test "$GCC" = yes; then
4759 CFLAGS="-g -O2"
4760 else
4761 CFLAGS="-g"
4762 fi
4763 else
4764 if test "$GCC" = yes; then
4765 CFLAGS="-O2"
4766 else
4767 CFLAGS=
4768 fi
4769 fi
4770 ac_prog_cc_stdc=no
4771 if test x$ac_prog_cc_stdc = xno
4772 then :
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4774 printf %s "checking for $CC option to enable C11 features... " >&6; }
4775 if test ${ac_cv_prog_cc_c11+y}
4776 then :
4777 printf %s "(cached) " >&6
4778 else case e in #(
4779 e) ac_cv_prog_cc_c11=no
4780 ac_save_CC=$CC
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783 $ac_c_conftest_c11_program
4784 _ACEOF
4785 for ac_arg in '' -std=gnu11
4786 do
4787 CC="$ac_save_CC $ac_arg"
4788 if ac_fn_c_try_compile "$LINENO"
4789 then :
4790 ac_cv_prog_cc_c11=$ac_arg
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.beam
4793 test "x$ac_cv_prog_cc_c11" != "xno" && break
4794 done
4795 rm -f conftest.$ac_ext
4796 CC=$ac_save_CC ;;
4797 esac
4798 fi
4799
4800 if test "x$ac_cv_prog_cc_c11" = xno
4801 then :
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4803 printf "%s\n" "unsupported" >&6; }
4804 else case e in #(
4805 e) if test "x$ac_cv_prog_cc_c11" = x
4806 then :
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4808 printf "%s\n" "none needed" >&6; }
4809 else case e in #(
4810 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4811 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4812 CC="$CC $ac_cv_prog_cc_c11" ;;
4813 esac
4814 fi
4815 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4816 ac_prog_cc_stdc=c11 ;;
4817 esac
4818 fi
4819 fi
4820 if test x$ac_prog_cc_stdc = xno
4821 then :
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4823 printf %s "checking for $CC option to enable C99 features... " >&6; }
4824 if test ${ac_cv_prog_cc_c99+y}
4825 then :
4826 printf %s "(cached) " >&6
4827 else case e in #(
4828 e) ac_cv_prog_cc_c99=no
4829 ac_save_CC=$CC
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 $ac_c_conftest_c99_program
4833 _ACEOF
4834 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4835 do
4836 CC="$ac_save_CC $ac_arg"
4837 if ac_fn_c_try_compile "$LINENO"
4838 then :
4839 ac_cv_prog_cc_c99=$ac_arg
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.beam
4842 test "x$ac_cv_prog_cc_c99" != "xno" && break
4843 done
4844 rm -f conftest.$ac_ext
4845 CC=$ac_save_CC ;;
4846 esac
4847 fi
4848
4849 if test "x$ac_cv_prog_cc_c99" = xno
4850 then :
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4852 printf "%s\n" "unsupported" >&6; }
4853 else case e in #(
4854 e) if test "x$ac_cv_prog_cc_c99" = x
4855 then :
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4857 printf "%s\n" "none needed" >&6; }
4858 else case e in #(
4859 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4860 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4861 CC="$CC $ac_cv_prog_cc_c99" ;;
4862 esac
4863 fi
4864 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4865 ac_prog_cc_stdc=c99 ;;
4866 esac
4867 fi
4868 fi
4869 if test x$ac_prog_cc_stdc = xno
4870 then :
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4872 printf %s "checking for $CC option to enable C89 features... " >&6; }
4873 if test ${ac_cv_prog_cc_c89+y}
4874 then :
4875 printf %s "(cached) " >&6
4876 else case e in #(
4877 e) ac_cv_prog_cc_c89=no
4878 ac_save_CC=$CC
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 $ac_c_conftest_c89_program
4882 _ACEOF
4883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4884 do
4885 CC="$ac_save_CC $ac_arg"
4886 if ac_fn_c_try_compile "$LINENO"
4887 then :
4888 ac_cv_prog_cc_c89=$ac_arg
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.beam
4891 test "x$ac_cv_prog_cc_c89" != "xno" && break
4892 done
4893 rm -f conftest.$ac_ext
4894 CC=$ac_save_CC ;;
4895 esac
4896 fi
4897
4898 if test "x$ac_cv_prog_cc_c89" = xno
4899 then :
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4901 printf "%s\n" "unsupported" >&6; }
4902 else case e in #(
4903 e) if test "x$ac_cv_prog_cc_c89" = x
4904 then :
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4906 printf "%s\n" "none needed" >&6; }
4907 else case e in #(
4908 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4910 CC="$CC $ac_cv_prog_cc_c89" ;;
4911 esac
4912 fi
4913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4914 ac_prog_cc_stdc=c89 ;;
4915 esac
4916 fi
4917 fi
4918
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925
4926 ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4932 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4933 if test ${am_cv_prog_cc_c_o+y}
4934 then :
4935 printf %s "(cached) " >&6
4936 else case e in #(
4937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939
4940 int
4941 main (void)
4942 {
4943
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 # Make sure it works both with $CC and with simple cc.
4949 # Following AC_PROG_CC_C_O, we do the test twice because some
4950 # compilers refuse to overwrite an existing .o file with -o,
4951 # though they will create one.
4952 am_cv_prog_cc_c_o=yes
4953 for am_i in 1 2; do
4954 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4955 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } \
4959 && test -f conftest2.$ac_objext; then
4960 : OK
4961 else
4962 am_cv_prog_cc_c_o=no
4963 break
4964 fi
4965 done
4966 # aligned with autoconf, so not including core; see bug#72225.
4967 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4968 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4969 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4970 unset am_i ;;
4971 esac
4972 fi
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4974 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4975 if test "$am_cv_prog_cc_c_o" != yes; then
4976 # Losing compiler, so override with the script.
4977 # FIXME: It is wrong to rewrite CC.
4978 # But if we don't then we get into trouble of one sort or another.
4979 # A longer-term fix would be to have automake use am__CC in this case,
4980 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4981 CC="$am_aux_dir/compile $CC"
4982 fi
4983 ac_ext=c
4984 ac_cpp='$CPP $CPPFLAGS'
4985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988
4989
4990 depcc="$CC" am_compiler_list=
4991
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4993 printf %s "checking dependency style of $depcc... " >&6; }
4994 if test ${am_cv_CC_dependencies_compiler_type+y}
4995 then :
4996 printf %s "(cached) " >&6
4997 else case e in #(
4998 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4999 # We make a subdir and do the tests there. Otherwise we can end up
5000 # making bogus files that we don't know about and never remove. For
5001 # instance it was reported that on HP-UX the gcc test will end up
5002 # making a dummy file named 'D' -- because '-MD' means "put the output
5003 # in D".
5004 rm -rf conftest.dir
5005 mkdir conftest.dir
5006 # Copy depcomp to subdir because otherwise we won't find it if we're
5007 # using a relative directory.
5008 cp "$am_depcomp" conftest.dir
5009 cd conftest.dir
5010 # We will build objects and dependencies in a subdirectory because
5011 # it helps to detect inapplicable dependency modes. For instance
5012 # both Tru64's cc and ICC support -MD to output dependencies as a
5013 # side effect of compilation, but ICC will put the dependencies in
5014 # the current directory while Tru64 will put them in the object
5015 # directory.
5016 mkdir sub
5017
5018 am_cv_CC_dependencies_compiler_type=none
5019 if test "$am_compiler_list" = ""; then
5020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5021 fi
5022 am__universal=false
5023 case " $depcc " in #(
5024 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5025 esac
5026
5027 for depmode in $am_compiler_list; do
5028 # Setup a source with many dependencies, because some compilers
5029 # like to wrap large dependency lists on column 80 (with \), and
5030 # we should not choose a depcomp mode which is confused by this.
5031 #
5032 # We need to recreate these files for each test, as the compiler may
5033 # overwrite some of them when testing with obscure command lines.
5034 # This happens at least with the AIX C compiler.
5035 : > sub/conftest.c
5036 for i in 1 2 3 4 5 6; do
5037 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5038 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5039 # Solaris 10 /bin/sh.
5040 echo '/* dummy */' > sub/conftst$i.h
5041 done
5042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5043
5044 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5045 # mode. It turns out that the SunPro C++ compiler does not properly
5046 # handle '-M -o', and we need to detect this. Also, some Intel
5047 # versions had trouble with output in subdirs.
5048 am__obj=sub/conftest.${OBJEXT-o}
5049 am__minus_obj="-o $am__obj"
5050 case $depmode in
5051 gcc)
5052 # This depmode causes a compiler race in universal mode.
5053 test "$am__universal" = false || continue
5054 ;;
5055 nosideeffect)
5056 # After this tag, mechanisms are not by side-effect, so they'll
5057 # only be used when explicitly requested.
5058 if test "x$enable_dependency_tracking" = xyes; then
5059 continue
5060 else
5061 break
5062 fi
5063 ;;
5064 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5065 # This compiler won't grok '-c -o', but also, the minuso test has
5066 # not run yet. These depmodes are late enough in the game, and
5067 # so weak that their functioning should not be impacted.
5068 am__obj=conftest.${OBJEXT-o}
5069 am__minus_obj=
5070 ;;
5071 none) break ;;
5072 esac
5073 if depmode=$depmode \
5074 source=sub/conftest.c object=$am__obj \
5075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5076 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5077 >/dev/null 2>conftest.err &&
5078 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5079 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5080 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5081 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5082 # icc doesn't choke on unknown options, it will just issue warnings
5083 # or remarks (even with -Werror). So we grep stderr for any message
5084 # that says an option was ignored or not supported.
5085 # When given -MP, icc 7.0 and 7.1 complain thus:
5086 # icc: Command line warning: ignoring option '-M'; no argument required
5087 # The diagnosis changed in icc 8.0:
5088 # icc: Command line remark: option '-MP' not supported
5089 if (grep 'ignoring option' conftest.err ||
5090 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5091 am_cv_CC_dependencies_compiler_type=$depmode
5092 break
5093 fi
5094 fi
5095 done
5096
5097 cd ..
5098 rm -rf conftest.dir
5099 else
5100 am_cv_CC_dependencies_compiler_type=none
5101 fi
5102 ;;
5103 esac
5104 fi
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5106 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5107 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5108
5109 if
5110 test "x$enable_dependency_tracking" != xno \
5111 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5112 am__fastdepCC_TRUE=
5113 am__fastdepCC_FALSE='#'
5114 else
5115 am__fastdepCC_TRUE='#'
5116 am__fastdepCC_FALSE=
5117 fi
5118
5119
5120
5121 ac_header= ac_cache=
5122 for ac_item in $ac_header_c_list
5123 do
5124 if test $ac_cache; then
5125 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5126 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5127 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5128 fi
5129 ac_header= ac_cache=
5130 elif test $ac_header; then
5131 ac_cache=$ac_item
5132 else
5133 ac_header=$ac_item
5134 fi
5135 done
5136
5137
5138
5139
5140
5141
5142
5143
5144 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5145 then :
5146
5147 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5148
5149 fi
5150
5151
5152
5153
5154
5155
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5157 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5158 if test ${ac_cv_safe_to_define___extensions__+y}
5159 then :
5160 printf %s "(cached) " >&6
5161 else case e in #(
5162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164
5165 # define __EXTENSIONS__ 1
5166 $ac_includes_default
5167 int
5168 main (void)
5169 {
5170
5171 ;
5172 return 0;
5173 }
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"
5176 then :
5177 ac_cv_safe_to_define___extensions__=yes
5178 else case e in #(
5179 e) ac_cv_safe_to_define___extensions__=no ;;
5180 esac
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5183 esac
5184 fi
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5186 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5187
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5189 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5190 if test ${ac_cv_should_define__xopen_source+y}
5191 then :
5192 printf %s "(cached) " >&6
5193 else case e in #(
5194 e) ac_cv_should_define__xopen_source=no
5195 if test $ac_cv_header_wchar_h = yes
5196 then :
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 #include <wchar.h>
5201 mbstate_t x;
5202 int
5203 main (void)
5204 {
5205
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"
5211 then :
5212
5213 else case e in #(
5214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216
5217 #define _XOPEN_SOURCE 500
5218 #include <wchar.h>
5219 mbstate_t x;
5220 int
5221 main (void)
5222 {
5223
5224 ;
5225 return 0;
5226 }
5227 _ACEOF
5228 if ac_fn_c_try_compile "$LINENO"
5229 then :
5230 ac_cv_should_define__xopen_source=yes
5231 fi
5232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5233 esac
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5236 fi ;;
5237 esac
5238 fi
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5240 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5241
5242 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5243
5244 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5245
5246 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5247
5248 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5249
5250 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5251
5252 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5253
5254 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5255
5256 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5257
5258 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5259
5260 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5261
5262 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5263
5264 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5265
5266 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5267
5268 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5269
5270 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5271
5272 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5273
5274 if test $ac_cv_header_minix_config_h = yes
5275 then :
5276 MINIX=yes
5277 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5278
5279 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5280
5281 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5282
5283 else case e in #(
5284 e) MINIX= ;;
5285 esac
5286 fi
5287 if test $ac_cv_safe_to_define___extensions__ = yes
5288 then :
5289 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5290
5291 fi
5292 if test $ac_cv_should_define__xopen_source = yes
5293 then :
5294 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5295
5296 fi
5297
5298 # Check whether --enable-compiler-warnings was given.
5299 if test ${enable_compiler_warnings+y}
5300 then :
5301 enableval=$enable_compiler_warnings;
5302 fi
5303 case $enable_compiler_warnings in #(
5304 no | min | yes | max | all) :
5305 ;; #(
5306 *) :
5307 if test "x$enable_maintainer_mode" = xyes
5308 then :
5309 enable_compiler_warnings=yes
5310 else case e in #(
5311 e) enable_compiler_warnings=min ;;
5312 esac
5313 fi ;;
5314 esac
5315
5316 case `pwd` in
5317 *\ * | *\ *)
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5319 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5320 esac
5321
5322
5323
5324 macro_version='2.5.4'
5325 macro_revision='2.5.4'
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340 ltmain=$ac_aux_dir/ltmain.sh
5341
5342
5343
5344 # Make sure we can run config.sub.
5345 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5346 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5347
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5349 printf %s "checking build system type... " >&6; }
5350 if test ${ac_cv_build+y}
5351 then :
5352 printf %s "(cached) " >&6
5353 else case e in #(
5354 e) ac_build_alias=$build_alias
5355 test "x$ac_build_alias" = x &&
5356 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5357 test "x$ac_build_alias" = x &&
5358 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5359 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5360 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5361 ;;
5362 esac
5363 fi
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5365 printf "%s\n" "$ac_cv_build" >&6; }
5366 case $ac_cv_build in
5367 *-*-*) ;;
5368 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5369 esac
5370 build=$ac_cv_build
5371 ac_save_IFS=$IFS; IFS='-'
5372 set x $ac_cv_build
5373 shift
5374 build_cpu=$1
5375 build_vendor=$2
5376 shift; shift
5377 # Remember, the first character of IFS is used to create $*,
5378 # except with old shells:
5379 build_os=$*
5380 IFS=$ac_save_IFS
5381 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5382
5383
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5385 printf %s "checking host system type... " >&6; }
5386 if test ${ac_cv_host+y}
5387 then :
5388 printf %s "(cached) " >&6
5389 else case e in #(
5390 e) if test "x$host_alias" = x; then
5391 ac_cv_host=$ac_cv_build
5392 else
5393 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5394 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5395 fi
5396 ;;
5397 esac
5398 fi
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5400 printf "%s\n" "$ac_cv_host" >&6; }
5401 case $ac_cv_host in
5402 *-*-*) ;;
5403 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5404 esac
5405 host=$ac_cv_host
5406 ac_save_IFS=$IFS; IFS='-'
5407 set x $ac_cv_host
5408 shift
5409 host_cpu=$1
5410 host_vendor=$2
5411 shift; shift
5412 # Remember, the first character of IFS is used to create $*,
5413 # except with old shells:
5414 host_os=$*
5415 IFS=$ac_save_IFS
5416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5417
5418
5419 # Backslashify metacharacters that are still active within
5420 # double-quoted strings.
5421 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5422
5423 # Same as above, but do not quote variable references.
5424 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5425
5426 # Sed substitution to delay expansion of an escaped shell variable in a
5427 # double_quote_subst'ed string.
5428 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5429
5430 # Sed substitution to delay expansion of an escaped single quote.
5431 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5432
5433 # Sed substitution to avoid accidental globbing in evaled expressions
5434 no_glob_subst='s/\*/\\\*/g'
5435
5436 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5438 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5439
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5441 printf %s "checking how to print strings... " >&6; }
5442 # Test print first, because it will be a builtin if present.
5443 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5444 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5445 ECHO='print -r --'
5446 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5447 ECHO='printf %s\n'
5448 else
5449 # Use this function as a fallback that always works.
5450 func_fallback_echo ()
5451 {
5452 eval 'cat <<_LTECHO_EOF
5453 $1
5454 _LTECHO_EOF'
5455 }
5456 ECHO='func_fallback_echo'
5457 fi
5458
5459 # func_echo_all arg...
5460 # Invoke $ECHO with all args, space-separated.
5461 func_echo_all ()
5462 {
5463 $ECHO ""
5464 }
5465
5466 case $ECHO in
5467 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5468 printf "%s\n" "printf" >&6; } ;;
5469 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5470 printf "%s\n" "print -r" >&6; } ;;
5471 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5472 printf "%s\n" "cat" >&6; } ;;
5473 esac
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5489 printf %s "checking for a sed that does not truncate output... " >&6; }
5490 if test ${ac_cv_path_SED+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else case e in #(
5494 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5495 for ac_i in 1 2 3 4 5 6 7; do
5496 ac_script="$ac_script$as_nl$ac_script"
5497 done
5498 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5499 { ac_script=; unset ac_script;}
5500 if test -z "$SED"; then
5501 ac_path_SED_found=false
5502 # Loop through the user's path and test for each of PROGNAME-LIST
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506 IFS=$as_save_IFS
5507 case $as_dir in #(((
5508 '') as_dir=./ ;;
5509 */) ;;
5510 *) as_dir=$as_dir/ ;;
5511 esac
5512 for ac_prog in sed gsed
5513 do
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5516 as_fn_executable_p "$ac_path_SED" || continue
5517 # Check for GNU ac_path_SED and select it if it is found.
5518 # Check for GNU $ac_path_SED
5519 case `"$ac_path_SED" --version 2>&1` in #(
5520 *GNU*)
5521 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5522 #(
5523 *)
5524 ac_count=0
5525 printf %s 0123456789 >"conftest.in"
5526 while :
5527 do
5528 cat "conftest.in" "conftest.in" >"conftest.tmp"
5529 mv "conftest.tmp" "conftest.in"
5530 cp "conftest.in" "conftest.nl"
5531 printf "%s\n" '' >> "conftest.nl"
5532 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5534 as_fn_arith $ac_count + 1 && ac_count=$as_val
5535 if test $ac_count -gt ${ac_path_SED_max-0}; then
5536 # Best one so far, save it but keep looking for a better one
5537 ac_cv_path_SED="$ac_path_SED"
5538 ac_path_SED_max=$ac_count
5539 fi
5540 # 10*(2^10) chars as input seems more than enough
5541 test $ac_count -gt 10 && break
5542 done
5543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5544 esac
5545
5546 $ac_path_SED_found && break 3
5547 done
5548 done
5549 done
5550 IFS=$as_save_IFS
5551 if test -z "$ac_cv_path_SED"; then
5552 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5553 fi
5554 else
5555 ac_cv_path_SED=$SED
5556 fi
5557 ;;
5558 esac
5559 fi
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5561 printf "%s\n" "$ac_cv_path_SED" >&6; }
5562 SED="$ac_cv_path_SED"
5563 rm -f conftest.sed
5564
5565 test -z "$SED" && SED=sed
5566 Xsed="$SED -e 1s/^X//"
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5579 printf %s "checking for grep that handles long lines and -e... " >&6; }
5580 if test ${ac_cv_path_GREP+y}
5581 then :
5582 printf %s "(cached) " >&6
5583 else case e in #(
5584 e) if test -z "$GREP"; then
5585 ac_path_GREP_found=false
5586 # Loop through the user's path and test for each of PROGNAME-LIST
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5589 do
5590 IFS=$as_save_IFS
5591 case $as_dir in #(((
5592 '') as_dir=./ ;;
5593 */) ;;
5594 *) as_dir=$as_dir/ ;;
5595 esac
5596 for ac_prog in grep ggrep
5597 do
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5600 as_fn_executable_p "$ac_path_GREP" || continue
5601 # Check for GNU ac_path_GREP and select it if it is found.
5602 # Check for GNU $ac_path_GREP
5603 case `"$ac_path_GREP" --version 2>&1` in #(
5604 *GNU*)
5605 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5606 #(
5607 *)
5608 ac_count=0
5609 printf %s 0123456789 >"conftest.in"
5610 while :
5611 do
5612 cat "conftest.in" "conftest.in" >"conftest.tmp"
5613 mv "conftest.tmp" "conftest.in"
5614 cp "conftest.in" "conftest.nl"
5615 printf "%s\n" 'GREP' >> "conftest.nl"
5616 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5618 as_fn_arith $ac_count + 1 && ac_count=$as_val
5619 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5620 # Best one so far, save it but keep looking for a better one
5621 ac_cv_path_GREP="$ac_path_GREP"
5622 ac_path_GREP_max=$ac_count
5623 fi
5624 # 10*(2^10) chars as input seems more than enough
5625 test $ac_count -gt 10 && break
5626 done
5627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5628 esac
5629
5630 $ac_path_GREP_found && break 3
5631 done
5632 done
5633 done
5634 IFS=$as_save_IFS
5635 if test -z "$ac_cv_path_GREP"; then
5636 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5637 fi
5638 else
5639 ac_cv_path_GREP=$GREP
5640 fi
5641 ;;
5642 esac
5643 fi
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5645 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5646 GREP="$ac_cv_path_GREP"
5647
5648
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5650 printf %s "checking for egrep... " >&6; }
5651 if test ${ac_cv_path_EGREP+y}
5652 then :
5653 printf %s "(cached) " >&6
5654 else case e in #(
5655 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5656 then ac_cv_path_EGREP="$GREP -E"
5657 else
5658 if test -z "$EGREP"; then
5659 ac_path_EGREP_found=false
5660 # Loop through the user's path and test for each of PROGNAME-LIST
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5663 do
5664 IFS=$as_save_IFS
5665 case $as_dir in #(((
5666 '') as_dir=./ ;;
5667 */) ;;
5668 *) as_dir=$as_dir/ ;;
5669 esac
5670 for ac_prog in egrep
5671 do
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5674 as_fn_executable_p "$ac_path_EGREP" || continue
5675 # Check for GNU ac_path_EGREP and select it if it is found.
5676 # Check for GNU $ac_path_EGREP
5677 case `"$ac_path_EGREP" --version 2>&1` in #(
5678 *GNU*)
5679 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5680 #(
5681 *)
5682 ac_count=0
5683 printf %s 0123456789 >"conftest.in"
5684 while :
5685 do
5686 cat "conftest.in" "conftest.in" >"conftest.tmp"
5687 mv "conftest.tmp" "conftest.in"
5688 cp "conftest.in" "conftest.nl"
5689 printf "%s\n" 'EGREP' >> "conftest.nl"
5690 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5692 as_fn_arith $ac_count + 1 && ac_count=$as_val
5693 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5694 # Best one so far, save it but keep looking for a better one
5695 ac_cv_path_EGREP="$ac_path_EGREP"
5696 ac_path_EGREP_max=$ac_count
5697 fi
5698 # 10*(2^10) chars as input seems more than enough
5699 test $ac_count -gt 10 && break
5700 done
5701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5702 esac
5703
5704 $ac_path_EGREP_found && break 3
5705 done
5706 done
5707 done
5708 IFS=$as_save_IFS
5709 if test -z "$ac_cv_path_EGREP"; then
5710 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5711 fi
5712 else
5713 ac_cv_path_EGREP=$EGREP
5714 fi
5715
5716 fi ;;
5717 esac
5718 fi
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5720 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5721 EGREP="$ac_cv_path_EGREP"
5722
5723 EGREP_TRADITIONAL=$EGREP
5724 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5725
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5727 printf %s "checking for fgrep... " >&6; }
5728 if test ${ac_cv_path_FGREP+y}
5729 then :
5730 printf %s "(cached) " >&6
5731 else case e in #(
5732 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5733 then ac_cv_path_FGREP="$GREP -F"
5734 else
5735 if test -z "$FGREP"; then
5736 ac_path_FGREP_found=false
5737 # Loop through the user's path and test for each of PROGNAME-LIST
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5740 do
5741 IFS=$as_save_IFS
5742 case $as_dir in #(((
5743 '') as_dir=./ ;;
5744 */) ;;
5745 *) as_dir=$as_dir/ ;;
5746 esac
5747 for ac_prog in fgrep
5748 do
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5751 as_fn_executable_p "$ac_path_FGREP" || continue
5752 # Check for GNU ac_path_FGREP and select it if it is found.
5753 # Check for GNU $ac_path_FGREP
5754 case `"$ac_path_FGREP" --version 2>&1` in #(
5755 *GNU*)
5756 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5757 #(
5758 *)
5759 ac_count=0
5760 printf %s 0123456789 >"conftest.in"
5761 while :
5762 do
5763 cat "conftest.in" "conftest.in" >"conftest.tmp"
5764 mv "conftest.tmp" "conftest.in"
5765 cp "conftest.in" "conftest.nl"
5766 printf "%s\n" 'FGREP' >> "conftest.nl"
5767 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5769 as_fn_arith $ac_count + 1 && ac_count=$as_val
5770 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5771 # Best one so far, save it but keep looking for a better one
5772 ac_cv_path_FGREP="$ac_path_FGREP"
5773 ac_path_FGREP_max=$ac_count
5774 fi
5775 # 10*(2^10) chars as input seems more than enough
5776 test $ac_count -gt 10 && break
5777 done
5778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5779 esac
5780
5781 $ac_path_FGREP_found && break 3
5782 done
5783 done
5784 done
5785 IFS=$as_save_IFS
5786 if test -z "$ac_cv_path_FGREP"; then
5787 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5788 fi
5789 else
5790 ac_cv_path_FGREP=$FGREP
5791 fi
5792
5793 fi ;;
5794 esac
5795 fi
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5797 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5798 FGREP="$ac_cv_path_FGREP"
5799
5800
5801 test -z "$GREP" && GREP=grep
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 # Check whether --with-gnu-ld was given.
5822 if test ${with_gnu_ld+y}
5823 then :
5824 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5825 else case e in #(
5826 e) with_gnu_ld=no ;;
5827 esac
5828 fi
5829
5830 ac_prog=ld
5831 if test yes = "$GCC"; then
5832 # Check if gcc -print-prog-name=ld gives a path.
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5834 printf %s "checking for ld used by $CC... " >&6; }
5835 case $host in
5836 *-*-mingw* | *-*-windows*)
5837 # gcc leaves a trailing carriage return, which upsets mingw
5838 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5839 *)
5840 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5841 esac
5842 case $ac_prog in
5843 # Accept absolute paths.
5844 [\\/]* | ?:[\\/]*)
5845 re_direlt='/[^/][^/]*/\.\./'
5846 # Canonicalize the pathname of ld
5847 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5848 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5849 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5850 done
5851 test -z "$LD" && LD=$ac_prog
5852 ;;
5853 "")
5854 # If it fails, then pretend we aren't using GCC.
5855 ac_prog=ld
5856 ;;
5857 *)
5858 # If it is relative, then search for the first ld in PATH.
5859 with_gnu_ld=unknown
5860 ;;
5861 esac
5862 elif test yes = "$with_gnu_ld"; then
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5864 printf %s "checking for GNU ld... " >&6; }
5865 else
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5867 printf %s "checking for non-GNU ld... " >&6; }
5868 fi
5869 if test ${lt_cv_path_LD+y}
5870 then :
5871 printf %s "(cached) " >&6
5872 else case e in #(
5873 e) if test -z "$LD"; then
5874 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5875 for ac_dir in $PATH; do
5876 IFS=$lt_save_ifs
5877 test -z "$ac_dir" && ac_dir=.
5878 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5879 lt_cv_path_LD=$ac_dir/$ac_prog
5880 # Check to see if the program is GNU ld. I'd rather use --version,
5881 # but apparently some variants of GNU ld only accept -v.
5882 # Break only if it was the GNU/non-GNU ld that we prefer.
5883 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5884 *GNU* | *'with BFD'*)
5885 test no != "$with_gnu_ld" && break
5886 ;;
5887 *)
5888 test yes != "$with_gnu_ld" && break
5889 ;;
5890 esac
5891 fi
5892 done
5893 IFS=$lt_save_ifs
5894 else
5895 lt_cv_path_LD=$LD # Let the user override the test with a path.
5896 fi ;;
5897 esac
5898 fi
5899
5900 LD=$lt_cv_path_LD
5901 if test -n "$LD"; then
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5903 printf "%s\n" "$LD" >&6; }
5904 else
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 printf "%s\n" "no" >&6; }
5907 fi
5908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5910 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5911 if test ${lt_cv_prog_gnu_ld+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else case e in #(
5915 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5916 case `$LD -v 2>&1 </dev/null` in
5917 *GNU* | *'with BFD'*)
5918 lt_cv_prog_gnu_ld=yes
5919 ;;
5920 *)
5921 lt_cv_prog_gnu_ld=no
5922 ;;
5923 esac ;;
5924 esac
5925 fi
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5927 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5928 with_gnu_ld=$lt_cv_prog_gnu_ld
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5939 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5940 if test ${lt_cv_path_NM+y}
5941 then :
5942 printf %s "(cached) " >&6
5943 else case e in #(
5944 e) if test -n "$NM"; then
5945 # Let the user override the test.
5946 lt_cv_path_NM=$NM
5947 else
5948 lt_nm_to_check=${ac_tool_prefix}nm
5949 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5950 lt_nm_to_check="$lt_nm_to_check nm"
5951 fi
5952 for lt_tmp_nm in $lt_nm_to_check; do
5953 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5954 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5955 IFS=$lt_save_ifs
5956 test -z "$ac_dir" && ac_dir=.
5957 tmp_nm=$ac_dir/$lt_tmp_nm
5958 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5959 # Check to see if the nm accepts a BSD-compat flag.
5960 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5961 # nm: unknown option "B" ignored
5962 # Tru64's nm complains that /dev/null is an invalid object file
5963 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5964 case $build_os in
5965 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5966 *) lt_bad_file=/dev/null ;;
5967 esac
5968 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5969 *$lt_bad_file* | *'Invalid file or object type'*)
5970 lt_cv_path_NM="$tmp_nm -B"
5971 break 2
5972 ;;
5973 *)
5974 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5975 */dev/null*)
5976 lt_cv_path_NM="$tmp_nm -p"
5977 break 2
5978 ;;
5979 *)
5980 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5981 continue # so that we can try to find one that supports BSD flags
5982 ;;
5983 esac
5984 ;;
5985 esac
5986 fi
5987 done
5988 IFS=$lt_save_ifs
5989 done
5990 : ${lt_cv_path_NM=no}
5991 fi ;;
5992 esac
5993 fi
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5995 printf "%s\n" "$lt_cv_path_NM" >&6; }
5996 if test no != "$lt_cv_path_NM"; then
5997 NM=$lt_cv_path_NM
5998 else
5999 # Didn't find any BSD compatible name lister, look for dumpbin.
6000 if test -n "$DUMPBIN"; then :
6001 # Let the user override the test.
6002 else
6003 if test -n "$ac_tool_prefix"; then
6004 for ac_prog in dumpbin "link -dump"
6005 do
6006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 printf %s "checking for $ac_word... " >&6; }
6010 if test ${ac_cv_prog_DUMPBIN+y}
6011 then :
6012 printf %s "(cached) " >&6
6013 else case e in #(
6014 e) if test -n "$DUMPBIN"; then
6015 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020 IFS=$as_save_IFS
6021 case $as_dir in #(((
6022 '') as_dir=./ ;;
6023 */) ;;
6024 *) as_dir=$as_dir/ ;;
6025 esac
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036 fi ;;
6037 esac
6038 fi
6039 DUMPBIN=$ac_cv_prog_DUMPBIN
6040 if test -n "$DUMPBIN"; then
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6042 printf "%s\n" "$DUMPBIN" >&6; }
6043 else
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 printf "%s\n" "no" >&6; }
6046 fi
6047
6048
6049 test -n "$DUMPBIN" && break
6050 done
6051 fi
6052 if test -z "$DUMPBIN"; then
6053 ac_ct_DUMPBIN=$DUMPBIN
6054 for ac_prog in dumpbin "link -dump"
6055 do
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 printf %s "checking for $ac_word... " >&6; }
6060 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6061 then :
6062 printf %s "(cached) " >&6
6063 else case e in #(
6064 e) if test -n "$ac_ct_DUMPBIN"; then
6065 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070 IFS=$as_save_IFS
6071 case $as_dir in #(((
6072 '') as_dir=./ ;;
6073 */) ;;
6074 *) as_dir=$as_dir/ ;;
6075 esac
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082 done
6083 done
6084 IFS=$as_save_IFS
6085
6086 fi ;;
6087 esac
6088 fi
6089 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6090 if test -n "$ac_ct_DUMPBIN"; then
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6092 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6093 else
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 printf "%s\n" "no" >&6; }
6096 fi
6097
6098
6099 test -n "$ac_ct_DUMPBIN" && break
6100 done
6101
6102 if test "x$ac_ct_DUMPBIN" = x; then
6103 DUMPBIN=":"
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106 yes:)
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111 DUMPBIN=$ac_ct_DUMPBIN
6112 fi
6113 fi
6114
6115 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6116 *COFF*)
6117 DUMPBIN="$DUMPBIN -symbols -headers"
6118 ;;
6119 *)
6120 DUMPBIN=:
6121 ;;
6122 esac
6123 fi
6124
6125 if test : != "$DUMPBIN"; then
6126 NM=$DUMPBIN
6127 fi
6128 fi
6129 test -z "$NM" && NM=nm
6130
6131
6132
6133
6134
6135
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6137 printf %s "checking the name lister ($NM) interface... " >&6; }
6138 if test ${lt_cv_nm_interface+y}
6139 then :
6140 printf %s "(cached) " >&6
6141 else case e in #(
6142 e) lt_cv_nm_interface="BSD nm"
6143 echo "int some_variable = 0;" > conftest.$ac_ext
6144 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6145 (eval "$ac_compile" 2>conftest.err)
6146 cat conftest.err >&5
6147 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6148 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6149 cat conftest.err >&5
6150 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6151 cat conftest.out >&5
6152 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6153 lt_cv_nm_interface="MS dumpbin"
6154 fi
6155 rm -f conftest* ;;
6156 esac
6157 fi
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6159 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6160
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6162 printf %s "checking whether ln -s works... " >&6; }
6163 LN_S=$as_ln_s
6164 if test "$LN_S" = "ln -s"; then
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6166 printf "%s\n" "yes" >&6; }
6167 else
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6169 printf "%s\n" "no, using $LN_S" >&6; }
6170 fi
6171
6172 # find the maximum length of command line arguments
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6174 printf %s "checking the maximum length of command line arguments... " >&6; }
6175 if test ${lt_cv_sys_max_cmd_len+y}
6176 then :
6177 printf %s "(cached) " >&6
6178 else case e in #(
6179 e) i=0
6180 teststring=ABCD
6181
6182 case $build_os in
6183 msdosdjgpp*)
6184 # On DJGPP, this test can blow up pretty badly due to problems in libc
6185 # (any single argument exceeding 2000 bytes causes a buffer overrun
6186 # during glob expansion). Even if it were fixed, the result of this
6187 # check would be larger than it should be.
6188 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6189 ;;
6190
6191 gnu* | ironclad*)
6192 # Under GNU Hurd and Ironclad, this test is not required because there
6193 # is no limit to the length of command line arguments.
6194 # Libtool will interpret -1 as no limit whatsoever
6195 lt_cv_sys_max_cmd_len=-1;
6196 ;;
6197
6198 cygwin* | mingw* | windows* | cegcc*)
6199 # On Win9x/ME, this test blows up -- it succeeds, but takes
6200 # about 5 minutes as the teststring grows exponentially.
6201 # Worse, since 9x/ME are not pre-emptively multitasking,
6202 # you end up with a "frozen" computer, even though with patience
6203 # the test eventually succeeds (with a max line length of 256k).
6204 # Instead, let's just punt: use the minimum linelength reported by
6205 # all of the supported platforms: 8192 (on NT/2K/XP).
6206 lt_cv_sys_max_cmd_len=8192;
6207 ;;
6208
6209 mint*)
6210 # On MiNT this can take a long time and run out of memory.
6211 lt_cv_sys_max_cmd_len=8192;
6212 ;;
6213
6214 amigaos*)
6215 # On AmigaOS with pdksh, this test takes hours, literally.
6216 # So we just punt and use a minimum line length of 8192.
6217 lt_cv_sys_max_cmd_len=8192;
6218 ;;
6219
6220 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6221 # This has been around since 386BSD, at least. Likely further.
6222 if test -x /sbin/sysctl; then
6223 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6224 elif test -x /usr/sbin/sysctl; then
6225 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6226 else
6227 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6228 fi
6229 # And add a safety zone
6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6232 ;;
6233
6234 interix*)
6235 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6236 lt_cv_sys_max_cmd_len=196608
6237 ;;
6238
6239 os2*)
6240 # The test takes a long time on OS/2.
6241 lt_cv_sys_max_cmd_len=8192
6242 ;;
6243
6244 osf*)
6245 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6246 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6247 # nice to cause kernel panics so lets avoid the loop below.
6248 # First set a reasonable default.
6249 lt_cv_sys_max_cmd_len=16384
6250 #
6251 if test -x /sbin/sysconfig; then
6252 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6253 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6254 esac
6255 fi
6256 ;;
6257 sco3.2v5*)
6258 lt_cv_sys_max_cmd_len=102400
6259 ;;
6260 sysv5* | sco5v6* | sysv4.2uw2*)
6261 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6262 if test -n "$kargmax"; then
6263 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6264 else
6265 lt_cv_sys_max_cmd_len=32768
6266 fi
6267 ;;
6268 *)
6269 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6270 if test -n "$lt_cv_sys_max_cmd_len" && \
6271 test undefined != "$lt_cv_sys_max_cmd_len"; then
6272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6274 else
6275 # Make teststring a little bigger before we do anything with it.
6276 # a 1K string should be a reasonable start.
6277 for i in 1 2 3 4 5 6 7 8; do
6278 teststring=$teststring$teststring
6279 done
6280 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6281 # If test is not a shell built-in, we'll probably end up computing a
6282 # maximum length that is only half of the actual maximum length, but
6283 # we can't tell.
6284 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6285 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6286 test 17 != "$i" # 1/2 MB should be enough
6287 do
6288 i=`expr $i + 1`
6289 teststring=$teststring$teststring
6290 done
6291 # Only check the string length outside the loop.
6292 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6293 teststring=
6294 # Add a significant safety factor because C++ compilers can tack on
6295 # massive amounts of additional arguments before passing them to the
6296 # linker. It appears as though 1/2 is a usable value.
6297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6298 fi
6299 ;;
6300 esac
6301 ;;
6302 esac
6303 fi
6304
6305 if test -n "$lt_cv_sys_max_cmd_len"; then
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6307 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6308 else
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6310 printf "%s\n" "none" >&6; }
6311 fi
6312 max_cmd_len=$lt_cv_sys_max_cmd_len
6313
6314
6315
6316
6317
6318
6319 : ${CP="cp -f"}
6320 : ${MV="mv -f"}
6321 : ${RM="rm -f"}
6322
6323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6324 lt_unset=unset
6325 else
6326 lt_unset=false
6327 fi
6328
6329
6330
6331
6332
6333 # test EBCDIC or ASCII
6334 case `echo X|tr X '\101'` in
6335 A) # ASCII based system
6336 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6337 lt_SP2NL='tr \040 \012'
6338 lt_NL2SP='tr \015\012 \040\040'
6339 ;;
6340 *) # EBCDIC based system
6341 lt_SP2NL='tr \100 \n'
6342 lt_NL2SP='tr \r\n \100\100'
6343 ;;
6344 esac
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6355 printf %s "checking how to convert $build file names to $host format... " >&6; }
6356 if test ${lt_cv_to_host_file_cmd+y}
6357 then :
6358 printf %s "(cached) " >&6
6359 else case e in #(
6360 e) case $host in
6361 *-*-mingw* )
6362 case $build in
6363 *-*-mingw* | *-*-windows* ) # actually msys
6364 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6365 ;;
6366 *-*-cygwin* )
6367 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6368 ;;
6369 * ) # otherwise, assume *nix
6370 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6371 ;;
6372 esac
6373 ;;
6374 *-*-cygwin* )
6375 case $build in
6376 *-*-mingw* | *-*-windows* ) # actually msys
6377 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6378 ;;
6379 *-*-cygwin* )
6380 lt_cv_to_host_file_cmd=func_convert_file_noop
6381 ;;
6382 * ) # otherwise, assume *nix
6383 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6384 ;;
6385 esac
6386 ;;
6387 * ) # unhandled hosts (and "normal" native builds)
6388 lt_cv_to_host_file_cmd=func_convert_file_noop
6389 ;;
6390 esac
6391 ;;
6392 esac
6393 fi
6394
6395 to_host_file_cmd=$lt_cv_to_host_file_cmd
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6397 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6398
6399
6400
6401
6402
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6404 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6405 if test ${lt_cv_to_tool_file_cmd+y}
6406 then :
6407 printf %s "(cached) " >&6
6408 else case e in #(
6409 e) #assume ordinary cross tools, or native build.
6410 lt_cv_to_tool_file_cmd=func_convert_file_noop
6411 case $host in
6412 *-*-mingw* | *-*-windows* )
6413 case $build in
6414 *-*-mingw* | *-*-windows* ) # actually msys
6415 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6416 ;;
6417 esac
6418 ;;
6419 esac
6420 ;;
6421 esac
6422 fi
6423
6424 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6426 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6427
6428
6429
6430
6431
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6433 printf %s "checking for $LD option to reload object files... " >&6; }
6434 if test ${lt_cv_ld_reload_flag+y}
6435 then :
6436 printf %s "(cached) " >&6
6437 else case e in #(
6438 e) lt_cv_ld_reload_flag='-r' ;;
6439 esac
6440 fi
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6442 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6443 reload_flag=$lt_cv_ld_reload_flag
6444 case $reload_flag in
6445 "" | " "*) ;;
6446 *) reload_flag=" $reload_flag" ;;
6447 esac
6448 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6449 case $host_os in
6450 cygwin* | mingw* | windows* | pw32* | cegcc*)
6451 if test yes != "$GCC"; then
6452 reload_cmds=false
6453 fi
6454 ;;
6455 darwin*)
6456 if test yes = "$GCC"; then
6457 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6458 else
6459 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6460 fi
6461 ;;
6462 esac
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 # Extract the first word of "file", so it can be a program name with args.
6473 set dummy file; ac_word=$2
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 printf %s "checking for $ac_word... " >&6; }
6476 if test ${ac_cv_prog_FILECMD+y}
6477 then :
6478 printf %s "(cached) " >&6
6479 else case e in #(
6480 e) if test -n "$FILECMD"; then
6481 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486 IFS=$as_save_IFS
6487 case $as_dir in #(((
6488 '') as_dir=./ ;;
6489 */) ;;
6490 *) as_dir=$as_dir/ ;;
6491 esac
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_FILECMD="file"
6495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6503 fi ;;
6504 esac
6505 fi
6506 FILECMD=$ac_cv_prog_FILECMD
6507 if test -n "$FILECMD"; then
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6509 printf "%s\n" "$FILECMD" >&6; }
6510 else
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 printf "%s\n" "no" >&6; }
6513 fi
6514
6515
6516
6517
6518
6519
6520
6521
6522 if test -n "$ac_tool_prefix"; then
6523 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6524 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 printf %s "checking for $ac_word... " >&6; }
6527 if test ${ac_cv_prog_OBJDUMP+y}
6528 then :
6529 printf %s "(cached) " >&6
6530 else case e in #(
6531 e) if test -n "$OBJDUMP"; then
6532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537 IFS=$as_save_IFS
6538 case $as_dir in #(((
6539 '') as_dir=./ ;;
6540 */) ;;
6541 *) as_dir=$as_dir/ ;;
6542 esac
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi ;;
6554 esac
6555 fi
6556 OBJDUMP=$ac_cv_prog_OBJDUMP
6557 if test -n "$OBJDUMP"; then
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6559 printf "%s\n" "$OBJDUMP" >&6; }
6560 else
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 printf "%s\n" "no" >&6; }
6563 fi
6564
6565
6566 fi
6567 if test -z "$ac_cv_prog_OBJDUMP"; then
6568 ac_ct_OBJDUMP=$OBJDUMP
6569 # Extract the first word of "objdump", so it can be a program name with args.
6570 set dummy objdump; ac_word=$2
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 printf %s "checking for $ac_word... " >&6; }
6573 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6574 then :
6575 printf %s "(cached) " >&6
6576 else case e in #(
6577 e) if test -n "$ac_ct_OBJDUMP"; then
6578 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583 IFS=$as_save_IFS
6584 case $as_dir in #(((
6585 '') as_dir=./ ;;
6586 */) ;;
6587 *) as_dir=$as_dir/ ;;
6588 esac
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6591 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 fi ;;
6600 esac
6601 fi
6602 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6603 if test -n "$ac_ct_OBJDUMP"; then
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6605 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6606 else
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 printf "%s\n" "no" >&6; }
6609 fi
6610
6611 if test "x$ac_ct_OBJDUMP" = x; then
6612 OBJDUMP="false"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 OBJDUMP=$ac_ct_OBJDUMP
6621 fi
6622 else
6623 OBJDUMP="$ac_cv_prog_OBJDUMP"
6624 fi
6625
6626 test -z "$OBJDUMP" && OBJDUMP=objdump
6627
6628
6629
6630
6631
6632
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6634 printf %s "checking how to recognize dependent libraries... " >&6; }
6635 if test ${lt_cv_deplibs_check_method+y}
6636 then :
6637 printf %s "(cached) " >&6
6638 else case e in #(
6639 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6640 lt_cv_file_magic_test_file=
6641 lt_cv_deplibs_check_method='unknown'
6642 # Need to set the preceding variable on all platforms that support
6643 # interlibrary dependencies.
6644 # 'none' -- dependencies not supported.
6645 # 'unknown' -- same as none, but documents that we really don't know.
6646 # 'pass_all' -- all dependencies passed with no checks.
6647 # 'file_magic [[regex]]' -- check by looking for files in library path
6648 # that responds to the $file_magic_cmd with a given extended regex.
6649 # If you have 'file' or equivalent on your system and you're not sure
6650 # whether 'pass_all' will *always* work, you probably want this one.
6651
6652 case $host_os in
6653 aix[4-9]*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657 beos*)
6658 lt_cv_deplibs_check_method=pass_all
6659 ;;
6660
6661 bsdi[45]*)
6662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6663 lt_cv_file_magic_cmd='$FILECMD -L'
6664 lt_cv_file_magic_test_file=/shlib/libc.so
6665 ;;
6666
6667 cygwin*)
6668 # func_win32_libid is a shell function defined in ltmain.sh
6669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6670 lt_cv_file_magic_cmd='func_win32_libid'
6671 ;;
6672
6673 mingw* | windows* | pw32*)
6674 # Base MSYS/MinGW do not provide the 'file' command needed by
6675 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6676 # unless we find 'file', for example because we are cross-compiling.
6677 if ( file / ) >/dev/null 2>&1; then
6678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6679 lt_cv_file_magic_cmd='func_win32_libid'
6680 else
6681 # Keep this pattern in sync with the one in func_win32_libid.
6682 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6683 lt_cv_file_magic_cmd='$OBJDUMP -f'
6684 fi
6685 ;;
6686
6687 cegcc*)
6688 # use the weaker test based on 'objdump'. See mingw*.
6689 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6690 lt_cv_file_magic_cmd='$OBJDUMP -f'
6691 ;;
6692
6693 darwin* | rhapsody*)
6694 lt_cv_deplibs_check_method=pass_all
6695 ;;
6696
6697 freebsd* | dragonfly* | midnightbsd*)
6698 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6699 case $host_cpu in
6700 i*86 )
6701 # Not sure whether the presence of OpenBSD here was a mistake.
6702 # Let's accept both of them until this is cleared up.
6703 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6704 lt_cv_file_magic_cmd=$FILECMD
6705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6706 ;;
6707 esac
6708 else
6709 lt_cv_deplibs_check_method=pass_all
6710 fi
6711 ;;
6712
6713 haiku*)
6714 lt_cv_deplibs_check_method=pass_all
6715 ;;
6716
6717 hpux10.20* | hpux11*)
6718 lt_cv_file_magic_cmd=$FILECMD
6719 case $host_cpu in
6720 ia64*)
6721 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6722 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6723 ;;
6724 hppa*64*)
6725 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]'
6726 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6727 ;;
6728 *)
6729 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6730 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6731 ;;
6732 esac
6733 ;;
6734
6735 interix[3-9]*)
6736 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6738 ;;
6739
6740 irix5* | irix6* | nonstopux*)
6741 case $LD in
6742 *-32|*"-32 ") libmagic=32-bit;;
6743 *-n32|*"-n32 ") libmagic=N32;;
6744 *-64|*"-64 ") libmagic=64-bit;;
6745 *) libmagic=never-match;;
6746 esac
6747 lt_cv_deplibs_check_method=pass_all
6748 ;;
6749
6750 # This must be glibc/ELF.
6751 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754
6755 *-mlibc)
6756 lt_cv_deplibs_check_method=pass_all
6757 ;;
6758
6759 netbsd* | netbsdelf*-gnu)
6760 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6762 else
6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6764 fi
6765 ;;
6766
6767 newos6*)
6768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6769 lt_cv_file_magic_cmd=$FILECMD
6770 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6771 ;;
6772
6773 *nto* | *qnx*)
6774 lt_cv_deplibs_check_method=pass_all
6775 ;;
6776
6777 openbsd*)
6778 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6780 else
6781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6782 fi
6783 ;;
6784
6785 osf3* | osf4* | osf5*)
6786 lt_cv_deplibs_check_method=pass_all
6787 ;;
6788
6789 rdos*)
6790 lt_cv_deplibs_check_method=pass_all
6791 ;;
6792
6793 serenity*)
6794 lt_cv_deplibs_check_method=pass_all
6795 ;;
6796
6797 solaris*)
6798 lt_cv_deplibs_check_method=pass_all
6799 ;;
6800
6801 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6802 lt_cv_deplibs_check_method=pass_all
6803 ;;
6804
6805 sysv4 | sysv4.3*)
6806 case $host_vendor in
6807 motorola)
6808 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]'
6809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6810 ;;
6811 ncr)
6812 lt_cv_deplibs_check_method=pass_all
6813 ;;
6814 sequent)
6815 lt_cv_file_magic_cmd='/bin/file'
6816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6817 ;;
6818 sni)
6819 lt_cv_file_magic_cmd='/bin/file'
6820 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6821 lt_cv_file_magic_test_file=/lib/libc.so
6822 ;;
6823 siemens)
6824 lt_cv_deplibs_check_method=pass_all
6825 ;;
6826 pc)
6827 lt_cv_deplibs_check_method=pass_all
6828 ;;
6829 esac
6830 ;;
6831
6832 tpf*)
6833 lt_cv_deplibs_check_method=pass_all
6834 ;;
6835 os2*)
6836 lt_cv_deplibs_check_method=pass_all
6837 ;;
6838 esac
6839 ;;
6840 esac
6841 fi
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6843 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6844
6845 file_magic_glob=
6846 want_nocaseglob=no
6847 if test "$build" = "$host"; then
6848 case $host_os in
6849 mingw* | windows* | pw32*)
6850 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6851 want_nocaseglob=yes
6852 else
6853 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6854 fi
6855 ;;
6856 esac
6857 fi
6858
6859 file_magic_cmd=$lt_cv_file_magic_cmd
6860 deplibs_check_method=$lt_cv_deplibs_check_method
6861 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884 if test -n "$ac_tool_prefix"; then
6885 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6886 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 printf %s "checking for $ac_word... " >&6; }
6889 if test ${ac_cv_prog_DLLTOOL+y}
6890 then :
6891 printf %s "(cached) " >&6
6892 else case e in #(
6893 e) if test -n "$DLLTOOL"; then
6894 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899 IFS=$as_save_IFS
6900 case $as_dir in #(((
6901 '') as_dir=./ ;;
6902 */) ;;
6903 *) as_dir=$as_dir/ ;;
6904 esac
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915 fi ;;
6916 esac
6917 fi
6918 DLLTOOL=$ac_cv_prog_DLLTOOL
6919 if test -n "$DLLTOOL"; then
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6921 printf "%s\n" "$DLLTOOL" >&6; }
6922 else
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 printf "%s\n" "no" >&6; }
6925 fi
6926
6927
6928 fi
6929 if test -z "$ac_cv_prog_DLLTOOL"; then
6930 ac_ct_DLLTOOL=$DLLTOOL
6931 # Extract the first word of "dlltool", so it can be a program name with args.
6932 set dummy dlltool; ac_word=$2
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 printf %s "checking for $ac_word... " >&6; }
6935 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6936 then :
6937 printf %s "(cached) " >&6
6938 else case e in #(
6939 e) if test -n "$ac_ct_DLLTOOL"; then
6940 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 case $as_dir in #(((
6947 '') as_dir=./ ;;
6948 */) ;;
6949 *) as_dir=$as_dir/ ;;
6950 esac
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 fi ;;
6962 esac
6963 fi
6964 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6965 if test -n "$ac_ct_DLLTOOL"; then
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6967 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6968 else
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 printf "%s\n" "no" >&6; }
6971 fi
6972
6973 if test "x$ac_ct_DLLTOOL" = x; then
6974 DLLTOOL="false"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 DLLTOOL=$ac_ct_DLLTOOL
6983 fi
6984 else
6985 DLLTOOL="$ac_cv_prog_DLLTOOL"
6986 fi
6987
6988 test -z "$DLLTOOL" && DLLTOOL=dlltool
6989
6990
6991
6992
6993
6994
6995
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6997 printf %s "checking how to associate runtime and link libraries... " >&6; }
6998 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6999 then :
7000 printf %s "(cached) " >&6
7001 else case e in #(
7002 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7003
7004 case $host_os in
7005 cygwin* | mingw* | windows* | pw32* | cegcc*)
7006 # two different shell functions defined in ltmain.sh;
7007 # decide which one to use based on capabilities of $DLLTOOL
7008 case `$DLLTOOL --help 2>&1` in
7009 *--identify-strict*)
7010 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7011 ;;
7012 *)
7013 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7014 ;;
7015 esac
7016 ;;
7017 *)
7018 # fallback: assume linklib IS sharedlib
7019 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7020 ;;
7021 esac
7022 ;;
7023 esac
7024 fi
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7026 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7027 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7028 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7029
7030
7031
7032
7033
7034
7035
7036 if test -n "$ac_tool_prefix"; then
7037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 printf %s "checking for $ac_word... " >&6; }
7041 if test ${ac_cv_prog_RANLIB+y}
7042 then :
7043 printf %s "(cached) " >&6
7044 else case e in #(
7045 e) if test -n "$RANLIB"; then
7046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051 IFS=$as_save_IFS
7052 case $as_dir in #(((
7053 '') as_dir=./ ;;
7054 */) ;;
7055 *) as_dir=$as_dir/ ;;
7056 esac
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067 fi ;;
7068 esac
7069 fi
7070 RANLIB=$ac_cv_prog_RANLIB
7071 if test -n "$RANLIB"; then
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7073 printf "%s\n" "$RANLIB" >&6; }
7074 else
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 printf "%s\n" "no" >&6; }
7077 fi
7078
7079
7080 fi
7081 if test -z "$ac_cv_prog_RANLIB"; then
7082 ac_ct_RANLIB=$RANLIB
7083 # Extract the first word of "ranlib", so it can be a program name with args.
7084 set dummy ranlib; ac_word=$2
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 printf %s "checking for $ac_word... " >&6; }
7087 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else case e in #(
7091 e) if test -n "$ac_ct_RANLIB"; then
7092 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097 IFS=$as_save_IFS
7098 case $as_dir in #(((
7099 '') as_dir=./ ;;
7100 */) ;;
7101 *) as_dir=$as_dir/ ;;
7102 esac
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_RANLIB="ranlib"
7106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi ;;
7114 esac
7115 fi
7116 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7117 if test -n "$ac_ct_RANLIB"; then
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7119 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7120 else
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 printf "%s\n" "no" >&6; }
7123 fi
7124
7125 if test "x$ac_ct_RANLIB" = x; then
7126 RANLIB=":"
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134 RANLIB=$ac_ct_RANLIB
7135 fi
7136 else
7137 RANLIB="$ac_cv_prog_RANLIB"
7138 fi
7139
7140 if test -n "$ac_tool_prefix"; then
7141 for ac_prog in ar
7142 do
7143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 printf %s "checking for $ac_word... " >&6; }
7147 if test ${ac_cv_prog_AR+y}
7148 then :
7149 printf %s "(cached) " >&6
7150 else case e in #(
7151 e) if test -n "$AR"; then
7152 ac_cv_prog_AR="$AR" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157 IFS=$as_save_IFS
7158 case $as_dir in #(((
7159 '') as_dir=./ ;;
7160 */) ;;
7161 *) as_dir=$as_dir/ ;;
7162 esac
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173 fi ;;
7174 esac
7175 fi
7176 AR=$ac_cv_prog_AR
7177 if test -n "$AR"; then
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7179 printf "%s\n" "$AR" >&6; }
7180 else
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 printf "%s\n" "no" >&6; }
7183 fi
7184
7185
7186 test -n "$AR" && break
7187 done
7188 fi
7189 if test -z "$AR"; then
7190 ac_ct_AR=$AR
7191 for ac_prog in ar
7192 do
7193 # Extract the first word of "$ac_prog", so it can be a program name with args.
7194 set dummy $ac_prog; ac_word=$2
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 printf %s "checking for $ac_word... " >&6; }
7197 if test ${ac_cv_prog_ac_ct_AR+y}
7198 then :
7199 printf %s "(cached) " >&6
7200 else case e in #(
7201 e) if test -n "$ac_ct_AR"; then
7202 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207 IFS=$as_save_IFS
7208 case $as_dir in #(((
7209 '') as_dir=./ ;;
7210 */) ;;
7211 *) as_dir=$as_dir/ ;;
7212 esac
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_ac_ct_AR="$ac_prog"
7216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219 done
7220 done
7221 IFS=$as_save_IFS
7222
7223 fi ;;
7224 esac
7225 fi
7226 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7227 if test -n "$ac_ct_AR"; then
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7229 printf "%s\n" "$ac_ct_AR" >&6; }
7230 else
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 printf "%s\n" "no" >&6; }
7233 fi
7234
7235
7236 test -n "$ac_ct_AR" && break
7237 done
7238
7239 if test "x$ac_ct_AR" = x; then
7240 AR="false"
7241 else
7242 case $cross_compiling:$ac_tool_warned in
7243 yes:)
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7245 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7246 ac_tool_warned=yes ;;
7247 esac
7248 AR=$ac_ct_AR
7249 fi
7250 fi
7251
7252 : ${AR=ar}
7253
7254
7255
7256
7257
7258
7259 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7260 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7261 # higher priority because that's what people were doing historically (setting
7262 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7263 # variable obsoleted/removed.
7264
7265 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7266 lt_ar_flags=$AR_FLAGS
7267
7268
7269
7270
7271
7272
7273 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7274 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7275
7276
7277
7278
7279
7280
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7282 printf %s "checking for archiver @FILE support... " >&6; }
7283 if test ${lt_cv_ar_at_file+y}
7284 then :
7285 printf %s "(cached) " >&6
7286 else case e in #(
7287 e) lt_cv_ar_at_file=no
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290
7291 int
7292 main (void)
7293 {
7294
7295 ;
7296 return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"
7300 then :
7301 echo conftest.$ac_objext > conftest.lst
7302 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7304 (eval $lt_ar_try) 2>&5
7305 ac_status=$?
7306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7307 test $ac_status = 0; }
7308 if test 0 -eq "$ac_status"; then
7309 # Ensure the archiver fails upon bogus file names.
7310 rm -f conftest.$ac_objext libconftest.a
7311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7312 (eval $lt_ar_try) 2>&5
7313 ac_status=$?
7314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315 test $ac_status = 0; }
7316 if test 0 -ne "$ac_status"; then
7317 lt_cv_ar_at_file=@
7318 fi
7319 fi
7320 rm -f conftest.* libconftest.a
7321
7322 fi
7323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7324 ;;
7325 esac
7326 fi
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7328 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7329
7330 if test no = "$lt_cv_ar_at_file"; then
7331 archiver_list_spec=
7332 else
7333 archiver_list_spec=$lt_cv_ar_at_file
7334 fi
7335
7336
7337
7338
7339
7340
7341
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}strip; ac_word=$2
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 printf %s "checking for $ac_word... " >&6; }
7347 if test ${ac_cv_prog_STRIP+y}
7348 then :
7349 printf %s "(cached) " >&6
7350 else case e in #(
7351 e) if test -n "$STRIP"; then
7352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357 IFS=$as_save_IFS
7358 case $as_dir in #(((
7359 '') as_dir=./ ;;
7360 */) ;;
7361 *) as_dir=$as_dir/ ;;
7362 esac
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7367 break 2
7368 fi
7369 done
7370 done
7371 IFS=$as_save_IFS
7372
7373 fi ;;
7374 esac
7375 fi
7376 STRIP=$ac_cv_prog_STRIP
7377 if test -n "$STRIP"; then
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7379 printf "%s\n" "$STRIP" >&6; }
7380 else
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 printf "%s\n" "no" >&6; }
7383 fi
7384
7385
7386 fi
7387 if test -z "$ac_cv_prog_STRIP"; then
7388 ac_ct_STRIP=$STRIP
7389 # Extract the first word of "strip", so it can be a program name with args.
7390 set dummy strip; ac_word=$2
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 printf %s "checking for $ac_word... " >&6; }
7393 if test ${ac_cv_prog_ac_ct_STRIP+y}
7394 then :
7395 printf %s "(cached) " >&6
7396 else case e in #(
7397 e) if test -n "$ac_ct_STRIP"; then
7398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403 IFS=$as_save_IFS
7404 case $as_dir in #(((
7405 '') as_dir=./ ;;
7406 */) ;;
7407 *) as_dir=$as_dir/ ;;
7408 esac
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_ac_ct_STRIP="strip"
7412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi ;;
7420 esac
7421 fi
7422 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7423 if test -n "$ac_ct_STRIP"; then
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7425 printf "%s\n" "$ac_ct_STRIP" >&6; }
7426 else
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 printf "%s\n" "no" >&6; }
7429 fi
7430
7431 if test "x$ac_ct_STRIP" = x; then
7432 STRIP=":"
7433 else
7434 case $cross_compiling:$ac_tool_warned in
7435 yes:)
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438 ac_tool_warned=yes ;;
7439 esac
7440 STRIP=$ac_ct_STRIP
7441 fi
7442 else
7443 STRIP="$ac_cv_prog_STRIP"
7444 fi
7445
7446 test -z "$STRIP" && STRIP=:
7447
7448
7449
7450
7451
7452
7453
7454 test -z "$RANLIB" && RANLIB=:
7455
7456
7457
7458
7459
7460
7461 # Determine commands to create old-style static archives.
7462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7463 old_postinstall_cmds='chmod 644 $oldlib'
7464 old_postuninstall_cmds=
7465
7466 if test -n "$RANLIB"; then
7467 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7468 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7469 fi
7470
7471 case $host_os in
7472 darwin*)
7473 lock_old_archive_extraction=yes ;;
7474 *)
7475 lock_old_archive_extraction=no ;;
7476 esac
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 # If no C compiler was specified, use CC.
7517 LTCC=${LTCC-"$CC"}
7518
7519 # If no C compiler flags were specified, use CFLAGS.
7520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7521
7522 # Allow CC to be a program name with arguments.
7523 compiler=$CC
7524
7525
7526 # Check for command to grab the raw symbol name followed by C symbol from nm.
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7528 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7529 if test ${lt_cv_sys_global_symbol_pipe+y}
7530 then :
7531 printf %s "(cached) " >&6
7532 else case e in #(
7533 e)
7534 # These are sane defaults that work on at least a few old systems.
7535 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7536
7537 # Character class describing NM global symbol codes.
7538 symcode='[BCDEGRST]'
7539
7540 # Regexp to match symbols that can be accessed directly from C.
7541 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7542
7543 # Define system-specific variables.
7544 case $host_os in
7545 aix*)
7546 symcode='[BCDT]'
7547 ;;
7548 cygwin* | mingw* | windows* | pw32* | cegcc*)
7549 symcode='[ABCDGISTW]'
7550 ;;
7551 hpux*)
7552 if test ia64 = "$host_cpu"; then
7553 symcode='[ABCDEGRST]'
7554 fi
7555 ;;
7556 irix* | nonstopux*)
7557 symcode='[BCDEGRST]'
7558 ;;
7559 osf*)
7560 symcode='[BCDEGQRST]'
7561 ;;
7562 solaris*)
7563 symcode='[BCDRT]'
7564 ;;
7565 sco3.2v5*)
7566 symcode='[DT]'
7567 ;;
7568 sysv4.2uw2*)
7569 symcode='[DT]'
7570 ;;
7571 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7572 symcode='[ABDT]'
7573 ;;
7574 sysv4)
7575 symcode='[DFNSTU]'
7576 ;;
7577 esac
7578
7579 # If we're using GNU nm, then use its standard symbol codes.
7580 case `$NM -V 2>&1` in
7581 *GNU* | *'with BFD'*)
7582 symcode='[ABCDGIRSTW]' ;;
7583 esac
7584
7585 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7586 # Gets list of data symbols to import.
7587 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7588 # Adjust the below global symbol transforms to fixup imported variables.
7589 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7590 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7591 lt_c_name_lib_hook="\
7592 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7593 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7594 else
7595 # Disable hooks by default.
7596 lt_cv_sys_global_symbol_to_import=
7597 lt_cdecl_hook=
7598 lt_c_name_hook=
7599 lt_c_name_lib_hook=
7600 fi
7601
7602 # Transform an extracted symbol line into a proper C declaration.
7603 # Some systems (esp. on ia64) link data and code symbols differently,
7604 # so use this general approach.
7605 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7606 $lt_cdecl_hook\
7607 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7608 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7609
7610 # Transform an extracted symbol line into symbol name and symbol address
7611 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7612 $lt_c_name_hook\
7613 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7614 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7615
7616 # Transform an extracted symbol line into symbol name with lib prefix and
7617 # symbol address.
7618 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7619 $lt_c_name_lib_hook\
7620 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7621 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7622 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7623
7624 # Handle CRLF in mingw tool chain
7625 opt_cr=
7626 case $build_os in
7627 mingw* | windows*)
7628 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7629 ;;
7630 esac
7631
7632 # Try without a prefix underscore, then with it.
7633 for ac_symprfx in "" "_"; do
7634
7635 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7636 symxfrm="\\1 $ac_symprfx\\2 \\2"
7637
7638 # Write the raw and C identifiers.
7639 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7640 # Fake it for dumpbin and say T for any non-static function,
7641 # D for any global variable and I for any imported variable.
7642 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7643 # which start with @ or ?.
7644 lt_cv_sys_global_symbol_pipe="$AWK '"\
7645 " {last_section=section; section=\$ 3};"\
7646 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7647 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7648 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7649 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7650 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7651 " \$ 0!~/External *\|/{next};"\
7652 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7653 " {if(hide[section]) next};"\
7654 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7655 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7656 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7657 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7658 " ' prfx=^$ac_symprfx"
7659 else
7660 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7661 fi
7662 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7663
7664 # Check to see that the pipe works correctly.
7665 pipe_works=no
7666
7667 rm -f conftest*
7668 cat > conftest.$ac_ext <<_LT_EOF
7669 #ifdef __cplusplus
7670 extern "C" {
7671 #endif
7672 char nm_test_var;
7673 void nm_test_func(void);
7674 void nm_test_func(void){}
7675 #ifdef __cplusplus
7676 }
7677 #endif
7678 int main(void){nm_test_var='a';nm_test_func();return(0);}
7679 _LT_EOF
7680
7681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7682 (eval $ac_compile) 2>&5
7683 ac_status=$?
7684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685 test $ac_status = 0; }; then
7686 # Now try to grab the symbols.
7687 nlist=conftest.nm
7688 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7689 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7690 # Try sorting and uniquifying the output.
7691 if sort "$nlist" | uniq > "$nlist"T; then
7692 mv -f "$nlist"T "$nlist"
7693 else
7694 rm -f "$nlist"T
7695 fi
7696
7697 # Make sure that we snagged all the symbols we need.
7698 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7699 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7700 cat <<_LT_EOF > conftest.$ac_ext
7701 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7702 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7703 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7704 relocations are performed -- see ld's documentation on pseudo-relocs. */
7705 # define LT_DLSYM_CONST
7706 #elif defined __osf__
7707 /* This system does not cope well with relocations in const data. */
7708 # define LT_DLSYM_CONST
7709 #else
7710 # define LT_DLSYM_CONST const
7711 #endif
7712
7713 #ifdef __cplusplus
7714 extern "C" {
7715 #endif
7716
7717 _LT_EOF
7718 # Now generate the symbol file.
7719 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7720
7721 cat <<_LT_EOF >> conftest.$ac_ext
7722
7723 /* The mapping between symbol names and symbols. */
7724 LT_DLSYM_CONST struct {
7725 const char *name;
7726 void *address;
7727 }
7728 lt__PROGRAM__LTX_preloaded_symbols[] =
7729 {
7730 { "@PROGRAM@", (void *) 0 },
7731 _LT_EOF
7732 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7733 cat <<\_LT_EOF >> conftest.$ac_ext
7734 {0, (void *) 0}
7735 };
7736
7737 /* This works around a problem in FreeBSD linker */
7738 #ifdef FREEBSD_WORKAROUND
7739 static const void *lt_preloaded_setup() {
7740 return lt__PROGRAM__LTX_preloaded_symbols;
7741 }
7742 #endif
7743
7744 #ifdef __cplusplus
7745 }
7746 #endif
7747 _LT_EOF
7748 # Now try linking the two files.
7749 mv conftest.$ac_objext conftstm.$ac_objext
7750 lt_globsym_save_LIBS=$LIBS
7751 lt_globsym_save_CFLAGS=$CFLAGS
7752 LIBS=conftstm.$ac_objext
7753 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7755 (eval $ac_link) 2>&5
7756 ac_status=$?
7757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7759 pipe_works=yes
7760 fi
7761 LIBS=$lt_globsym_save_LIBS
7762 CFLAGS=$lt_globsym_save_CFLAGS
7763 else
7764 echo "cannot find nm_test_func in $nlist" >&5
7765 fi
7766 else
7767 echo "cannot find nm_test_var in $nlist" >&5
7768 fi
7769 else
7770 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7771 fi
7772 else
7773 echo "$progname: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 fi
7776 rm -rf conftest* conftst*
7777
7778 # Do not use the global_symbol_pipe unless it works.
7779 if test yes = "$pipe_works"; then
7780 break
7781 else
7782 lt_cv_sys_global_symbol_pipe=
7783 fi
7784 done
7785 ;;
7786 esac
7787 fi
7788
7789 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7790 lt_cv_sys_global_symbol_to_cdecl=
7791 fi
7792 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7794 printf "%s\n" "failed" >&6; }
7795 else
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7797 printf "%s\n" "ok" >&6; }
7798 fi
7799
7800 # Response file support.
7801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7802 nm_file_list_spec='@'
7803 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7804 nm_file_list_spec='@'
7805 fi
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7844 printf %s "checking for sysroot... " >&6; }
7845
7846 # Check whether --with-sysroot was given.
7847 if test ${with_sysroot+y}
7848 then :
7849 withval=$with_sysroot;
7850 else case e in #(
7851 e) with_sysroot=no ;;
7852 esac
7853 fi
7854
7855
7856 lt_sysroot=
7857 case $with_sysroot in #(
7858 yes)
7859 if test yes = "$GCC"; then
7860 # Trim trailing / since we'll always append absolute paths and we want
7861 # to avoid //, if only for less confusing output for the user.
7862 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7863 fi
7864 ;; #(
7865 /*)
7866 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7867 ;; #(
7868 no|'')
7869 ;; #(
7870 *)
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7872 printf "%s\n" "$with_sysroot" >&6; }
7873 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7874 ;;
7875 esac
7876
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7878 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7879
7880
7881
7882
7883
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7885 printf %s "checking for a working dd... " >&6; }
7886 if test ${ac_cv_path_lt_DD+y}
7887 then :
7888 printf %s "(cached) " >&6
7889 else case e in #(
7890 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7891 cat conftest.i conftest.i >conftest2.i
7892 : ${lt_DD:=$DD}
7893 if test -z "$lt_DD"; then
7894 ac_path_lt_DD_found=false
7895 # Loop through the user's path and test for each of PROGNAME-LIST
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899 IFS=$as_save_IFS
7900 case $as_dir in #(((
7901 '') as_dir=./ ;;
7902 */) ;;
7903 *) as_dir=$as_dir/ ;;
7904 esac
7905 for ac_prog in dd
7906 do
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7909 as_fn_executable_p "$ac_path_lt_DD" || continue
7910 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7911 cmp -s conftest.i conftest.out \
7912 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7913 fi
7914 $ac_path_lt_DD_found && break 3
7915 done
7916 done
7917 done
7918 IFS=$as_save_IFS
7919 if test -z "$ac_cv_path_lt_DD"; then
7920 :
7921 fi
7922 else
7923 ac_cv_path_lt_DD=$lt_DD
7924 fi
7925
7926 rm -f conftest.i conftest2.i conftest.out ;;
7927 esac
7928 fi
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7930 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7931
7932
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7934 printf %s "checking how to truncate binary pipes... " >&6; }
7935 if test ${lt_cv_truncate_bin+y}
7936 then :
7937 printf %s "(cached) " >&6
7938 else case e in #(
7939 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7940 cat conftest.i conftest.i >conftest2.i
7941 lt_cv_truncate_bin=
7942 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7943 cmp -s conftest.i conftest.out \
7944 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7945 fi
7946 rm -f conftest.i conftest2.i conftest.out
7947 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7948 esac
7949 fi
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7951 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7952
7953
7954
7955
7956
7957
7958
7959 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7960 func_cc_basename ()
7961 {
7962 for cc_temp in $*""; do
7963 case $cc_temp in
7964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7966 \-*) ;;
7967 *) break;;
7968 esac
7969 done
7970 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7971 }
7972
7973 # Check whether --enable-libtool-lock was given.
7974 if test ${enable_libtool_lock+y}
7975 then :
7976 enableval=$enable_libtool_lock;
7977 fi
7978
7979 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7980
7981 # Some flags need to be propagated to the compiler or linker for good
7982 # libtool support.
7983 case $host in
7984 ia64-*-hpux*)
7985 # Find out what ABI is being produced by ac_compile, and set mode
7986 # options accordingly.
7987 echo 'int i;' > conftest.$ac_ext
7988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7989 (eval $ac_compile) 2>&5
7990 ac_status=$?
7991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7992 test $ac_status = 0; }; then
7993 case `$FILECMD conftest.$ac_objext` in
7994 *ELF-32*)
7995 HPUX_IA64_MODE=32
7996 ;;
7997 *ELF-64*)
7998 HPUX_IA64_MODE=64
7999 ;;
8000 esac
8001 fi
8002 rm -rf conftest*
8003 ;;
8004 *-*-irix6*)
8005 # Find out what ABI is being produced by ac_compile, and set linker
8006 # options accordingly.
8007 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8009 (eval $ac_compile) 2>&5
8010 ac_status=$?
8011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8012 test $ac_status = 0; }; then
8013 if test yes = "$lt_cv_prog_gnu_ld"; then
8014 case `$FILECMD conftest.$ac_objext` in
8015 *32-bit*)
8016 LD="${LD-ld} -melf32bsmip"
8017 ;;
8018 *N32*)
8019 LD="${LD-ld} -melf32bmipn32"
8020 ;;
8021 *64-bit*)
8022 LD="${LD-ld} -melf64bmip"
8023 ;;
8024 esac
8025 else
8026 case `$FILECMD conftest.$ac_objext` in
8027 *32-bit*)
8028 LD="${LD-ld} -32"
8029 ;;
8030 *N32*)
8031 LD="${LD-ld} -n32"
8032 ;;
8033 *64-bit*)
8034 LD="${LD-ld} -64"
8035 ;;
8036 esac
8037 fi
8038 fi
8039 rm -rf conftest*
8040 ;;
8041
8042 mips64*-*linux*)
8043 # Find out what ABI is being produced by ac_compile, and set linker
8044 # options accordingly.
8045 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8047 (eval $ac_compile) 2>&5
8048 ac_status=$?
8049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }; then
8051 emul=elf
8052 case `$FILECMD conftest.$ac_objext` in
8053 *32-bit*)
8054 emul="${emul}32"
8055 ;;
8056 *64-bit*)
8057 emul="${emul}64"
8058 ;;
8059 esac
8060 case `$FILECMD conftest.$ac_objext` in
8061 *MSB*)
8062 emul="${emul}btsmip"
8063 ;;
8064 *LSB*)
8065 emul="${emul}ltsmip"
8066 ;;
8067 esac
8068 case `$FILECMD conftest.$ac_objext` in
8069 *N32*)
8070 emul="${emul}n32"
8071 ;;
8072 esac
8073 LD="${LD-ld} -m $emul"
8074 fi
8075 rm -rf conftest*
8076 ;;
8077
8078 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8079 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8080 # Find out what ABI is being produced by ac_compile, and set linker
8081 # options accordingly. Note that the listed cases only cover the
8082 # situations where additional linker options are needed (such as when
8083 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8084 # vice versa); the common cases where no linker options are needed do
8085 # not appear in the list.
8086 echo 'int i;' > conftest.$ac_ext
8087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8088 (eval $ac_compile) 2>&5
8089 ac_status=$?
8090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8091 test $ac_status = 0; }; then
8092 case `$FILECMD conftest.o` in
8093 *32-bit*)
8094 case $host in
8095 x86_64-*kfreebsd*-gnu)
8096 LD="${LD-ld} -m elf_i386_fbsd"
8097 ;;
8098 x86_64-*linux*|x86_64-gnu*)
8099 case `$FILECMD conftest.o` in
8100 *x86-64*)
8101 LD="${LD-ld} -m elf32_x86_64"
8102 ;;
8103 *)
8104 LD="${LD-ld} -m elf_i386"
8105 ;;
8106 esac
8107 ;;
8108 powerpc64le-*linux*)
8109 LD="${LD-ld} -m elf32lppclinux"
8110 ;;
8111 powerpc64-*linux*)
8112 LD="${LD-ld} -m elf32ppclinux"
8113 ;;
8114 s390x-*linux*)
8115 LD="${LD-ld} -m elf_s390"
8116 ;;
8117 sparc64-*linux*)
8118 LD="${LD-ld} -m elf32_sparc"
8119 ;;
8120 esac
8121 ;;
8122 *64-bit*)
8123 case $host in
8124 x86_64-*kfreebsd*-gnu)
8125 LD="${LD-ld} -m elf_x86_64_fbsd"
8126 ;;
8127 x86_64-*linux*|x86_64-gnu*)
8128 LD="${LD-ld} -m elf_x86_64"
8129 ;;
8130 powerpcle-*linux*)
8131 LD="${LD-ld} -m elf64lppc"
8132 ;;
8133 powerpc-*linux*)
8134 LD="${LD-ld} -m elf64ppc"
8135 ;;
8136 s390*-*linux*|s390*-*tpf*)
8137 LD="${LD-ld} -m elf64_s390"
8138 ;;
8139 sparc*-*linux*)
8140 LD="${LD-ld} -m elf64_sparc"
8141 ;;
8142 esac
8143 ;;
8144 esac
8145 fi
8146 rm -rf conftest*
8147 ;;
8148
8149 *-*-sco3.2v5*)
8150 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8151 SAVE_CFLAGS=$CFLAGS
8152 CFLAGS="$CFLAGS -belf"
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8154 printf %s "checking whether the C compiler needs -belf... " >&6; }
8155 if test ${lt_cv_cc_needs_belf+y}
8156 then :
8157 printf %s "(cached) " >&6
8158 else case e in #(
8159 e) ac_ext=c
8160 ac_cpp='$CPP $CPPFLAGS'
8161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167
8168 int
8169 main (void)
8170 {
8171
8172 ;
8173 return 0;
8174 }
8175 _ACEOF
8176 if ac_fn_c_try_link "$LINENO"
8177 then :
8178 lt_cv_cc_needs_belf=yes
8179 else case e in #(
8180 e) lt_cv_cc_needs_belf=no ;;
8181 esac
8182 fi
8183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8184 conftest$ac_exeext conftest.$ac_ext
8185 ac_ext=c
8186 ac_cpp='$CPP $CPPFLAGS'
8187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8190 ;;
8191 esac
8192 fi
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8194 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8195 if test yes != "$lt_cv_cc_needs_belf"; then
8196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8197 CFLAGS=$SAVE_CFLAGS
8198 fi
8199 ;;
8200 *-*solaris*)
8201 # Find out what ABI is being produced by ac_compile, and set linker
8202 # options accordingly.
8203 echo 'int i;' > conftest.$ac_ext
8204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8205 (eval $ac_compile) 2>&5
8206 ac_status=$?
8207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8208 test $ac_status = 0; }; then
8209 case `$FILECMD conftest.o` in
8210 *64-bit*)
8211 case $lt_cv_prog_gnu_ld in
8212 yes*)
8213 case $host in
8214 i?86-*-solaris*|x86_64-*-solaris*)
8215 LD="${LD-ld} -m elf_x86_64"
8216 ;;
8217 sparc*-*-solaris*)
8218 LD="${LD-ld} -m elf64_sparc"
8219 ;;
8220 esac
8221 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8222 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8223 LD=${LD-ld}_sol2
8224 fi
8225 ;;
8226 *)
8227 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8228 LD="${LD-ld} -64"
8229 fi
8230 ;;
8231 esac
8232 ;;
8233 esac
8234 fi
8235 rm -rf conftest*
8236 ;;
8237 esac
8238
8239 need_locks=$enable_libtool_lock
8240
8241 if test -n "$ac_tool_prefix"; then
8242 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8243 set dummy ${ac_tool_prefix}mt; ac_word=$2
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 printf %s "checking for $ac_word... " >&6; }
8246 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8247 then :
8248 printf %s "(cached) " >&6
8249 else case e in #(
8250 e) if test -n "$MANIFEST_TOOL"; then
8251 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8252 else
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256 IFS=$as_save_IFS
8257 case $as_dir in #(((
8258 '') as_dir=./ ;;
8259 */) ;;
8260 *) as_dir=$as_dir/ ;;
8261 esac
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272 fi ;;
8273 esac
8274 fi
8275 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8276 if test -n "$MANIFEST_TOOL"; then
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8278 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8279 else
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 printf "%s\n" "no" >&6; }
8282 fi
8283
8284
8285 fi
8286 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8287 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8288 # Extract the first word of "mt", so it can be a program name with args.
8289 set dummy mt; ac_word=$2
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 printf %s "checking for $ac_word... " >&6; }
8292 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8293 then :
8294 printf %s "(cached) " >&6
8295 else case e in #(
8296 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8297 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8301 do
8302 IFS=$as_save_IFS
8303 case $as_dir in #(((
8304 '') as_dir=./ ;;
8305 */) ;;
8306 *) as_dir=$as_dir/ ;;
8307 esac
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8312 break 2
8313 fi
8314 done
8315 done
8316 IFS=$as_save_IFS
8317
8318 fi ;;
8319 esac
8320 fi
8321 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8322 if test -n "$ac_ct_MANIFEST_TOOL"; then
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8324 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8325 else
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 printf "%s\n" "no" >&6; }
8328 fi
8329
8330 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8331 MANIFEST_TOOL=":"
8332 else
8333 case $cross_compiling:$ac_tool_warned in
8334 yes:)
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337 ac_tool_warned=yes ;;
8338 esac
8339 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8340 fi
8341 else
8342 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8343 fi
8344
8345 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8347 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8348 if test ${lt_cv_path_manifest_tool+y}
8349 then :
8350 printf %s "(cached) " >&6
8351 else case e in #(
8352 e) lt_cv_path_manifest_tool=no
8353 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8354 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8355 cat conftest.err >&5
8356 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8357 lt_cv_path_manifest_tool=yes
8358 fi
8359 rm -f conftest* ;;
8360 esac
8361 fi
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8363 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8364 if test yes != "$lt_cv_path_manifest_tool"; then
8365 MANIFEST_TOOL=:
8366 fi
8367
8368
8369
8370
8371
8372
8373 case $host_os in
8374 rhapsody* | darwin*)
8375 if test -n "$ac_tool_prefix"; then
8376 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8377 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 printf %s "checking for $ac_word... " >&6; }
8380 if test ${ac_cv_prog_DSYMUTIL+y}
8381 then :
8382 printf %s "(cached) " >&6
8383 else case e in #(
8384 e) if test -n "$DSYMUTIL"; then
8385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390 IFS=$as_save_IFS
8391 case $as_dir in #(((
8392 '') as_dir=./ ;;
8393 */) ;;
8394 *) as_dir=$as_dir/ ;;
8395 esac
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8398 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8400 break 2
8401 fi
8402 done
8403 done
8404 IFS=$as_save_IFS
8405
8406 fi ;;
8407 esac
8408 fi
8409 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8410 if test -n "$DSYMUTIL"; then
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8412 printf "%s\n" "$DSYMUTIL" >&6; }
8413 else
8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 printf "%s\n" "no" >&6; }
8416 fi
8417
8418
8419 fi
8420 if test -z "$ac_cv_prog_DSYMUTIL"; then
8421 ac_ct_DSYMUTIL=$DSYMUTIL
8422 # Extract the first word of "dsymutil", so it can be a program name with args.
8423 set dummy dsymutil; ac_word=$2
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 printf %s "checking for $ac_word... " >&6; }
8426 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8427 then :
8428 printf %s "(cached) " >&6
8429 else case e in #(
8430 e) if test -n "$ac_ct_DSYMUTIL"; then
8431 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8432 else
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8435 do
8436 IFS=$as_save_IFS
8437 case $as_dir in #(((
8438 '') as_dir=./ ;;
8439 */) ;;
8440 *) as_dir=$as_dir/ ;;
8441 esac
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8446 break 2
8447 fi
8448 done
8449 done
8450 IFS=$as_save_IFS
8451
8452 fi ;;
8453 esac
8454 fi
8455 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8456 if test -n "$ac_ct_DSYMUTIL"; then
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8458 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8459 else
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 printf "%s\n" "no" >&6; }
8462 fi
8463
8464 if test "x$ac_ct_DSYMUTIL" = x; then
8465 DSYMUTIL=":"
8466 else
8467 case $cross_compiling:$ac_tool_warned in
8468 yes:)
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8470 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8471 ac_tool_warned=yes ;;
8472 esac
8473 DSYMUTIL=$ac_ct_DSYMUTIL
8474 fi
8475 else
8476 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8477 fi
8478
8479 if test -n "$ac_tool_prefix"; then
8480 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8481 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 printf %s "checking for $ac_word... " >&6; }
8484 if test ${ac_cv_prog_NMEDIT+y}
8485 then :
8486 printf %s "(cached) " >&6
8487 else case e in #(
8488 e) if test -n "$NMEDIT"; then
8489 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494 IFS=$as_save_IFS
8495 case $as_dir in #(((
8496 '') as_dir=./ ;;
8497 */) ;;
8498 *) as_dir=$as_dir/ ;;
8499 esac
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8504 break 2
8505 fi
8506 done
8507 done
8508 IFS=$as_save_IFS
8509
8510 fi ;;
8511 esac
8512 fi
8513 NMEDIT=$ac_cv_prog_NMEDIT
8514 if test -n "$NMEDIT"; then
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8516 printf "%s\n" "$NMEDIT" >&6; }
8517 else
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 printf "%s\n" "no" >&6; }
8520 fi
8521
8522
8523 fi
8524 if test -z "$ac_cv_prog_NMEDIT"; then
8525 ac_ct_NMEDIT=$NMEDIT
8526 # Extract the first word of "nmedit", so it can be a program name with args.
8527 set dummy nmedit; ac_word=$2
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 printf %s "checking for $ac_word... " >&6; }
8530 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8531 then :
8532 printf %s "(cached) " >&6
8533 else case e in #(
8534 e) if test -n "$ac_ct_NMEDIT"; then
8535 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8536 else
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8539 do
8540 IFS=$as_save_IFS
8541 case $as_dir in #(((
8542 '') as_dir=./ ;;
8543 */) ;;
8544 *) as_dir=$as_dir/ ;;
8545 esac
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8550 break 2
8551 fi
8552 done
8553 done
8554 IFS=$as_save_IFS
8555
8556 fi ;;
8557 esac
8558 fi
8559 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8560 if test -n "$ac_ct_NMEDIT"; then
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8562 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8563 else
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 printf "%s\n" "no" >&6; }
8566 fi
8567
8568 if test "x$ac_ct_NMEDIT" = x; then
8569 NMEDIT=":"
8570 else
8571 case $cross_compiling:$ac_tool_warned in
8572 yes:)
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8575 ac_tool_warned=yes ;;
8576 esac
8577 NMEDIT=$ac_ct_NMEDIT
8578 fi
8579 else
8580 NMEDIT="$ac_cv_prog_NMEDIT"
8581 fi
8582
8583 if test -n "$ac_tool_prefix"; then
8584 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8585 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 printf %s "checking for $ac_word... " >&6; }
8588 if test ${ac_cv_prog_LIPO+y}
8589 then :
8590 printf %s "(cached) " >&6
8591 else case e in #(
8592 e) if test -n "$LIPO"; then
8593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8594 else
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8597 do
8598 IFS=$as_save_IFS
8599 case $as_dir in #(((
8600 '') as_dir=./ ;;
8601 */) ;;
8602 *) as_dir=$as_dir/ ;;
8603 esac
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8606 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8608 break 2
8609 fi
8610 done
8611 done
8612 IFS=$as_save_IFS
8613
8614 fi ;;
8615 esac
8616 fi
8617 LIPO=$ac_cv_prog_LIPO
8618 if test -n "$LIPO"; then
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8620 printf "%s\n" "$LIPO" >&6; }
8621 else
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 printf "%s\n" "no" >&6; }
8624 fi
8625
8626
8627 fi
8628 if test -z "$ac_cv_prog_LIPO"; then
8629 ac_ct_LIPO=$LIPO
8630 # Extract the first word of "lipo", so it can be a program name with args.
8631 set dummy lipo; ac_word=$2
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 printf %s "checking for $ac_word... " >&6; }
8634 if test ${ac_cv_prog_ac_ct_LIPO+y}
8635 then :
8636 printf %s "(cached) " >&6
8637 else case e in #(
8638 e) if test -n "$ac_ct_LIPO"; then
8639 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8643 do
8644 IFS=$as_save_IFS
8645 case $as_dir in #(((
8646 '') as_dir=./ ;;
8647 */) ;;
8648 *) as_dir=$as_dir/ ;;
8649 esac
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8652 ac_cv_prog_ac_ct_LIPO="lipo"
8653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8654 break 2
8655 fi
8656 done
8657 done
8658 IFS=$as_save_IFS
8659
8660 fi ;;
8661 esac
8662 fi
8663 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8664 if test -n "$ac_ct_LIPO"; then
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8666 printf "%s\n" "$ac_ct_LIPO" >&6; }
8667 else
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 printf "%s\n" "no" >&6; }
8670 fi
8671
8672 if test "x$ac_ct_LIPO" = x; then
8673 LIPO=":"
8674 else
8675 case $cross_compiling:$ac_tool_warned in
8676 yes:)
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8678 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8679 ac_tool_warned=yes ;;
8680 esac
8681 LIPO=$ac_ct_LIPO
8682 fi
8683 else
8684 LIPO="$ac_cv_prog_LIPO"
8685 fi
8686
8687 if test -n "$ac_tool_prefix"; then
8688 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8689 set dummy ${ac_tool_prefix}otool; ac_word=$2
8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 printf %s "checking for $ac_word... " >&6; }
8692 if test ${ac_cv_prog_OTOOL+y}
8693 then :
8694 printf %s "(cached) " >&6
8695 else case e in #(
8696 e) if test -n "$OTOOL"; then
8697 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8698 else
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 for as_dir in $PATH
8701 do
8702 IFS=$as_save_IFS
8703 case $as_dir in #(((
8704 '') as_dir=./ ;;
8705 */) ;;
8706 *) as_dir=$as_dir/ ;;
8707 esac
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8710 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8712 break 2
8713 fi
8714 done
8715 done
8716 IFS=$as_save_IFS
8717
8718 fi ;;
8719 esac
8720 fi
8721 OTOOL=$ac_cv_prog_OTOOL
8722 if test -n "$OTOOL"; then
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8724 printf "%s\n" "$OTOOL" >&6; }
8725 else
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 printf "%s\n" "no" >&6; }
8728 fi
8729
8730
8731 fi
8732 if test -z "$ac_cv_prog_OTOOL"; then
8733 ac_ct_OTOOL=$OTOOL
8734 # Extract the first word of "otool", so it can be a program name with args.
8735 set dummy otool; ac_word=$2
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 printf %s "checking for $ac_word... " >&6; }
8738 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8739 then :
8740 printf %s "(cached) " >&6
8741 else case e in #(
8742 e) if test -n "$ac_ct_OTOOL"; then
8743 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8747 do
8748 IFS=$as_save_IFS
8749 case $as_dir in #(((
8750 '') as_dir=./ ;;
8751 */) ;;
8752 *) as_dir=$as_dir/ ;;
8753 esac
8754 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_ac_ct_OTOOL="otool"
8757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8758 break 2
8759 fi
8760 done
8761 done
8762 IFS=$as_save_IFS
8763
8764 fi ;;
8765 esac
8766 fi
8767 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8768 if test -n "$ac_ct_OTOOL"; then
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8770 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8771 else
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 printf "%s\n" "no" >&6; }
8774 fi
8775
8776 if test "x$ac_ct_OTOOL" = x; then
8777 OTOOL=":"
8778 else
8779 case $cross_compiling:$ac_tool_warned in
8780 yes:)
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8783 ac_tool_warned=yes ;;
8784 esac
8785 OTOOL=$ac_ct_OTOOL
8786 fi
8787 else
8788 OTOOL="$ac_cv_prog_OTOOL"
8789 fi
8790
8791 if test -n "$ac_tool_prefix"; then
8792 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8793 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 printf %s "checking for $ac_word... " >&6; }
8796 if test ${ac_cv_prog_OTOOL64+y}
8797 then :
8798 printf %s "(cached) " >&6
8799 else case e in #(
8800 e) if test -n "$OTOOL64"; then
8801 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8802 else
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8805 do
8806 IFS=$as_save_IFS
8807 case $as_dir in #(((
8808 '') as_dir=./ ;;
8809 */) ;;
8810 *) as_dir=$as_dir/ ;;
8811 esac
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8814 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8816 break 2
8817 fi
8818 done
8819 done
8820 IFS=$as_save_IFS
8821
8822 fi ;;
8823 esac
8824 fi
8825 OTOOL64=$ac_cv_prog_OTOOL64
8826 if test -n "$OTOOL64"; then
8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8828 printf "%s\n" "$OTOOL64" >&6; }
8829 else
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 printf "%s\n" "no" >&6; }
8832 fi
8833
8834
8835 fi
8836 if test -z "$ac_cv_prog_OTOOL64"; then
8837 ac_ct_OTOOL64=$OTOOL64
8838 # Extract the first word of "otool64", so it can be a program name with args.
8839 set dummy otool64; ac_word=$2
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 printf %s "checking for $ac_word... " >&6; }
8842 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8843 then :
8844 printf %s "(cached) " >&6
8845 else case e in #(
8846 e) if test -n "$ac_ct_OTOOL64"; then
8847 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8848 else
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852 IFS=$as_save_IFS
8853 case $as_dir in #(((
8854 '') as_dir=./ ;;
8855 */) ;;
8856 *) as_dir=$as_dir/ ;;
8857 esac
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8860 ac_cv_prog_ac_ct_OTOOL64="otool64"
8861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8862 break 2
8863 fi
8864 done
8865 done
8866 IFS=$as_save_IFS
8867
8868 fi ;;
8869 esac
8870 fi
8871 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8872 if test -n "$ac_ct_OTOOL64"; then
8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8874 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8875 else
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877 printf "%s\n" "no" >&6; }
8878 fi
8879
8880 if test "x$ac_ct_OTOOL64" = x; then
8881 OTOOL64=":"
8882 else
8883 case $cross_compiling:$ac_tool_warned in
8884 yes:)
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8886 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8887 ac_tool_warned=yes ;;
8888 esac
8889 OTOOL64=$ac_ct_OTOOL64
8890 fi
8891 else
8892 OTOOL64="$ac_cv_prog_OTOOL64"
8893 fi
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8922 printf %s "checking for -single_module linker flag... " >&6; }
8923 if test ${lt_cv_apple_cc_single_mod+y}
8924 then :
8925 printf %s "(cached) " >&6
8926 else case e in #(
8927 e) lt_cv_apple_cc_single_mod=no
8928 if test -z "$LT_MULTI_MODULE"; then
8929 # By default we will add the -single_module flag. You can override
8930 # by either setting the environment variable LT_MULTI_MODULE
8931 # non-empty at configure time, or by adding -multi_module to the
8932 # link flags.
8933 rm -rf libconftest.dylib*
8934 echo "int foo(void){return 1;}" > conftest.c
8935 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8936 -dynamiclib -Wl,-single_module conftest.c" >&5
8937 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8938 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8939 _lt_result=$?
8940 # If there is a non-empty error log, and "single_module"
8941 # appears in it, assume the flag caused a linker warning
8942 if test -s conftest.err && $GREP single_module conftest.err; then
8943 cat conftest.err >&5
8944 # Otherwise, if the output was created with a 0 exit code from
8945 # the compiler, it worked.
8946 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8947 lt_cv_apple_cc_single_mod=yes
8948 else
8949 cat conftest.err >&5
8950 fi
8951 rm -rf libconftest.dylib*
8952 rm -f conftest.*
8953 fi ;;
8954 esac
8955 fi
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8957 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8958
8959 # Feature test to disable chained fixups since it is not
8960 # compatible with '-undefined dynamic_lookup'
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8962 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8963 if test ${lt_cv_support_no_fixup_chains+y}
8964 then :
8965 printf %s "(cached) " >&6
8966 else case e in #(
8967 e) save_LDFLAGS=$LDFLAGS
8968 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971
8972 int
8973 main (void)
8974 {
8975
8976 ;
8977 return 0;
8978 }
8979 _ACEOF
8980 if ac_fn_c_try_link "$LINENO"
8981 then :
8982 lt_cv_support_no_fixup_chains=yes
8983 else case e in #(
8984 e) lt_cv_support_no_fixup_chains=no
8985 ;;
8986 esac
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8989 conftest$ac_exeext conftest.$ac_ext
8990 LDFLAGS=$save_LDFLAGS
8991
8992 ;;
8993 esac
8994 fi
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8996 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8997
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8999 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9000 if test ${lt_cv_ld_exported_symbols_list+y}
9001 then :
9002 printf %s "(cached) " >&6
9003 else case e in #(
9004 e) lt_cv_ld_exported_symbols_list=no
9005 save_LDFLAGS=$LDFLAGS
9006 echo "_main" > conftest.sym
9007 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010
9011 int
9012 main (void)
9013 {
9014
9015 ;
9016 return 0;
9017 }
9018 _ACEOF
9019 if ac_fn_c_try_link "$LINENO"
9020 then :
9021 lt_cv_ld_exported_symbols_list=yes
9022 else case e in #(
9023 e) lt_cv_ld_exported_symbols_list=no ;;
9024 esac
9025 fi
9026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9027 conftest$ac_exeext conftest.$ac_ext
9028 LDFLAGS=$save_LDFLAGS
9029 ;;
9030 esac
9031 fi
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9033 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9034
9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9036 printf %s "checking for -force_load linker flag... " >&6; }
9037 if test ${lt_cv_ld_force_load+y}
9038 then :
9039 printf %s "(cached) " >&6
9040 else case e in #(
9041 e) lt_cv_ld_force_load=no
9042 cat > conftest.c << _LT_EOF
9043 int forced_loaded() { return 2;}
9044 _LT_EOF
9045 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9046 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9047 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9048 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9049 echo "$RANLIB libconftest.a" >&5
9050 $RANLIB libconftest.a 2>&5
9051 cat > conftest.c << _LT_EOF
9052 int main(void) { return 0;}
9053 _LT_EOF
9054 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9055 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9056 _lt_result=$?
9057 if test -s conftest.err && $GREP force_load conftest.err; then
9058 cat conftest.err >&5
9059 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9060 lt_cv_ld_force_load=yes
9061 else
9062 cat conftest.err >&5
9063 fi
9064 rm -f conftest.err libconftest.a conftest conftest.c
9065 rm -rf conftest.dSYM
9066 ;;
9067 esac
9068 fi
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9070 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9071 case $host_os in
9072 rhapsody* | darwin1.[012])
9073 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9074 darwin1.*)
9075 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9076 darwin*)
9077 case $MACOSX_DEPLOYMENT_TARGET,$host in
9078 10.[012],*|,*powerpc*-darwin[5-8]*)
9079 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9080 *)
9081 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9082 if test yes = "$lt_cv_support_no_fixup_chains"; then
9083 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9084 fi
9085 ;;
9086 esac
9087 ;;
9088 esac
9089 if test yes = "$lt_cv_apple_cc_single_mod"; then
9090 _lt_dar_single_mod='$single_module'
9091 fi
9092 _lt_dar_needs_single_mod=no
9093 case $host_os in
9094 rhapsody* | darwin1.*)
9095 _lt_dar_needs_single_mod=yes ;;
9096 darwin*)
9097 # When targeting Mac OS X 10.4 (darwin 8) or later,
9098 # -single_module is the default and -multi_module is unsupported.
9099 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9100 # target any OS version that needs -single_module.
9101 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9102 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9103 _lt_dar_needs_single_mod=yes ;;
9104 esac
9105 ;;
9106 esac
9107 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9108 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9109 else
9110 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9111 fi
9112 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9113 _lt_dsymutil='~$DSYMUTIL $lib || :'
9114 else
9115 _lt_dsymutil=
9116 fi
9117 ;;
9118 esac
9119
9120 # func_munge_path_list VARIABLE PATH
9121 # -----------------------------------
9122 # VARIABLE is name of variable containing _space_ separated list of
9123 # directories to be munged by the contents of PATH, which is string
9124 # having a format:
9125 # "DIR[:DIR]:"
9126 # string "DIR[ DIR]" will be prepended to VARIABLE
9127 # ":DIR[:DIR]"
9128 # string "DIR[ DIR]" will be appended to VARIABLE
9129 # "DIRP[:DIRP]::[DIRA:]DIRA"
9130 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9131 # "DIRA[ DIRA]" will be appended to VARIABLE
9132 # "DIR[:DIR]"
9133 # VARIABLE will be replaced by "DIR[ DIR]"
9134 func_munge_path_list ()
9135 {
9136 case x$2 in
9137 x)
9138 ;;
9139 *:)
9140 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9141 ;;
9142 x:*)
9143 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9144 ;;
9145 *::*)
9146 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9147 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9148 ;;
9149 *)
9150 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9151 ;;
9152 esac
9153 }
9154
9155 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9156 "
9157 if test "x$ac_cv_header_dlfcn_h" = xyes
9158 then :
9159 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9160
9161 fi
9162
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9164 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9165 if test ${ac_cv_c_undeclared_builtin_options+y}
9166 then :
9167 printf %s "(cached) " >&6
9168 else case e in #(
9169 e) ac_save_CFLAGS=$CFLAGS
9170 ac_cv_c_undeclared_builtin_options='cannot detect'
9171 for ac_arg in '' -fno-builtin; do
9172 CFLAGS="$ac_save_CFLAGS $ac_arg"
9173 # This test program should *not* compile successfully.
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9176
9177 int
9178 main (void)
9179 {
9180 (void) strchr;
9181 ;
9182 return 0;
9183 }
9184 _ACEOF
9185 if ac_fn_c_try_compile "$LINENO"
9186 then :
9187
9188 else case e in #(
9189 e) # This test program should compile successfully.
9190 # No library function is consistently available on
9191 # freestanding implementations, so test against a dummy
9192 # declaration. Include always-available headers on the
9193 # off chance that they somehow elicit warnings.
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 #include <float.h>
9197 #include <limits.h>
9198 #include <stdarg.h>
9199 #include <stddef.h>
9200 extern void ac_decl (int, char *);
9201
9202 int
9203 main (void)
9204 {
9205 (void) ac_decl (0, (char *) 0);
9206 (void) ac_decl;
9207
9208 ;
9209 return 0;
9210 }
9211 _ACEOF
9212 if ac_fn_c_try_compile "$LINENO"
9213 then :
9214 if test x"$ac_arg" = x
9215 then :
9216 ac_cv_c_undeclared_builtin_options='none needed'
9217 else case e in #(
9218 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9219 esac
9220 fi
9221 break
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9224 esac
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9227 done
9228 CFLAGS=$ac_save_CFLAGS
9229 ;;
9230 esac
9231 fi
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9233 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9234 case $ac_cv_c_undeclared_builtin_options in #(
9235 'cannot detect') :
9236 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9237 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9238 as_fn_error $? "cannot make $CC report undeclared builtins
9239 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9240 'none needed') :
9241 ac_c_undeclared_builtin_options='' ;; #(
9242 *) :
9243 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9244 esac
9245
9246 echo 'tldbg:KPSE_COMMON called (pkg=dvipdfm-x, amopt=)' >&5
9247 echo 'tldbg:KPSE_BASIC called (pkg=dvipdfm-x, amopt=)' >&5
9248
9249 #
9250 # am_init_automake
9251 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9252 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9253 # is not polluted with repeated "-I."
9254 am__isrc=' -I$(srcdir)'
9255 # test to see if srcdir already configured
9256 if test -f $srcdir/config.status; then
9257 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9258 fi
9259 fi
9260
9261 # test whether we have cygpath
9262 if test -z "$CYGPATH_W"; then
9263 if (cygpath --version) >/dev/null 2>/dev/null; then
9264 CYGPATH_W='cygpath -w'
9265 else
9266 CYGPATH_W=echo
9267 fi
9268 fi
9269
9270
9271 # Define the identity of the package.
9272 PACKAGE='dvipdfm-x--tex-live-'
•9273 VERSION='20260317'
9274
9275
9276 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9277
9278
9279 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9280
9281 # Some tools Automake needs.
9282
9283 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9284
9285
9286 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9287
9288
9289 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9290
9291
9292 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9293
9294
9295 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9296
9297 # For better backward compatibility. To be removed once Automake 1.9.x
9298 # dies out for good. For more background, see:
9299 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9300 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9301 mkdir_p='$(MKDIR_P)'
9302
9303 # We need awk for the "check" target (and possibly the TAP driver). The
9304 # system "awk" is bad on some platforms.
9305 # Always define AMTAR for backward compatibility. Yes, it's still used
9306 # in the wild :-( We should find a proper way to deprecate it ...
9307 AMTAR='$${TAR-tar}'
9308
9309
9310 # We'll loop over all known methods to create a tar archive until one works.
9311 _am_tools='gnutar plaintar pax cpio none'
9312
9313 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9314 # There is notably a 21 bits limit for the UID and the GID. In fact,
9315 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9316 # and bug#13588).
9317 am_max_uid=2097151 # 2^21 - 1
9318 am_max_gid=$am_max_uid
9319 # The $UID and $GID variables are not portable, so we need to resort
9320 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9321 # below are definitely unexpected, so allow the users to see them
9322 # (that is, avoid stderr redirection).
9323 am_uid=`id -u || echo unknown`
9324 am_gid=`id -g || echo unknown`
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9326 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9327 if test x$am_uid = xunknown; then
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9329 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9330 elif test $am_uid -le $am_max_uid; then
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9332 printf "%s\n" "yes" >&6; }
9333 else
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 printf "%s\n" "no" >&6; }
9336 _am_tools=none
9337 fi
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9339 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9340 if test x$gm_gid = xunknown; then
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9342 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9343 elif test $am_gid -le $am_max_gid; then
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9345 printf "%s\n" "yes" >&6; }
9346 else
9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 printf "%s\n" "no" >&6; }
9349 _am_tools=none
9350 fi
9351
9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9353 printf %s "checking how to create a ustar tar archive... " >&6; }
9354
9355 # Go ahead even if we have the value already cached. We do so because we
9356 # need to set the values for the 'am__tar' and 'am__untar' variables.
9357 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9358
9359 for _am_tool in $_am_tools; do
9360 case $_am_tool in
9361 gnutar)
9362 for _am_tar in tar gnutar gtar; do
9363 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9364 ($_am_tar --version) >&5 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } && break
9368 done
9369 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9370 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9371 am__untar="$_am_tar -xf -"
9372 ;;
9373 plaintar)
9374 # Must skip GNU tar: if it does not support --format= it doesn't create
9375 # ustar tarball either.
9376 (tar --version) >/dev/null 2>&1 && continue
9377 am__tar='tar chf - "$$tardir"'
9378 am__tar_='tar chf - "$tardir"'
9379 am__untar='tar xf -'
9380 ;;
9381 pax)
9382 am__tar='pax -L -x ustar -w "$$tardir"'
9383 am__tar_='pax -L -x ustar -w "$tardir"'
9384 am__untar='pax -r'
9385 ;;
9386 cpio)
9387 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9388 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9389 am__untar='cpio -i -H ustar -d'
9390 ;;
9391 none)
9392 am__tar=false
9393 am__tar_=false
9394 am__untar=false
9395 ;;
9396 esac
9397
9398 # If the value was cached, stop now. We just wanted to have am__tar
9399 # and am__untar set.
9400 test -n "${am_cv_prog_tar_ustar}" && break
9401
9402 # tar/untar a dummy directory, and stop if the command works.
9403 rm -rf conftest.dir
9404 mkdir conftest.dir
9405 echo GrepMe > conftest.dir/file
9406 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9407 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }
9411 rm -rf conftest.dir
9412 if test -s conftest.tar; then
9413 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9414 ($am__untar <conftest.tar) >&5 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }
9418 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9419 (cat conftest.dir/file) >&5 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }
9423 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9424 fi
9425 done
9426 rm -rf conftest.dir
9427
9428 if test ${am_cv_prog_tar_ustar+y}
9429 then :
9430 printf %s "(cached) " >&6
9431 else case e in #(
9432 e) am_cv_prog_tar_ustar=$_am_tool ;;
9433 esac
9434 fi
9435
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9437 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9438
9439
9440
9441
9442
9443 # Variables for tags utilities; see am/tags.am
9444 if test -z "$CTAGS"; then
9445 CTAGS=ctags
9446 fi
9447
9448 if test -z "$ETAGS"; then
9449 ETAGS=etags
9450 fi
9451
9452 if test -z "$CSCOPE"; then
9453 CSCOPE=cscope
9454 fi
9455
9456
9457
9458
9459
9460
9461
9462
9463 # am_maintainer_mode
9464
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9466 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9467 # Check whether --enable-maintainer-mode was given.
9468 if test ${enable_maintainer_mode+y}
9469 then :
9470 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9471 else case e in #(
9472 e) USE_MAINTAINER_MODE=no ;;
9473 esac
9474 fi
9475
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9477 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9478 if test $USE_MAINTAINER_MODE = yes; then
9479 MAINTAINER_MODE_TRUE=
9480 MAINTAINER_MODE_FALSE='#'
9481 else
9482 MAINTAINER_MODE_TRUE='#'
9483 MAINTAINER_MODE_FALSE=
9484 fi
9485
9486 MAINT=$MAINTAINER_MODE_TRUE
9487
9488
9489
9490 # See comments in kpse-setup.m4 about system extensions.
9491
9492
9493 # Check whether prototypes work.
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9495 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9496 if test ${kb_cv_c_prototypes+y}
9497 then :
9498 printf %s "(cached) " >&6
9499 else case e in #(
9500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 #include <stdarg.h>
9503 int
9504 main (void)
9505 {
9506 extern void foo(int i,...);
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 if ac_fn_c_try_link "$LINENO"
9512 then :
9513 kb_cv_c_prototypes=yes
9514 else case e in #(
9515 e) kb_cv_c_prototypes=no ;;
9516 esac
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9519 conftest$ac_exeext conftest.$ac_ext ;;
9520 esac
9521 fi
9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9523 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9524 if test "x$kb_cv_c_prototypes" = xno; then
9525 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9526 fi
9527
9528 # kpse_compiler_warnings options.
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9530 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9531 if test ${kpse_cv_warning_cflags+y}
9532 then :
9533 printf %s "(cached) " >&6
9534 else case e in #(
9535 e) if test "x$GCC" = xyes; then
9536 kpse_cv_warning_cflags=
9537 if test "x$enable_compiler_warnings" != xno; then
9538 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9539 case `$CC -dumpversion` in #(
9540 3.4.* | 4.* | 5.*) :
9541 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9542 *) :
9543 ;;
9544 esac
9545 case `$CC -dumpversion` in #(
9546 3.[234].* | 4.* | 5.*) :
9547 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9548 *) :
9549 ;;
9550 esac
9551 if test "x$enable_compiler_warnings" != xmin; then
9552 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9553 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9554 if test "x$enable_compiler_warnings" != xyes; then
9555 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9556 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9557 case `$CC -dumpversion` in #(
9558 3.4.* | 4.* | 5.*) :
9559 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9560 *) :
9561 ;;
9562 esac
9563 if test "x$enable_compiler_warnings" != xmax; then
9564 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9565 fi
9566 fi
9567 fi
9568 fi
9569 elif test "x$enable_compiler_warnings" = xno; then
9570 kpse_cv_warning_cflags=
9571 else
9572 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9573 fi ;;
9574 esac
9575 fi
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9577 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9578 WARNING_CFLAGS=$kpse_cv_warning_cflags
9579
9580
9581
9582
9583
9584
9585
9586 # end of kpse_basic macro.
9587 echo 'tldbg:KPSE_BASIC done (pkg=dvipdfm-x, amopt=)' >&5
9588
9589 # am_prog_ar must be called before lt_init.
9590
9591 if test -n "$ac_tool_prefix"; then
9592 for ac_prog in ar lib "link -lib"
9593 do
9594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 printf %s "checking for $ac_word... " >&6; }
9598 if test ${ac_cv_prog_AR+y}
9599 then :
9600 printf %s "(cached) " >&6
9601 else case e in #(
9602 e) if test -n "$AR"; then
9603 ac_cv_prog_AR="$AR" # Let the user override the test.
9604 else
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9607 do
9608 IFS=$as_save_IFS
9609 case $as_dir in #(((
9610 '') as_dir=./ ;;
9611 */) ;;
9612 *) as_dir=$as_dir/ ;;
9613 esac
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9616 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9618 break 2
9619 fi
9620 done
9621 done
9622 IFS=$as_save_IFS
9623
9624 fi ;;
9625 esac
9626 fi
9627 AR=$ac_cv_prog_AR
9628 if test -n "$AR"; then
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9630 printf "%s\n" "$AR" >&6; }
9631 else
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 printf "%s\n" "no" >&6; }
9634 fi
9635
9636
9637 test -n "$AR" && break
9638 done
9639 fi
9640 if test -z "$AR"; then
9641 ac_ct_AR=$AR
9642 for ac_prog in ar lib "link -lib"
9643 do
9644 # Extract the first word of "$ac_prog", so it can be a program name with args.
9645 set dummy $ac_prog; ac_word=$2
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 printf %s "checking for $ac_word... " >&6; }
9648 if test ${ac_cv_prog_ac_ct_AR+y}
9649 then :
9650 printf %s "(cached) " >&6
9651 else case e in #(
9652 e) if test -n "$ac_ct_AR"; then
9653 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9654 else
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 for as_dir in $PATH
9657 do
9658 IFS=$as_save_IFS
9659 case $as_dir in #(((
9660 '') as_dir=./ ;;
9661 */) ;;
9662 *) as_dir=$as_dir/ ;;
9663 esac
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9666 ac_cv_prog_ac_ct_AR="$ac_prog"
9667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9668 break 2
9669 fi
9670 done
9671 done
9672 IFS=$as_save_IFS
9673
9674 fi ;;
9675 esac
9676 fi
9677 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9678 if test -n "$ac_ct_AR"; then
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9680 printf "%s\n" "$ac_ct_AR" >&6; }
9681 else
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 printf "%s\n" "no" >&6; }
9684 fi
9685
9686
9687 test -n "$ac_ct_AR" && break
9688 done
9689
9690 if test "x$ac_ct_AR" = x; then
9691 AR="false"
9692 else
9693 case $cross_compiling:$ac_tool_warned in
9694 yes:)
9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9696 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9697 ac_tool_warned=yes ;;
9698 esac
9699 AR=$ac_ct_AR
9700 fi
9701 fi
9702
9703 : ${AR=ar}
9704 : ${ARFLAGS=cr}
9705
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9707 printf %s "checking the archiver ($AR) interface... " >&6; }
9708 if test ${am_cv_ar_interface+y}
9709 then :
9710 printf %s "(cached) " >&6
9711 else case e in #(
9712 e) ac_ext=c
9713 ac_cpp='$CPP $CPPFLAGS'
9714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9717
9718 am_cv_ar_interface=ar
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 int some_variable = 0;
9722 _ACEOF
9723 if ac_fn_c_try_compile "$LINENO"
9724 then :
9725 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9727 (eval $am_ar_try) 2>&5
9728 ac_status=$?
9729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9730 test $ac_status = 0; }
9731 if test "$ac_status" -eq 0; then
9732 am_cv_ar_interface=ar
9733 else
9734 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9736 (eval $am_ar_try) 2>&5
9737 ac_status=$?
9738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9739 test $ac_status = 0; }
9740 if test "$ac_status" -eq 0; then
9741 am_cv_ar_interface=lib
9742 else
9743 am_cv_ar_interface=unknown
9744 fi
9745 fi
9746 rm -f conftest.lib libconftest.a
9747
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9750 ac_ext=c
9751 ac_cpp='$CPP $CPPFLAGS'
9752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9755 ;;
9756 esac
9757 fi
9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9759 printf "%s\n" "$am_cv_ar_interface" >&6; }
9760
9761 case $am_cv_ar_interface in
9762 ar)
9763 ;;
9764 lib)
9765 # Microsoft lib, so override with the ar-lib wrapper script.
9766 # FIXME: It is wrong to rewrite AR.
9767 # But if we don't then we get into trouble of one sort or another.
9768 # A longer-term fix would be to have automake use am__AR in this case,
9769 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9770 # similar.
9771 AR="$am_aux_dir/ar-lib $AR"
9772 ;;
9773 unknown)
9774 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9775 ;;
9776 esac
9777
9778 # (end am_prog_ar)
9779 # starting lt_prereq + lt_init.
9780
9781
9782
9783
9784
9785 # Set options
9786 enable_win32_dll=yes
9787
9788 case $host in
9789 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9790 if test -n "$ac_tool_prefix"; then
9791 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9792 set dummy ${ac_tool_prefix}as; ac_word=$2
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 printf %s "checking for $ac_word... " >&6; }
9795 if test ${ac_cv_prog_AS+y}
9796 then :
9797 printf %s "(cached) " >&6
9798 else case e in #(
9799 e) if test -n "$AS"; then
9800 ac_cv_prog_AS="$AS" # Let the user override the test.
9801 else
9802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9803 for as_dir in $PATH
9804 do
9805 IFS=$as_save_IFS
9806 case $as_dir in #(((
9807 '') as_dir=./ ;;
9808 */) ;;
9809 *) as_dir=$as_dir/ ;;
9810 esac
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9813 ac_cv_prog_AS="${ac_tool_prefix}as"
9814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9815 break 2
9816 fi
9817 done
9818 done
9819 IFS=$as_save_IFS
9820
9821 fi ;;
9822 esac
9823 fi
9824 AS=$ac_cv_prog_AS
9825 if test -n "$AS"; then
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9827 printf "%s\n" "$AS" >&6; }
9828 else
9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830 printf "%s\n" "no" >&6; }
9831 fi
9832
9833
9834 fi
9835 if test -z "$ac_cv_prog_AS"; then
9836 ac_ct_AS=$AS
9837 # Extract the first word of "as", so it can be a program name with args.
9838 set dummy as; ac_word=$2
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 printf %s "checking for $ac_word... " >&6; }
9841 if test ${ac_cv_prog_ac_ct_AS+y}
9842 then :
9843 printf %s "(cached) " >&6
9844 else case e in #(
9845 e) if test -n "$ac_ct_AS"; then
9846 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9847 else
9848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 for as_dir in $PATH
9850 do
9851 IFS=$as_save_IFS
9852 case $as_dir in #(((
9853 '') as_dir=./ ;;
9854 */) ;;
9855 *) as_dir=$as_dir/ ;;
9856 esac
9857 for ac_exec_ext in '' $ac_executable_extensions; do
9858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9859 ac_cv_prog_ac_ct_AS="as"
9860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9861 break 2
9862 fi
9863 done
9864 done
9865 IFS=$as_save_IFS
9866
9867 fi ;;
9868 esac
9869 fi
9870 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9871 if test -n "$ac_ct_AS"; then
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9873 printf "%s\n" "$ac_ct_AS" >&6; }
9874 else
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 printf "%s\n" "no" >&6; }
9877 fi
9878
9879 if test "x$ac_ct_AS" = x; then
9880 AS="false"
9881 else
9882 case $cross_compiling:$ac_tool_warned in
9883 yes:)
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9885 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9886 ac_tool_warned=yes ;;
9887 esac
9888 AS=$ac_ct_AS
9889 fi
9890 else
9891 AS="$ac_cv_prog_AS"
9892 fi
9893
9894 if test -n "$ac_tool_prefix"; then
9895 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9896 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 printf %s "checking for $ac_word... " >&6; }
9899 if test ${ac_cv_prog_DLLTOOL+y}
9900 then :
9901 printf %s "(cached) " >&6
9902 else case e in #(
9903 e) if test -n "$DLLTOOL"; then
9904 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9905 else
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 for as_dir in $PATH
9908 do
9909 IFS=$as_save_IFS
9910 case $as_dir in #(((
9911 '') as_dir=./ ;;
9912 */) ;;
9913 *) as_dir=$as_dir/ ;;
9914 esac
9915 for ac_exec_ext in '' $ac_executable_extensions; do
9916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9917 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9919 break 2
9920 fi
9921 done
9922 done
9923 IFS=$as_save_IFS
9924
9925 fi ;;
9926 esac
9927 fi
9928 DLLTOOL=$ac_cv_prog_DLLTOOL
9929 if test -n "$DLLTOOL"; then
9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9931 printf "%s\n" "$DLLTOOL" >&6; }
9932 else
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 printf "%s\n" "no" >&6; }
9935 fi
9936
9937
9938 fi
9939 if test -z "$ac_cv_prog_DLLTOOL"; then
9940 ac_ct_DLLTOOL=$DLLTOOL
9941 # Extract the first word of "dlltool", so it can be a program name with args.
9942 set dummy dlltool; ac_word=$2
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 printf %s "checking for $ac_word... " >&6; }
9945 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9946 then :
9947 printf %s "(cached) " >&6
9948 else case e in #(
9949 e) if test -n "$ac_ct_DLLTOOL"; then
9950 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9951 else
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9954 do
9955 IFS=$as_save_IFS
9956 case $as_dir in #(((
9957 '') as_dir=./ ;;
9958 */) ;;
9959 *) as_dir=$as_dir/ ;;
9960 esac
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9963 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9965 break 2
9966 fi
9967 done
9968 done
9969 IFS=$as_save_IFS
9970
9971 fi ;;
9972 esac
9973 fi
9974 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9975 if test -n "$ac_ct_DLLTOOL"; then
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9977 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9978 else
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 printf "%s\n" "no" >&6; }
9981 fi
9982
9983 if test "x$ac_ct_DLLTOOL" = x; then
9984 DLLTOOL="false"
9985 else
9986 case $cross_compiling:$ac_tool_warned in
9987 yes:)
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9989 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9990 ac_tool_warned=yes ;;
9991 esac
9992 DLLTOOL=$ac_ct_DLLTOOL
9993 fi
9994 else
9995 DLLTOOL="$ac_cv_prog_DLLTOOL"
9996 fi
9997
9998 if test -n "$ac_tool_prefix"; then
9999 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10000 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 printf %s "checking for $ac_word... " >&6; }
10003 if test ${ac_cv_prog_OBJDUMP+y}
10004 then :
10005 printf %s "(cached) " >&6
10006 else case e in #(
10007 e) if test -n "$OBJDUMP"; then
10008 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10009 else
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10012 do
10013 IFS=$as_save_IFS
10014 case $as_dir in #(((
10015 '') as_dir=./ ;;
10016 */) ;;
10017 *) as_dir=$as_dir/ ;;
10018 esac
10019 for ac_exec_ext in '' $ac_executable_extensions; do
10020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10021 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10023 break 2
10024 fi
10025 done
10026 done
10027 IFS=$as_save_IFS
10028
10029 fi ;;
10030 esac
10031 fi
10032 OBJDUMP=$ac_cv_prog_OBJDUMP
10033 if test -n "$OBJDUMP"; then
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10035 printf "%s\n" "$OBJDUMP" >&6; }
10036 else
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 printf "%s\n" "no" >&6; }
10039 fi
10040
10041
10042 fi
10043 if test -z "$ac_cv_prog_OBJDUMP"; then
10044 ac_ct_OBJDUMP=$OBJDUMP
10045 # Extract the first word of "objdump", so it can be a program name with args.
10046 set dummy objdump; ac_word=$2
10047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048 printf %s "checking for $ac_word... " >&6; }
10049 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10050 then :
10051 printf %s "(cached) " >&6
10052 else case e in #(
10053 e) if test -n "$ac_ct_OBJDUMP"; then
10054 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10055 else
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10058 do
10059 IFS=$as_save_IFS
10060 case $as_dir in #(((
10061 '') as_dir=./ ;;
10062 */) ;;
10063 *) as_dir=$as_dir/ ;;
10064 esac
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10067 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10069 break 2
10070 fi
10071 done
10072 done
10073 IFS=$as_save_IFS
10074
10075 fi ;;
10076 esac
10077 fi
10078 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10079 if test -n "$ac_ct_OBJDUMP"; then
10080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10081 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10082 else
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 printf "%s\n" "no" >&6; }
10085 fi
10086
10087 if test "x$ac_ct_OBJDUMP" = x; then
10088 OBJDUMP="false"
10089 else
10090 case $cross_compiling:$ac_tool_warned in
10091 yes:)
10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10093 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10094 ac_tool_warned=yes ;;
10095 esac
10096 OBJDUMP=$ac_ct_OBJDUMP
10097 fi
10098 else
10099 OBJDUMP="$ac_cv_prog_OBJDUMP"
10100 fi
10101
10102 ;;
10103 esac
10104
10105 test -z "$AS" && AS=as
10106
10107
10108
10109
10110
10111 test -z "$DLLTOOL" && DLLTOOL=dlltool
10112
10113
10114
10115
10116
10117 test -z "$OBJDUMP" && OBJDUMP=objdump
10118
10119
10120
10121
10122
10123
10124
10125 enable_dlopen=no
10126
10127
10128
10129 # Check whether --enable-shared was given.
10130 if test ${enable_shared+y}
10131 then :
10132 enableval=$enable_shared; p=${PACKAGE-default}
10133 case $enableval in
10134 yes) enable_shared=yes ;;
10135 no) enable_shared=no ;;
10136 *)
10137 enable_shared=no
10138 # Look at the argument we got. We use all the common list separators.
10139 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10140 for pkg in $enableval; do
10141 IFS=$lt_save_ifs
10142 if test "X$pkg" = "X$p"; then
10143 enable_shared=yes
10144 fi
10145 done
10146 IFS=$lt_save_ifs
10147 ;;
10148 esac
10149 else case e in #(
10150 e) enable_shared=yes ;;
10151 esac
10152 fi
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162 # Check whether --enable-static was given.
10163 if test ${enable_static+y}
10164 then :
10165 enableval=$enable_static; p=${PACKAGE-default}
10166 case $enableval in
10167 yes) enable_static=yes ;;
10168 no) enable_static=no ;;
10169 *)
10170 enable_static=no
10171 # Look at the argument we got. We use all the common list separators.
10172 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10173 for pkg in $enableval; do
10174 IFS=$lt_save_ifs
10175 if test "X$pkg" = "X$p"; then
10176 enable_static=yes
10177 fi
10178 done
10179 IFS=$lt_save_ifs
10180 ;;
10181 esac
10182 else case e in #(
10183 e) enable_static=yes ;;
10184 esac
10185 fi
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195 # Check whether --enable-pic was given.
10196 if test ${enable_pic+y}
10197 then :
10198 enableval=$enable_pic; lt_p=${PACKAGE-default}
10199 case $enableval in
10200 yes|no) pic_mode=$enableval ;;
10201 *)
10202 pic_mode=default
10203 # Look at the argument we got. We use all the common list separators.
10204 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10205 for lt_pkg in $enableval; do
10206 IFS=$lt_save_ifs
10207 if test "X$lt_pkg" = "X$lt_p"; then
10208 pic_mode=yes
10209 fi
10210 done
10211 IFS=$lt_save_ifs
10212 ;;
10213 esac
10214 else case e in #(
10215 e) # Check whether --with-pic was given.
10216 if test ${with_pic+y}
10217 then :
10218 withval=$with_pic; lt_p=${PACKAGE-default}
10219 case $withval in
10220 yes|no) pic_mode=$withval ;;
10221 *)
10222 pic_mode=default
10223 # Look at the argument we got. We use all the common list separators.
10224 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10225 for lt_pkg in $withval; do
10226 IFS=$lt_save_ifs
10227 if test "X$lt_pkg" = "X$lt_p"; then
10228 pic_mode=yes
10229 fi
10230 done
10231 IFS=$lt_save_ifs
10232 ;;
10233 esac
10234 else case e in #(
10235 e) pic_mode=default ;;
10236 esac
10237 fi
10238
10239 ;;
10240 esac
10241 fi
10242
10243
10244
10245
10246
10247
10248
10249
10250 # Check whether --enable-fast-install was given.
10251 if test ${enable_fast_install+y}
10252 then :
10253 enableval=$enable_fast_install; p=${PACKAGE-default}
10254 case $enableval in
10255 yes) enable_fast_install=yes ;;
10256 no) enable_fast_install=no ;;
10257 *)
10258 enable_fast_install=no
10259 # Look at the argument we got. We use all the common list separators.
10260 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10261 for pkg in $enableval; do
10262 IFS=$lt_save_ifs
10263 if test "X$pkg" = "X$p"; then
10264 enable_fast_install=yes
10265 fi
10266 done
10267 IFS=$lt_save_ifs
10268 ;;
10269 esac
10270 else case e in #(
10271 e) enable_fast_install=yes ;;
10272 esac
10273 fi
10274
10275
10276
10277
10278
10279
10280
10281
10282 shared_archive_member_spec=
10283 case $host,$enable_shared in
10284 power*-*-aix[5-9]*,yes)
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10286 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10287 # Check whether --enable-aix-soname was given.
10288 if test ${enable_aix_soname+y}
10289 then :
10290 enableval=$enable_aix_soname; case $enableval in
10291 aix|svr4|both)
10292 ;;
10293 *)
10294 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10295 ;;
10296 esac
10297 lt_cv_with_aix_soname=$enable_aix_soname
10298 else case e in #(
10299 e) # Check whether --with-aix-soname was given.
10300 if test ${with_aix_soname+y}
10301 then :
10302 withval=$with_aix_soname; case $withval in
10303 aix|svr4|both)
10304 ;;
10305 *)
10306 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10307 ;;
10308 esac
10309 lt_cv_with_aix_soname=$with_aix_soname
10310 else case e in #(
10311 e) if test ${lt_cv_with_aix_soname+y}
10312 then :
10313 printf %s "(cached) " >&6
10314 else case e in #(
10315 e) lt_cv_with_aix_soname=aix ;;
10316 esac
10317 fi
10318 ;;
10319 esac
10320 fi
10321
10322 enable_aix_soname=$lt_cv_with_aix_soname ;;
10323 esac
10324 fi
10325
10326 with_aix_soname=$enable_aix_soname
10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10328 printf "%s\n" "$with_aix_soname" >&6; }
10329 if test aix != "$with_aix_soname"; then
10330 # For the AIX way of multilib, we name the shared archive member
10331 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10332 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10333 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10334 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10335 if test 64 = "${OBJECT_MODE-32}"; then
10336 shared_archive_member_spec=shr_64
10337 else
10338 shared_archive_member_spec=shr
10339 fi
10340 fi
10341 ;;
10342 *)
10343 with_aix_soname=aix
10344 ;;
10345 esac
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356 # This can be used to rebuild libtool when needed
10357 LIBTOOL_DEPS=$ltmain
10358
10359 # Always use our own libtool.
10360 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391 test -z "$LN_S" && LN_S="ln -s"
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406 if test -n "${ZSH_VERSION+set}"; then
10407 setopt NO_GLOB_SUBST
10408 fi
10409
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10411 printf %s "checking for objdir... " >&6; }
10412 if test ${lt_cv_objdir+y}
10413 then :
10414 printf %s "(cached) " >&6
10415 else case e in #(
10416 e) rm -f .libs 2>/dev/null
10417 mkdir .libs 2>/dev/null
10418 if test -d .libs; then
10419 lt_cv_objdir=.libs
10420 else
10421 # MS-DOS does not allow filenames that begin with a dot.
10422 lt_cv_objdir=_libs
10423 fi
10424 rmdir .libs 2>/dev/null ;;
10425 esac
10426 fi
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10428 printf "%s\n" "$lt_cv_objdir" >&6; }
10429 objdir=$lt_cv_objdir
10430
10431
10432
10433
10434
10435 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10436
10437
10438
10439
10440 case $host_os in
10441 aix3*)
10442 # AIX sometimes has problems with the GCC collect2 program. For some
10443 # reason, if we set the COLLECT_NAMES environment variable, the problems
10444 # vanish in a puff of smoke.
10445 if test set != "${COLLECT_NAMES+set}"; then
10446 COLLECT_NAMES=
10447 export COLLECT_NAMES
10448 fi
10449 ;;
10450 esac
10451
10452 # Global variables:
10453 ofile=libtool
10454 can_build_shared=yes
10455
10456 # All known linkers require a '.a' archive for static linking (except MSVC and
10457 # ICC, which need '.lib').
10458 libext=a
10459
10460 with_gnu_ld=$lt_cv_prog_gnu_ld
10461
10462 old_CC=$CC
10463 old_CFLAGS=$CFLAGS
10464
10465 # Set sane defaults for various variables
10466 test -z "$CC" && CC=cc
10467 test -z "$LTCC" && LTCC=$CC
10468 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10469 test -z "$LD" && LD=ld
10470 test -z "$ac_objext" && ac_objext=o
10471
10472 func_cc_basename $compiler
10473 cc_basename=$func_cc_basename_result
10474
10475
10476 # Only perform the check for file, if the check method requires it
10477 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10478 case $deplibs_check_method in
10479 file_magic*)
10480 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10482 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10483 if test ${lt_cv_path_MAGIC_CMD+y}
10484 then :
10485 printf %s "(cached) " >&6
10486 else case e in #(
10487 e) case $MAGIC_CMD in
10488 [\\/*] | ?:[\\/]*)
10489 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10490 ;;
10491 *)
10492 lt_save_MAGIC_CMD=$MAGIC_CMD
10493 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10494 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10495 for ac_dir in $ac_dummy; do
10496 IFS=$lt_save_ifs
10497 test -z "$ac_dir" && ac_dir=.
10498 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10499 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10500 if test -n "$file_magic_test_file"; then
10501 case $deplibs_check_method in
10502 "file_magic "*)
10503 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10504 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10506 $EGREP "$file_magic_regex" > /dev/null; then
10507 :
10508 else
10509 cat <<_LT_EOF 1>&2
10510
10511 *** Warning: the command libtool uses to detect shared libraries,
10512 *** $file_magic_cmd, produces output that libtool cannot recognize.
10513 *** The result is that libtool may fail to recognize shared libraries
10514 *** as such. This will affect the creation of libtool libraries that
10515 *** depend on shared libraries, but programs linked with such libtool
10516 *** libraries will work regardless of this problem. Nevertheless, you
10517 *** may want to report the problem to your system manager and/or to
10518 *** [email protected]
10519
10520 _LT_EOF
10521 fi ;;
10522 esac
10523 fi
10524 break
10525 fi
10526 done
10527 IFS=$lt_save_ifs
10528 MAGIC_CMD=$lt_save_MAGIC_CMD
10529 ;;
10530 esac ;;
10531 esac
10532 fi
10533
10534 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10535 if test -n "$MAGIC_CMD"; then
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10537 printf "%s\n" "$MAGIC_CMD" >&6; }
10538 else
10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 printf "%s\n" "no" >&6; }
10541 fi
10542
10543
10544
10545
10546
10547 if test -z "$lt_cv_path_MAGIC_CMD"; then
10548 if test -n "$ac_tool_prefix"; then
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10550 printf %s "checking for file... " >&6; }
10551 if test ${lt_cv_path_MAGIC_CMD+y}
10552 then :
10553 printf %s "(cached) " >&6
10554 else case e in #(
10555 e) case $MAGIC_CMD in
10556 [\\/*] | ?:[\\/]*)
10557 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10558 ;;
10559 *)
10560 lt_save_MAGIC_CMD=$MAGIC_CMD
10561 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10563 for ac_dir in $ac_dummy; do
10564 IFS=$lt_save_ifs
10565 test -z "$ac_dir" && ac_dir=.
10566 if test -f "$ac_dir/file"; then
10567 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10568 if test -n "$file_magic_test_file"; then
10569 case $deplibs_check_method in
10570 "file_magic "*)
10571 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10572 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10574 $EGREP "$file_magic_regex" > /dev/null; then
10575 :
10576 else
10577 cat <<_LT_EOF 1>&2
10578
10579 *** Warning: the command libtool uses to detect shared libraries,
10580 *** $file_magic_cmd, produces output that libtool cannot recognize.
10581 *** The result is that libtool may fail to recognize shared libraries
10582 *** as such. This will affect the creation of libtool libraries that
10583 *** depend on shared libraries, but programs linked with such libtool
10584 *** libraries will work regardless of this problem. Nevertheless, you
10585 *** may want to report the problem to your system manager and/or to
10586 *** [email protected]
10587
10588 _LT_EOF
10589 fi ;;
10590 esac
10591 fi
10592 break
10593 fi
10594 done
10595 IFS=$lt_save_ifs
10596 MAGIC_CMD=$lt_save_MAGIC_CMD
10597 ;;
10598 esac ;;
10599 esac
10600 fi
10601
10602 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10603 if test -n "$MAGIC_CMD"; then
10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10605 printf "%s\n" "$MAGIC_CMD" >&6; }
10606 else
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 printf "%s\n" "no" >&6; }
10609 fi
10610
10611
10612 else
10613 MAGIC_CMD=:
10614 fi
10615 fi
10616
10617 fi
10618 ;;
10619 esac
10620
10621 # Use C for the default configuration in the libtool script
10622
10623 lt_save_CC=$CC
10624 ac_ext=c
10625 ac_cpp='$CPP $CPPFLAGS'
10626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10629
10630
10631 # Source file extension for C test sources.
10632 ac_ext=c
10633
10634 # Object file extension for compiled C test sources.
10635 objext=o
10636 objext=$objext
10637
10638 # Code to be used in simple compile tests
10639 lt_simple_compile_test_code="int some_variable = 0;"
10640
10641 # Code to be used in simple link tests
10642 lt_simple_link_test_code='int main(void){return(0);}'
10643
10644
10645
10646
10647
10648
10649
10650 # If no C compiler was specified, use CC.
10651 LTCC=${LTCC-"$CC"}
10652
10653 # If no C compiler flags were specified, use CFLAGS.
10654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10655
10656 # Allow CC to be a program name with arguments.
10657 compiler=$CC
10658
10659 # Save the default compiler, since it gets overwritten when the other
10660 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10661 compiler_DEFAULT=$CC
10662
10663 # save warnings/boilerplate of simple test code
10664 ac_outfile=conftest.$ac_objext
10665 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10666 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10667 _lt_compiler_boilerplate=`cat conftest.err`
10668 $RM conftest*
10669
10670 ac_outfile=conftest.$ac_objext
10671 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10672 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10673 _lt_linker_boilerplate=`cat conftest.err`
10674 $RM -r conftest*
10675
10676
10677 ## CAVEAT EMPTOR:
10678 ## There is no encapsulation within the following macros, do not change
10679 ## the running order or otherwise move them around unless you know exactly
10680 ## what you are doing...
10681 if test -n "$compiler"; then
10682
10683 lt_prog_compiler_no_builtin_flag=
10684
10685 if test yes = "$GCC"; then
10686 case $cc_basename in
10687 nvcc*)
10688 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10689 *)
10690 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10691 esac
10692
10693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10694 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10695 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10696 then :
10697 printf %s "(cached) " >&6
10698 else case e in #(
10699 e) lt_cv_prog_compiler_rtti_exceptions=no
10700 ac_outfile=conftest.$ac_objext
10701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10702 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10703 # Insert the option either (1) after the last *FLAGS variable, or
10704 # (2) before a word containing "conftest.", or (3) at the end.
10705 # Note that $ac_compile itself does not contain backslashes and begins
10706 # with a dollar sign (not a hyphen), so the echo should work correctly.
10707 # The option is referenced via a variable to avoid confusing sed.
10708 lt_compile=`echo "$ac_compile" | $SED \
10709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10711 -e 's:$: $lt_compiler_flag:'`
10712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10713 (eval "$lt_compile" 2>conftest.err)
10714 ac_status=$?
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 if (exit $ac_status) && test -s "$ac_outfile"; then
10718 # The compiler can only warn and ignore the option if not recognized
10719 # So say no if there are warnings other than the usual output.
10720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10722 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10723 lt_cv_prog_compiler_rtti_exceptions=yes
10724 fi
10725 fi
10726 $RM conftest*
10727 ;;
10728 esac
10729 fi
10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10731 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10732
10733 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10734 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10735 else
10736 :
10737 fi
10738
10739 fi
10740
10741
10742
10743
10744
10745
10746 lt_prog_compiler_wl=
10747 lt_prog_compiler_pic=
10748 lt_prog_compiler_static=
10749
10750
10751 if test yes = "$GCC"; then
10752 lt_prog_compiler_wl='-Wl,'
10753 lt_prog_compiler_static='-static'
10754
10755 case $host_os in
10756 aix*)
10757 # All AIX code is PIC.
10758 if test ia64 = "$host_cpu"; then
10759 # AIX 5 now supports IA64 processor
10760 lt_prog_compiler_static='-Bstatic'
10761 fi
10762 lt_prog_compiler_pic='-fPIC'
10763 ;;
10764
10765 amigaos*)
10766 case $host_cpu in
10767 powerpc)
10768 # see comment about AmigaOS4 .so support
10769 lt_prog_compiler_pic='-fPIC'
10770 ;;
10771 m68k)
10772 # FIXME: we need at least 68020 code to build shared libraries, but
10773 # adding the '-m68020' flag to GCC prevents building anything better,
10774 # like '-m68040'.
10775 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10776 ;;
10777 esac
10778 ;;
10779
10780 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10781 # PIC is the default for these OSes.
10782 ;;
10783
10784 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10785 # This hack is so that the source file can tell whether it is being
10786 # built for inclusion in a dll (and should export symbols for example).
10787 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10788 # (--disable-auto-import) libraries
10789 lt_prog_compiler_pic='-DDLL_EXPORT'
10790 case $host_os in
10791 os2*)
10792 lt_prog_compiler_static='$wl-static'
10793 ;;
10794 esac
10795 ;;
10796
10797 darwin* | rhapsody*)
10798 # PIC is the default on this platform
10799 # Common symbols not allowed in MH_DYLIB files
10800 lt_prog_compiler_pic='-fno-common'
10801 ;;
10802
10803 haiku*)
10804 # PIC is the default for Haiku.
10805 # The "-static" flag exists, but is broken.
10806 lt_prog_compiler_static=
10807 ;;
10808
10809 hpux*)
10810 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10811 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10812 # sets the default TLS model and affects inlining.
10813 case $host_cpu in
10814 hppa*64*)
10815 # +Z the default
10816 ;;
10817 *)
10818 lt_prog_compiler_pic='-fPIC'
10819 ;;
10820 esac
10821 ;;
10822
10823 interix[3-9]*)
10824 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10825 # Instead, we relocate shared libraries at runtime.
10826 ;;
10827
10828 msdosdjgpp*)
10829 # Just because we use GCC doesn't mean we suddenly get shared libraries
10830 # on systems that don't support them.
10831 lt_prog_compiler_can_build_shared=no
10832 enable_shared=no
10833 ;;
10834
10835 *nto* | *qnx*)
10836 # QNX uses GNU C++, but need to define -shared option too, otherwise
10837 # it will coredump.
10838 lt_prog_compiler_pic='-fPIC -shared'
10839 ;;
10840
10841 sysv4*MP*)
10842 if test -d /usr/nec; then
10843 lt_prog_compiler_pic=-Kconform_pic
10844 fi
10845 ;;
10846
10847 *)
10848 lt_prog_compiler_pic='-fPIC'
10849 ;;
10850 esac
10851
10852 case $cc_basename in
10853 nvcc*) # Cuda Compiler Driver 2.2
10854 lt_prog_compiler_wl='-Xlinker '
10855 if test -n "$lt_prog_compiler_pic"; then
10856 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10857 fi
10858 ;;
10859 esac
10860 else
10861 # PORTME Check for flag to pass linker flags through the system compiler.
10862 case $host_os in
10863 aix*)
10864 lt_prog_compiler_wl='-Wl,'
10865 if test ia64 = "$host_cpu"; then
10866 # AIX 5 now supports IA64 processor
10867 lt_prog_compiler_static='-Bstatic'
10868 else
10869 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10870 fi
10871 ;;
10872
10873 darwin* | rhapsody*)
10874 # PIC is the default on this platform
10875 # Common symbols not allowed in MH_DYLIB files
10876 lt_prog_compiler_pic='-fno-common'
10877 case $cc_basename in
10878 nagfor*)
10879 # NAG Fortran compiler
10880 lt_prog_compiler_wl='-Wl,-Wl,,'
10881 lt_prog_compiler_pic='-PIC'
10882 lt_prog_compiler_static='-Bstatic'
10883 ;;
10884 esac
10885 ;;
10886
10887 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10888 # This hack is so that the source file can tell whether it is being
10889 # built for inclusion in a dll (and should export symbols for example).
10890 lt_prog_compiler_pic='-DDLL_EXPORT'
10891 case $host_os in
10892 os2*)
10893 lt_prog_compiler_static='$wl-static'
10894 ;;
10895 esac
10896 ;;
10897
10898 hpux9* | hpux10* | hpux11*)
10899 lt_prog_compiler_wl='-Wl,'
10900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10901 # not for PA HP-UX.
10902 case $host_cpu in
10903 hppa*64*|ia64*)
10904 # +Z the default
10905 ;;
10906 *)
10907 lt_prog_compiler_pic='+Z'
10908 ;;
10909 esac
10910 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10911 lt_prog_compiler_static='$wl-a ${wl}archive'
10912 ;;
10913
10914 irix5* | irix6* | nonstopux*)
10915 lt_prog_compiler_wl='-Wl,'
10916 # PIC (with -KPIC) is the default.
10917 lt_prog_compiler_static='-non_shared'
10918 ;;
10919
10920 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10921 case $cc_basename in
10922 # old Intel for x86_64, which still supported -KPIC.
10923 ecc*)
10924 lt_prog_compiler_wl='-Wl,'
10925 lt_prog_compiler_pic='-KPIC'
10926 lt_prog_compiler_static='-static'
10927 ;;
10928 *flang* | ftn | f18* | f95*)
10929 # Flang compiler.
10930 lt_prog_compiler_wl='-Wl,'
10931 lt_prog_compiler_pic='-fPIC'
10932 lt_prog_compiler_static='-static'
10933 ;;
10934 # icc used to be incompatible with GCC.
10935 # ICC 10 doesn't accept -KPIC any more.
10936 icc* | ifort*)
10937 lt_prog_compiler_wl='-Wl,'
10938 lt_prog_compiler_pic='-fPIC'
10939 lt_prog_compiler_static='-static'
10940 ;;
10941 # Lahey Fortran 8.1.
10942 lf95*)
10943 lt_prog_compiler_wl='-Wl,'
10944 lt_prog_compiler_pic='--shared'
10945 lt_prog_compiler_static='--static'
10946 ;;
10947 nagfor*)
10948 # NAG Fortran compiler
10949 lt_prog_compiler_wl='-Wl,-Wl,,'
10950 lt_prog_compiler_pic='-PIC'
10951 lt_prog_compiler_static='-Bstatic'
10952 ;;
10953 tcc*)
10954 # Fabrice Bellard et al's Tiny C Compiler
10955 lt_prog_compiler_wl='-Wl,'
10956 lt_prog_compiler_pic='-fPIC'
10957 lt_prog_compiler_static='-static'
10958 ;;
10959 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10960 # Portland Group compilers (*not* the Pentium gcc compiler,
10961 # which looks to be a dead project)
10962 lt_prog_compiler_wl='-Wl,'
10963 lt_prog_compiler_pic='-fpic'
10964 lt_prog_compiler_static='-Bstatic'
10965 ;;
10966 ccc*)
10967 lt_prog_compiler_wl='-Wl,'
10968 # All Alpha code is PIC.
10969 lt_prog_compiler_static='-non_shared'
10970 ;;
10971 xl* | bgxl* | bgf* | mpixl*)
10972 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10973 lt_prog_compiler_wl='-Wl,'
10974 lt_prog_compiler_pic='-qpic'
10975 lt_prog_compiler_static='-qstaticlink'
10976 ;;
10977 *)
10978 case `$CC -V 2>&1 | $SED 5q` in
10979 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10980 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10981 lt_prog_compiler_pic='-KPIC'
10982 lt_prog_compiler_static='-Bstatic'
10983 lt_prog_compiler_wl=''
10984 ;;
10985 *Sun\ F* | *Sun*Fortran*)
10986 lt_prog_compiler_pic='-KPIC'
10987 lt_prog_compiler_static='-Bstatic'
10988 lt_prog_compiler_wl='-Qoption ld '
10989 ;;
10990 *Sun\ C*)
10991 # Sun C 5.9
10992 lt_prog_compiler_pic='-KPIC'
10993 lt_prog_compiler_static='-Bstatic'
10994 lt_prog_compiler_wl='-Wl,'
10995 ;;
10996 *Intel*\ [CF]*Compiler*)
10997 lt_prog_compiler_wl='-Wl,'
10998 lt_prog_compiler_pic='-fPIC'
10999 lt_prog_compiler_static='-static'
11000 ;;
11001 *Portland\ Group*)
11002 lt_prog_compiler_wl='-Wl,'
11003 lt_prog_compiler_pic='-fpic'
11004 lt_prog_compiler_static='-Bstatic'
11005 ;;
11006 esac
11007 ;;
11008 esac
11009 ;;
11010
11011 newsos6)
11012 lt_prog_compiler_pic='-KPIC'
11013 lt_prog_compiler_static='-Bstatic'
11014 ;;
11015
11016 *-mlibc)
11017 lt_prog_compiler_wl='-Wl,'
11018 lt_prog_compiler_pic='-fPIC'
11019 lt_prog_compiler_static='-static'
11020 ;;
11021
11022 *nto* | *qnx*)
11023 # QNX uses GNU C++, but need to define -shared option too, otherwise
11024 # it will coredump.
11025 lt_prog_compiler_pic='-fPIC -shared'
11026 ;;
11027
11028 osf3* | osf4* | osf5*)
11029 lt_prog_compiler_wl='-Wl,'
11030 # All OSF/1 code is PIC.
11031 lt_prog_compiler_static='-non_shared'
11032 ;;
11033
11034 rdos*)
11035 lt_prog_compiler_static='-non_shared'
11036 ;;
11037
11038 serenity*)
11039 ;;
11040
11041 solaris*)
11042 lt_prog_compiler_pic='-KPIC'
11043 lt_prog_compiler_static='-Bstatic'
11044 case $cc_basename in
11045 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11046 lt_prog_compiler_wl='-Qoption ld ';;
11047 *)
11048 lt_prog_compiler_wl='-Wl,';;
11049 esac
11050 ;;
11051
11052 sunos4*)
11053 lt_prog_compiler_wl='-Qoption ld '
11054 lt_prog_compiler_pic='-PIC'
11055 lt_prog_compiler_static='-Bstatic'
11056 ;;
11057
11058 sysv4 | sysv4.2uw2* | sysv4.3*)
11059 lt_prog_compiler_wl='-Wl,'
11060 lt_prog_compiler_pic='-KPIC'
11061 lt_prog_compiler_static='-Bstatic'
11062 ;;
11063
11064 sysv4*MP*)
11065 if test -d /usr/nec; then
11066 lt_prog_compiler_pic='-Kconform_pic'
11067 lt_prog_compiler_static='-Bstatic'
11068 fi
11069 ;;
11070
11071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11072 lt_prog_compiler_wl='-Wl,'
11073 lt_prog_compiler_pic='-KPIC'
11074 lt_prog_compiler_static='-Bstatic'
11075 ;;
11076
11077 unicos*)
11078 lt_prog_compiler_wl='-Wl,'
11079 lt_prog_compiler_can_build_shared=no
11080 ;;
11081
11082 uts4*)
11083 lt_prog_compiler_pic='-pic'
11084 lt_prog_compiler_static='-Bstatic'
11085 ;;
11086
11087 *)
11088 lt_prog_compiler_can_build_shared=no
11089 ;;
11090 esac
11091 fi
11092
11093 case $host_os in
11094 # For platforms that do not support PIC, -DPIC is meaningless:
11095 *djgpp*)
11096 lt_prog_compiler_pic=
11097 ;;
11098 *)
11099 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11100 ;;
11101 esac
11102
11103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11104 printf %s "checking for $compiler option to produce PIC... " >&6; }
11105 if test ${lt_cv_prog_compiler_pic+y}
11106 then :
11107 printf %s "(cached) " >&6
11108 else case e in #(
11109 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11110 esac
11111 fi
11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11113 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11114 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11115
11116 #
11117 # Check to make sure the PIC flag actually works.
11118 #
11119 if test -n "$lt_prog_compiler_pic"; then
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11121 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11122 if test ${lt_cv_prog_compiler_pic_works+y}
11123 then :
11124 printf %s "(cached) " >&6
11125 else case e in #(
11126 e) lt_cv_prog_compiler_pic_works=no
11127 ac_outfile=conftest.$ac_objext
11128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11129 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11130 # Insert the option either (1) after the last *FLAGS variable, or
11131 # (2) before a word containing "conftest.", or (3) at the end.
11132 # Note that $ac_compile itself does not contain backslashes and begins
11133 # with a dollar sign (not a hyphen), so the echo should work correctly.
11134 # The option is referenced via a variable to avoid confusing sed.
11135 lt_compile=`echo "$ac_compile" | $SED \
11136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11138 -e 's:$: $lt_compiler_flag:'`
11139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11140 (eval "$lt_compile" 2>conftest.err)
11141 ac_status=$?
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 if (exit $ac_status) && test -s "$ac_outfile"; then
11145 # The compiler can only warn and ignore the option if not recognized
11146 # So say no if there are warnings other than the usual output.
11147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11150 lt_cv_prog_compiler_pic_works=yes
11151 fi
11152 fi
11153 $RM conftest*
11154 ;;
11155 esac
11156 fi
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11158 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11159
11160 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11161 case $lt_prog_compiler_pic in
11162 "" | " "*) ;;
11163 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11164 esac
11165 else
11166 lt_prog_compiler_pic=
11167 lt_prog_compiler_can_build_shared=no
11168 fi
11169
11170 fi
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182 #
11183 # Check to make sure the static flag actually works.
11184 #
11185 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11187 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11188 if test ${lt_cv_prog_compiler_static_works+y}
11189 then :
11190 printf %s "(cached) " >&6
11191 else case e in #(
11192 e) lt_cv_prog_compiler_static_works=no
11193 save_LDFLAGS=$LDFLAGS
11194 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11195 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11196 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11197 # The linker can only warn and ignore the option if not recognized
11198 # So say no if there are warnings
11199 if test -s conftest.err; then
11200 # Append any errors to the config.log.
11201 cat conftest.err 1>&5
11202 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11204 if diff conftest.exp conftest.er2 >/dev/null; then
11205 lt_cv_prog_compiler_static_works=yes
11206 fi
11207 else
11208 lt_cv_prog_compiler_static_works=yes
11209 fi
11210 fi
11211 $RM -r conftest*
11212 LDFLAGS=$save_LDFLAGS
11213 ;;
11214 esac
11215 fi
11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11217 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11218
11219 if test yes = "$lt_cv_prog_compiler_static_works"; then
11220 :
11221 else
11222 lt_prog_compiler_static=
11223 fi
11224
11225
11226
11227
11228
11229
11230
11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11232 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11233 if test ${lt_cv_prog_compiler_c_o+y}
11234 then :
11235 printf %s "(cached) " >&6
11236 else case e in #(
11237 e) lt_cv_prog_compiler_c_o=no
11238 $RM -r conftest 2>/dev/null
11239 mkdir conftest
11240 cd conftest
11241 mkdir out
11242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11243
11244 lt_compiler_flag="-o out/conftest2.$ac_objext"
11245 # Insert the option either (1) after the last *FLAGS variable, or
11246 # (2) before a word containing "conftest.", or (3) at the end.
11247 # Note that $ac_compile itself does not contain backslashes and begins
11248 # with a dollar sign (not a hyphen), so the echo should work correctly.
11249 lt_compile=`echo "$ac_compile" | $SED \
11250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11252 -e 's:$: $lt_compiler_flag:'`
11253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11254 (eval "$lt_compile" 2>out/conftest.err)
11255 ac_status=$?
11256 cat out/conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11259 then
11260 # The compiler can only warn and ignore the option if not recognized
11261 # So say no if there are warnings
11262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11263 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11264 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11265 lt_cv_prog_compiler_c_o=yes
11266 fi
11267 fi
11268 chmod u+w . 2>&5
11269 $RM conftest*
11270 # SGI C++ compiler will create directory out/ii_files/ for
11271 # template instantiation
11272 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11273 $RM out/* && rmdir out
11274 cd ..
11275 $RM -r conftest
11276 $RM conftest*
11277 ;;
11278 esac
11279 fi
11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11281 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11282
11283
11284
11285
11286
11287
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11289 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11290 if test ${lt_cv_prog_compiler_c_o+y}
11291 then :
11292 printf %s "(cached) " >&6
11293 else case e in #(
11294 e) lt_cv_prog_compiler_c_o=no
11295 $RM -r conftest 2>/dev/null
11296 mkdir conftest
11297 cd conftest
11298 mkdir out
11299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11300
11301 lt_compiler_flag="-o out/conftest2.$ac_objext"
11302 # Insert the option either (1) after the last *FLAGS variable, or
11303 # (2) before a word containing "conftest.", or (3) at the end.
11304 # Note that $ac_compile itself does not contain backslashes and begins
11305 # with a dollar sign (not a hyphen), so the echo should work correctly.
11306 lt_compile=`echo "$ac_compile" | $SED \
11307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11309 -e 's:$: $lt_compiler_flag:'`
11310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11311 (eval "$lt_compile" 2>out/conftest.err)
11312 ac_status=$?
11313 cat out/conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11316 then
11317 # The compiler can only warn and ignore the option if not recognized
11318 # So say no if there are warnings
11319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11320 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11321 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11322 lt_cv_prog_compiler_c_o=yes
11323 fi
11324 fi
11325 chmod u+w . 2>&5
11326 $RM conftest*
11327 # SGI C++ compiler will create directory out/ii_files/ for
11328 # template instantiation
11329 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11330 $RM out/* && rmdir out
11331 cd ..
11332 $RM -r conftest
11333 $RM conftest*
11334 ;;
11335 esac
11336 fi
11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11338 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11339
11340
11341
11342
11343 hard_links=nottested
11344 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11345 # do not overwrite the value of need_locks provided by the user
11346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11347 printf %s "checking if we can lock with hard links... " >&6; }
11348 hard_links=yes
11349 $RM conftest*
11350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11351 touch conftest.a
11352 ln conftest.a conftest.b 2>&5 || hard_links=no
11353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11355 printf "%s\n" "$hard_links" >&6; }
11356 if test no = "$hard_links"; then
11357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11358 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11359 need_locks=warn
11360 fi
11361 else
11362 need_locks=no
11363 fi
11364
11365
11366
11367
11368
11369
11370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11371 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11372
11373 runpath_var=
11374 allow_undefined_flag=
11375 always_export_symbols=no
11376 archive_cmds=
11377 archive_expsym_cmds=
11378 compiler_needs_object=no
11379 enable_shared_with_static_runtimes=no
11380 export_dynamic_flag_spec=
11381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11382 hardcode_automatic=no
11383 hardcode_direct=no
11384 hardcode_direct_absolute=no
11385 hardcode_libdir_flag_spec=
11386 hardcode_libdir_separator=
11387 hardcode_minus_L=no
11388 hardcode_shlibpath_var=unsupported
11389 inherit_rpath=no
11390 link_all_deplibs=unknown
11391 module_cmds=
11392 module_expsym_cmds=
11393 old_archive_from_new_cmds=
11394 old_archive_from_expsyms_cmds=
11395 thread_safe_flag_spec=
11396 whole_archive_flag_spec=
11397 # include_expsyms should be a list of space-separated symbols to be *always*
11398 # included in the symbol list
11399 include_expsyms=
11400 # exclude_expsyms can be an extended regexp of symbols to exclude
11401 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11402 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11403 # as well as any symbol that contains 'd'.
11404 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11405 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11406 # platforms (ab)use it in PIC code, but their linkers get confused if
11407 # the symbol is explicitly referenced. Since portable code cannot
11408 # rely on this symbol name, it's probably fine to never include it in
11409 # preloaded symbol tables.
11410 # Exclude shared library initialization/finalization symbols.
11411 extract_expsyms_cmds=
11412
11413 case $host_os in
11414 cygwin* | mingw* | windows* | pw32* | cegcc*)
11415 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11416 # When not using gcc, we currently assume that we are using
11417 # Microsoft Visual C++ or Intel C++ Compiler.
11418 if test yes != "$GCC"; then
11419 with_gnu_ld=no
11420 fi
11421 ;;
11422 interix*)
11423 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11424 with_gnu_ld=yes
11425 ;;
11426 esac
11427
11428 ld_shlibs=yes
11429
11430 # On some targets, GNU ld is compatible enough with the native linker
11431 # that we're better off using the native interface for both.
11432 lt_use_gnu_ld_interface=no
11433 if test yes = "$with_gnu_ld"; then
11434 case $host_os in
11435 aix*)
11436 # The AIX port of GNU ld has always aspired to compatibility
11437 # with the native linker. However, as the warning in the GNU ld
11438 # block says, versions before 2.19.5* couldn't really create working
11439 # shared libraries, regardless of the interface used.
11440 case `$LD -v 2>&1` in
11441 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11442 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11443 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11444 *)
11445 lt_use_gnu_ld_interface=yes
11446 ;;
11447 esac
11448 ;;
11449 *)
11450 lt_use_gnu_ld_interface=yes
11451 ;;
11452 esac
11453 fi
11454
11455 if test yes = "$lt_use_gnu_ld_interface"; then
11456 # If archive_cmds runs LD, not CC, wlarc should be empty
11457 wlarc='$wl'
11458
11459 # Set some defaults for GNU ld with shared library support. These
11460 # are reset later if shared libraries are not supported. Putting them
11461 # here allows them to be overridden if necessary.
11462 runpath_var=LD_RUN_PATH
11463 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11464 export_dynamic_flag_spec='$wl--export-dynamic'
11465 # ancient GNU ld didn't support --whole-archive et. al.
11466 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11467 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11468 else
11469 whole_archive_flag_spec=
11470 fi
11471 supports_anon_versioning=no
11472 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11473 *GNU\ gold*) supports_anon_versioning=yes ;;
11474 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11475 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11476 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11477 *\ 2.11.*) ;; # other 2.11 versions
11478 *) supports_anon_versioning=yes ;;
11479 esac
11480
11481 # See if GNU ld supports shared libraries.
11482 case $host_os in
11483 aix[3-9]*)
11484 # On AIX/PPC, the GNU linker is very broken
11485 if test ia64 != "$host_cpu"; then
11486 ld_shlibs=no
11487 cat <<_LT_EOF 1>&2
11488
11489 *** Warning: the GNU linker, at least up to release 2.19, is reported
11490 *** to be unable to reliably create shared libraries on AIX.
11491 *** Therefore, libtool is disabling shared libraries support. If you
11492 *** really care for shared libraries, you may want to install binutils
11493 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11494 *** You will then need to restart the configuration process.
11495
11496 _LT_EOF
11497 fi
11498 ;;
11499
11500 amigaos*)
11501 case $host_cpu in
11502 powerpc)
11503 # see comment about AmigaOS4 .so support
11504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11505 archive_expsym_cmds=''
11506 ;;
11507 m68k)
11508 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)'
11509 hardcode_libdir_flag_spec='-L$libdir'
11510 hardcode_minus_L=yes
11511 ;;
11512 esac
11513 ;;
11514
11515 beos*)
11516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11517 allow_undefined_flag=unsupported
11518 # Joseph Beckenbach <[email protected]> says some releases of gcc
11519 # support --undefined. This deserves some investigation. FIXME
11520 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11521 else
11522 ld_shlibs=no
11523 fi
11524 ;;
11525
11526 cygwin* | mingw* | windows* | pw32* | cegcc*)
11527 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11528 # as there is no search path for DLLs.
11529 hardcode_libdir_flag_spec='-L$libdir'
11530 export_dynamic_flag_spec='$wl--export-all-symbols'
11531 allow_undefined_flag=unsupported
11532 always_export_symbols=no
11533 enable_shared_with_static_runtimes=yes
11534 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'
11535 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11536 file_list_spec='@'
11537
11538 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11540 # If the export-symbols file already is a .def file, use it as
11541 # is; otherwise, prepend EXPORTS...
11542 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11543 cp $export_symbols $output_objdir/$soname.def;
11544 else
11545 echo EXPORTS > $output_objdir/$soname.def;
11546 cat $export_symbols >> $output_objdir/$soname.def;
11547 fi~
11548 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11549 else
11550 ld_shlibs=no
11551 fi
11552 ;;
11553
11554 haiku*)
11555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11556 link_all_deplibs=no
11557 ;;
11558
11559 os2*)
11560 hardcode_libdir_flag_spec='-L$libdir'
11561 hardcode_minus_L=yes
11562 allow_undefined_flag=unsupported
11563 shrext_cmds=.dll
11564 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11565 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11566 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11567 $ECHO EXPORTS >> $output_objdir/$libname.def~
11568 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11569 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11570 emximp -o $lib $output_objdir/$libname.def'
11571 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11572 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11573 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11574 $ECHO EXPORTS >> $output_objdir/$libname.def~
11575 prefix_cmds="$SED"~
11576 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11577 prefix_cmds="$prefix_cmds -e 1d";
11578 fi~
11579 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11580 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11581 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11582 emximp -o $lib $output_objdir/$libname.def'
11583 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11584 enable_shared_with_static_runtimes=yes
11585 file_list_spec='@'
11586 ;;
11587
11588 interix[3-9]*)
11589 hardcode_direct=no
11590 hardcode_shlibpath_var=no
11591 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11592 export_dynamic_flag_spec='$wl-E'
11593 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11594 # Instead, shared libraries are loaded at an image base (0x10000000 by
11595 # default) and relocated if they conflict, which is a slow very memory
11596 # consuming and fragmenting process. To avoid this, we pick a random,
11597 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11598 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11599 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11600 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'
11601 ;;
11602
11603 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11604 tmp_diet=no
11605 if test linux-dietlibc = "$host_os"; then
11606 case $cc_basename in
11607 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11608 esac
11609 fi
11610 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11611 && test no = "$tmp_diet"
11612 then
11613 tmp_addflag=' $pic_flag'
11614 tmp_sharedflag='-shared'
11615 case $cc_basename,$host_cpu in
11616 pgcc*) # Portland Group C compiler
11617 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'
11618 tmp_addflag=' $pic_flag'
11619 ;;
11620 pgf77* | pgf90* | pgf95* | pgfortran*)
11621 # Portland Group f77 and f90 compilers
11622 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'
11623 tmp_addflag=' $pic_flag -Mnomain' ;;
11624 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11625 tmp_addflag=' -i_dynamic' ;;
11626 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11627 tmp_addflag=' -i_dynamic -nofor_main' ;;
11628 ifc* | ifort*) # Intel Fortran compiler
11629 tmp_addflag=' -nofor_main' ;;
11630 lf95*) # Lahey Fortran 8.1
11631 whole_archive_flag_spec=
11632 tmp_sharedflag='--shared' ;;
11633 nagfor*) # NAGFOR 5.3
11634 tmp_sharedflag='-Wl,-shared' ;;
11635 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11636 tmp_sharedflag='-qmkshrobj'
11637 tmp_addflag= ;;
11638 nvcc*) # Cuda Compiler Driver 2.2
11639 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'
11640 compiler_needs_object=yes
11641 ;;
11642 esac
11643 case `$CC -V 2>&1 | $SED 5q` in
11644 *Sun\ C*) # Sun C 5.9
11645 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'
11646 compiler_needs_object=yes
11647 tmp_sharedflag='-G' ;;
11648 *Sun\ F*) # Sun Fortran 8.3
11649 tmp_sharedflag='-G' ;;
11650 esac
11651 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11652
11653 if test yes = "$supports_anon_versioning"; then
11654 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11655 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11656 echo "local: *; };" >> $output_objdir/$libname.ver~
11657 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11658 fi
11659
11660 case $cc_basename in
11661 tcc*)
11662 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11663 export_dynamic_flag_spec='-rdynamic'
11664 ;;
11665 xlf* | bgf* | bgxlf* | mpixlf*)
11666 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11667 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11668 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11669 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11670 if test yes = "$supports_anon_versioning"; then
11671 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11672 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11673 echo "local: *; };" >> $output_objdir/$libname.ver~
11674 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11675 fi
11676 ;;
11677 esac
11678 else
11679 ld_shlibs=no
11680 fi
11681 ;;
11682
11683 *-mlibc)
11684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11686 ;;
11687
11688 netbsd* | netbsdelf*-gnu)
11689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11690 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11691 wlarc=
11692 else
11693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11694 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11695 fi
11696 ;;
11697
11698 solaris*)
11699 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11700 ld_shlibs=no
11701 cat <<_LT_EOF 1>&2
11702
11703 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11704 *** create shared libraries on Solaris systems. Therefore, libtool
11705 *** is disabling shared libraries support. We urge you to upgrade GNU
11706 *** binutils to release 2.9.1 or newer. Another option is to modify
11707 *** your PATH or compiler configuration so that the native linker is
11708 *** used, and then restart.
11709
11710 _LT_EOF
11711 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11712 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11713 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11714 else
11715 ld_shlibs=no
11716 fi
11717 ;;
11718
11719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11720 case `$LD -v 2>&1` in
11721 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11722 ld_shlibs=no
11723 cat <<_LT_EOF 1>&2
11724
11725 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11726 *** reliably create shared libraries on SCO systems. Therefore, libtool
11727 *** is disabling shared libraries support. We urge you to upgrade GNU
11728 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11729 *** your PATH or compiler configuration so that the native linker is
11730 *** used, and then restart.
11731
11732 _LT_EOF
11733 ;;
11734 *)
11735 # For security reasons, it is highly recommended that you always
11736 # use absolute paths for naming shared libraries, and exclude the
11737 # DT_RUNPATH tag from executables and libraries. But doing so
11738 # requires that you compile everything twice, which is a pain.
11739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11740 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11743 else
11744 ld_shlibs=no
11745 fi
11746 ;;
11747 esac
11748 ;;
11749
11750 sunos4*)
11751 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11752 wlarc=
11753 hardcode_direct=yes
11754 hardcode_shlibpath_var=no
11755 ;;
11756
11757 *)
11758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11759 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11760 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11761 else
11762 ld_shlibs=no
11763 fi
11764 ;;
11765 esac
11766
11767 if test no = "$ld_shlibs"; then
11768 runpath_var=
11769 hardcode_libdir_flag_spec=
11770 export_dynamic_flag_spec=
11771 whole_archive_flag_spec=
11772 fi
11773 else
11774 # PORTME fill in a description of your system's linker (not GNU ld)
11775 case $host_os in
11776 aix3*)
11777 allow_undefined_flag=unsupported
11778 always_export_symbols=yes
11779 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'
11780 # Note: this linker hardcodes the directories in LIBPATH if there
11781 # are no directories specified by -L.
11782 hardcode_minus_L=yes
11783 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11784 # Neither direct hardcoding nor static linking is supported with a
11785 # broken collect2.
11786 hardcode_direct=unsupported
11787 fi
11788 ;;
11789
11790 aix[4-9]*)
11791 if test ia64 = "$host_cpu"; then
11792 # On IA64, the linker does run time linking by default, so we don't
11793 # have to do anything special.
11794 aix_use_runtimelinking=no
11795 exp_sym_flag='-Bexport'
11796 no_entry_flag=
11797 else
11798 # If we're using GNU nm, then we don't want the "-C" option.
11799 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11800 # Without the "-l" option, or with the "-B" option, AIX nm treats
11801 # weak defined symbols like other global defined symbols, whereas
11802 # GNU nm marks them as "W".
11803 # While the 'weak' keyword is ignored in the Export File, we need
11804 # it in the Import File for the 'aix-soname' feature, so we have
11805 # to replace the "-B" option with "-P" for AIX nm.
11806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11807 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'
11808 else
11809 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'
11810 fi
11811 aix_use_runtimelinking=no
11812
11813 # Test if we are trying to use run time linking or normal
11814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11815 # have runtime linking enabled, and use it for executables.
11816 # For shared libraries, we enable/disable runtime linking
11817 # depending on the kind of the shared library created -
11818 # when "with_aix_soname,aix_use_runtimelinking" is:
11819 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11820 # "aix,yes" lib.so shared, rtl:yes, for executables
11821 # lib.a static archive
11822 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11823 # lib.a(lib.so.V) shared, rtl:no, for executables
11824 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11825 # lib.a(lib.so.V) shared, rtl:no
11826 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11827 # lib.a static archive
11828 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11829 for ld_flag in $LDFLAGS; do
11830 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11831 aix_use_runtimelinking=yes
11832 break
11833 fi
11834 done
11835 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11836 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11837 # so we don't have lib.a shared libs to link our executables.
11838 # We have to force runtime linking in this case.
11839 aix_use_runtimelinking=yes
11840 LDFLAGS="$LDFLAGS -Wl,-brtl"
11841 fi
11842 ;;
11843 esac
11844
11845 exp_sym_flag='-bexport'
11846 no_entry_flag='-bnoentry'
11847 fi
11848
11849 # When large executables or shared objects are built, AIX ld can
11850 # have problems creating the table of contents. If linking a library
11851 # or program results in "error TOC overflow" add -mminimal-toc to
11852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11854
11855 archive_cmds=''
11856 hardcode_direct=yes
11857 hardcode_direct_absolute=yes
11858 hardcode_libdir_separator=':'
11859 link_all_deplibs=yes
11860 file_list_spec='$wl-f,'
11861 case $with_aix_soname,$aix_use_runtimelinking in
11862 aix,*) ;; # traditional, no import file
11863 svr4,* | *,yes) # use import file
11864 # The Import File defines what to hardcode.
11865 hardcode_direct=no
11866 hardcode_direct_absolute=no
11867 ;;
11868 esac
11869
11870 if test yes = "$GCC"; then
11871 case $host_os in aix4.[012]|aix4.[012].*)
11872 # We only want to do this on AIX 4.2 and lower, the check
11873 # below for broken collect2 doesn't work under 4.3+
11874 collect2name=`$CC -print-prog-name=collect2`
11875 if test -f "$collect2name" &&
11876 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11877 then
11878 # We have reworked collect2
11879 :
11880 else
11881 # We have old collect2
11882 hardcode_direct=unsupported
11883 # It fails to find uninstalled libraries when the uninstalled
11884 # path is not listed in the libpath. Setting hardcode_minus_L
11885 # to unsupported forces relinking
11886 hardcode_minus_L=yes
11887 hardcode_libdir_flag_spec='-L$libdir'
11888 hardcode_libdir_separator=
11889 fi
11890 ;;
11891 esac
11892 shared_flag='-shared'
11893 if test yes = "$aix_use_runtimelinking"; then
11894 shared_flag="$shared_flag "'$wl-G'
11895 fi
11896 # Need to ensure runtime linking is disabled for the traditional
11897 # shared library, or the linker may eventually find shared libraries
11898 # /with/ Import File - we do not want to mix them.
11899 shared_flag_aix='-shared'
11900 shared_flag_svr4='-shared $wl-G'
11901 else
11902 # not using gcc
11903 if test ia64 = "$host_cpu"; then
11904 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11905 # chokes on -Wl,-G. The following line is correct:
11906 shared_flag='-G'
11907 else
11908 if test yes = "$aix_use_runtimelinking"; then
11909 shared_flag='$wl-G'
11910 else
11911 shared_flag='$wl-bM:SRE'
11912 fi
11913 shared_flag_aix='$wl-bM:SRE'
11914 shared_flag_svr4='$wl-G'
11915 fi
11916 fi
11917
11918 export_dynamic_flag_spec='$wl-bexpall'
11919 # It seems that -bexpall does not export symbols beginning with
11920 # underscore (_), so it is better to generate a list of symbols to export.
11921 always_export_symbols=yes
11922 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11923 # Warning - without using the other runtime loading flags (-brtl),
11924 # -berok will link without error, but may produce a broken library.
11925 allow_undefined_flag='-berok'
11926 # Determine the default libpath from the value encoded in an
11927 # empty executable.
11928 if test set = "${lt_cv_aix_libpath+set}"; then
11929 aix_libpath=$lt_cv_aix_libpath
11930 else
11931 if test ${lt_cv_aix_libpath_+y}
11932 then :
11933 printf %s "(cached) " >&6
11934 else case e in #(
11935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11937
11938 int
11939 main (void)
11940 {
11941
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 if ac_fn_c_try_link "$LINENO"
11947 then :
11948
11949 lt_aix_libpath_sed='
11950 /Import File Strings/,/^$/ {
11951 /^0/ {
11952 s/^0 *\([^ ]*\) *$/\1/
11953 p
11954 }
11955 }'
11956 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11957 # Check for a 64-bit object if we didn't find anything.
11958 if test -z "$lt_cv_aix_libpath_"; then
11959 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11960 fi
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11963 conftest$ac_exeext conftest.$ac_ext
11964 if test -z "$lt_cv_aix_libpath_"; then
11965 lt_cv_aix_libpath_=/usr/lib:/lib
11966 fi
11967 ;;
11968 esac
11969 fi
11970
11971 aix_libpath=$lt_cv_aix_libpath_
11972 fi
11973
11974 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11975 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
11976 else
11977 if test ia64 = "$host_cpu"; then
11978 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11979 allow_undefined_flag="-z nodefs"
11980 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"
11981 else
11982 # Determine the default libpath from the value encoded in an
11983 # empty executable.
11984 if test set = "${lt_cv_aix_libpath+set}"; then
11985 aix_libpath=$lt_cv_aix_libpath
11986 else
11987 if test ${lt_cv_aix_libpath_+y}
11988 then :
11989 printf %s "(cached) " >&6
11990 else case e in #(
11991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993
11994 int
11995 main (void)
11996 {
11997
11998 ;
11999 return 0;
12000 }
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"
12003 then :
12004
12005 lt_aix_libpath_sed='
12006 /Import File Strings/,/^$/ {
12007 /^0/ {
12008 s/^0 *\([^ ]*\) *$/\1/
12009 p
12010 }
12011 }'
12012 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12013 # Check for a 64-bit object if we didn't find anything.
12014 if test -z "$lt_cv_aix_libpath_"; then
12015 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12016 fi
12017 fi
12018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12019 conftest$ac_exeext conftest.$ac_ext
12020 if test -z "$lt_cv_aix_libpath_"; then
12021 lt_cv_aix_libpath_=/usr/lib:/lib
12022 fi
12023 ;;
12024 esac
12025 fi
12026
12027 aix_libpath=$lt_cv_aix_libpath_
12028 fi
12029
12030 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12031 # Warning - without using the other run time loading flags,
12032 # -berok will link without error, but may produce a broken library.
12033 no_undefined_flag=' $wl-bernotok'
12034 allow_undefined_flag=' $wl-berok'
12035 if test yes = "$with_gnu_ld"; then
12036 # We only use this code for GNU lds that support --whole-archive.
12037 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12038 else
12039 # Exported symbols can be pulled into shared objects from archives
12040 whole_archive_flag_spec='$convenience'
12041 fi
12042 archive_cmds_need_lc=yes
12043 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12044 # -brtl affects multiple linker settings, -berok does not and is overridden later
12045 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12046 if test svr4 != "$with_aix_soname"; then
12047 # This is similar to how AIX traditionally builds its shared libraries.
12048 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'
12049 fi
12050 if test aix != "$with_aix_soname"; then
12051 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'
12052 else
12053 # used by -dlpreopen to get the symbols
12054 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12055 fi
12056 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12057 fi
12058 fi
12059 ;;
12060
12061 amigaos*)
12062 case $host_cpu in
12063 powerpc)
12064 # see comment about AmigaOS4 .so support
12065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12066 archive_expsym_cmds=''
12067 ;;
12068 m68k)
12069 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)'
12070 hardcode_libdir_flag_spec='-L$libdir'
12071 hardcode_minus_L=yes
12072 ;;
12073 esac
12074 ;;
12075
12076 bsdi[45]*)
12077 export_dynamic_flag_spec=-rdynamic
12078 ;;
12079
12080 cygwin* | mingw* | windows* | pw32* | cegcc*)
12081 # When not using gcc, we currently assume that we are using
12082 # Microsoft Visual C++ or Intel C++ Compiler.
12083 # hardcode_libdir_flag_spec is actually meaningless, as there is
12084 # no search path for DLLs.
12085 case $cc_basename in
12086 cl* | icl*)
12087 # Native MSVC or ICC
12088 hardcode_libdir_flag_spec=' '
12089 allow_undefined_flag=unsupported
12090 always_export_symbols=yes
12091 file_list_spec='@'
12092 # Tell ltmain to make .lib files, not .a files.
12093 libext=lib
12094 # Tell ltmain to make .dll files, not .so files.
12095 shrext_cmds=.dll
12096 # FIXME: Setting linknames here is a bad hack.
12097 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12098 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12099 cp "$export_symbols" "$output_objdir/$soname.def";
12100 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12101 else
12102 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12103 fi~
12104 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12105 linknames='
12106 # The linker will not automatically build a static lib if we build a DLL.
12107 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12108 enable_shared_with_static_runtimes=yes
12109 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12111 # Don't use ranlib
12112 old_postinstall_cmds='chmod 644 $oldlib'
12113 postlink_cmds='lt_outputfile="@OUTPUT@"~
12114 lt_tool_outputfile="@TOOL_OUTPUT@"~
12115 case $lt_outputfile in
12116 *.exe|*.EXE) ;;
12117 *)
12118 lt_outputfile=$lt_outputfile.exe
12119 lt_tool_outputfile=$lt_tool_outputfile.exe
12120 ;;
12121 esac~
12122 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12123 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12124 $RM "$lt_outputfile.manifest";
12125 fi'
12126 ;;
12127 *)
12128 # Assume MSVC and ICC wrapper
12129 hardcode_libdir_flag_spec=' '
12130 allow_undefined_flag=unsupported
12131 # Tell ltmain to make .lib files, not .a files.
12132 libext=lib
12133 # Tell ltmain to make .dll files, not .so files.
12134 shrext_cmds=.dll
12135 # FIXME: Setting linknames here is a bad hack.
12136 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12137 # The linker will automatically build a .lib file if we build a DLL.
12138 old_archive_from_new_cmds='true'
12139 # FIXME: Should let the user specify the lib program.
12140 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12141 enable_shared_with_static_runtimes=yes
12142 ;;
12143 esac
12144 ;;
12145
12146 darwin* | rhapsody*)
12147
12148
12149 archive_cmds_need_lc=no
12150 hardcode_direct=no
12151 hardcode_automatic=yes
12152 hardcode_shlibpath_var=unsupported
12153 if test yes = "$lt_cv_ld_force_load"; then
12154 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\"`'
12155
12156 else
12157 whole_archive_flag_spec=''
12158 fi
12159 link_all_deplibs=yes
12160 allow_undefined_flag=$_lt_dar_allow_undefined
12161 case $cc_basename in
12162 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12163 *) _lt_dar_can_shared=$GCC ;;
12164 esac
12165 if test yes = "$_lt_dar_can_shared"; then
12166 output_verbose_link_cmd=func_echo_all
12167 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12168 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12169 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"
12170 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"
12171
12172 else
12173 ld_shlibs=no
12174 fi
12175
12176 ;;
12177
12178 dgux*)
12179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12180 hardcode_libdir_flag_spec='-L$libdir'
12181 hardcode_shlibpath_var=no
12182 ;;
12183
12184 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12185 # support. Future versions do this automatically, but an explicit c++rt0.o
12186 # does not break anything, and helps significantly (at the cost of a little
12187 # extra space).
12188 freebsd2.2*)
12189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12190 hardcode_libdir_flag_spec='-R$libdir'
12191 hardcode_direct=yes
12192 hardcode_shlibpath_var=no
12193 ;;
12194
12195 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12196 freebsd2.*)
12197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12198 hardcode_direct=yes
12199 hardcode_minus_L=yes
12200 hardcode_shlibpath_var=no
12201 ;;
12202
12203 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12204 freebsd* | dragonfly* | midnightbsd*)
12205 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12206 hardcode_libdir_flag_spec='-R$libdir'
12207 hardcode_direct=yes
12208 hardcode_shlibpath_var=no
12209 ;;
12210
12211 hpux9*)
12212 if test yes = "$GCC"; then
12213 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'
12214 else
12215 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'
12216 fi
12217 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12218 hardcode_libdir_separator=:
12219 hardcode_direct=yes
12220
12221 # hardcode_minus_L: Not really in the search PATH,
12222 # but as the default location of the library.
12223 hardcode_minus_L=yes
12224 export_dynamic_flag_spec='$wl-E'
12225 ;;
12226
12227 hpux10*)
12228 if test yes,no = "$GCC,$with_gnu_ld"; then
12229 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12230 else
12231 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12232 fi
12233 if test no = "$with_gnu_ld"; then
12234 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12235 hardcode_libdir_separator=:
12236 hardcode_direct=yes
12237 hardcode_direct_absolute=yes
12238 export_dynamic_flag_spec='$wl-E'
12239 # hardcode_minus_L: Not really in the search PATH,
12240 # but as the default location of the library.
12241 hardcode_minus_L=yes
12242 fi
12243 ;;
12244
12245 hpux11*)
12246 if test yes,no = "$GCC,$with_gnu_ld"; then
12247 case $host_cpu in
12248 hppa*64*)
12249 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12250 ;;
12251 ia64*)
12252 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12253 ;;
12254 *)
12255 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12256 ;;
12257 esac
12258 else
12259 case $host_cpu in
12260 hppa*64*)
12261 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12262 ;;
12263 ia64*)
12264 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12265 ;;
12266 *)
12267
12268 # Older versions of the 11.00 compiler do not understand -b yet
12269 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12271 printf %s "checking if $CC understands -b... " >&6; }
12272 if test ${lt_cv_prog_compiler__b+y}
12273 then :
12274 printf %s "(cached) " >&6
12275 else case e in #(
12276 e) lt_cv_prog_compiler__b=no
12277 save_LDFLAGS=$LDFLAGS
12278 LDFLAGS="$LDFLAGS -b"
12279 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12281 # The linker can only warn and ignore the option if not recognized
12282 # So say no if there are warnings
12283 if test -s conftest.err; then
12284 # Append any errors to the config.log.
12285 cat conftest.err 1>&5
12286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12288 if diff conftest.exp conftest.er2 >/dev/null; then
12289 lt_cv_prog_compiler__b=yes
12290 fi
12291 else
12292 lt_cv_prog_compiler__b=yes
12293 fi
12294 fi
12295 $RM -r conftest*
12296 LDFLAGS=$save_LDFLAGS
12297 ;;
12298 esac
12299 fi
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12301 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12302
12303 if test yes = "$lt_cv_prog_compiler__b"; then
12304 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12305 else
12306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12307 fi
12308
12309 ;;
12310 esac
12311 fi
12312 if test no = "$with_gnu_ld"; then
12313 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12314 hardcode_libdir_separator=:
12315
12316 case $host_cpu in
12317 hppa*64*|ia64*)
12318 hardcode_direct=no
12319 hardcode_shlibpath_var=no
12320 ;;
12321 *)
12322 hardcode_direct=yes
12323 hardcode_direct_absolute=yes
12324 export_dynamic_flag_spec='$wl-E'
12325
12326 # hardcode_minus_L: Not really in the search PATH,
12327 # but as the default location of the library.
12328 hardcode_minus_L=yes
12329 ;;
12330 esac
12331 fi
12332 ;;
12333
12334 irix5* | irix6* | nonstopux*)
12335 if test yes = "$GCC"; then
12336 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'
12337 # Try to use the -exported_symbol ld option, if it does not
12338 # work, assume that -exports_file does not work either and
12339 # implicitly export all symbols.
12340 # This should be the same for all languages, so no per-tag cache variable.
12341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12342 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12343 if test ${lt_cv_irix_exported_symbol+y}
12344 then :
12345 printf %s "(cached) " >&6
12346 else case e in #(
12347 e) save_LDFLAGS=$LDFLAGS
12348 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12351 int foo (void) { return 0; }
12352 _ACEOF
12353 if ac_fn_c_try_link "$LINENO"
12354 then :
12355 lt_cv_irix_exported_symbol=yes
12356 else case e in #(
12357 e) lt_cv_irix_exported_symbol=no ;;
12358 esac
12359 fi
12360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12361 conftest$ac_exeext conftest.$ac_ext
12362 LDFLAGS=$save_LDFLAGS ;;
12363 esac
12364 fi
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12366 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12367 if test yes = "$lt_cv_irix_exported_symbol"; then
12368 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'
12369 fi
12370 else
12371 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'
12372 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'
12373 fi
12374 archive_cmds_need_lc='no'
12375 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12376 hardcode_libdir_separator=:
12377 inherit_rpath=yes
12378 link_all_deplibs=yes
12379 ;;
12380
12381 linux*)
12382 case $cc_basename in
12383 tcc*)
12384 # Fabrice Bellard et al's Tiny C Compiler
12385 ld_shlibs=yes
12386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12387 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12388 ;;
12389 esac
12390 ;;
12391
12392 *-mlibc)
12393 ;;
12394
12395 netbsd* | netbsdelf*-gnu)
12396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12398 else
12399 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12400 fi
12401 hardcode_libdir_flag_spec='-R$libdir'
12402 hardcode_direct=yes
12403 hardcode_shlibpath_var=no
12404 ;;
12405
12406 newsos6)
12407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12408 hardcode_direct=yes
12409 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12410 hardcode_libdir_separator=:
12411 hardcode_shlibpath_var=no
12412 ;;
12413
12414 *nto* | *qnx*)
12415 ;;
12416
12417 openbsd*)
12418 if test -f /usr/libexec/ld.so; then
12419 hardcode_direct=yes
12420 hardcode_shlibpath_var=no
12421 hardcode_direct_absolute=yes
12422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12424 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12425 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12426 export_dynamic_flag_spec='$wl-E'
12427 else
12428 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12429 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12430 fi
12431 else
12432 ld_shlibs=no
12433 fi
12434 ;;
12435
12436 os2*)
12437 hardcode_libdir_flag_spec='-L$libdir'
12438 hardcode_minus_L=yes
12439 allow_undefined_flag=unsupported
12440 shrext_cmds=.dll
12441 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12442 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12443 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12444 $ECHO EXPORTS >> $output_objdir/$libname.def~
12445 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12446 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12447 emximp -o $lib $output_objdir/$libname.def'
12448 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12449 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12450 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12451 $ECHO EXPORTS >> $output_objdir/$libname.def~
12452 prefix_cmds="$SED"~
12453 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12454 prefix_cmds="$prefix_cmds -e 1d";
12455 fi~
12456 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12457 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12458 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12459 emximp -o $lib $output_objdir/$libname.def'
12460 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12461 enable_shared_with_static_runtimes=yes
12462 file_list_spec='@'
12463 ;;
12464
12465 osf3*)
12466 if test yes = "$GCC"; then
12467 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12468 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'
12469 else
12470 allow_undefined_flag=' -expect_unresolved \*'
12471 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'
12472 fi
12473 archive_cmds_need_lc='no'
12474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12475 hardcode_libdir_separator=:
12476 ;;
12477
12478 osf4* | osf5*) # as osf3* with the addition of -msym flag
12479 if test yes = "$GCC"; then
12480 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12481 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'
12482 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12483 else
12484 allow_undefined_flag=' -expect_unresolved \*'
12485 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'
12486 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~
12487 $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'
12488
12489 # Both c and cxx compiler support -rpath directly
12490 hardcode_libdir_flag_spec='-rpath $libdir'
12491 fi
12492 archive_cmds_need_lc='no'
12493 hardcode_libdir_separator=:
12494 ;;
12495
12496 serenity*)
12497 ;;
12498
12499 solaris*)
12500 no_undefined_flag=' -z defs'
12501 if test yes = "$GCC"; then
12502 wlarc='$wl'
12503 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12504 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12505 $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'
12506 else
12507 case `$CC -V 2>&1` in
12508 *"Compilers 5.0"*)
12509 wlarc=''
12510 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12512 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12513 ;;
12514 *)
12515 wlarc='$wl'
12516 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12518 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12519 ;;
12520 esac
12521 fi
12522 hardcode_libdir_flag_spec='-R$libdir'
12523 hardcode_shlibpath_var=no
12524 case $host_os in
12525 solaris2.[0-5] | solaris2.[0-5].*) ;;
12526 *)
12527 # The compiler driver will combine and reorder linker options,
12528 # but understands '-z linker_flag'. GCC discards it without '$wl',
12529 # but is careful enough not to reorder.
12530 # Supported since Solaris 2.6 (maybe 2.5.1?)
12531 if test yes = "$GCC"; then
12532 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12533 else
12534 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12535 fi
12536 ;;
12537 esac
12538 link_all_deplibs=yes
12539 ;;
12540
12541 sunos4*)
12542 if test sequent = "$host_vendor"; then
12543 # Use $CC to link under sequent, because it throws in some extra .o
12544 # files that make .init and .fini sections work.
12545 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12546 else
12547 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12548 fi
12549 hardcode_libdir_flag_spec='-L$libdir'
12550 hardcode_direct=yes
12551 hardcode_minus_L=yes
12552 hardcode_shlibpath_var=no
12553 ;;
12554
12555 sysv4)
12556 case $host_vendor in
12557 sni)
12558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12559 hardcode_direct=yes # is this really true???
12560 ;;
12561 siemens)
12562 ## LD is ld it makes a PLAMLIB
12563 ## CC just makes a GrossModule.
12564 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12565 reload_cmds='$CC -r -o $output$reload_objs'
12566 hardcode_direct=no
12567 ;;
12568 motorola)
12569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12570 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12571 ;;
12572 esac
12573 runpath_var='LD_RUN_PATH'
12574 hardcode_shlibpath_var=no
12575 ;;
12576
12577 sysv4.3*)
12578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12579 hardcode_shlibpath_var=no
12580 export_dynamic_flag_spec='-Bexport'
12581 ;;
12582
12583 sysv4*MP*)
12584 if test -d /usr/nec; then
12585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12586 hardcode_shlibpath_var=no
12587 runpath_var=LD_RUN_PATH
12588 hardcode_runpath_var=yes
12589 ld_shlibs=yes
12590 fi
12591 ;;
12592
12593 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12594 no_undefined_flag='$wl-z,text'
12595 archive_cmds_need_lc=no
12596 hardcode_shlibpath_var=no
12597 runpath_var='LD_RUN_PATH'
12598
12599 if test yes = "$GCC"; then
12600 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12602 else
12603 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12604 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12605 fi
12606 ;;
12607
12608 sysv5* | sco3.2v5* | sco5v6*)
12609 # Note: We CANNOT use -z defs as we might desire, because we do not
12610 # link with -lc, and that would cause any symbols used from libc to
12611 # always be unresolved, which means just about no library would
12612 # ever link correctly. If we're not using GNU ld we use -z text
12613 # though, which does catch some bad symbols but isn't as heavy-handed
12614 # as -z defs.
12615 no_undefined_flag='$wl-z,text'
12616 allow_undefined_flag='$wl-z,nodefs'
12617 archive_cmds_need_lc=no
12618 hardcode_shlibpath_var=no
12619 hardcode_libdir_flag_spec='$wl-R,$libdir'
12620 hardcode_libdir_separator=':'
12621 link_all_deplibs=yes
12622 export_dynamic_flag_spec='$wl-Bexport'
12623 runpath_var='LD_RUN_PATH'
12624
12625 if test yes = "$GCC"; then
12626 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12627 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12628 else
12629 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12630 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12631 fi
12632 ;;
12633
12634 uts4*)
12635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12636 hardcode_libdir_flag_spec='-L$libdir'
12637 hardcode_shlibpath_var=no
12638 ;;
12639
12640 *)
12641 ld_shlibs=no
12642 ;;
12643 esac
12644
12645 if test sni = "$host_vendor"; then
12646 case $host in
12647 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12648 export_dynamic_flag_spec='$wl-Blargedynsym'
12649 ;;
12650 esac
12651 fi
12652 fi
12653
12654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12655 printf "%s\n" "$ld_shlibs" >&6; }
12656 test no = "$ld_shlibs" && can_build_shared=no
12657
12658 with_gnu_ld=$with_gnu_ld
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674 #
12675 # Do we need to explicitly link libc?
12676 #
12677 case "x$archive_cmds_need_lc" in
12678 x|xyes)
12679 # Assume -lc should be added
12680 archive_cmds_need_lc=yes
12681
12682 if test yes,yes = "$GCC,$enable_shared"; then
12683 case $archive_cmds in
12684 *'~'*)
12685 # FIXME: we may have to deal with multi-command sequences.
12686 ;;
12687 '$CC '*)
12688 # Test whether the compiler implicitly links with -lc since on some
12689 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12690 # to ld, don't add -lc before -lgcc.
12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12692 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12693 if test ${lt_cv_archive_cmds_need_lc+y}
12694 then :
12695 printf %s "(cached) " >&6
12696 else case e in #(
12697 e) $RM conftest*
12698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12699
12700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12701 (eval $ac_compile) 2>&5
12702 ac_status=$?
12703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12704 test $ac_status = 0; } 2>conftest.err; then
12705 soname=conftest
12706 lib=conftest
12707 libobjs=conftest.$ac_objext
12708 deplibs=
12709 wl=$lt_prog_compiler_wl
12710 pic_flag=$lt_prog_compiler_pic
12711 compiler_flags=-v
12712 linker_flags=-v
12713 verstring=
12714 output_objdir=.
12715 libname=conftest
12716 lt_save_allow_undefined_flag=$allow_undefined_flag
12717 allow_undefined_flag=
12718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12719 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12720 ac_status=$?
12721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12722 test $ac_status = 0; }
12723 then
12724 lt_cv_archive_cmds_need_lc=no
12725 else
12726 lt_cv_archive_cmds_need_lc=yes
12727 fi
12728 allow_undefined_flag=$lt_save_allow_undefined_flag
12729 else
12730 cat conftest.err 1>&5
12731 fi
12732 $RM conftest*
12733 ;;
12734 esac
12735 fi
12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12737 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12738 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12739 ;;
12740 esac
12741 fi
12742 ;;
12743 esac
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12897 printf %s "checking dynamic linker characteristics... " >&6; }
12898
12899 if test yes = "$GCC"; then
12900 case $host_os in
12901 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12902 *) lt_awk_arg='/^libraries:/' ;;
12903 esac
12904 case $host_os in
12905 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12906 *) lt_sed_strip_eq='s|=/|/|g' ;;
12907 esac
12908 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12909 case $lt_search_path_spec in
12910 *\;*)
12911 # if the path contains ";" then we assume it to be the separator
12912 # otherwise default to the standard path separator (i.e. ":") - it is
12913 # assumed that no part of a normal pathname contains ";" but that should
12914 # okay in the real world where ";" in dirpaths is itself problematic.
12915 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12916 ;;
12917 *)
12918 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12919 ;;
12920 esac
12921 # Ok, now we have the path, separated by spaces, we can step through it
12922 # and add multilib dir if necessary...
12923 lt_tmp_lt_search_path_spec=
12924 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12925 # ...but if some path component already ends with the multilib dir we assume
12926 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12927 case "$lt_multi_os_dir; $lt_search_path_spec " in
12928 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12929 lt_multi_os_dir=
12930 ;;
12931 esac
12932 for lt_sys_path in $lt_search_path_spec; do
12933 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12934 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12935 elif test -n "$lt_multi_os_dir"; then
12936 test -d "$lt_sys_path" && \
12937 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12938 fi
12939 done
12940 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12941 BEGIN {RS = " "; FS = "/|\n";} {
12942 lt_foo = "";
12943 lt_count = 0;
12944 for (lt_i = NF; lt_i > 0; lt_i--) {
12945 if ($lt_i != "" && $lt_i != ".") {
12946 if ($lt_i == "..") {
12947 lt_count++;
12948 } else {
12949 if (lt_count == 0) {
12950 lt_foo = "/" $lt_i lt_foo;
12951 } else {
12952 lt_count--;
12953 }
12954 }
12955 }
12956 }
12957 if (lt_foo != "") { lt_freq[lt_foo]++; }
12958 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12959 }'`
12960 # AWK program above erroneously prepends '/' to C:/dos/paths
12961 # for these hosts.
12962 case $host_os in
12963 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12964 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12965 esac
12966 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12967 else
12968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12969 fi
12970 library_names_spec=
12971 libname_spec='lib$name'
12972 soname_spec=
12973 shrext_cmds=.so
12974 postinstall_cmds=
12975 postuninstall_cmds=
12976 finish_cmds=
12977 finish_eval=
12978 shlibpath_var=
12979 shlibpath_overrides_runpath=unknown
12980 version_type=none
12981 dynamic_linker="$host_os ld.so"
12982 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12983 need_lib_prefix=unknown
12984 hardcode_into_libs=no
12985
12986 # when you set need_version to no, make sure it does not cause -set_version
12987 # flags to be left without arguments
12988 need_version=unknown
12989
12990
12991
12992 case $host_os in
12993 aix3*)
12994 version_type=linux # correct to gnu/linux during the next big refactor
12995 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12996 shlibpath_var=LIBPATH
12997
12998 # AIX 3 has no versioning support, so we append a major version to the name.
12999 soname_spec='$libname$release$shared_ext$major'
13000 ;;
13001
13002 aix[4-9]*)
13003 version_type=linux # correct to gnu/linux during the next big refactor
13004 need_lib_prefix=no
13005 need_version=no
13006 hardcode_into_libs=yes
13007 if test ia64 = "$host_cpu"; then
13008 # AIX 5 supports IA64
13009 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 else
13012 # With GCC up to 2.95.x, collect2 would create an import file
13013 # for dependence libraries. The import file would start with
13014 # the line '#! .'. This would cause the generated library to
13015 # depend on '.', always an invalid library. This was fixed in
13016 # development snapshots of GCC prior to 3.0.
13017 case $host_os in
13018 aix4 | aix4.[01] | aix4.[01].*)
13019 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13020 echo ' yes '
13021 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13022 :
13023 else
13024 can_build_shared=no
13025 fi
13026 ;;
13027 esac
13028 # Using Import Files as archive members, it is possible to support
13029 # filename-based versioning of shared library archives on AIX. While
13030 # this would work for both with and without runtime linking, it will
13031 # prevent static linking of such archives. So we do filename-based
13032 # shared library versioning with .so extension only, which is used
13033 # when both runtime linking and shared linking is enabled.
13034 # Unfortunately, runtime linking may impact performance, so we do
13035 # not want this to be the default eventually. Also, we use the
13036 # versioned .so libs for executables only if there is the -brtl
13037 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13038 # To allow for filename-based versioning support, we need to create
13039 # libNAME.so.V as an archive file, containing:
13040 # *) an Import File, referring to the versioned filename of the
13041 # archive as well as the shared archive member, telling the
13042 # bitwidth (32 or 64) of that shared object, and providing the
13043 # list of exported symbols of that shared object, eventually
13044 # decorated with the 'weak' keyword
13045 # *) the shared object with the F_LOADONLY flag set, to really avoid
13046 # it being seen by the linker.
13047 # At run time we better use the real file rather than another symlink,
13048 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13049
13050 case $with_aix_soname,$aix_use_runtimelinking in
13051 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13052 # soname into executable. Probably we can add versioning support to
13053 # collect2, so additional links can be useful in future.
13054 aix,yes) # traditional libtool
13055 dynamic_linker='AIX unversionable lib.so'
13056 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13057 # instead of lib<name>.a to let people know that these are not
13058 # typical AIX shared libraries.
13059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13060 ;;
13061 aix,no) # traditional AIX only
13062 dynamic_linker='AIX lib.a(lib.so.V)'
13063 # We preserve .a as extension for shared libraries through AIX4.2
13064 # and later when we are not doing run time linking.
13065 library_names_spec='$libname$release.a $libname.a'
13066 soname_spec='$libname$release$shared_ext$major'
13067 ;;
13068 svr4,*) # full svr4 only
13069 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13070 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13071 # We do not specify a path in Import Files, so LIBPATH fires.
13072 shlibpath_overrides_runpath=yes
13073 ;;
13074 *,yes) # both, prefer svr4
13075 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13076 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13077 # unpreferred sharedlib libNAME.a needs extra handling
13078 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"'
13079 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"'
13080 # We do not specify a path in Import Files, so LIBPATH fires.
13081 shlibpath_overrides_runpath=yes
13082 ;;
13083 *,no) # both, prefer aix
13084 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13085 library_names_spec='$libname$release.a $libname.a'
13086 soname_spec='$libname$release$shared_ext$major'
13087 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13088 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)'
13089 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"'
13090 ;;
13091 esac
13092 shlibpath_var=LIBPATH
13093 fi
13094 ;;
13095
13096 amigaos*)
13097 case $host_cpu in
13098 powerpc)
13099 # Since July 2007 AmigaOS4 officially supports .so libraries.
13100 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13102 ;;
13103 m68k)
13104 library_names_spec='$libname.ixlibrary $libname.a'
13105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13106 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'
13107 ;;
13108 esac
13109 ;;
13110
13111 beos*)
13112 library_names_spec='$libname$shared_ext'
13113 dynamic_linker="$host_os ld.so"
13114 shlibpath_var=LIBRARY_PATH
13115 ;;
13116
13117 bsdi[45]*)
13118 version_type=linux # correct to gnu/linux during the next big refactor
13119 need_version=no
13120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13121 soname_spec='$libname$release$shared_ext$major'
13122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13123 shlibpath_var=LD_LIBRARY_PATH
13124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13126 # the default ld.so.conf also contains /usr/contrib/lib and
13127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13128 # libtool to hard-code these into programs
13129 ;;
13130
13131 cygwin* | mingw* | windows* | pw32* | cegcc*)
13132 version_type=windows
13133 shrext_cmds=.dll
13134 need_version=no
13135 need_lib_prefix=no
13136
13137 case $GCC,$cc_basename in
13138 yes,*)
13139 # gcc
13140 library_names_spec='$libname.dll.a'
13141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13142 # If user builds GCC with multilib enabled,
13143 # it should just install on $(libdir)
13144 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13145 if test xyes = x"$multilib"; then
13146 postinstall_cmds='base_file=`basename \$file`~
13147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13148 dldir=$destdir/`dirname \$dlpath`~
13149 $install_prog $dir/$dlname $destdir/$dlname~
13150 chmod a+x $destdir/$dlname~
13151 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13152 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13153 fi'
13154 else
13155 postinstall_cmds='base_file=`basename \$file`~
13156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13157 dldir=$destdir/`dirname \$dlpath`~
13158 test -d \$dldir || mkdir -p \$dldir~
13159 $install_prog $dir/$dlname \$dldir/$dlname~
13160 chmod a+x \$dldir/$dlname~
13161 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13162 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13163 fi'
13164 fi
13165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13166 dlpath=$dir/\$dldll~
13167 $RM \$dlpath'
13168 shlibpath_overrides_runpath=yes
13169
13170 case $host_os in
13171 cygwin*)
13172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13173 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13174
13175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13176 ;;
13177 mingw* | windows* | cegcc*)
13178 # MinGW DLLs use traditional 'lib' prefix
13179 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13180 ;;
13181 pw32*)
13182 # pw32 DLLs use 'pw' prefix rather than 'lib'
13183 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13184 ;;
13185 esac
13186 dynamic_linker='Win32 ld.exe'
13187 ;;
13188
13189 *,cl* | *,icl*)
13190 # Native MSVC or ICC
13191 libname_spec='$name'
13192 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13193 library_names_spec='$libname.dll.lib'
13194
13195 case $build_os in
13196 mingw* | windows*)
13197 sys_lib_search_path_spec=
13198 lt_save_ifs=$IFS
13199 IFS=';'
13200 for lt_path in $LIB
13201 do
13202 IFS=$lt_save_ifs
13203 # Let DOS variable expansion print the short 8.3 style file name.
13204 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13205 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13206 done
13207 IFS=$lt_save_ifs
13208 # Convert to MSYS style.
13209 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13210 ;;
13211 cygwin*)
13212 # Convert to unix form, then to dos form, then back to unix form
13213 # but this time dos style (no spaces!) so that the unix form looks
13214 # like /cygdrive/c/PROGRA~1:/cygdr...
13215 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13216 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13217 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13218 ;;
13219 *)
13220 sys_lib_search_path_spec=$LIB
13221 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13222 # It is most probably a Windows format PATH.
13223 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13224 else
13225 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13226 fi
13227 # FIXME: find the short name or the path components, as spaces are
13228 # common. (e.g. "Program Files" -> "PROGRA~1")
13229 ;;
13230 esac
13231
13232 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13233 postinstall_cmds='base_file=`basename \$file`~
13234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13235 dldir=$destdir/`dirname \$dlpath`~
13236 test -d \$dldir || mkdir -p \$dldir~
13237 $install_prog $dir/$dlname \$dldir/$dlname'
13238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13239 dlpath=$dir/\$dldll~
13240 $RM \$dlpath'
13241 shlibpath_overrides_runpath=yes
13242 dynamic_linker='Win32 link.exe'
13243 ;;
13244
13245 *)
13246 # Assume MSVC and ICC wrapper
13247 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13248 dynamic_linker='Win32 ld.exe'
13249 ;;
13250 esac
13251 # FIXME: first we should search . and the directory the executable is in
13252 shlibpath_var=PATH
13253 ;;
13254
13255 darwin* | rhapsody*)
13256 dynamic_linker="$host_os dyld"
13257 version_type=darwin
13258 need_lib_prefix=no
13259 need_version=no
13260 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13261 soname_spec='$libname$release$major$shared_ext'
13262 shlibpath_overrides_runpath=yes
13263 shlibpath_var=DYLD_LIBRARY_PATH
13264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13265
13266 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13268 ;;
13269
13270 dgux*)
13271 version_type=linux # correct to gnu/linux during the next big refactor
13272 need_lib_prefix=no
13273 need_version=no
13274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13275 soname_spec='$libname$release$shared_ext$major'
13276 shlibpath_var=LD_LIBRARY_PATH
13277 ;;
13278
13279 freebsd* | dragonfly* | midnightbsd*)
13280 # DragonFly does not have aout. When/if they implement a new
13281 # versioning mechanism, adjust this.
13282 if test -x /usr/bin/objformat; then
13283 objformat=`/usr/bin/objformat`
13284 else
13285 case $host_os in
13286 freebsd[23].*) objformat=aout ;;
13287 *) objformat=elf ;;
13288 esac
13289 fi
13290 version_type=freebsd-$objformat
13291 case $version_type in
13292 freebsd-elf*)
13293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13294 soname_spec='$libname$release$shared_ext$major'
13295 need_version=no
13296 need_lib_prefix=no
13297 ;;
13298 freebsd-*)
13299 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13300 need_version=yes
13301 ;;
13302 esac
13303 case $host_cpu in
13304 powerpc64)
13305 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13306 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309 int test_pointer_size[sizeof (void *) - 5];
13310
13311 _ACEOF
13312 if ac_fn_c_try_compile "$LINENO"
13313 then :
13314 shlibpath_var=LD_LIBRARY_PATH
13315 else case e in #(
13316 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13317 esac
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13320 ;;
13321 *)
13322 shlibpath_var=LD_LIBRARY_PATH
13323 ;;
13324 esac
13325 case $host_os in
13326 freebsd2.*)
13327 shlibpath_overrides_runpath=yes
13328 ;;
13329 freebsd3.[01]* | freebsdelf3.[01]*)
13330 shlibpath_overrides_runpath=yes
13331 hardcode_into_libs=yes
13332 ;;
13333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13335 shlibpath_overrides_runpath=no
13336 hardcode_into_libs=yes
13337 ;;
13338 *) # from 4.6 on, and DragonFly
13339 shlibpath_overrides_runpath=yes
13340 hardcode_into_libs=yes
13341 ;;
13342 esac
13343 ;;
13344
13345 haiku*)
13346 version_type=linux # correct to gnu/linux during the next big refactor
13347 need_lib_prefix=no
13348 need_version=no
13349 dynamic_linker="$host_os runtime_loader"
13350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13351 soname_spec='$libname$release$shared_ext$major'
13352 shlibpath_var=LIBRARY_PATH
13353 shlibpath_overrides_runpath=no
13354 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13355 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13356 hardcode_into_libs=no
13357 ;;
13358
13359 hpux9* | hpux10* | hpux11*)
13360 # Give a soname corresponding to the major version so that dld.sl refuses to
13361 # link against other versions.
13362 version_type=sunos
13363 need_lib_prefix=no
13364 need_version=no
13365 case $host_cpu in
13366 ia64*)
13367 shrext_cmds='.so'
13368 hardcode_into_libs=yes
13369 dynamic_linker="$host_os dld.so"
13370 shlibpath_var=LD_LIBRARY_PATH
13371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13373 soname_spec='$libname$release$shared_ext$major'
13374 if test 32 = "$HPUX_IA64_MODE"; then
13375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13376 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13377 else
13378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13379 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13380 fi
13381 ;;
13382 hppa*64*)
13383 shrext_cmds='.sl'
13384 hardcode_into_libs=yes
13385 dynamic_linker="$host_os dld.sl"
13386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13389 soname_spec='$libname$release$shared_ext$major'
13390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13392 ;;
13393 *)
13394 shrext_cmds='.sl'
13395 dynamic_linker="$host_os dld.sl"
13396 shlibpath_var=SHLIB_PATH
13397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13399 soname_spec='$libname$release$shared_ext$major'
13400 ;;
13401 esac
13402 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13403 postinstall_cmds='chmod 555 $lib'
13404 # or fails outright, so override atomically:
13405 install_override_mode=555
13406 ;;
13407
13408 interix[3-9]*)
13409 version_type=linux # correct to gnu/linux during the next big refactor
13410 need_lib_prefix=no
13411 need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath=no
13417 hardcode_into_libs=yes
13418 ;;
13419
13420 irix5* | irix6* | nonstopux*)
13421 case $host_os in
13422 nonstopux*) version_type=nonstopux ;;
13423 *)
13424 if test yes = "$lt_cv_prog_gnu_ld"; then
13425 version_type=linux # correct to gnu/linux during the next big refactor
13426 else
13427 version_type=irix
13428 fi ;;
13429 esac
13430 need_lib_prefix=no
13431 need_version=no
13432 soname_spec='$libname$release$shared_ext$major'
13433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13434 case $host_os in
13435 irix5* | nonstopux*)
13436 libsuff= shlibsuff=
13437 ;;
13438 *)
13439 case $LD in # libtool.m4 will add one of these switches to LD
13440 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13441 libsuff= shlibsuff= libmagic=32-bit;;
13442 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13443 libsuff=32 shlibsuff=N32 libmagic=N32;;
13444 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13445 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13446 *) libsuff= shlibsuff= libmagic=never-match;;
13447 esac
13448 ;;
13449 esac
13450 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13451 shlibpath_overrides_runpath=no
13452 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13453 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13454 hardcode_into_libs=yes
13455 ;;
13456
13457 # No shared lib support for Linux oldld, aout, or coff.
13458 linux*oldld* | linux*aout* | linux*coff*)
13459 dynamic_linker=no
13460 ;;
13461
13462 linux*android*)
13463 version_type=none # Android doesn't support versioned libraries.
13464 need_lib_prefix=no
13465 need_version=no
13466 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13467 soname_spec='$libname$release$shared_ext'
13468 finish_cmds=
13469 shlibpath_var=LD_LIBRARY_PATH
13470 shlibpath_overrides_runpath=yes
13471
13472 # This implies no fast_install, which is unacceptable.
13473 # Some rework will be needed to allow for fast_install
13474 # before this can be enabled.
13475 hardcode_into_libs=yes
13476
13477 dynamic_linker='Android linker'
13478 # -rpath works at least for libraries that are not overridden by
13479 # libraries installed in system locations.
13480 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13481 ;;
13482
13483 # This must be glibc/ELF.
13484 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13485 version_type=linux # correct to gnu/linux during the next big refactor
13486 need_lib_prefix=no
13487 need_version=no
13488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13489 soname_spec='$libname$release$shared_ext$major'
13490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13491 shlibpath_var=LD_LIBRARY_PATH
13492 shlibpath_overrides_runpath=no
13493
13494 # Some binutils ld are patched to set DT_RUNPATH
13495 if test ${lt_cv_shlibpath_overrides_runpath+y}
13496 then :
13497 printf %s "(cached) " >&6
13498 else case e in #(
13499 e) lt_cv_shlibpath_overrides_runpath=no
13500 save_LDFLAGS=$LDFLAGS
13501 save_libdir=$libdir
13502 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13503 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506
13507 int
13508 main (void)
13509 {
13510
13511 ;
13512 return 0;
13513 }
13514 _ACEOF
13515 if ac_fn_c_try_link "$LINENO"
13516 then :
13517 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13518 then :
13519 lt_cv_shlibpath_overrides_runpath=yes
13520 fi
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13523 conftest$ac_exeext conftest.$ac_ext
13524 LDFLAGS=$save_LDFLAGS
13525 libdir=$save_libdir
13526 ;;
13527 esac
13528 fi
13529
13530 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13531
13532 # This implies no fast_install, which is unacceptable.
13533 # Some rework will be needed to allow for fast_install
13534 # before this can be enabled.
13535 hardcode_into_libs=yes
13536
13537 # Ideally, we could use ldconfig to report *all* directories which are
13538 # searched for libraries, however this is still not possible. Aside from not
13539 # being certain /sbin/ldconfig is available, command
13540 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13541 # even though it is searched at run-time. Try to do the best guess by
13542 # appending ld.so.conf contents (and includes) to the search path.
13543 if test -f /etc/ld.so.conf; then
13544 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' ' '`
13545 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13546 fi
13547
13548 # We used to test for /lib/ld.so.1 and disable shared libraries on
13549 # powerpc, because MkLinux only supported shared libraries with the
13550 # GNU dynamic linker. Since this was broken with cross compilers,
13551 # most powerpc-linux boxes support dynamic linking these days and
13552 # people can always --disable-shared, the test was removed, and we
13553 # assume the GNU/Linux dynamic linker is in use.
13554 dynamic_linker='GNU/Linux ld.so'
13555 ;;
13556
13557 netbsdelf*-gnu)
13558 version_type=linux
13559 need_lib_prefix=no
13560 need_version=no
13561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13562 soname_spec='$libname$release$shared_ext$major'
13563 shlibpath_var=LD_LIBRARY_PATH
13564 shlibpath_overrides_runpath=no
13565 hardcode_into_libs=yes
13566 dynamic_linker='NetBSD ld.elf_so'
13567 ;;
13568
13569 netbsd*)
13570 version_type=sunos
13571 need_lib_prefix=no
13572 need_version=no
13573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13574 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13576 dynamic_linker='NetBSD (a.out) ld.so'
13577 else
13578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13579 soname_spec='$libname$release$shared_ext$major'
13580 dynamic_linker='NetBSD ld.elf_so'
13581 fi
13582 shlibpath_var=LD_LIBRARY_PATH
13583 shlibpath_overrides_runpath=yes
13584 hardcode_into_libs=yes
13585 ;;
13586
13587 *-mlibc)
13588 version_type=linux # correct to gnu/linux during the next big refactor
13589 need_lib_prefix=no
13590 need_version=no
13591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13592 soname_spec='$libname$release$shared_ext$major'
13593 dynamic_linker='mlibc ld.so'
13594 shlibpath_var=LD_LIBRARY_PATH
13595 shlibpath_overrides_runpath=no
13596 hardcode_into_libs=yes
13597 ;;
13598
13599 newsos6)
13600 version_type=linux # correct to gnu/linux during the next big refactor
13601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13602 shlibpath_var=LD_LIBRARY_PATH
13603 shlibpath_overrides_runpath=yes
13604 ;;
13605
13606 *nto* | *qnx*)
13607 version_type=qnx
13608 need_lib_prefix=no
13609 need_version=no
13610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13611 soname_spec='$libname$release$shared_ext$major'
13612 shlibpath_var=LD_LIBRARY_PATH
13613 shlibpath_overrides_runpath=no
13614 hardcode_into_libs=yes
13615 dynamic_linker='ldqnx.so'
13616 ;;
13617
13618 openbsd*)
13619 version_type=sunos
13620 sys_lib_dlsearch_path_spec=/usr/lib
13621 need_lib_prefix=no
13622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13623 need_version=no
13624 else
13625 need_version=yes
13626 fi
13627 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13629 shlibpath_var=LD_LIBRARY_PATH
13630 shlibpath_overrides_runpath=yes
13631 ;;
13632
13633 os2*)
13634 libname_spec='$name'
13635 version_type=windows
13636 shrext_cmds=.dll
13637 need_version=no
13638 need_lib_prefix=no
13639 # OS/2 can only load a DLL with a base name of 8 characters or less.
13640 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13641 v=$($ECHO $release$versuffix | tr -d .-);
13642 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13643 $ECHO $n$v`$shared_ext'
13644 library_names_spec='${libname}_dll.$libext'
13645 dynamic_linker='OS/2 ld.exe'
13646 shlibpath_var=BEGINLIBPATH
13647 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13649 postinstall_cmds='base_file=`basename \$file`~
13650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13651 dldir=$destdir/`dirname \$dlpath`~
13652 test -d \$dldir || mkdir -p \$dldir~
13653 $install_prog $dir/$dlname \$dldir/$dlname~
13654 chmod a+x \$dldir/$dlname~
13655 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13656 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13657 fi'
13658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13659 dlpath=$dir/\$dldll~
13660 $RM \$dlpath'
13661 ;;
13662
13663 osf3* | osf4* | osf5*)
13664 version_type=osf
13665 need_lib_prefix=no
13666 need_version=no
13667 soname_spec='$libname$release$shared_ext$major'
13668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13669 shlibpath_var=LD_LIBRARY_PATH
13670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13672 ;;
13673
13674 rdos*)
13675 dynamic_linker=no
13676 ;;
13677
13678 serenity*)
13679 version_type=linux # correct to gnu/linux during the next big refactor
13680 need_lib_prefix=no
13681 need_version=no
13682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13683 soname_spec='$libname$release$shared_ext$major'
13684 shlibpath_var=LD_LIBRARY_PATH
13685 shlibpath_overrides_runpath=no
13686 dynamic_linker='SerenityOS LibELF'
13687 ;;
13688
13689 solaris*)
13690 version_type=linux # correct to gnu/linux during the next big refactor
13691 need_lib_prefix=no
13692 need_version=no
13693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13694 soname_spec='$libname$release$shared_ext$major'
13695 shlibpath_var=LD_LIBRARY_PATH
13696 shlibpath_overrides_runpath=yes
13697 hardcode_into_libs=yes
13698 # ldd complains unless libraries are executable
13699 postinstall_cmds='chmod +x $lib'
13700 ;;
13701
13702 sunos4*)
13703 version_type=sunos
13704 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13706 shlibpath_var=LD_LIBRARY_PATH
13707 shlibpath_overrides_runpath=yes
13708 if test yes = "$with_gnu_ld"; then
13709 need_lib_prefix=no
13710 fi
13711 need_version=yes
13712 ;;
13713
13714 sysv4 | sysv4.3*)
13715 version_type=linux # correct to gnu/linux during the next big refactor
13716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13717 soname_spec='$libname$release$shared_ext$major'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 case $host_vendor in
13720 sni)
13721 shlibpath_overrides_runpath=no
13722 need_lib_prefix=no
13723 runpath_var=LD_RUN_PATH
13724 ;;
13725 siemens)
13726 need_lib_prefix=no
13727 ;;
13728 motorola)
13729 need_lib_prefix=no
13730 need_version=no
13731 shlibpath_overrides_runpath=no
13732 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13733 ;;
13734 esac
13735 ;;
13736
13737 sysv4*MP*)
13738 if test -d /usr/nec; then
13739 version_type=linux # correct to gnu/linux during the next big refactor
13740 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13741 soname_spec='$libname$shared_ext.$major'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 fi
13744 ;;
13745
13746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13747 version_type=sco
13748 need_lib_prefix=no
13749 need_version=no
13750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13751 soname_spec='$libname$release$shared_ext$major'
13752 shlibpath_var=LD_LIBRARY_PATH
13753 shlibpath_overrides_runpath=yes
13754 hardcode_into_libs=yes
13755 if test yes = "$with_gnu_ld"; then
13756 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13757 else
13758 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13759 case $host_os in
13760 sco3.2v5*)
13761 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13762 ;;
13763 esac
13764 fi
13765 sys_lib_dlsearch_path_spec='/usr/lib'
13766 ;;
13767
13768 tpf*)
13769 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13770 version_type=linux # correct to gnu/linux during the next big refactor
13771 need_lib_prefix=no
13772 need_version=no
13773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13774 shlibpath_var=LD_LIBRARY_PATH
13775 shlibpath_overrides_runpath=no
13776 hardcode_into_libs=yes
13777 ;;
13778
13779 uts4*)
13780 version_type=linux # correct to gnu/linux during the next big refactor
13781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13782 soname_spec='$libname$release$shared_ext$major'
13783 shlibpath_var=LD_LIBRARY_PATH
13784 ;;
13785
13786 emscripten*)
13787 version_type=none
13788 need_lib_prefix=no
13789 need_version=no
13790 library_names_spec='$libname$release$shared_ext'
13791 soname_spec='$libname$release$shared_ext'
13792 finish_cmds=
13793 dynamic_linker="Emscripten linker"
13794 lt_prog_compiler_wl=
13795 lt_prog_compiler_pic=
13796 lt_prog_compiler_static=
13797
13798
13799 if test yes = "$GCC"; then
13800 lt_prog_compiler_wl='-Wl,'
13801 lt_prog_compiler_static='-static'
13802
13803 case $host_os in
13804 aix*)
13805 # All AIX code is PIC.
13806 if test ia64 = "$host_cpu"; then
13807 # AIX 5 now supports IA64 processor
13808 lt_prog_compiler_static='-Bstatic'
13809 fi
13810 lt_prog_compiler_pic='-fPIC'
13811 ;;
13812
13813 amigaos*)
13814 case $host_cpu in
13815 powerpc)
13816 # see comment about AmigaOS4 .so support
13817 lt_prog_compiler_pic='-fPIC'
13818 ;;
13819 m68k)
13820 # FIXME: we need at least 68020 code to build shared libraries, but
13821 # adding the '-m68020' flag to GCC prevents building anything better,
13822 # like '-m68040'.
13823 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13824 ;;
13825 esac
13826 ;;
13827
13828 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13829 # PIC is the default for these OSes.
13830 ;;
13831
13832 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13833 # This hack is so that the source file can tell whether it is being
13834 # built for inclusion in a dll (and should export symbols for example).
13835 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13836 # (--disable-auto-import) libraries
13837 lt_prog_compiler_pic='-DDLL_EXPORT'
13838 case $host_os in
13839 os2*)
13840 lt_prog_compiler_static='$wl-static'
13841 ;;
13842 esac
13843 ;;
13844
13845 darwin* | rhapsody*)
13846 # PIC is the default on this platform
13847 # Common symbols not allowed in MH_DYLIB files
13848 lt_prog_compiler_pic='-fno-common'
13849 ;;
13850
13851 haiku*)
13852 # PIC is the default for Haiku.
13853 # The "-static" flag exists, but is broken.
13854 lt_prog_compiler_static=
13855 ;;
13856
13857 hpux*)
13858 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13859 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13860 # sets the default TLS model and affects inlining.
13861 case $host_cpu in
13862 hppa*64*)
13863 # +Z the default
13864 ;;
13865 *)
13866 lt_prog_compiler_pic='-fPIC'
13867 ;;
13868 esac
13869 ;;
13870
13871 interix[3-9]*)
13872 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13873 # Instead, we relocate shared libraries at runtime.
13874 ;;
13875
13876 msdosdjgpp*)
13877 # Just because we use GCC doesn't mean we suddenly get shared libraries
13878 # on systems that don't support them.
13879 lt_prog_compiler_can_build_shared=no
13880 enable_shared=no
13881 ;;
13882
13883 *nto* | *qnx*)
13884 # QNX uses GNU C++, but need to define -shared option too, otherwise
13885 # it will coredump.
13886 lt_prog_compiler_pic='-fPIC -shared'
13887 ;;
13888
13889 sysv4*MP*)
13890 if test -d /usr/nec; then
13891 lt_prog_compiler_pic=-Kconform_pic
13892 fi
13893 ;;
13894
13895 *)
13896 lt_prog_compiler_pic='-fPIC'
13897 ;;
13898 esac
13899
13900 case $cc_basename in
13901 nvcc*) # Cuda Compiler Driver 2.2
13902 lt_prog_compiler_wl='-Xlinker '
13903 if test -n "$lt_prog_compiler_pic"; then
13904 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13905 fi
13906 ;;
13907 esac
13908 else
13909 # PORTME Check for flag to pass linker flags through the system compiler.
13910 case $host_os in
13911 aix*)
13912 lt_prog_compiler_wl='-Wl,'
13913 if test ia64 = "$host_cpu"; then
13914 # AIX 5 now supports IA64 processor
13915 lt_prog_compiler_static='-Bstatic'
13916 else
13917 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13918 fi
13919 ;;
13920
13921 darwin* | rhapsody*)
13922 # PIC is the default on this platform
13923 # Common symbols not allowed in MH_DYLIB files
13924 lt_prog_compiler_pic='-fno-common'
13925 case $cc_basename in
13926 nagfor*)
13927 # NAG Fortran compiler
13928 lt_prog_compiler_wl='-Wl,-Wl,,'
13929 lt_prog_compiler_pic='-PIC'
13930 lt_prog_compiler_static='-Bstatic'
13931 ;;
13932 esac
13933 ;;
13934
13935 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13936 # This hack is so that the source file can tell whether it is being
13937 # built for inclusion in a dll (and should export symbols for example).
13938 lt_prog_compiler_pic='-DDLL_EXPORT'
13939 case $host_os in
13940 os2*)
13941 lt_prog_compiler_static='$wl-static'
13942 ;;
13943 esac
13944 ;;
13945
13946 hpux9* | hpux10* | hpux11*)
13947 lt_prog_compiler_wl='-Wl,'
13948 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13949 # not for PA HP-UX.
13950 case $host_cpu in
13951 hppa*64*|ia64*)
13952 # +Z the default
13953 ;;
13954 *)
13955 lt_prog_compiler_pic='+Z'
13956 ;;
13957 esac
13958 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13959 lt_prog_compiler_static='$wl-a ${wl}archive'
13960 ;;
13961
13962 irix5* | irix6* | nonstopux*)
13963 lt_prog_compiler_wl='-Wl,'
13964 # PIC (with -KPIC) is the default.
13965 lt_prog_compiler_static='-non_shared'
13966 ;;
13967
13968 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13969 case $cc_basename in
13970 # old Intel for x86_64, which still supported -KPIC.
13971 ecc*)
13972 lt_prog_compiler_wl='-Wl,'
13973 lt_prog_compiler_pic='-KPIC'
13974 lt_prog_compiler_static='-static'
13975 ;;
13976 *flang* | ftn | f18* | f95*)
13977 # Flang compiler.
13978 lt_prog_compiler_wl='-Wl,'
13979 lt_prog_compiler_pic='-fPIC'
13980 lt_prog_compiler_static='-static'
13981 ;;
13982 # icc used to be incompatible with GCC.
13983 # ICC 10 doesn't accept -KPIC any more.
13984 icc* | ifort*)
13985 lt_prog_compiler_wl='-Wl,'
13986 lt_prog_compiler_pic='-fPIC'
13987 lt_prog_compiler_static='-static'
13988 ;;
13989 # Lahey Fortran 8.1.
13990 lf95*)
13991 lt_prog_compiler_wl='-Wl,'
13992 lt_prog_compiler_pic='--shared'
13993 lt_prog_compiler_static='--static'
13994 ;;
13995 nagfor*)
13996 # NAG Fortran compiler
13997 lt_prog_compiler_wl='-Wl,-Wl,,'
13998 lt_prog_compiler_pic='-PIC'
13999 lt_prog_compiler_static='-Bstatic'
14000 ;;
14001 tcc*)
14002 # Fabrice Bellard et al's Tiny C Compiler
14003 lt_prog_compiler_wl='-Wl,'
14004 lt_prog_compiler_pic='-fPIC'
14005 lt_prog_compiler_static='-static'
14006 ;;
14007 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14008 # Portland Group compilers (*not* the Pentium gcc compiler,
14009 # which looks to be a dead project)
14010 lt_prog_compiler_wl='-Wl,'
14011 lt_prog_compiler_pic='-fpic'
14012 lt_prog_compiler_static='-Bstatic'
14013 ;;
14014 ccc*)
14015 lt_prog_compiler_wl='-Wl,'
14016 # All Alpha code is PIC.
14017 lt_prog_compiler_static='-non_shared'
14018 ;;
14019 xl* | bgxl* | bgf* | mpixl*)
14020 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14021 lt_prog_compiler_wl='-Wl,'
14022 lt_prog_compiler_pic='-qpic'
14023 lt_prog_compiler_static='-qstaticlink'
14024 ;;
14025 *)
14026 case `$CC -V 2>&1 | $SED 5q` in
14027 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14028 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14029 lt_prog_compiler_pic='-KPIC'
14030 lt_prog_compiler_static='-Bstatic'
14031 lt_prog_compiler_wl=''
14032 ;;
14033 *Sun\ F* | *Sun*Fortran*)
14034 lt_prog_compiler_pic='-KPIC'
14035 lt_prog_compiler_static='-Bstatic'
14036 lt_prog_compiler_wl='-Qoption ld '
14037 ;;
14038 *Sun\ C*)
14039 # Sun C 5.9
14040 lt_prog_compiler_pic='-KPIC'
14041 lt_prog_compiler_static='-Bstatic'
14042 lt_prog_compiler_wl='-Wl,'
14043 ;;
14044 *Intel*\ [CF]*Compiler*)
14045 lt_prog_compiler_wl='-Wl,'
14046 lt_prog_compiler_pic='-fPIC'
14047 lt_prog_compiler_static='-static'
14048 ;;
14049 *Portland\ Group*)
14050 lt_prog_compiler_wl='-Wl,'
14051 lt_prog_compiler_pic='-fpic'
14052 lt_prog_compiler_static='-Bstatic'
14053 ;;
14054 esac
14055 ;;
14056 esac
14057 ;;
14058
14059 newsos6)
14060 lt_prog_compiler_pic='-KPIC'
14061 lt_prog_compiler_static='-Bstatic'
14062 ;;
14063
14064 *-mlibc)
14065 lt_prog_compiler_wl='-Wl,'
14066 lt_prog_compiler_pic='-fPIC'
14067 lt_prog_compiler_static='-static'
14068 ;;
14069
14070 *nto* | *qnx*)
14071 # QNX uses GNU C++, but need to define -shared option too, otherwise
14072 # it will coredump.
14073 lt_prog_compiler_pic='-fPIC -shared'
14074 ;;
14075
14076 osf3* | osf4* | osf5*)
14077 lt_prog_compiler_wl='-Wl,'
14078 # All OSF/1 code is PIC.
14079 lt_prog_compiler_static='-non_shared'
14080 ;;
14081
14082 rdos*)
14083 lt_prog_compiler_static='-non_shared'
14084 ;;
14085
14086 serenity*)
14087 ;;
14088
14089 solaris*)
14090 lt_prog_compiler_pic='-KPIC'
14091 lt_prog_compiler_static='-Bstatic'
14092 case $cc_basename in
14093 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14094 lt_prog_compiler_wl='-Qoption ld ';;
14095 *)
14096 lt_prog_compiler_wl='-Wl,';;
14097 esac
14098 ;;
14099
14100 sunos4*)
14101 lt_prog_compiler_wl='-Qoption ld '
14102 lt_prog_compiler_pic='-PIC'
14103 lt_prog_compiler_static='-Bstatic'
14104 ;;
14105
14106 sysv4 | sysv4.2uw2* | sysv4.3*)
14107 lt_prog_compiler_wl='-Wl,'
14108 lt_prog_compiler_pic='-KPIC'
14109 lt_prog_compiler_static='-Bstatic'
14110 ;;
14111
14112 sysv4*MP*)
14113 if test -d /usr/nec; then
14114 lt_prog_compiler_pic='-Kconform_pic'
14115 lt_prog_compiler_static='-Bstatic'
14116 fi
14117 ;;
14118
14119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14120 lt_prog_compiler_wl='-Wl,'
14121 lt_prog_compiler_pic='-KPIC'
14122 lt_prog_compiler_static='-Bstatic'
14123 ;;
14124
14125 unicos*)
14126 lt_prog_compiler_wl='-Wl,'
14127 lt_prog_compiler_can_build_shared=no
14128 ;;
14129
14130 uts4*)
14131 lt_prog_compiler_pic='-pic'
14132 lt_prog_compiler_static='-Bstatic'
14133 ;;
14134
14135 *)
14136 lt_prog_compiler_can_build_shared=no
14137 ;;
14138 esac
14139 fi
14140
14141 case $host_os in
14142 # For platforms that do not support PIC, -DPIC is meaningless:
14143 *djgpp*)
14144 lt_prog_compiler_pic=
14145 ;;
14146 *)
14147 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14148 ;;
14149 esac
14150
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14152 printf %s "checking for $compiler option to produce PIC... " >&6; }
14153 if test ${lt_cv_prog_compiler_pic+y}
14154 then :
14155 printf %s "(cached) " >&6
14156 else case e in #(
14157 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14158 esac
14159 fi
14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14161 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14162 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14163
14164 #
14165 # Check to make sure the PIC flag actually works.
14166 #
14167 if test -n "$lt_prog_compiler_pic"; then
14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14169 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14170 if test ${lt_cv_prog_compiler_pic_works+y}
14171 then :
14172 printf %s "(cached) " >&6
14173 else case e in #(
14174 e) lt_cv_prog_compiler_pic_works=no
14175 ac_outfile=conftest.$ac_objext
14176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14177 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14178 # Insert the option either (1) after the last *FLAGS variable, or
14179 # (2) before a word containing "conftest.", or (3) at the end.
14180 # Note that $ac_compile itself does not contain backslashes and begins
14181 # with a dollar sign (not a hyphen), so the echo should work correctly.
14182 # The option is referenced via a variable to avoid confusing sed.
14183 lt_compile=`echo "$ac_compile" | $SED \
14184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14186 -e 's:$: $lt_compiler_flag:'`
14187 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14188 (eval "$lt_compile" 2>conftest.err)
14189 ac_status=$?
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 if (exit $ac_status) && test -s "$ac_outfile"; then
14193 # The compiler can only warn and ignore the option if not recognized
14194 # So say no if there are warnings other than the usual output.
14195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14197 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14198 lt_cv_prog_compiler_pic_works=yes
14199 fi
14200 fi
14201 $RM conftest*
14202 ;;
14203 esac
14204 fi
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14206 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14207
14208 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14209 case $lt_prog_compiler_pic in
14210 "" | " "*) ;;
14211 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14212 esac
14213 else
14214 lt_prog_compiler_pic=
14215 lt_prog_compiler_can_build_shared=no
14216 fi
14217
14218 fi
14219
14220
14221
14222
14223
14224 #
14225 # Check to make sure the static flag actually works.
14226 #
14227 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14229 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14230 if test ${lt_cv_prog_compiler_static_works+y}
14231 then :
14232 printf %s "(cached) " >&6
14233 else case e in #(
14234 e) lt_cv_prog_compiler_static_works=no
14235 save_LDFLAGS=$LDFLAGS
14236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14239 # The linker can only warn and ignore the option if not recognized
14240 # So say no if there are warnings
14241 if test -s conftest.err; then
14242 # Append any errors to the config.log.
14243 cat conftest.err 1>&5
14244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14246 if diff conftest.exp conftest.er2 >/dev/null; then
14247 lt_cv_prog_compiler_static_works=yes
14248 fi
14249 else
14250 lt_cv_prog_compiler_static_works=yes
14251 fi
14252 fi
14253 $RM -r conftest*
14254 LDFLAGS=$save_LDFLAGS
14255 ;;
14256 esac
14257 fi
14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14259 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14260
14261 if test yes = "$lt_cv_prog_compiler_static_works"; then
14262 :
14263 else
14264 lt_prog_compiler_static=
14265 fi
14266
14267
14268
14269 ='-fPIC'
14270 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14271 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'
14272 archive_cmds_need_lc=no
14273 no_undefined_flag=
14274 ;;
14275
14276 *)
14277 dynamic_linker=no
14278 ;;
14279 esac
14280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14281 printf "%s\n" "$dynamic_linker" >&6; }
14282 test no = "$dynamic_linker" && can_build_shared=no
14283
14284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14285 if test yes = "$GCC"; then
14286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14287 fi
14288
14289 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14290 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14291 fi
14292
14293 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14294 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14295 fi
14296
14297 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14298 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14299
14300 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14301 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14302
14303 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14304 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14403 printf %s "checking how to hardcode library paths into programs... " >&6; }
14404 hardcode_action=
14405 if test -n "$hardcode_libdir_flag_spec" ||
14406 test -n "$runpath_var" ||
14407 test yes = "$hardcode_automatic"; then
14408
14409 # We can hardcode non-existent directories.
14410 if test no != "$hardcode_direct" &&
14411 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14412 # have to relink, otherwise we might link with an installed library
14413 # when we should be linking with a yet-to-be-installed one
14414 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14415 test no != "$hardcode_minus_L"; then
14416 # Linking always hardcodes the temporary library directory.
14417 hardcode_action=relink
14418 else
14419 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14420 hardcode_action=immediate
14421 fi
14422 else
14423 # We cannot hardcode anything, or else we can only hardcode existing
14424 # directories.
14425 hardcode_action=unsupported
14426 fi
14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14428 printf "%s\n" "$hardcode_action" >&6; }
14429
14430 if test relink = "$hardcode_action" ||
14431 test yes = "$inherit_rpath"; then
14432 # Fast installation is not supported
14433 enable_fast_install=no
14434 elif test yes = "$shlibpath_overrides_runpath" ||
14435 test no = "$enable_shared"; then
14436 # Fast installation is not necessary
14437 enable_fast_install=needless
14438 fi
14439
14440
14441
14442
14443
14444
14445 if test yes != "$enable_dlopen"; then
14446 enable_dlopen=unknown
14447 enable_dlopen_self=unknown
14448 enable_dlopen_self_static=unknown
14449 else
14450 lt_cv_dlopen=no
14451 lt_cv_dlopen_libs=
14452
14453 case $host_os in
14454 beos*)
14455 lt_cv_dlopen=load_add_on
14456 lt_cv_dlopen_libs=
14457 lt_cv_dlopen_self=yes
14458 ;;
14459
14460 mingw* | windows* | pw32* | cegcc*)
14461 lt_cv_dlopen=LoadLibrary
14462 lt_cv_dlopen_libs=
14463 ;;
14464
14465 cygwin*)
14466 lt_cv_dlopen=dlopen
14467 lt_cv_dlopen_libs=
14468 ;;
14469
14470 darwin*)
14471 # if libdl is installed we need to link against it
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14473 printf %s "checking for dlopen in -ldl... " >&6; }
14474 if test ${ac_cv_lib_dl_dlopen+y}
14475 then :
14476 printf %s "(cached) " >&6
14477 else case e in #(
14478 e) ac_check_lib_save_LIBS=$LIBS
14479 LIBS="-ldl $LIBS"
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482
14483 /* Override any GCC internal prototype to avoid an error.
14484 Use char because int might match the return type of a GCC
14485 builtin and then its argument prototype would still apply.
14486 The 'extern "C"' is for builds by C++ compilers;
14487 although this is not generally supported in C code supporting it here
14488 has little cost and some practical benefit (sr 110532). */
14489 #ifdef __cplusplus
14490 extern "C"
14491 #endif
14492 char dlopen (void);
14493 int
14494 main (void)
14495 {
14496 return dlopen ();
14497 ;
14498 return 0;
14499 }
14500 _ACEOF
14501 if ac_fn_c_try_link "$LINENO"
14502 then :
14503 ac_cv_lib_dl_dlopen=yes
14504 else case e in #(
14505 e) ac_cv_lib_dl_dlopen=no ;;
14506 esac
14507 fi
14508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14509 conftest$ac_exeext conftest.$ac_ext
14510 LIBS=$ac_check_lib_save_LIBS ;;
14511 esac
14512 fi
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14514 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14515 if test "x$ac_cv_lib_dl_dlopen" = xyes
14516 then :
14517 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14518 else case e in #(
14519 e)
14520 lt_cv_dlopen=dyld
14521 lt_cv_dlopen_libs=
14522 lt_cv_dlopen_self=yes
14523 ;;
14524 esac
14525 fi
14526
14527 ;;
14528
14529 tpf*)
14530 # Don't try to run any link tests for TPF. We know it's impossible
14531 # because TPF is a cross-compiler, and we know how we open DSOs.
14532 lt_cv_dlopen=dlopen
14533 lt_cv_dlopen_libs=
14534 lt_cv_dlopen_self=no
14535 ;;
14536
14537 *)
14538 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14539 if test "x$ac_cv_func_shl_load" = xyes
14540 then :
14541 lt_cv_dlopen=shl_load
14542 else case e in #(
14543 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14544 printf %s "checking for shl_load in -ldld... " >&6; }
14545 if test ${ac_cv_lib_dld_shl_load+y}
14546 then :
14547 printf %s "(cached) " >&6
14548 else case e in #(
14549 e) ac_check_lib_save_LIBS=$LIBS
14550 LIBS="-ldld $LIBS"
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553
14554 /* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply.
14557 The 'extern "C"' is for builds by C++ compilers;
14558 although this is not generally supported in C code supporting it here
14559 has little cost and some practical benefit (sr 110532). */
14560 #ifdef __cplusplus
14561 extern "C"
14562 #endif
14563 char shl_load (void);
14564 int
14565 main (void)
14566 {
14567 return shl_load ();
14568 ;
14569 return 0;
14570 }
14571 _ACEOF
14572 if ac_fn_c_try_link "$LINENO"
14573 then :
14574 ac_cv_lib_dld_shl_load=yes
14575 else case e in #(
14576 e) ac_cv_lib_dld_shl_load=no ;;
14577 esac
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14580 conftest$ac_exeext conftest.$ac_ext
14581 LIBS=$ac_check_lib_save_LIBS ;;
14582 esac
14583 fi
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14585 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14586 if test "x$ac_cv_lib_dld_shl_load" = xyes
14587 then :
14588 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14589 else case e in #(
14590 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14591 if test "x$ac_cv_func_dlopen" = xyes
14592 then :
14593 lt_cv_dlopen=dlopen
14594 else case e in #(
14595 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14596 printf %s "checking for dlopen in -ldl... " >&6; }
14597 if test ${ac_cv_lib_dl_dlopen+y}
14598 then :
14599 printf %s "(cached) " >&6
14600 else case e in #(
14601 e) ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-ldl $LIBS"
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605
14606 /* Override any GCC internal prototype to avoid an error.
14607 Use char because int might match the return type of a GCC
14608 builtin and then its argument prototype would still apply.
14609 The 'extern "C"' is for builds by C++ compilers;
14610 although this is not generally supported in C code supporting it here
14611 has little cost and some practical benefit (sr 110532). */
14612 #ifdef __cplusplus
14613 extern "C"
14614 #endif
14615 char dlopen (void);
14616 int
14617 main (void)
14618 {
14619 return dlopen ();
14620 ;
14621 return 0;
14622 }
14623 _ACEOF
14624 if ac_fn_c_try_link "$LINENO"
14625 then :
14626 ac_cv_lib_dl_dlopen=yes
14627 else case e in #(
14628 e) ac_cv_lib_dl_dlopen=no ;;
14629 esac
14630 fi
14631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14632 conftest$ac_exeext conftest.$ac_ext
14633 LIBS=$ac_check_lib_save_LIBS ;;
14634 esac
14635 fi
14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14637 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14638 if test "x$ac_cv_lib_dl_dlopen" = xyes
14639 then :
14640 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14641 else case e in #(
14642 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14643 printf %s "checking for dlopen in -lsvld... " >&6; }
14644 if test ${ac_cv_lib_svld_dlopen+y}
14645 then :
14646 printf %s "(cached) " >&6
14647 else case e in #(
14648 e) ac_check_lib_save_LIBS=$LIBS
14649 LIBS="-lsvld $LIBS"
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply.
14656 The 'extern "C"' is for builds by C++ compilers;
14657 although this is not generally supported in C code supporting it here
14658 has little cost and some practical benefit (sr 110532). */
14659 #ifdef __cplusplus
14660 extern "C"
14661 #endif
14662 char dlopen (void);
14663 int
14664 main (void)
14665 {
14666 return dlopen ();
14667 ;
14668 return 0;
14669 }
14670 _ACEOF
14671 if ac_fn_c_try_link "$LINENO"
14672 then :
14673 ac_cv_lib_svld_dlopen=yes
14674 else case e in #(
14675 e) ac_cv_lib_svld_dlopen=no ;;
14676 esac
14677 fi
14678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14679 conftest$ac_exeext conftest.$ac_ext
14680 LIBS=$ac_check_lib_save_LIBS ;;
14681 esac
14682 fi
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14684 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14685 if test "x$ac_cv_lib_svld_dlopen" = xyes
14686 then :
14687 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14688 else case e in #(
14689 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14690 printf %s "checking for dld_link in -ldld... " >&6; }
14691 if test ${ac_cv_lib_dld_dld_link+y}
14692 then :
14693 printf %s "(cached) " >&6
14694 else case e in #(
14695 e) ac_check_lib_save_LIBS=$LIBS
14696 LIBS="-ldld $LIBS"
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14699
14700 /* Override any GCC internal prototype to avoid an error.
14701 Use char because int might match the return type of a GCC
14702 builtin and then its argument prototype would still apply.
14703 The 'extern "C"' is for builds by C++ compilers;
14704 although this is not generally supported in C code supporting it here
14705 has little cost and some practical benefit (sr 110532). */
14706 #ifdef __cplusplus
14707 extern "C"
14708 #endif
14709 char dld_link (void);
14710 int
14711 main (void)
14712 {
14713 return dld_link ();
14714 ;
14715 return 0;
14716 }
14717 _ACEOF
14718 if ac_fn_c_try_link "$LINENO"
14719 then :
14720 ac_cv_lib_dld_dld_link=yes
14721 else case e in #(
14722 e) ac_cv_lib_dld_dld_link=no ;;
14723 esac
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14726 conftest$ac_exeext conftest.$ac_ext
14727 LIBS=$ac_check_lib_save_LIBS ;;
14728 esac
14729 fi
14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14731 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14732 if test "x$ac_cv_lib_dld_dld_link" = xyes
14733 then :
14734 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14735 fi
14736
14737 ;;
14738 esac
14739 fi
14740
14741 ;;
14742 esac
14743 fi
14744
14745 ;;
14746 esac
14747 fi
14748
14749 ;;
14750 esac
14751 fi
14752
14753 ;;
14754 esac
14755 fi
14756
14757 ;;
14758 esac
14759
14760 if test no = "$lt_cv_dlopen"; then
14761 enable_dlopen=no
14762 else
14763 enable_dlopen=yes
14764 fi
14765
14766 case $lt_cv_dlopen in
14767 dlopen)
14768 save_CPPFLAGS=$CPPFLAGS
14769 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14770
14771 save_LDFLAGS=$LDFLAGS
14772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14773
14774 save_LIBS=$LIBS
14775 LIBS="$lt_cv_dlopen_libs $LIBS"
14776
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14778 printf %s "checking whether a program can dlopen itself... " >&6; }
14779 if test ${lt_cv_dlopen_self+y}
14780 then :
14781 printf %s "(cached) " >&6
14782 else case e in #(
14783 e) if test yes = "$cross_compiling"; then :
14784 lt_cv_dlopen_self=cross
14785 else
14786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14787 lt_status=$lt_dlunknown
14788 cat > conftest.$ac_ext <<_LT_EOF
14789 #line $LINENO "configure"
14790 #include "confdefs.h"
14791
14792 #if HAVE_DLFCN_H
14793 #include <dlfcn.h>
14794 #endif
14795
14796 #include <stdio.h>
14797
14798 #ifdef RTLD_GLOBAL
14799 # define LT_DLGLOBAL RTLD_GLOBAL
14800 #else
14801 # ifdef DL_GLOBAL
14802 # define LT_DLGLOBAL DL_GLOBAL
14803 # else
14804 # define LT_DLGLOBAL 0
14805 # endif
14806 #endif
14807
14808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14809 find out it does not work in some platform. */
14810 #ifndef LT_DLLAZY_OR_NOW
14811 # ifdef RTLD_LAZY
14812 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14813 # else
14814 # ifdef DL_LAZY
14815 # define LT_DLLAZY_OR_NOW DL_LAZY
14816 # else
14817 # ifdef RTLD_NOW
14818 # define LT_DLLAZY_OR_NOW RTLD_NOW
14819 # else
14820 # ifdef DL_NOW
14821 # define LT_DLLAZY_OR_NOW DL_NOW
14822 # else
14823 # define LT_DLLAZY_OR_NOW 0
14824 # endif
14825 # endif
14826 # endif
14827 # endif
14828 #endif
14829
14830 /* When -fvisibility=hidden is used, assume the code has been annotated
14831 correspondingly for the symbols needed. */
14832 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14833 int fnord (void) __attribute__((visibility("default")));
14834 #endif
14835
14836 int fnord (void) { return 42; }
14837 int main (void)
14838 {
14839 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14840 int status = $lt_dlunknown;
14841
14842 if (self)
14843 {
14844 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14845 else
14846 {
14847 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14848 else puts (dlerror ());
14849 }
14850 /* dlclose (self); */
14851 }
14852 else
14853 puts (dlerror ());
14854
14855 return status;
14856 }
14857 _LT_EOF
14858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14859 (eval $ac_link) 2>&5
14860 ac_status=$?
14861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14862 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14863 (./conftest; exit; ) >&5 2>/dev/null
14864 lt_status=$?
14865 case x$lt_status in
14866 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14867 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14868 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14869 esac
14870 else :
14871 # compilation failed
14872 lt_cv_dlopen_self=no
14873 fi
14874 fi
14875 rm -fr conftest*
14876
14877 ;;
14878 esac
14879 fi
14880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14881 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14882
14883 if test yes = "$lt_cv_dlopen_self"; then
14884 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14886 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14887 if test ${lt_cv_dlopen_self_static+y}
14888 then :
14889 printf %s "(cached) " >&6
14890 else case e in #(
14891 e) if test yes = "$cross_compiling"; then :
14892 lt_cv_dlopen_self_static=cross
14893 else
14894 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14895 lt_status=$lt_dlunknown
14896 cat > conftest.$ac_ext <<_LT_EOF
14897 #line $LINENO "configure"
14898 #include "confdefs.h"
14899
14900 #if HAVE_DLFCN_H
14901 #include <dlfcn.h>
14902 #endif
14903
14904 #include <stdio.h>
14905
14906 #ifdef RTLD_GLOBAL
14907 # define LT_DLGLOBAL RTLD_GLOBAL
14908 #else
14909 # ifdef DL_GLOBAL
14910 # define LT_DLGLOBAL DL_GLOBAL
14911 # else
14912 # define LT_DLGLOBAL 0
14913 # endif
14914 #endif
14915
14916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14917 find out it does not work in some platform. */
14918 #ifndef LT_DLLAZY_OR_NOW
14919 # ifdef RTLD_LAZY
14920 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14921 # else
14922 # ifdef DL_LAZY
14923 # define LT_DLLAZY_OR_NOW DL_LAZY
14924 # else
14925 # ifdef RTLD_NOW
14926 # define LT_DLLAZY_OR_NOW RTLD_NOW
14927 # else
14928 # ifdef DL_NOW
14929 # define LT_DLLAZY_OR_NOW DL_NOW
14930 # else
14931 # define LT_DLLAZY_OR_NOW 0
14932 # endif
14933 # endif
14934 # endif
14935 # endif
14936 #endif
14937
14938 /* When -fvisibility=hidden is used, assume the code has been annotated
14939 correspondingly for the symbols needed. */
14940 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14941 int fnord (void) __attribute__((visibility("default")));
14942 #endif
14943
14944 int fnord (void) { return 42; }
14945 int main (void)
14946 {
14947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14948 int status = $lt_dlunknown;
14949
14950 if (self)
14951 {
14952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14953 else
14954 {
14955 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14956 else puts (dlerror ());
14957 }
14958 /* dlclose (self); */
14959 }
14960 else
14961 puts (dlerror ());
14962
14963 return status;
14964 }
14965 _LT_EOF
14966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14967 (eval $ac_link) 2>&5
14968 ac_status=$?
14969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14970 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14971 (./conftest; exit; ) >&5 2>/dev/null
14972 lt_status=$?
14973 case x$lt_status in
14974 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14975 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14976 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14977 esac
14978 else :
14979 # compilation failed
14980 lt_cv_dlopen_self_static=no
14981 fi
14982 fi
14983 rm -fr conftest*
14984
14985 ;;
14986 esac
14987 fi
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14989 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14990 fi
14991
14992 CPPFLAGS=$save_CPPFLAGS
14993 LDFLAGS=$save_LDFLAGS
14994 LIBS=$save_LIBS
14995 ;;
14996 esac
14997
14998 case $lt_cv_dlopen_self in
14999 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15000 *) enable_dlopen_self=unknown ;;
15001 esac
15002
15003 case $lt_cv_dlopen_self_static in
15004 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15005 *) enable_dlopen_self_static=unknown ;;
15006 esac
15007 fi
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025 striplib=
15026 old_striplib=
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15028 printf %s "checking whether stripping libraries is possible... " >&6; }
15029 if test -z "$STRIP"; then
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15031 printf "%s\n" "no" >&6; }
15032 else
15033 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15034 old_striplib="$STRIP --strip-debug"
15035 striplib="$STRIP --strip-unneeded"
15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15037 printf "%s\n" "yes" >&6; }
15038 else
15039 case $host_os in
15040 darwin*)
15041 # FIXME - insert some real tests, host_os isn't really good enough
15042 striplib="$STRIP -x"
15043 old_striplib="$STRIP -S"
15044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15045 printf "%s\n" "yes" >&6; }
15046 ;;
15047 freebsd*)
15048 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15049 old_striplib="$STRIP --strip-debug"
15050 striplib="$STRIP --strip-unneeded"
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15052 printf "%s\n" "yes" >&6; }
15053 else
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15055 printf "%s\n" "no" >&6; }
15056 fi
15057 ;;
15058 *)
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 printf "%s\n" "no" >&6; }
15061 ;;
15062 esac
15063 fi
15064 fi
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077 # Report what library types will actually be built
15078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15079 printf %s "checking if libtool supports shared libraries... " >&6; }
15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15081 printf "%s\n" "$can_build_shared" >&6; }
15082
15083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15084 printf %s "checking whether to build shared libraries... " >&6; }
15085 test no = "$can_build_shared" && enable_shared=no
15086
15087 # On AIX, shared libraries and static libraries use the same namespace, and
15088 # are all built from PIC.
15089 case $host_os in
15090 aix3*)
15091 test yes = "$enable_shared" && enable_static=no
15092 if test -n "$RANLIB"; then
15093 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15094 postinstall_cmds='$RANLIB $lib'
15095 fi
15096 ;;
15097
15098 aix[4-9]*)
15099 if test ia64 != "$host_cpu"; then
15100 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15101 yes,aix,yes) ;; # shared object as lib.so file only
15102 yes,svr4,*) ;; # shared object as lib.so archive member only
15103 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15104 esac
15105 fi
15106 ;;
15107 esac
15108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15109 printf "%s\n" "$enable_shared" >&6; }
15110
15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15112 printf %s "checking whether to build static libraries... " >&6; }
15113 # Make sure either enable_shared or enable_static is yes.
15114 test yes = "$enable_shared" || enable_static=yes
15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15116 printf "%s\n" "$enable_static" >&6; }
15117
15118
15119
15120
15121 fi
15122 ac_ext=c
15123 ac_cpp='$CPP $CPPFLAGS'
15124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15127
15128 CC=$lt_save_CC
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144 ac_config_commands="$ac_config_commands libtool"
15145
15146
15147
15148
15149 # Only expand once:
15150
15151
15152 # (end lt_init)
15153 # Check whether --enable-largefile was given.
15154 if test ${enable_largefile+y}
15155 then :
15156 enableval=$enable_largefile;
15157 fi
15158 if test "$enable_largefile,$enable_year2038" != no,no
15159 then :
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15161 printf %s "checking for $CC option to enable large file support... " >&6; }
15162 if test ${ac_cv_sys_largefile_opts+y}
15163 then :
15164 printf %s "(cached) " >&6
15165 else case e in #(
15166 e) ac_save_CC="$CC"
15167 ac_opt_found=no
15168 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15169 if test x"$ac_opt" != x"none needed"
15170 then :
15171 CC="$ac_save_CC $ac_opt"
15172 fi
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15175 #include <sys/types.h>
15176 #ifndef FTYPE
15177 # define FTYPE off_t
15178 #endif
15179 /* Check that FTYPE can represent 2**63 - 1 correctly.
15180 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15181 since some C++ compilers masquerading as C compilers
15182 incorrectly reject 9223372036854775807. */
15183 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15184 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15185 && LARGE_FTYPE % 2147483647 == 1)
15186 ? 1 : -1];
15187 int
15188 main (void)
15189 {
15190
15191 ;
15192 return 0;
15193 }
15194 _ACEOF
15195 if ac_fn_c_try_compile "$LINENO"
15196 then :
15197 if test x"$ac_opt" = x"none needed"
15198 then :
15199 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15200 CC="$CC -DFTYPE=ino_t"
15201 if ac_fn_c_try_compile "$LINENO"
15202 then :
15203
15204 else case e in #(
15205 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15206 if ac_fn_c_try_compile "$LINENO"
15207 then :
15208 ac_opt='-D_FILE_OFFSET_BITS=64'
15209 fi
15210 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15211 esac
15212 fi
15213 rm -f core conftest.err conftest.$ac_objext conftest.beam
15214 fi
15215 ac_cv_sys_largefile_opts=$ac_opt
15216 ac_opt_found=yes
15217 fi
15218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15219 test $ac_opt_found = no || break
15220 done
15221 CC="$ac_save_CC"
15222
15223 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15224 esac
15225 fi
15226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15227 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15228
15229 ac_have_largefile=yes
15230 case $ac_cv_sys_largefile_opts in #(
15231 "none needed") :
15232 ;; #(
15233 "supported through gnulib") :
15234 ;; #(
15235 "support not detected") :
15236 ac_have_largefile=no ;; #(
15237 "-D_FILE_OFFSET_BITS=64") :
15238
15239 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15240 ;; #(
15241 "-D_LARGE_FILES=1") :
15242
15243 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15244 ;; #(
15245 "-n32") :
15246 CC="$CC -n32" ;; #(
15247 *) :
15248 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15249 esac
15250
15251 if test "$enable_year2038" != no
15252 then :
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15254 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15255 if test ${ac_cv_sys_year2038_opts+y}
15256 then :
15257 printf %s "(cached) " >&6
15258 else case e in #(
15259 e) ac_save_CPPFLAGS="$CPPFLAGS"
15260 ac_opt_found=no
15261 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
15262 if test x"$ac_opt" != x"none needed"
15263 then :
15264 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15265 fi
15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15268
15269 #include <time.h>
15270 /* Check that time_t can represent 2**32 - 1 correctly. */
15271 #define LARGE_TIME_T \\
15272 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15273 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15274 && LARGE_TIME_T % 65537 == 0)
15275 ? 1 : -1];
15276
15277 int
15278 main (void)
15279 {
15280
15281 ;
15282 return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_compile "$LINENO"
15286 then :
15287 ac_cv_sys_year2038_opts="$ac_opt"
15288 ac_opt_found=yes
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15291 test $ac_opt_found = no || break
15292 done
15293 CPPFLAGS="$ac_save_CPPFLAGS"
15294 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15295 esac
15296 fi
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15298 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15299
15300 ac_have_year2038=yes
15301 case $ac_cv_sys_year2038_opts in #(
15302 "none needed") :
15303 ;; #(
15304 "support not detected") :
15305 ac_have_year2038=no ;; #(
15306 "-D_TIME_BITS=64") :
15307
15308 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15309 ;; #(
15310 "-D__MINGW_USE_VC2005_COMPAT") :
15311
15312 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15313 ;; #(
15314 "-U_USE_32_BIT_TIME_T"*) :
15315 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15316 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15317 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15318 will stop working after mid-January 2038. Remove
15319 _USE_32BIT_TIME_T from the compiler flags.
15320 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15321 *) :
15322 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15323 esac
15324
15325 fi
15326
15327 fi
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15329 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15330 if test ${ac_cv_func_fseeko_ftello+y}
15331 then :
15332 printf %s "(cached) " >&6
15333 else case e in #(
15334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335 /* end confdefs.h. */
15336
15337 #if defined __hpux && !defined _LARGEFILE_SOURCE
15338 # include <limits.h>
15339 # if LONG_MAX >> 31 == 0
15340 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15341 # endif
15342 #endif
15343 #include <sys/types.h> /* for off_t */
15344 #include <stdio.h>
15345
15346 int
15347 main (void)
15348 {
15349
15350 int (*fp1) (FILE *, off_t, int) = fseeko;
15351 off_t (*fp2) (FILE *) = ftello;
15352 return fseeko (stdin, 0, 0)
15353 && fp1 (stdin, 0, 0)
15354 && ftello (stdin) >= 0
15355 && fp2 (stdin) >= 0;
15356
15357 ;
15358 return 0;
15359 }
15360 _ACEOF
15361 if ac_fn_c_try_compile "$LINENO"
15362 then :
15363 ac_cv_func_fseeko_ftello=yes
15364 else case e in #(
15365 e) ac_save_CPPFLAGS="$CPPFLAGS"
15366 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369
15370 #if defined __hpux && !defined _LARGEFILE_SOURCE
15371 # include <limits.h>
15372 # if LONG_MAX >> 31 == 0
15373 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15374 # endif
15375 #endif
15376 #include <sys/types.h> /* for off_t */
15377 #include <stdio.h>
15378
15379 int
15380 main (void)
15381 {
15382
15383 int (*fp1) (FILE *, off_t, int) = fseeko;
15384 off_t (*fp2) (FILE *) = ftello;
15385 return fseeko (stdin, 0, 0)
15386 && fp1 (stdin, 0, 0)
15387 && ftello (stdin) >= 0
15388 && fp2 (stdin) >= 0;
15389
15390 ;
15391 return 0;
15392 }
15393 _ACEOF
15394 if ac_fn_c_try_compile "$LINENO"
15395 then :
15396 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15397 else case e in #(
15398 e) ac_cv_func_fseeko_ftello=no ;;
15399 esac
15400 fi
15401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15402 esac
15403 fi
15404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15405 esac
15406 fi
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15408 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15409 if test "$ac_cv_func_fseeko_ftello" != no
15410 then :
15411
15412 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15413
15414 fi
15415 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15416 then :
15417
15418 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15419
15420 fi
15421
15422 ac_header_dirent=no
15423 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15424 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15426 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15427 if eval test \${$as_ac_Header+y}
15428 then :
15429 printf %s "(cached) " >&6
15430 else case e in #(
15431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433 #include <sys/types.h>
15434 #include <$ac_hdr>
15435
15436 int
15437 main (void)
15438 {
15439 if ((DIR *) 0)
15440 return 0;
15441 ;
15442 return 0;
15443 }
15444 _ACEOF
15445 if ac_fn_c_try_compile "$LINENO"
15446 then :
15447 eval "$as_ac_Header=yes"
15448 else case e in #(
15449 e) eval "$as_ac_Header=no" ;;
15450 esac
15451 fi
15452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15453 esac
15454 fi
15455 eval ac_res=\$$as_ac_Header
15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15457 printf "%s\n" "$ac_res" >&6; }
15458 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15459 then :
15460 cat >>confdefs.h <<_ACEOF
15461 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15462 _ACEOF
15463
15464 ac_header_dirent=$ac_hdr; break
15465 fi
15466
15467 done
15468 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15469 if test $ac_header_dirent = dirent.h; then
15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15471 printf %s "checking for library containing opendir... " >&6; }
15472 if test ${ac_cv_search_opendir+y}
15473 then :
15474 printf %s "(cached) " >&6
15475 else case e in #(
15476 e) ac_func_search_save_LIBS=$LIBS
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479
15480 /* Override any GCC internal prototype to avoid an error.
15481 Use char because int might match the return type of a GCC
15482 builtin and then its argument prototype would still apply.
15483 The 'extern "C"' is for builds by C++ compilers;
15484 although this is not generally supported in C code supporting it here
15485 has little cost and some practical benefit (sr 110532). */
15486 #ifdef __cplusplus
15487 extern "C"
15488 #endif
15489 char opendir (void);
15490 int
15491 main (void)
15492 {
15493 return opendir ();
15494 ;
15495 return 0;
15496 }
15497 _ACEOF
15498 for ac_lib in '' dir
15499 do
15500 if test -z "$ac_lib"; then
15501 ac_res="none required"
15502 else
15503 ac_res=-l$ac_lib
15504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15505 fi
15506 if ac_fn_c_try_link "$LINENO"
15507 then :
15508 ac_cv_search_opendir=$ac_res
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15511 conftest$ac_exeext
15512 if test ${ac_cv_search_opendir+y}
15513 then :
15514 break
15515 fi
15516 done
15517 if test ${ac_cv_search_opendir+y}
15518 then :
15519
15520 else case e in #(
15521 e) ac_cv_search_opendir=no ;;
15522 esac
15523 fi
15524 rm conftest.$ac_ext
15525 LIBS=$ac_func_search_save_LIBS ;;
15526 esac
15527 fi
15528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15529 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15530 ac_res=$ac_cv_search_opendir
15531 if test "$ac_res" != no
15532 then :
15533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15534
15535 fi
15536
15537 else
15538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15539 printf %s "checking for library containing opendir... " >&6; }
15540 if test ${ac_cv_search_opendir+y}
15541 then :
15542 printf %s "(cached) " >&6
15543 else case e in #(
15544 e) ac_func_search_save_LIBS=$LIBS
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547
15548 /* Override any GCC internal prototype to avoid an error.
15549 Use char because int might match the return type of a GCC
15550 builtin and then its argument prototype would still apply.
15551 The 'extern "C"' is for builds by C++ compilers;
15552 although this is not generally supported in C code supporting it here
15553 has little cost and some practical benefit (sr 110532). */
15554 #ifdef __cplusplus
15555 extern "C"
15556 #endif
15557 char opendir (void);
15558 int
15559 main (void)
15560 {
15561 return opendir ();
15562 ;
15563 return 0;
15564 }
15565 _ACEOF
15566 for ac_lib in '' x
15567 do
15568 if test -z "$ac_lib"; then
15569 ac_res="none required"
15570 else
15571 ac_res=-l$ac_lib
15572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15573 fi
15574 if ac_fn_c_try_link "$LINENO"
15575 then :
15576 ac_cv_search_opendir=$ac_res
15577 fi
15578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15579 conftest$ac_exeext
15580 if test ${ac_cv_search_opendir+y}
15581 then :
15582 break
15583 fi
15584 done
15585 if test ${ac_cv_search_opendir+y}
15586 then :
15587
15588 else case e in #(
15589 e) ac_cv_search_opendir=no ;;
15590 esac
15591 fi
15592 rm conftest.$ac_ext
15593 LIBS=$ac_func_search_save_LIBS ;;
15594 esac
15595 fi
15596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15597 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15598 ac_res=$ac_cv_search_opendir
15599 if test "$ac_res" != no
15600 then :
15601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15602
15603 fi
15604
15605 fi
15606
15607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15608 printf %s "checking whether closedir returns void... " >&6; }
15609 if test ${ac_cv_func_closedir_void+y}
15610 then :
15611 printf %s "(cached) " >&6
15612 else case e in #(
15613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h. */
15615
15616 #include <$ac_header_dirent>
15617
15618 int
15619 main (void)
15620 {
15621
15622 return closedir(0);
15623
15624 ;
15625 return 0;
15626 }
15627 _ACEOF
15628 if ac_fn_c_try_compile "$LINENO"
15629 then :
15630 ac_cv_func_closedir_void=no
15631 else case e in #(
15632 e) ac_cv_func_closedir_void=yes ;;
15633 esac
15634 fi
15635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15636 esac
15637 fi
15638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15639 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15640 if test $ac_cv_func_closedir_void = yes; then
15641
15642 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15643
15644 fi
15645
15646 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15647 if test "x$ac_cv_header_assert_h" = xyes
15648 then :
15649 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15650
15651 fi
15652 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15653 if test "x$ac_cv_header_float_h" = xyes
15654 then :
15655 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15656
15657 fi
15658 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15659 if test "x$ac_cv_header_limits_h" = xyes
15660 then :
15661 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15662
15663 fi
15664 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15665 if test "x$ac_cv_header_pwd_h" = xyes
15666 then :
15667 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15668
15669 fi
15670 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15671 if test "x$ac_cv_header_stdlib_h" = xyes
15672 then :
15673 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15674
15675 fi
15676 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15677 if test "x$ac_cv_header_sys_param_h" = xyes
15678 then :
15679 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15680
15681 fi
15682
15683 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15684 if test "x$ac_cv_func_putenv" = xyes
15685 then :
15686 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15687
15688 fi
15689
15690 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15691 if test "x$ac_cv_func_getcwd" = xyes
15692 then :
15693 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15694
15695 fi
15696 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15697 if test "x$ac_cv_func_memcmp" = xyes
15698 then :
15699 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15700
15701 fi
15702 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15703 if test "x$ac_cv_func_memcpy" = xyes
15704 then :
15705 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15706
15707 fi
15708 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15709 if test "x$ac_cv_func_mkstemp" = xyes
15710 then :
15711 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15712
15713 fi
15714 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15715 if test "x$ac_cv_func_mktemp" = xyes
15716 then :
15717 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15718
15719 fi
15720 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15721 if test "x$ac_cv_func_strchr" = xyes
15722 then :
15723 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15724
15725 fi
15726 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15727 if test "x$ac_cv_func_strrchr" = xyes
15728 then :
15729 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15730
15731 fi
15732
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15734 printf %s "checking for an ANSI C-conforming const... " >&6; }
15735 if test ${ac_cv_c_const+y}
15736 then :
15737 printf %s "(cached) " >&6
15738 else case e in #(
15739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741
15742 int
15743 main (void)
15744 {
15745
15746 #ifndef __cplusplus
15747 /* Ultrix mips cc rejects this sort of thing. */
15748 typedef int charset[2];
15749 const charset cs = { 0, 0 };
15750 /* SunOS 4.1.1 cc rejects this. */
15751 char const *const *pcpcc;
15752 char **ppc;
15753 /* NEC SVR4.0.2 mips cc rejects this. */
15754 struct point {int x, y;};
15755 static struct point const zero = {0,0};
15756 /* IBM XL C 1.02.0.0 rejects this.
15757 It does not let you subtract one const X* pointer from another in
15758 an arm of an if-expression whose if-part is not a constant
15759 expression */
15760 const char *g = "string";
15761 pcpcc = &g + (g ? g-g : 0);
15762 /* HPUX 7.0 cc rejects these. */
15763 ++pcpcc;
15764 ppc = (char**) pcpcc;
15765 pcpcc = (char const *const *) ppc;
15766 { /* SCO 3.2v4 cc rejects this sort of thing. */
15767 char tx;
15768 char *t = &tx;
15769 char const *s = 0 ? (char *) 0 : (char const *) 0;
15770
15771 *t++ = 0;
15772 if (s) return 0;
15773 }
15774 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15775 int x[] = {25, 17};
15776 const int *foo = &x[0];
15777 ++foo;
15778 }
15779 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15780 typedef const int *iptr;
15781 iptr p = 0;
15782 ++p;
15783 }
15784 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15785 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15786 struct s { int j; const int *ap[3]; } bx;
15787 struct s *b = &bx; b->j = 5;
15788 }
15789 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15790 const int foo = 10;
15791 if (!foo) return 0;
15792 }
15793 return !cs[0] && !zero.x;
15794 #endif
15795
15796 ;
15797 return 0;
15798 }
15799 _ACEOF
15800 if ac_fn_c_try_compile "$LINENO"
15801 then :
15802 ac_cv_c_const=yes
15803 else case e in #(
15804 e) ac_cv_c_const=no ;;
15805 esac
15806 fi
15807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15808 esac
15809 fi
15810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15811 printf "%s\n" "$ac_cv_c_const" >&6; }
15812 if test $ac_cv_c_const = no; then
15813
15814 printf "%s\n" "#define const /**/" >>confdefs.h
15815
15816 fi
15817
15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15819 printf %s "checking for inline... " >&6; }
15820 if test ${ac_cv_c_inline+y}
15821 then :
15822 printf %s "(cached) " >&6
15823 else case e in #(
15824 e) ac_cv_c_inline=no
15825 for ac_kw in inline __inline__ __inline; do
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15828 #ifndef __cplusplus
15829 typedef int foo_t;
15830 static $ac_kw foo_t static_foo (void) {return 0; }
15831 $ac_kw foo_t foo (void) {return 0; }
15832 #endif
15833
15834 _ACEOF
15835 if ac_fn_c_try_compile "$LINENO"
15836 then :
15837 ac_cv_c_inline=$ac_kw
15838 fi
15839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15840 test "$ac_cv_c_inline" != no && break
15841 done
15842 ;;
15843 esac
15844 fi
15845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15846 printf "%s\n" "$ac_cv_c_inline" >&6; }
15847
15848 case $ac_cv_c_inline in
15849 inline | yes) ;;
15850 *)
15851 case $ac_cv_c_inline in
15852 no) ac_val=;;
15853 *) ac_val=$ac_cv_c_inline;;
15854 esac
15855 cat >>confdefs.h <<_ACEOF
15856 #ifndef __cplusplus
15857 #define inline $ac_val
15858 #endif
15859 _ACEOF
15860 ;;
15861 esac
15862
15863 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15864 if test "x$ac_cv_type_size_t" = xyes
15865 then :
15866
15867 else case e in #(
15868 e)
15869 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15870 ;;
15871 esac
15872 fi
15873
15874 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15875 case $ac_cv_c_int64_t in #(
15876 no|yes) ;; #(
15877 *)
15878
15879 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15880 ;;
15881 esac
15882
15883 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15884 case $ac_cv_c_uint64_t in #(
15885 no|yes) ;; #(
15886 *)
15887
15888 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15889
15890
15891 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15892 ;;
15893 esac
15894
15895 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15896 *':no:'*) :
15897 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15898 *) :
15899 ;;
15900 esac
15901 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15902 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15903 if test "x$ac_cv_have_decl_isascii" = xyes
15904 then :
15905 ac_have_decl=1
15906 else case e in #(
15907 e) ac_have_decl=0 ;;
15908 esac
15909 fi
15910 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15911
15912 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15913 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15914 then :
15915
15916 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15917
15918
15919 fi
15920
15921
15922
15923 ac_config_headers="$ac_config_headers config.h"
15924
15925
15926 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15927 if test "x$ac_cv_header_unistd_h" = xyes
15928 then :
15929 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15930
15931 fi
15932 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15933 if test "x$ac_cv_header_stdint_h" = xyes
15934 then :
15935 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
15936
15937 fi
15938 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15939 if test "x$ac_cv_header_inttypes_h" = xyes
15940 then :
15941 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
15942
15943 fi
15944 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15945 if test "x$ac_cv_header_sys_types_h" = xyes
15946 then :
15947 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
15948
15949 fi
15950 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
15951 if test "x$ac_cv_header_sys_wait_h" = xyes
15952 then :
15953 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15954
15955 fi
15956
15957
15958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15959 printf %s "checking for working memcmp... " >&6; }
15960 if test ${ac_cv_func_memcmp_working+y}
15961 then :
15962 printf %s "(cached) " >&6
15963 else case e in #(
15964 e) if test "$cross_compiling" = yes
15965 then :
15966 ac_cv_func_memcmp_working=no
15967 else case e in #(
15968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15970 $ac_includes_default
15971 int
15972 main (void)
15973 {
15974
15975 /* Some versions of memcmp are not 8-bit clean. */
15976 char c0 = '\100', c1 = '\200', c2 = '\201';
15977 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15978 return 1;
15979
15980 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15981 or more and with at least one buffer not starting on a 4-byte boundary.
15982 William Lewis provided this test program. */
15983 {
15984 char foo[21];
15985 char bar[21];
15986 int i;
15987 for (i = 0; i < 4; i++)
15988 {
15989 char *a = foo + i;
15990 char *b = bar + i;
15991 strcpy (a, "--------01111111");
15992 strcpy (b, "--------10000000");
15993 if (memcmp (a, b, 16) >= 0)
15994 return 1;
15995 }
15996 return 0;
15997 }
15998
15999 ;
16000 return 0;
16001 }
16002 _ACEOF
16003 if ac_fn_c_try_run "$LINENO"
16004 then :
16005 ac_cv_func_memcmp_working=yes
16006 else case e in #(
16007 e) ac_cv_func_memcmp_working=no ;;
16008 esac
16009 fi
16010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16011 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16012 esac
16013 fi
16014 ;;
16015 esac
16016 fi
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16018 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
16019 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16020 *" memcmp.$ac_objext "* ) ;;
16021 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16022 ;;
16023 esac
16024
16025
16026 ac_fn_c_check_func "$LINENO" "open" "ac_cv_func_open"
16027 if test "x$ac_cv_func_open" = xyes
16028 then :
16029 printf "%s\n" "#define HAVE_OPEN 1" >>confdefs.h
16030
16031 fi
16032 ac_fn_c_check_func "$LINENO" "close" "ac_cv_func_close"
16033 if test "x$ac_cv_func_close" = xyes
16034 then :
16035 printf "%s\n" "#define HAVE_CLOSE 1" >>confdefs.h
16036
16037 fi
16038 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
16039 if test "x$ac_cv_func_getenv" = xyes
16040 then :
16041 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
16042
16043 fi
16044 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
16045 if test "x$ac_cv_func_basename" = xyes
16046 then :
16047 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
16048
16049 fi
16050
16051
16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16053 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16054 if test ${ac_cv_struct_tm+y}
16055 then :
16056 printf %s "(cached) " >&6
16057 else case e in #(
16058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 #include <sys/types.h>
16061 #include <time.h>
16062
16063 int
16064 main (void)
16065 {
16066 struct tm tm;
16067 int *p = &tm.tm_sec;
16068 return !p;
16069 ;
16070 return 0;
16071 }
16072 _ACEOF
16073 if ac_fn_c_try_compile "$LINENO"
16074 then :
16075 ac_cv_struct_tm=time.h
16076 else case e in #(
16077 e) ac_cv_struct_tm=sys/time.h ;;
16078 esac
16079 fi
16080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16081 esac
16082 fi
16083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16084 printf "%s\n" "$ac_cv_struct_tm" >&6; }
16085 if test $ac_cv_struct_tm = sys/time.h; then
16086
16087 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
16088
16089 fi
16090
16091 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
16092 #include <$ac_cv_struct_tm>
16093
16094 "
16095 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
16096 then :
16097
16098 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
16099
16100
16101 fi
16102
16103 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16104
16105 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
16106
16107 else
16108 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
16109 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16110 if test "x$ac_cv_have_decl_tzname" = xyes
16111 then :
16112 ac_have_decl=1
16113 else case e in #(
16114 e) ac_have_decl=0 ;;
16115 esac
16116 fi
16117 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
16118
16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
16120 printf %s "checking for tzname... " >&6; }
16121 if test ${ac_cv_var_tzname+y}
16122 then :
16123 printf %s "(cached) " >&6
16124 else case e in #(
16125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16127 #include <time.h>
16128 #if !HAVE_DECL_TZNAME
16129 extern char *tzname[];
16130 #endif
16131
16132 int
16133 main (void)
16134 {
16135 return tzname[0][0];
16136 ;
16137 return 0;
16138 }
16139 _ACEOF
16140 if ac_fn_c_try_link "$LINENO"
16141 then :
16142 ac_cv_var_tzname=yes
16143 else case e in #(
16144 e) ac_cv_var_tzname=no ;;
16145 esac
16146 fi
16147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16148 conftest$ac_exeext conftest.$ac_ext ;;
16149 esac
16150 fi
16151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
16152 printf "%s\n" "$ac_cv_var_tzname" >&6; }
16153 if test $ac_cv_var_tzname = yes; then
16154
16155 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
16156
16157 fi
16158 fi
16159
16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16161 printf %s "checking whether byte ordering is bigendian... " >&6; }
16162 if test ${ac_cv_c_bigendian+y}
16163 then :
16164 printf %s "(cached) " >&6
16165 else case e in #(
16166 e) ac_cv_c_bigendian=unknown
16167 # See if we're dealing with a universal compiler.
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 #ifndef __APPLE_CC__
16171 not a universal capable compiler
16172 #endif
16173 typedef int dummy;
16174
16175 _ACEOF
16176 if ac_fn_c_try_compile "$LINENO"
16177 then :
16178
16179 # Check for potential -arch flags. It is not universal unless
16180 # there are at least two -arch flags with different values.
16181 ac_arch=
16182 ac_prev=
16183 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16184 if test -n "$ac_prev"; then
16185 case $ac_word in
16186 i?86 | x86_64 | ppc | ppc64)
16187 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16188 ac_arch=$ac_word
16189 else
16190 ac_cv_c_bigendian=universal
16191 break
16192 fi
16193 ;;
16194 esac
16195 ac_prev=
16196 elif test "x$ac_word" = "x-arch"; then
16197 ac_prev=arch
16198 fi
16199 done
16200 fi
16201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16202 if test $ac_cv_c_bigendian = unknown; then
16203 # See if sys/param.h defines the BYTE_ORDER macro.
16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h. */
16206 #include <sys/types.h>
16207 #include <sys/param.h>
16208
16209 int
16210 main (void)
16211 {
16212 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
16213 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
16214 && LITTLE_ENDIAN)
16215 bogus endian macros
16216 #endif
16217
16218 ;
16219 return 0;
16220 }
16221 _ACEOF
16222 if ac_fn_c_try_compile "$LINENO"
16223 then :
16224 # It does; now see whether it defined to BIG_ENDIAN or not.
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16227 #include <sys/types.h>
16228 #include <sys/param.h>
16229
16230 int
16231 main (void)
16232 {
16233 #if BYTE_ORDER != BIG_ENDIAN
16234 not big endian
16235 #endif
16236
16237 ;
16238 return 0;
16239 }
16240 _ACEOF
16241 if ac_fn_c_try_compile "$LINENO"
16242 then :
16243 ac_cv_c_bigendian=yes
16244 else case e in #(
16245 e) ac_cv_c_bigendian=no ;;
16246 esac
16247 fi
16248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16249 fi
16250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16251 fi
16252 if test $ac_cv_c_bigendian = unknown; then
16253 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256 #include <limits.h>
16257
16258 int
16259 main (void)
16260 {
16261 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16262 bogus endian macros
16263 #endif
16264
16265 ;
16266 return 0;
16267 }
16268 _ACEOF
16269 if ac_fn_c_try_compile "$LINENO"
16270 then :
16271 # It does; now see whether it defined to _BIG_ENDIAN or not.
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16274 #include <limits.h>
16275
16276 int
16277 main (void)
16278 {
16279 #ifndef _BIG_ENDIAN
16280 not big endian
16281 #endif
16282
16283 ;
16284 return 0;
16285 }
16286 _ACEOF
16287 if ac_fn_c_try_compile "$LINENO"
16288 then :
16289 ac_cv_c_bigendian=yes
16290 else case e in #(
16291 e) ac_cv_c_bigendian=no ;;
16292 esac
16293 fi
16294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16295 fi
16296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16297 fi
16298 if test $ac_cv_c_bigendian = unknown; then
16299 # Compile a test program.
16300 if test "$cross_compiling" = yes
16301 then :
16302 # Try to guess by grepping values from an object file.
16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h. */
16305 unsigned short int ascii_mm[] =
16306 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16307 unsigned short int ascii_ii[] =
16308 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16309 int use_ascii (int i) {
16310 return ascii_mm[i] + ascii_ii[i];
16311 }
16312 unsigned short int ebcdic_ii[] =
16313 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16314 unsigned short int ebcdic_mm[] =
16315 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16316 int use_ebcdic (int i) {
16317 return ebcdic_mm[i] + ebcdic_ii[i];
16318 }
16319 int
16320 main (int argc, char **argv)
16321 {
16322 /* Intimidate the compiler so that it does not
16323 optimize the arrays away. */
16324 char *p = argv[0];
16325 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
16326 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
16327 return use_ascii (argc) == use_ebcdic (*p);
16328 }
16329 _ACEOF
16330 if ac_fn_c_try_link "$LINENO"
16331 then :
16332 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
16333 ac_cv_c_bigendian=yes
16334 fi
16335 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
16336 if test "$ac_cv_c_bigendian" = unknown; then
16337 ac_cv_c_bigendian=no
16338 else
16339 # finding both strings is unlikely to happen, but who knows?
16340 ac_cv_c_bigendian=unknown
16341 fi
16342 fi
16343 fi
16344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16345 conftest$ac_exeext conftest.$ac_ext
16346 else case e in #(
16347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348 /* end confdefs.h. */
16349 $ac_includes_default
16350 int
16351 main (void)
16352 {
16353
16354 /* Are we little or big endian? From Harbison&Steele. */
16355 union
16356 {
16357 long int l;
16358 char c[sizeof (long int)];
16359 } u;
16360 u.l = 1;
16361 return u.c[sizeof (long int) - 1] == 1;
16362
16363 ;
16364 return 0;
16365 }
16366 _ACEOF
16367 if ac_fn_c_try_run "$LINENO"
16368 then :
16369 ac_cv_c_bigendian=no
16370 else case e in #(
16371 e) ac_cv_c_bigendian=yes ;;
16372 esac
16373 fi
16374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16375 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16376 esac
16377 fi
16378
16379 fi ;;
16380 esac
16381 fi
16382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16383 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
16384 case $ac_cv_c_bigendian in #(
16385 yes)
16386 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
16387 ;; #(
16388 no)
16389 ;; #(
16390 universal)
16391
16392 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16393
16394 ;; #(
16395 *)
16396 as_fn_error $? "unknown endianness
16397 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16398 esac
16399
16400 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
16401 case $ac_cv_c_int32_t in #(
16402 no|yes) ;; #(
16403 *)
16404
16405 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
16406 ;;
16407 esac
16408
16409 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16410 case $ac_cv_c_uint32_t in #(
16411 no|yes) ;; #(
16412 *)
16413
16414 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
16415
16416
16417 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
16418 ;;
16419 esac
16420
16421
16422 ac_fn_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "#include <time.h>
16423 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16424 if test "x$ac_cv_have_decl_timezone" = xyes
16425 then :
16426
16427 printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h
16428
16429 fi
16430 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
16431 "
16432 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
16433 then :
16434
16435 printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h
16436
16437 fi
16438
16439
16440 # The cast to long int works around a bug in the HP C Compiler
16441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16442 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16443 # This bug is HP SR number 8606223364.
16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16445 printf %s "checking size of char... " >&6; }
16446 if test ${ac_cv_sizeof_char+y}
16447 then :
16448 printf %s "(cached) " >&6
16449 else case e in #(
16450 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
16451 then :
16452
16453 else case e in #(
16454 e) if test "$ac_cv_type_char" = yes; then
16455 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16456 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16457 as_fn_error 77 "cannot compute sizeof (char)
16458 See 'config.log' for more details" "$LINENO" 5; }
16459 else
16460 ac_cv_sizeof_char=0
16461 fi ;;
16462 esac
16463 fi
16464 ;;
16465 esac
16466 fi
16467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16468 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
16469
16470
16471
16472 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
16473
16474
16475 # The cast to long int works around a bug in the HP C Compiler
16476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16477 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16478 # This bug is HP SR number 8606223364.
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16480 printf %s "checking size of short... " >&6; }
16481 if test ${ac_cv_sizeof_short+y}
16482 then :
16483 printf %s "(cached) " >&6
16484 else case e in #(
16485 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
16486 then :
16487
16488 else case e in #(
16489 e) if test "$ac_cv_type_short" = yes; then
16490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16491 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16492 as_fn_error 77 "cannot compute sizeof (short)
16493 See 'config.log' for more details" "$LINENO" 5; }
16494 else
16495 ac_cv_sizeof_short=0
16496 fi ;;
16497 esac
16498 fi
16499 ;;
16500 esac
16501 fi
16502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16503 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
16504
16505
16506
16507 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
16508
16509
16510 # The cast to long int works around a bug in the HP C Compiler
16511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16512 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16513 # This bug is HP SR number 8606223364.
16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16515 printf %s "checking size of int... " >&6; }
16516 if test ${ac_cv_sizeof_int+y}
16517 then :
16518 printf %s "(cached) " >&6
16519 else case e in #(
16520 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
16521 then :
16522
16523 else case e in #(
16524 e) if test "$ac_cv_type_int" = yes; then
16525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16526 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16527 as_fn_error 77 "cannot compute sizeof (int)
16528 See 'config.log' for more details" "$LINENO" 5; }
16529 else
16530 ac_cv_sizeof_int=0
16531 fi ;;
16532 esac
16533 fi
16534 ;;
16535 esac
16536 fi
16537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16538 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
16539
16540
16541
16542 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
16543
16544
16545 # The cast to long int works around a bug in the HP C Compiler
16546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16547 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16548 # This bug is HP SR number 8606223364.
16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16550 printf %s "checking size of long... " >&6; }
16551 if test ${ac_cv_sizeof_long+y}
16552 then :
16553 printf %s "(cached) " >&6
16554 else case e in #(
16555 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
16556 then :
16557
16558 else case e in #(
16559 e) if test "$ac_cv_type_long" = yes; then
16560 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16561 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16562 as_fn_error 77 "cannot compute sizeof (long)
16563 See 'config.log' for more details" "$LINENO" 5; }
16564 else
16565 ac_cv_sizeof_long=0
16566 fi ;;
16567 esac
16568 fi
16569 ;;
16570 esac
16571 fi
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16573 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
16574
16575
16576
16577 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
16578
16579
16580
16581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
16582 printf %s "checking for library containing pow... " >&6; }
16583 if test ${ac_cv_search_pow+y}
16584 then :
16585 printf %s "(cached) " >&6
16586 else case e in #(
16587 e) ac_func_search_save_LIBS=$LIBS
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16590
16591 /* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply.
16594 The 'extern "C"' is for builds by C++ compilers;
16595 although this is not generally supported in C code supporting it here
16596 has little cost and some practical benefit (sr 110532). */
16597 #ifdef __cplusplus
16598 extern "C"
16599 #endif
16600 char pow (void);
16601 int
16602 main (void)
16603 {
16604 return pow ();
16605 ;
16606 return 0;
16607 }
16608 _ACEOF
16609 for ac_lib in '' m
16610 do
16611 if test -z "$ac_lib"; then
16612 ac_res="none required"
16613 else
16614 ac_res=-l$ac_lib
16615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16616 fi
16617 if ac_fn_c_try_link "$LINENO"
16618 then :
16619 ac_cv_search_pow=$ac_res
16620 fi
16621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16622 conftest$ac_exeext
16623 if test ${ac_cv_search_pow+y}
16624 then :
16625 break
16626 fi
16627 done
16628 if test ${ac_cv_search_pow+y}
16629 then :
16630
16631 else case e in #(
16632 e) ac_cv_search_pow=no ;;
16633 esac
16634 fi
16635 rm conftest.$ac_ext
16636 LIBS=$ac_func_search_save_LIBS ;;
16637 esac
16638 fi
16639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
16640 printf "%s\n" "$ac_cv_search_pow" >&6; }
16641 ac_res=$ac_cv_search_pow
16642 if test "$ac_res" != no
16643 then :
16644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16645
16646 fi
16647
16648
16649 kpse_save_CPPFLAGS=$CPPFLAGS
16650 kpse_save_LIBS=$LIBS
16651
16652 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
16653 kpse_BLD=`(cd "./../../." && pwd)`
16654 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
16655
16656 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
16657 : ${CONFIG_LT=./config.lt}
16658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
16659 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
16660 as_write_fail=0
16661 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
16662 #! $SHELL
16663 # Generated by $as_me.
16664 # Run this file to recreate a libtool stub with the current configuration.
16665 SHELL=\${CONFIG_SHELL-$SHELL}
16666 export SHELL
16667 _ASEOF
16668 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
16669 ## -------------------- ##
16670 ## M4sh Initialization. ##
16671 ## -------------------- ##
16672
16673 # Be more Bourne compatible
16674 DUALCASE=1; export DUALCASE # for MKS sh
16675 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16676 then :
16677 emulate sh
16678 NULLCMD=:
16679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16680 # is contrary to our usage. Disable this feature.
16681 alias -g '${1+"$@"}'='"$@"'
16682 setopt NO_GLOB_SUBST
16683 else case e in #(
16684 e) case `(set -o) 2>/dev/null` in #(
16685 *posix*) :
16686 set -o posix ;; #(
16687 *) :
16688 ;;
16689 esac ;;
16690 esac
16691 fi
16692
16693
16694
16695 # Reset variables that may have inherited troublesome values from
16696 # the environment.
16697
16698 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16699 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16700 # side effect of setting IFS to empty, thus disabling word splitting.)
16701 # Quoting is to prevent editors from complaining about space-tab.
16702 as_nl='
16703 '
16704 export as_nl
16705 IFS=" "" $as_nl"
16706
16707 PS1='$ '
16708 PS2='> '
16709 PS4='+ '
16710
16711 # Ensure predictable behavior from utilities with locale-dependent output.
16712 LC_ALL=C
16713 export LC_ALL
16714 LANGUAGE=C
16715 export LANGUAGE
16716
16717 # We cannot yet rely on "unset" to work, but we need these variables
16718 # to be unset--not just set to an empty or harmless value--now, to
16719 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16720 # also avoids known problems related to "unset" and subshell syntax
16721 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16722 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16723 do eval test \${$as_var+y} \
16724 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16725 done
16726
16727 # Ensure that fds 0, 1, and 2 are open.
16728 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16729 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16730 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16731
16732 # The user is always right.
16733 if ${PATH_SEPARATOR+false} :; then
16734 PATH_SEPARATOR=:
16735 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16736 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16737 PATH_SEPARATOR=';'
16738 }
16739 fi
16740
16741
16742 # Find who we are. Look in the path if we contain no directory separator.
16743 as_myself=
16744 case $0 in #((
16745 *[\\/]* ) as_myself=$0 ;;
16746 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16747 for as_dir in $PATH
16748 do
16749 IFS=$as_save_IFS
16750 case $as_dir in #(((
16751 '') as_dir=./ ;;
16752 */) ;;
16753 *) as_dir=$as_dir/ ;;
16754 esac
16755 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16756 done
16757 IFS=$as_save_IFS
16758
16759 ;;
16760 esac
16761 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16762 # in which case we are not to be found in the path.
16763 if test "x$as_myself" = x; then
16764 as_myself=$0
16765 fi
16766 if test ! -f "$as_myself"; then
16767 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16768 exit 1
16769 fi
16770
16771
16772
16773 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16774 # ----------------------------------------
16775 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16776 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16777 # script with STATUS, using 1 if that was 0.
16778 as_fn_error ()
16779 {
16780 as_status=$1; test $as_status -eq 0 && as_status=1
16781 if test "$4"; then
16782 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16784 fi
16785 printf "%s\n" "$as_me: error: $2" >&2
16786 as_fn_exit $as_status
16787 } # as_fn_error
16788
16789
16790 # as_fn_set_status STATUS
16791 # -----------------------
16792 # Set $? to STATUS, without forking.
16793 as_fn_set_status ()
16794 {
16795 return $1
16796 } # as_fn_set_status
16797
16798 # as_fn_exit STATUS
16799 # -----------------
16800 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16801 as_fn_exit ()
16802 {
16803 set +e
16804 as_fn_set_status $1
16805 exit $1
16806 } # as_fn_exit
16807
16808 # as_fn_unset VAR
16809 # ---------------
16810 # Portably unset VAR.
16811 as_fn_unset ()
16812 {
16813 { eval $1=; unset $1;}
16814 }
16815 as_unset=as_fn_unset
16816
16817 # as_fn_append VAR VALUE
16818 # ----------------------
16819 # Append the text in VALUE to the end of the definition contained in VAR. Take
16820 # advantage of any shell optimizations that allow amortized linear growth over
16821 # repeated appends, instead of the typical quadratic growth present in naive
16822 # implementations.
16823 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16824 then :
16825 eval 'as_fn_append ()
16826 {
16827 eval $1+=\$2
16828 }'
16829 else case e in #(
16830 e) as_fn_append ()
16831 {
16832 eval $1=\$$1\$2
16833 } ;;
16834 esac
16835 fi # as_fn_append
16836
16837 # as_fn_arith ARG...
16838 # ------------------
16839 # Perform arithmetic evaluation on the ARGs, and store the result in the
16840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16841 # must be portable across $(()) and expr.
16842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16843 then :
16844 eval 'as_fn_arith ()
16845 {
16846 as_val=$(( $* ))
16847 }'
16848 else case e in #(
16849 e) as_fn_arith ()
16850 {
16851 as_val=`expr "$@" || test $? -eq 1`
16852 } ;;
16853 esac
16854 fi # as_fn_arith
16855
16856
16857 if expr a : '\(a\)' >/dev/null 2>&1 &&
16858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16859 as_expr=expr
16860 else
16861 as_expr=false
16862 fi
16863
16864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16865 as_basename=basename
16866 else
16867 as_basename=false
16868 fi
16869
16870 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16871 as_dirname=dirname
16872 else
16873 as_dirname=false
16874 fi
16875
16876 as_me=`$as_basename -- "$0" ||
16877 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16878 X"$0" : 'X\(//\)$' \| \
16879 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16880 printf "%s\n" X/"$0" |
16881 sed '/^.*\/\([^/][^/]*\)\/*$/{
16882 s//\1/
16883 q
16884 }
16885 /^X\/\(\/\/\)$/{
16886 s//\1/
16887 q
16888 }
16889 /^X\/\(\/\).*/{
16890 s//\1/
16891 q
16892 }
16893 s/.*/./; q'`
16894
16895 # Avoid depending upon Character Ranges.
16896 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16897 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16898 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16899 as_cr_digits='0123456789'
16900 as_cr_alnum=$as_cr_Letters$as_cr_digits
16901
16902
16903 # Determine whether it's possible to make 'echo' print without a newline.
16904 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16905 # for compatibility with existing Makefiles.
16906 ECHO_C= ECHO_N= ECHO_T=
16907 case `echo -n x` in #(((((
16908 -n*)
16909 case `echo 'xy\c'` in
16910 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16911 xy) ECHO_C='\c';;
16912 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16913 ECHO_T=' ';;
16914 esac;;
16915 *)
16916 ECHO_N='-n';;
16917 esac
16918
16919 # For backward compatibility with old third-party macros, we provide
16920 # the shell variables $as_echo and $as_echo_n. New code should use
16921 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16922 as_echo='printf %s\n'
16923 as_echo_n='printf %s'
16924
16925 rm -f conf$$ conf$$.exe conf$$.file
16926 if test -d conf$$.dir; then
16927 rm -f conf$$.dir/conf$$.file
16928 else
16929 rm -f conf$$.dir
16930 mkdir conf$$.dir 2>/dev/null
16931 fi
16932 if (echo >conf$$.file) 2>/dev/null; then
16933 if ln -s conf$$.file conf$$ 2>/dev/null; then
16934 as_ln_s='ln -s'
16935 # ... but there are two gotchas:
16936 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16937 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16938 # In both cases, we have to default to 'cp -pR'.
16939 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16940 as_ln_s='cp -pR'
16941 elif ln conf$$.file conf$$ 2>/dev/null; then
16942 as_ln_s=ln
16943 else
16944 as_ln_s='cp -pR'
16945 fi
16946 else
16947 as_ln_s='cp -pR'
16948 fi
16949 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16950 rmdir conf$$.dir 2>/dev/null
16951
16952
16953 # as_fn_mkdir_p
16954 # -------------
16955 # Create "$as_dir" as a directory, including parents if necessary.
16956 as_fn_mkdir_p ()
16957 {
16958
16959 case $as_dir in #(
16960 -*) as_dir=./$as_dir;;
16961 esac
16962 test -d "$as_dir" || eval $as_mkdir_p || {
16963 as_dirs=
16964 while :; do
16965 case $as_dir in #(
16966 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16967 *) as_qdir=$as_dir;;
16968 esac
16969 as_dirs="'$as_qdir' $as_dirs"
16970 as_dir=`$as_dirname -- "$as_dir" ||
16971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16972 X"$as_dir" : 'X\(//\)[^/]' \| \
16973 X"$as_dir" : 'X\(//\)$' \| \
16974 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16975 printf "%s\n" X"$as_dir" |
16976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16977 s//\1/
16978 q
16979 }
16980 /^X\(\/\/\)[^/].*/{
16981 s//\1/
16982 q
16983 }
16984 /^X\(\/\/\)$/{
16985 s//\1/
16986 q
16987 }
16988 /^X\(\/\).*/{
16989 s//\1/
16990 q
16991 }
16992 s/.*/./; q'`
16993 test -d "$as_dir" && break
16994 done
16995 test -z "$as_dirs" || eval "mkdir $as_dirs"
16996 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16997
16998
16999 } # as_fn_mkdir_p
17000 if mkdir -p . 2>/dev/null; then
17001 as_mkdir_p='mkdir -p "$as_dir"'
17002 else
17003 test -d ./-p && rmdir ./-p
17004 as_mkdir_p=false
17005 fi
17006
17007
17008 # as_fn_executable_p FILE
17009 # -----------------------
17010 # Test if FILE is an executable regular file.
17011 as_fn_executable_p ()
17012 {
17013 test -f "$1" && test -x "$1"
17014 } # as_fn_executable_p
17015 as_test_x='test -x'
17016 as_executable_p=as_fn_executable_p
17017
17018 # Sed expression to map a string onto a valid CPP name.
17019 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17020 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17021
17022 # Sed expression to map a string onto a valid variable name.
17023 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17024 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17025
17026
17027 exec 6>&1
17028 ## --------------------------------- ##
17029 ## Main body of "$CONFIG_LT" script. ##
17030 ## --------------------------------- ##
17031 _ASEOF
17032 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
17033
17034 cat >>"$CONFIG_LT" <<\_LTEOF
17035 lt_cl_silent=false
17036 exec 5>>config.log
17037 {
17038 echo
17039 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17040 ## Running $as_me. ##
17041 _ASBOX
17042 } >&5
17043
17044 lt_cl_help="\
17045 '$as_me' creates a local libtool stub from the current configuration,
17046 for use in further configure time tests before the real libtool is
17047 generated.
17048
17049 Usage: $0 [OPTIONS]
17050
17051 -h, --help print this help, then exit
17052 -V, --version print version number, then exit
17053 -q, --quiet do not print progress messages
17054 -d, --debug don't remove temporary files
17055
17056 Report bugs to <[email protected]>."
17057
17058 lt_cl_version="\
•17059 dvipdfm-x (TeX Live) config.lt 20260317
17060 configured by $0, generated by GNU Autoconf 2.72.
17061
17062 Copyright (C) 2024 Free Software Foundation, Inc.
17063 This config.lt script is free software; the Free Software Foundation
17064 gives unlimited permission to copy, distribute and modify it."
17065
17066 while test 0 != $#
17067 do
17068 case $1 in
17069 --version | --v* | -V )
17070 echo "$lt_cl_version"; exit 0 ;;
17071 --help | --h* | -h )
17072 echo "$lt_cl_help"; exit 0 ;;
17073 --debug | --d* | -d )
17074 debug=: ;;
17075 --quiet | --q* | --silent | --s* | -q )
17076 lt_cl_silent=: ;;
17077
17078 -*) as_fn_error $? "unrecognized option: $1
17079 Try '$0 --help' for more information." "$LINENO" 5 ;;
17080
17081 *) as_fn_error $? "unrecognized argument: $1
17082 Try '$0 --help' for more information." "$LINENO" 5 ;;
17083 esac
17084 shift
17085 done
17086
17087 if $lt_cl_silent; then
17088 exec 6>/dev/null
17089 fi
17090 _LTEOF
17091
17092 cat >>"$CONFIG_LT" <<_LTEOF
17093
17094
17095 # The HP-UX ksh and POSIX shell print the target directory to stdout
17096 # if CDPATH is set.
17097 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17098
17099 sed_quote_subst='$sed_quote_subst'
17100 double_quote_subst='$double_quote_subst'
17101 delay_variable_subst='$delay_variable_subst'
17102 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17103 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17104 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17105 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17106 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17107 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17108 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17109 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17110 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17111 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17112 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17113 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17114 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17115 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17116 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17117 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17118 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17119 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17120 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17121 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17122 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17123 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17124 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17125 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17126 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17127 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17128 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17129 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17130 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17131 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17132 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17133 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17134 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17135 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17136 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17137 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17138 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17139 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17140 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17141 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17142 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17143 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17144 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17145 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17146 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17147 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17148 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17149 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17150 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17151 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17152 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17153 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17154 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17155 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17156 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17157 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17158 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17159 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17160 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17161 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17162 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17163 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"`'
17164 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17165 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17166 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17167 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17168 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17169 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17170 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17171 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17172 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17173 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17174 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17175 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17176 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17177 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17178 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17179 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17180 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17181 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17182 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17183 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17184 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17185 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17186 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17187 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17188 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17189 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17190 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17191 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17192 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17193 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17194 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17195 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17196 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17197 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17198 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17199 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17200 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17201 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17202 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17203 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17204 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17205 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17206 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17207 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17208 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17209 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17210 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17211 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17212 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17213 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17214 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17215 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17216 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17217 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17218 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17219 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17220 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17221 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17222 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17223 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17224 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17225 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17226 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17227 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17228 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17229 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17230 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17231 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17232 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17233 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17234 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17235 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17236 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17237 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17238 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17239 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17240
17241 LTCC='$LTCC'
17242 LTCFLAGS='$LTCFLAGS'
17243 compiler='$compiler_DEFAULT'
17244
17245 # A function that is used when there is no print builtin or printf.
17246 func_fallback_echo ()
17247 {
17248 eval 'cat <<_LTECHO_EOF
17249 \$1
17250 _LTECHO_EOF'
17251 }
17252
17253 # Quote evaled strings.
17254 for var in AS \
17255 DLLTOOL \
17256 OBJDUMP \
17257 SHELL \
17258 ECHO \
17259 PATH_SEPARATOR \
17260 SED \
17261 GREP \
17262 EGREP \
17263 FGREP \
17264 LD \
17265 NM \
17266 LN_S \
17267 lt_SP2NL \
17268 lt_NL2SP \
17269 reload_flag \
17270 FILECMD \
17271 deplibs_check_method \
17272 file_magic_cmd \
17273 file_magic_glob \
17274 want_nocaseglob \
17275 sharedlib_from_linklib_cmd \
17276 AR \
17277 archiver_list_spec \
17278 STRIP \
17279 RANLIB \
17280 CC \
17281 CFLAGS \
17282 compiler \
17283 lt_cv_sys_global_symbol_pipe \
17284 lt_cv_sys_global_symbol_to_cdecl \
17285 lt_cv_sys_global_symbol_to_import \
17286 lt_cv_sys_global_symbol_to_c_name_address \
17287 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17288 lt_cv_nm_interface \
17289 nm_file_list_spec \
17290 lt_cv_truncate_bin \
17291 lt_prog_compiler_no_builtin_flag \
17292 lt_prog_compiler_pic \
17293 lt_prog_compiler_wl \
17294 lt_prog_compiler_static \
17295 lt_cv_prog_compiler_c_o \
17296 need_locks \
17297 MANIFEST_TOOL \
17298 DSYMUTIL \
17299 NMEDIT \
17300 LIPO \
17301 OTOOL \
17302 OTOOL64 \
17303 shrext_cmds \
17304 export_dynamic_flag_spec \
17305 whole_archive_flag_spec \
17306 compiler_needs_object \
17307 with_gnu_ld \
17308 allow_undefined_flag \
17309 no_undefined_flag \
17310 hardcode_libdir_flag_spec \
17311 hardcode_libdir_separator \
17312 exclude_expsyms \
17313 include_expsyms \
17314 file_list_spec \
17315 variables_saved_for_relink \
17316 libname_spec \
17317 library_names_spec \
17318 soname_spec \
17319 install_override_mode \
17320 finish_eval \
17321 old_striplib \
17322 striplib; do
17323 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17324 *[\\\\\\\`\\"\\\$]*)
17325 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17326 ;;
17327 *)
17328 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17329 ;;
17330 esac
17331 done
17332
17333 # Double-quote double-evaled strings.
17334 for var in reload_cmds \
17335 old_postinstall_cmds \
17336 old_postuninstall_cmds \
17337 old_archive_cmds \
17338 extract_expsyms_cmds \
17339 old_archive_from_new_cmds \
17340 old_archive_from_expsyms_cmds \
17341 archive_cmds \
17342 archive_expsym_cmds \
17343 module_cmds \
17344 module_expsym_cmds \
17345 export_symbols_cmds \
17346 prelink_cmds \
17347 postlink_cmds \
17348 postinstall_cmds \
17349 postuninstall_cmds \
17350 finish_cmds \
17351 sys_lib_search_path_spec \
17352 configure_time_dlsearch_path \
17353 configure_time_lt_sys_library_path; do
17354 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17355 *[\\\\\\\`\\"\\\$]*)
17356 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17357 ;;
17358 *)
17359 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17360 ;;
17361 esac
17362 done
17363
17364 ac_aux_dir='$ac_aux_dir'
17365
17366 # See if we are running on zsh, and set the options that allow our
17367 # commands through without removal of \ escapes INIT.
17368 if test -n "\${ZSH_VERSION+set}"; then
17369 setopt NO_GLOB_SUBST
17370 fi
17371
17372
17373 PACKAGE='$PACKAGE'
17374 VERSION='$VERSION'
17375 RM='$RM'
17376 ofile='$ofile'
17377
17378
17379
17380 _LTEOF
17381
17382 cat >>"$CONFIG_LT" <<\_LTEOF
17383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
17384 printf "%s\n" "$as_me: creating $ofile" >&6;}
17385
17386
17387 # See if we are running on zsh, and set the options that allow our
17388 # commands through without removal of \ escapes.
17389 if test -n "${ZSH_VERSION+set}"; then
17390 setopt NO_GLOB_SUBST
17391 fi
17392
17393 cfgfile=${ofile}T
17394 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17395 $RM "$cfgfile"
17396
17397 cat <<_LT_EOF >> "$cfgfile"
17398 #! $SHELL
17399 # Generated automatically by $as_me ($PACKAGE) $VERSION
17400 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17401
17402 # Provide generalized library-building support services.
17403 # Written by Gordon Matzigkeit, 1996
17404
17405 # Copyright (C) 2024 Free Software Foundation, Inc.
17406 # This is free software; see the source for copying conditions. There is NO
17407 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17408
17409 # GNU Libtool is free software; you can redistribute it and/or modify
17410 # it under the terms of the GNU General Public License as published by
17411 # the Free Software Foundation; either version 2 of the License, or
17412 # (at your option) any later version.
17413 #
17414 # As a special exception to the GNU General Public License, if you
17415 # distribute this file as part of a program or library that is built
17416 # using GNU Libtool, you may include this file under the same
17417 # distribution terms that you use for the rest of that program.
17418 #
17419 # GNU Libtool is distributed in the hope that it will be useful, but
17420 # WITHOUT ANY WARRANTY; without even the implied warranty of
17421 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17422 # GNU General Public License for more details.
17423 #
17424 # You should have received a copy of the GNU General Public License
17425 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17426
17427
17428 # The names of the tagged configurations supported by this script.
17429 available_tags=''
17430
17431 # Configured defaults for sys_lib_dlsearch_path munging.
17432 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17433
17434 # ### BEGIN LIBTOOL CONFIG
17435
17436 # Which release of libtool.m4 was used?
17437 macro_version=$macro_version
17438 macro_revision=$macro_revision
17439
17440 # Assembler program.
17441 AS=$lt_AS
17442
17443 # DLL creation program.
17444 DLLTOOL=$lt_DLLTOOL
17445
17446 # Object dumper program.
17447 OBJDUMP=$lt_OBJDUMP
17448
17449 # Whether or not to build shared libraries.
17450 build_libtool_libs=$enable_shared
17451
17452 # Whether or not to build static libraries.
17453 build_old_libs=$enable_static
17454
17455 # What type of objects to build.
17456 pic_mode=$pic_mode
17457
17458 # Whether or not to optimize for fast installation.
17459 fast_install=$enable_fast_install
17460
17461 # Shared archive member basename,for filename based shared library versioning on AIX.
17462 shared_archive_member_spec=$shared_archive_member_spec
17463
17464 # Shell to use when invoking shell scripts.
17465 SHELL=$lt_SHELL
17466
17467 # An echo program that protects backslashes.
17468 ECHO=$lt_ECHO
17469
17470 # The PATH separator for the build system.
17471 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17472
17473 # The host system.
17474 host_alias=$host_alias
17475 host=$host
17476 host_os=$host_os
17477
17478 # The build system.
17479 build_alias=$build_alias
17480 build=$build
17481 build_os=$build_os
17482
17483 # A sed program that does not truncate output.
17484 SED=$lt_SED
17485
17486 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17487 Xsed="\$SED -e 1s/^X//"
17488
17489 # A grep program that handles long lines.
17490 GREP=$lt_GREP
17491
17492 # An ERE matcher.
17493 EGREP=$lt_EGREP
17494
17495 # A literal string matcher.
17496 FGREP=$lt_FGREP
17497
17498 # A BSD- or MS-compatible name lister.
17499 NM=$lt_NM
17500
17501 # Whether we need soft or hard links.
17502 LN_S=$lt_LN_S
17503
17504 # What is the maximum length of a command?
17505 max_cmd_len=$max_cmd_len
17506
17507 # Object file suffix (normally "o").
17508 objext=$ac_objext
17509
17510 # Executable file suffix (normally "").
17511 exeext=$exeext
17512
17513 # whether the shell understands "unset".
17514 lt_unset=$lt_unset
17515
17516 # turn spaces into newlines.
17517 SP2NL=$lt_lt_SP2NL
17518
17519 # turn newlines into spaces.
17520 NL2SP=$lt_lt_NL2SP
17521
17522 # convert \$build file names to \$host format.
17523 to_host_file_cmd=$lt_cv_to_host_file_cmd
17524
17525 # convert \$build files to toolchain format.
17526 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17527
17528 # A file(cmd) program that detects file types.
17529 FILECMD=$lt_FILECMD
17530
17531 # Method to check whether dependent libraries are shared objects.
17532 deplibs_check_method=$lt_deplibs_check_method
17533
17534 # Command to use when deplibs_check_method = "file_magic".
17535 file_magic_cmd=$lt_file_magic_cmd
17536
17537 # How to find potential files when deplibs_check_method = "file_magic".
17538 file_magic_glob=$lt_file_magic_glob
17539
17540 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17541 want_nocaseglob=$lt_want_nocaseglob
17542
17543 # Command to associate shared and link libraries.
17544 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17545
17546 # The archiver.
17547 AR=$lt_AR
17548
17549 # Flags to create an archive (by configure).
17550 lt_ar_flags=$lt_ar_flags
17551
17552 # Flags to create an archive.
17553 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17554
17555 # How to feed a file listing to the archiver.
17556 archiver_list_spec=$lt_archiver_list_spec
17557
17558 # A symbol stripping program.
17559 STRIP=$lt_STRIP
17560
17561 # Commands used to install an old-style archive.
17562 RANLIB=$lt_RANLIB
17563 old_postinstall_cmds=$lt_old_postinstall_cmds
17564 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17565
17566 # Whether to use a lock for old archive extraction.
17567 lock_old_archive_extraction=$lock_old_archive_extraction
17568
17569 # A C compiler.
17570 LTCC=$lt_CC
17571
17572 # LTCC compiler flags.
17573 LTCFLAGS=$lt_CFLAGS
17574
17575 # Take the output of nm and produce a listing of raw symbols and C names.
17576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17577
17578 # Transform the output of nm in a proper C declaration.
17579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17580
17581 # Transform the output of nm into a list of symbols to manually relocate.
17582 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17583
17584 # Transform the output of nm in a C name address pair.
17585 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17586
17587 # Transform the output of nm in a C name address pair when lib prefix is needed.
17588 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17589
17590 # The name lister interface.
17591 nm_interface=$lt_lt_cv_nm_interface
17592
17593 # Specify filename containing input files for \$NM.
17594 nm_file_list_spec=$lt_nm_file_list_spec
17595
17596 # The root where to search for dependent libraries,and where our libraries should be installed.
17597 lt_sysroot=$lt_sysroot
17598
17599 # Command to truncate a binary pipe.
17600 lt_truncate_bin=$lt_lt_cv_truncate_bin
17601
17602 # The name of the directory that contains temporary libtool files.
17603 objdir=$objdir
17604
17605 # Used to examine libraries when file_magic_cmd begins with "file".
17606 MAGIC_CMD=$MAGIC_CMD
17607
17608 # Must we lock files when doing compilation?
17609 need_locks=$lt_need_locks
17610
17611 # Manifest tool.
17612 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17613
17614 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17615 DSYMUTIL=$lt_DSYMUTIL
17616
17617 # Tool to change global to local symbols on Mac OS X.
17618 NMEDIT=$lt_NMEDIT
17619
17620 # Tool to manipulate fat objects and archives on Mac OS X.
17621 LIPO=$lt_LIPO
17622
17623 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17624 OTOOL=$lt_OTOOL
17625
17626 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17627 OTOOL64=$lt_OTOOL64
17628
17629 # Old archive suffix (normally "a").
17630 libext=$libext
17631
17632 # Shared library suffix (normally ".so").
17633 shrext_cmds=$lt_shrext_cmds
17634
17635 # The commands to extract the exported symbol list from a shared archive.
17636 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17637
17638 # Variables whose values should be saved in libtool wrapper scripts and
17639 # restored at link time.
17640 variables_saved_for_relink=$lt_variables_saved_for_relink
17641
17642 # Do we need the "lib" prefix for modules?
17643 need_lib_prefix=$need_lib_prefix
17644
17645 # Do we need a version for libraries?
17646 need_version=$need_version
17647
17648 # Library versioning type.
17649 version_type=$version_type
17650
17651 # Shared library runtime path variable.
17652 runpath_var=$runpath_var
17653
17654 # Shared library path variable.
17655 shlibpath_var=$shlibpath_var
17656
17657 # Is shlibpath searched before the hard-coded library search path?
17658 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17659
17660 # Format of library name prefix.
17661 libname_spec=$lt_libname_spec
17662
17663 # List of archive names. First name is the real one, the rest are links.
17664 # The last name is the one that the linker finds with -lNAME
17665 library_names_spec=$lt_library_names_spec
17666
17667 # The coded name of the library, if different from the real name.
17668 soname_spec=$lt_soname_spec
17669
17670 # Permission mode override for installation of shared libraries.
17671 install_override_mode=$lt_install_override_mode
17672
17673 # Command to use after installation of a shared archive.
17674 postinstall_cmds=$lt_postinstall_cmds
17675
17676 # Command to use after uninstallation of a shared archive.
17677 postuninstall_cmds=$lt_postuninstall_cmds
17678
17679 # Commands used to finish a libtool library installation in a directory.
17680 finish_cmds=$lt_finish_cmds
17681
17682 # As "finish_cmds", except a single script fragment to be evaled but
17683 # not shown.
17684 finish_eval=$lt_finish_eval
17685
17686 # Whether we should hardcode library paths into libraries.
17687 hardcode_into_libs=$hardcode_into_libs
17688
17689 # Compile-time system search path for libraries.
17690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17691
17692 # Detected run-time system search path for libraries.
17693 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17694
17695 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17696 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17697
17698 # Whether dlopen is supported.
17699 dlopen_support=$enable_dlopen
17700
17701 # Whether dlopen of programs is supported.
17702 dlopen_self=$enable_dlopen_self
17703
17704 # Whether dlopen of statically linked programs is supported.
17705 dlopen_self_static=$enable_dlopen_self_static
17706
17707 # Commands to strip libraries.
17708 old_striplib=$lt_old_striplib
17709 striplib=$lt_striplib
17710
17711
17712 # The linker used to build libraries.
17713 LD=$lt_LD
17714
17715 # How to create reloadable object files.
17716 reload_flag=$lt_reload_flag
17717 reload_cmds=$lt_reload_cmds
17718
17719 # Commands used to build an old-style archive.
17720 old_archive_cmds=$lt_old_archive_cmds
17721
17722 # A language specific compiler.
17723 CC=$lt_compiler
17724
17725 # Is the compiler the GNU compiler?
17726 with_gcc=$GCC
17727
17728 # Compiler flag to turn off builtin functions.
17729 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17730
17731 # Additional compiler flags for building library objects.
17732 pic_flag=$lt_lt_prog_compiler_pic
17733
17734 # How to pass a linker flag through the compiler.
17735 wl=$lt_lt_prog_compiler_wl
17736
17737 # Compiler flag to prevent dynamic linking.
17738 link_static_flag=$lt_lt_prog_compiler_static
17739
17740 # Does compiler simultaneously support -c and -o options?
17741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17742
17743 # Whether or not to add -lc for building shared libraries.
17744 build_libtool_need_lc=$archive_cmds_need_lc
17745
17746 # Whether or not to disallow shared libs when runtime libs are static.
17747 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17748
17749 # Compiler flag to allow reflexive dlopens.
17750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17751
17752 # Compiler flag to generate shared objects directly from archives.
17753 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17754
17755 # Whether the compiler copes with passing no objects directly.
17756 compiler_needs_object=$lt_compiler_needs_object
17757
17758 # Create an old-style archive from a shared archive.
17759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17760
17761 # Create a temporary old-style archive to link instead of a shared archive.
17762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17763
17764 # Commands used to build a shared archive.
17765 archive_cmds=$lt_archive_cmds
17766 archive_expsym_cmds=$lt_archive_expsym_cmds
17767
17768 # Commands used to build a loadable module if different from building
17769 # a shared archive.
17770 module_cmds=$lt_module_cmds
17771 module_expsym_cmds=$lt_module_expsym_cmds
17772
17773 # Whether we are building with GNU ld or not.
17774 with_gnu_ld=$lt_with_gnu_ld
17775
17776 # Flag that allows shared libraries with undefined symbols to be built.
17777 allow_undefined_flag=$lt_allow_undefined_flag
17778
17779 # Flag that enforces no undefined symbols.
17780 no_undefined_flag=$lt_no_undefined_flag
17781
17782 # Flag to hardcode \$libdir into a binary during linking.
17783 # This must work even if \$libdir does not exist
17784 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17785
17786 # Whether we need a single "-rpath" flag with a separated argument.
17787 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17788
17789 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17790 # DIR into the resulting binary.
17791 hardcode_direct=$hardcode_direct
17792
17793 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17794 # DIR into the resulting binary and the resulting library dependency is
17795 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17796 # library is relocated.
17797 hardcode_direct_absolute=$hardcode_direct_absolute
17798
17799 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17800 # into the resulting binary.
17801 hardcode_minus_L=$hardcode_minus_L
17802
17803 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17804 # into the resulting binary.
17805 hardcode_shlibpath_var=$hardcode_shlibpath_var
17806
17807 # Set to "yes" if building a shared library automatically hardcodes DIR
17808 # into the library and all subsequent libraries and executables linked
17809 # against it.
17810 hardcode_automatic=$hardcode_automatic
17811
17812 # Set to yes if linker adds runtime paths of dependent libraries
17813 # to runtime path list.
17814 inherit_rpath=$inherit_rpath
17815
17816 # Whether libtool must link a program against all its dependency libraries.
17817 link_all_deplibs=$link_all_deplibs
17818
17819 # Set to "yes" if exported symbols are required.
17820 always_export_symbols=$always_export_symbols
17821
17822 # The commands to list exported symbols.
17823 export_symbols_cmds=$lt_export_symbols_cmds
17824
17825 # Symbols that should not be listed in the preloaded symbols.
17826 exclude_expsyms=$lt_exclude_expsyms
17827
17828 # Symbols that must always be exported.
17829 include_expsyms=$lt_include_expsyms
17830
17831 # Commands necessary for linking programs (against libraries) with templates.
17832 prelink_cmds=$lt_prelink_cmds
17833
17834 # Commands necessary for finishing linking programs.
17835 postlink_cmds=$lt_postlink_cmds
17836
17837 # Specify filename containing input files.
17838 file_list_spec=$lt_file_list_spec
17839
17840 # How to hardcode a shared library path into an executable.
17841 hardcode_action=$hardcode_action
17842
17843 # ### END LIBTOOL CONFIG
17844
17845 _LT_EOF
17846
17847 cat <<'_LT_EOF' >> "$cfgfile"
17848
17849 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17850
17851 # func_munge_path_list VARIABLE PATH
17852 # -----------------------------------
17853 # VARIABLE is name of variable containing _space_ separated list of
17854 # directories to be munged by the contents of PATH, which is string
17855 # having a format:
17856 # "DIR[:DIR]:"
17857 # string "DIR[ DIR]" will be prepended to VARIABLE
17858 # ":DIR[:DIR]"
17859 # string "DIR[ DIR]" will be appended to VARIABLE
17860 # "DIRP[:DIRP]::[DIRA:]DIRA"
17861 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17862 # "DIRA[ DIRA]" will be appended to VARIABLE
17863 # "DIR[:DIR]"
17864 # VARIABLE will be replaced by "DIR[ DIR]"
17865 func_munge_path_list ()
17866 {
17867 case x$2 in
17868 x)
17869 ;;
17870 *:)
17871 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17872 ;;
17873 x:*)
17874 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17875 ;;
17876 *::*)
17877 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17878 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17879 ;;
17880 *)
17881 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17882 ;;
17883 esac
17884 }
17885
17886
17887 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17888 func_cc_basename ()
17889 {
17890 for cc_temp in $*""; do
17891 case $cc_temp in
17892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17894 \-*) ;;
17895 *) break;;
17896 esac
17897 done
17898 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17899 }
17900
17901
17902 # ### END FUNCTIONS SHARED WITH CONFIGURE
17903
17904 _LT_EOF
17905
17906 case $host_os in
17907 aix3*)
17908 cat <<\_LT_EOF >> "$cfgfile"
17909 # AIX sometimes has problems with the GCC collect2 program. For some
17910 # reason, if we set the COLLECT_NAMES environment variable, the problems
17911 # vanish in a puff of smoke.
17912 if test set != "${COLLECT_NAMES+set}"; then
17913 COLLECT_NAMES=
17914 export COLLECT_NAMES
17915 fi
17916 _LT_EOF
17917 ;;
17918 esac
17919
17920
17921
17922 ltmain=$ac_aux_dir/ltmain.sh
17923
17924
17925 # We use sed instead of cat because bash on DJGPP gets confused if
17926 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17927 # text mode, it properly converts lines to CR/LF. This bash problem
17928 # is reportedly fixed, but why not run on old versions too?
17929 $SED '$q' "$ltmain" >> "$cfgfile" \
17930 || (rm -f "$cfgfile"; exit 1)
17931
17932 mv -f "$cfgfile" "$ofile" ||
17933 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17934 chmod +x "$ofile"
17935
17936
17937 as_fn_exit 0
17938 _LTEOF
17939 chmod +x "$CONFIG_LT"
17940
17941 # configure is writing to config.log, but config.lt does its own redirection,
17942 # appending to config.log, which fails on DOS, as config.log is still kept
17943 # open by configure. Here we exec the FD to /dev/null, effectively closing
17944 # config.log, so it can be properly (re)opened and appended to by config.lt.
17945 lt_cl_success=:
17946 test yes = "$silent" &&
17947 lt_config_lt_args="$lt_config_lt_args --quiet"
17948 exec 5>/dev/null
17949 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17950 exec 5>>config.log
17951 $lt_cl_success || as_fn_exit 1
17952
17953 #
17954 #
17955 ac_ext=c
17956 ac_cpp='$CPP $CPPFLAGS'
17957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17960 ac_link="./libtool --mode=link --tag=CC $ac_link"
17961
17962 if test -n "$ac_tool_prefix"; then
17963 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17964 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17966 printf %s "checking for $ac_word... " >&6; }
17967 if test ${ac_cv_prog_PKG_CONFIG+y}
17968 then :
17969 printf %s "(cached) " >&6
17970 else case e in #(
17971 e) if test -n "$PKG_CONFIG"; then
17972 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17973 else
17974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17975 for as_dir in $PATH
17976 do
17977 IFS=$as_save_IFS
17978 case $as_dir in #(((
17979 '') as_dir=./ ;;
17980 */) ;;
17981 *) as_dir=$as_dir/ ;;
17982 esac
17983 for ac_exec_ext in '' $ac_executable_extensions; do
17984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17985 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17987 break 2
17988 fi
17989 done
17990 done
17991 IFS=$as_save_IFS
17992
17993 fi ;;
17994 esac
17995 fi
17996 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17997 if test -n "$PKG_CONFIG"; then
17998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17999 printf "%s\n" "$PKG_CONFIG" >&6; }
18000 else
18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18002 printf "%s\n" "no" >&6; }
18003 fi
18004
18005
18006 fi
18007 if test -z "$ac_cv_prog_PKG_CONFIG"; then
18008 ac_ct_PKG_CONFIG=$PKG_CONFIG
18009 # Extract the first word of "pkg-config", so it can be a program name with args.
18010 set dummy pkg-config; ac_word=$2
18011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18012 printf %s "checking for $ac_word... " >&6; }
18013 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
18014 then :
18015 printf %s "(cached) " >&6
18016 else case e in #(
18017 e) if test -n "$ac_ct_PKG_CONFIG"; then
18018 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
18019 else
18020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18021 for as_dir in $PATH
18022 do
18023 IFS=$as_save_IFS
18024 case $as_dir in #(((
18025 '') as_dir=./ ;;
18026 */) ;;
18027 *) as_dir=$as_dir/ ;;
18028 esac
18029 for ac_exec_ext in '' $ac_executable_extensions; do
18030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18031 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
18032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18033 break 2
18034 fi
18035 done
18036 done
18037 IFS=$as_save_IFS
18038
18039 fi ;;
18040 esac
18041 fi
18042 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
18043 if test -n "$ac_ct_PKG_CONFIG"; then
18044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
18045 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
18046 else
18047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18048 printf "%s\n" "no" >&6; }
18049 fi
18050
18051 if test "x$ac_ct_PKG_CONFIG" = x; then
18052 PKG_CONFIG="false"
18053 else
18054 case $cross_compiling:$ac_tool_warned in
18055 yes:)
18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18057 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18058 ac_tool_warned=yes ;;
18059 esac
18060 PKG_CONFIG=$ac_ct_PKG_CONFIG
18061 fi
18062 else
18063 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
18064 fi
18065
18066 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
18067 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
18068 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
18069
18070 # Check whether --with-system-kpathsea was given.
18071 if test ${with_system_kpathsea+y}
18072 then :
18073 withval=$with_system_kpathsea;
18074 fi
18075 if test "x$with_system_kpathsea" = xyes; then
18076 if $PKG_CONFIG kpathsea; then
18077 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
18078 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
18079 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
18080 as_fn_error $? "did not find kpathsea" "$LINENO" 5
18081 fi
18082 else
18083 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
18084 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
18085 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
18086 KPATHSEA_RULE='# Rebuild libkpathsea
18087 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
18088 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
18089 ${top_builddir}/../kpathsea/paths.h:
18090 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
18091 fi
18092
18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
18094 printf %s "checking if libkpathsea supports debugging... " >&6; }
18095 if test ${kpse_cv_kpse_debug+y}
18096 then :
18097 printf %s "(cached) " >&6
18098 else case e in #(
18099 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
18100 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
18101
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18104 #include <kpathsea/kpathsea.h>
18105 int
18106 main (void)
18107 {
18108 FILE *f = fopen("f", "r")
18109 ;
18110 return 0;
18111 }
18112 _ACEOF
18113 if ac_fn_c_try_link "$LINENO"
18114 then :
18115 kpse_cv_kpse_debug=yes
18116 else case e in #(
18117 e) kpse_cv_kpse_debug=no ;;
18118 esac
18119 fi
18120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18121 conftest$ac_exeext conftest.$ac_ext
18122 CPPFLAGS=$kpse_save_CPPFLAGS
18123 LIBS=$kpse_save_LIBS
18124 ;;
18125 esac
18126 fi
18127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
18128 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
18129 if test "x$kpse_cv_kpse_debug" != xyes
18130 then :
18131 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
18132 fi
18133
18134 ##tldbg _KPSE_LIB_FLAGS: Setup zlib (-lz) flags.
18135 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
18136 ##tldbg _KPSE_LIB_FLAGS_TL: zlib (z) .
18137
18138 # Check whether --with-system-zlib was given.
18139 if test ${with_system_zlib+y}
18140 then :
18141 withval=$with_system_zlib;
18142 fi
18143
18144 # Check whether --with-zlib-includes was given.
18145 if test ${with_zlib_includes+y}
18146 then :
18147 withval=$with_zlib_includes;
18148 fi
18149
18150 # Check whether --with-zlib-libdir was given.
18151 if test ${with_zlib_libdir+y}
18152 then :
18153 withval=$with_zlib_libdir;
18154 fi
18155 if test "x$with_system_zlib" = xyes; then
18156 ##tldbg _KPSE_LIB_FLAGS_SYSTEM: zlib (z).
18157 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
18158 ZLIB_INCLUDES="-I$with_zlib_includes"
18159 fi
18160 ZLIB_LIBS="-lz"
18161 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
18162 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
18163 fi
18164 else
18165 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
18166 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
18167 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
18168 ZLIB_RULE='# Rebuild libz
18169 $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
18170 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
18171 ${top_builddir}/../../libs/zlib/include/zconf.h:
18172 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
18173 fi
18174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
18175 printf %s "checking if <zlib.h> defines 'z_const'... " >&6; }
18176 if test ${kpse_cv_have_decl_z_const+y}
18177 then :
18178 printf %s "(cached) " >&6
18179 else case e in #(
18180 e) eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
18181 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
18182
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18185 #include <zlib.h>
18186 int
18187 main (void)
18188 {
18189 z_const char * foo();
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 if ac_fn_c_try_compile "$LINENO"
18195 then :
18196 kpse_cv_have_decl_z_const=yes
18197 else case e in #(
18198 e) kpse_cv_have_decl_z_const=no ;;
18199 esac
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18202 CPPFLAGS=$kpse_save_CPPFLAGS
18203 LIBS=$kpse_save_LIBS
18204 ;;
18205 esac
18206 fi
18207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
18208 printf "%s\n" "$kpse_cv_have_decl_z_const" >&6; }
18209 case $kpse_cv_have_decl_z_const in #(
18210 yes) :
18211
18212 printf "%s\n" "#define ZLIB_CONST 1" >>confdefs.h
18213 ;; #(
18214 *) :
18215
18216 printf "%s\n" "#define z_const /**/" >>confdefs.h
18217 ;;
18218 esac
18219
18220 ##tldbg _KPSE_LIB_FLAGS: Setup libpng (-lpng) flags.
18221 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
18222 ##tldbg _KPSE_LIB_FLAGS_TL: libpng (png) .
18223
18224 # Check whether --with-system-libpng was given.
18225 if test ${with_system_libpng+y}
18226 then :
18227 withval=$with_system_libpng;
18228 fi
18229 if test "x$with_system_libpng" = xyes; then
18230 if $PKG_CONFIG libpng; then
18231 LIBPNG_INCLUDES=`$PKG_CONFIG libpng --cflags`
18232 LIBPNG_LIBS=`$PKG_CONFIG libpng --libs`
18233 elif test "x$need_libpng:$with_system_libpng" = xyes:yes; then
18234 as_fn_error $? "did not find libpng" "$LINENO" 5
18235 fi
18236 else
18237 LIBPNG_INCLUDES="-I$kpse_BLD/libs/libpng/include"
18238 LIBPNG_LIBS="$kpse_BLD/libs/libpng/libpng.a"
18239 LIBPNG_DEPEND='${top_builddir}/../../libs/libpng/libpng.a'
18240 LIBPNG_RULE='# Rebuild libpng
18241 $(LIBPNG_DEPEND): ${top_builddir}/../../libs/libpng/include/png.h
18242 cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild
18243 ${top_builddir}/../../libs/libpng/include/png.h:
18244 cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild'
18245 fi
18246
18247 ##tldbg _KPSE_LIB_FLAGS: Setup libpaper (-lpaper) flags.
18248 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=libpaper, libname=paper, options=, tlincl=-IBLD/libs/libpaper/include, tllib=BLD/libs/libpaper/libpaper.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/libpaper/include/paper.h.' >&5
18249 ##tldbg _KPSE_LIB_FLAGS_TL: libpaper (paper) .
18250
18251 # Check whether --with-system-libpaper was given.
18252 if test ${with_system_libpaper+y}
18253 then :
18254 withval=$with_system_libpaper;
18255 fi
18256
18257 # Check whether --with-libpaper-includes was given.
18258 if test ${with_libpaper_includes+y}
18259 then :
18260 withval=$with_libpaper_includes;
18261 fi
18262
18263 # Check whether --with-libpaper-libdir was given.
18264 if test ${with_libpaper_libdir+y}
18265 then :
18266 withval=$with_libpaper_libdir;
18267 fi
18268 if test "x$with_system_libpaper" = xyes; then
18269 ##tldbg _KPSE_LIB_FLAGS_SYSTEM: libpaper (paper).
18270 if test "x$with_libpaper_includes" != x && test "x$with_libpaper_includes" != xyes; then
18271 LIBPAPER_INCLUDES="-I$with_libpaper_includes"
18272 fi
18273 LIBPAPER_LIBS="-lpaper"
18274 if test "x$with_libpaper_libdir" != x && test "x$with_libpaper_libdir" != xyes; then
18275 LIBPAPER_LIBS="-L$with_libpaper_libdir $LIBPAPER_LIBS"
18276 fi
18277 else
18278 LIBPAPER_INCLUDES="-I$kpse_BLD/libs/libpaper/include"
18279 LIBPAPER_LIBS="$kpse_BLD/libs/libpaper/libpaper.a"
18280 LIBPAPER_DEPEND='${top_builddir}/../../libs/libpaper/libpaper.a'
18281 LIBPAPER_RULE='# Rebuild libpaper
18282 $(LIBPAPER_DEPEND): ${top_builddir}/../../libs/libpaper/include/paper.h
18283 cd ${top_builddir}/../../libs/libpaper && $(MAKE) $(AM_MAKEFLAGS) rebuild
18284 ${top_builddir}/../../libs/libpaper/include/paper.h:
18285 cd ${top_builddir}/../../libs/libpaper && $(MAKE) $(AM_MAKEFLAGS) rebuild'
18286 fi
18287
18288
18289 printf "%s\n" "#define HAVE_LIBPAPER 1" >>confdefs.h
18290
18291
18292 kpse_save_CPPFLAGS=$CPPFLAGS
18293 kpse_save_LIBS=$LIBS
18294
18295
18296 if test "x$enable_build" != xno || test -f config.force; then
18297
18298 eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
18299 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
18300
18301 ac_fn_c_check_header_compile "$LINENO" "kpathsea/version.h" "ac_cv_header_kpathsea_version_h" "$ac_includes_default"
18302 if test "x$ac_cv_header_kpathsea_version_h" = xyes
18303 then :
18304
18305 else case e in #(
18306 e) as_fn_error $? "Sorry, kpathsea too old" "$LINENO" 5 ;;
18307 esac
18308 fi
18309
18310
18311 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
18312 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
18313
18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316 #include <zlib.h>
18317 int
18318 main (void)
18319 {
18320 Bytef *dst,*src; uLong dstlen, srclen; int lvl, err;
18321 err=compress2(dst, &dstlen, src, srclen, lvl);
18322 ;
18323 return 0;
18324 }
18325 _ACEOF
18326 if ac_fn_c_try_link "$LINENO"
18327 then :
18328
18329 else case e in #(
18330 e) as_fn_error $? "Sorry, you need zlib with compress2" "$LINENO" 5 ;;
18331 esac
18332 fi
18333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18334 conftest$ac_exeext conftest.$ac_ext
18335
18336 eval CPPFLAGS=\"$LIBPNG_INCLUDES \$CPPFLAGS\"
18337 eval LIBS=\"$LIBPNG_LIBS \$LIBS\"
18338
18339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340 /* end confdefs.h. */
18341 #include <png.h>
18342 int
18343 main (void)
18344 {
18345 png_const_structp png; png_const_infop info; int err;
18346 err=png_get_image_width(png, info);
18347 ;
18348 return 0;
18349 }
18350 _ACEOF
18351 if ac_fn_c_try_link "$LINENO"
18352 then :
18353
18354 else case e in #(
18355 e) as_fn_error $? "Sorry, you need libpng" "$LINENO" 5 ;;
18356 esac
18357 fi
18358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18359 conftest$ac_exeext conftest.$ac_ext
18360
18361 CPPFLAGS=$kpse_save_CPPFLAGS
18362 LIBS=$kpse_save_LIBS
18363
18364
18365 echo timestamp >config.force
18366 fi
18367
18368
18369 printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h
18370
18371
18372 printf "%s\n" "#define HAVE_ZLIB_COMPRESS2 1" >>confdefs.h
18373
18374
18375 printf "%s\n" "#define HAVE_LIBPNG 1" >>confdefs.h
18376
18377
18378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
18379 printf %s "checking for native WIN32 or MINGW32... " >&6; }
18380 if test ${kpse_cv_have_win32+y}
18381 then :
18382 printf %s "(cached) " >&6
18383 else case e in #(
18384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #ifndef WIN32
18387 choke me
18388 #endif
18389 int
18390 main (void)
18391 {
18392
18393 ;
18394 return 0;
18395 }
18396 _ACEOF
18397 if ac_fn_c_try_compile "$LINENO"
18398 then :
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401 #ifndef __MINGW32__
18402 choke me
18403 #endif
18404 int
18405 main (void)
18406 {
18407
18408 ;
18409 return 0;
18410 }
18411 _ACEOF
18412 if ac_fn_c_try_compile "$LINENO"
18413 then :
18414 kpse_cv_have_win32=mingw32
18415 else case e in #(
18416 e) kpse_cv_have_win32=native ;;
18417 esac
18418 fi
18419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18420 else case e in #(
18421 e) kpse_cv_have_win32=no ;;
18422 esac
18423 fi
18424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18425 esac
18426 fi
18427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
18428 printf "%s\n" "$kpse_cv_have_win32" >&6; }
18429
18430 if test "x$kpse_cv_have_win32" != xno; then
18431 WIN32_TRUE=
18432 WIN32_FALSE='#'
18433 else
18434 WIN32_TRUE='#'
18435 WIN32_FALSE=
18436 fi
18437
18438
18439 if test -r "$srcdir/../texlive/windows_wrapper/callexe.c"; then
18440 WIN32_CALL_TRUE=
18441 WIN32_CALL_FALSE='#'
18442 else
18443 WIN32_CALL_TRUE='#'
18444 WIN32_CALL_FALSE=
18445 fi
18446
18447 if test -z "$WIN32_TRUE"; then :
18448 ac_config_links="$ac_config_links callexe.c:../texlive/windows_wrapper/callexe.c"
18449
18450 fi
18451
18452
18453 ac_config_files="$ac_config_files Makefile"
18454
18455
18456 cat >confcache <<\_ACEOF
18457 # This file is a shell script that caches the results of configure
18458 # tests run on this system so they can be shared between configure
18459 # scripts and configure runs, see configure's option --config-cache.
18460 # It is not useful on other systems. If it contains results you don't
18461 # want to keep, you may remove or edit it.
18462 #
18463 # config.status only pays attention to the cache file if you give it
18464 # the --recheck option to rerun configure.
18465 #
18466 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
18467 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
18468 # following values.
18469
18470 _ACEOF
18471
18472 # The following way of writing the cache mishandles newlines in values,
18473 # but we know of no workaround that is simple, portable, and efficient.
18474 # So, we kill variables containing newlines.
18475 # Ultrix sh set writes to stderr and can't be redirected directly,
18476 # and sets the high bit in the cache file unless we assign to the vars.
18477 (
18478 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18479 eval ac_val=\$$ac_var
18480 case $ac_val in #(
18481 *${as_nl}*)
18482 case $ac_var in #(
18483 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18484 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18485 esac
18486 case $ac_var in #(
18487 _ | IFS | as_nl) ;; #(
18488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18489 *) { eval $ac_var=; unset $ac_var;} ;;
18490 esac ;;
18491 esac
18492 done
18493
18494 (set) 2>&1 |
18495 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18496 *${as_nl}ac_space=\ *)
18497 # 'set' does not quote correctly, so add quotes: double-quote
18498 # substitution turns \\\\ into \\, and sed turns \\ into \.
18499 sed -n \
18500 "s/'/'\\\\''/g;
18501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18502 ;; #(
18503 *)
18504 # 'set' quotes correctly as required by POSIX, so do not add quotes.
18505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18506 ;;
18507 esac |
18508 sort
18509 ) |
18510 sed '
18511 /^ac_cv_env_/b end
18512 t clear
18513 :clear
18514 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18515 t end
18516 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18517 :end' >>confcache
18518 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18519 if test -w "$cache_file"; then
18520 if test "x$cache_file" != "x/dev/null"; then
18521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18522 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18523 if test ! -f "$cache_file" || test -h "$cache_file"; then
18524 cat confcache >"$cache_file"
18525 else
18526 case $cache_file in #(
18527 */* | ?:*)
18528 mv -f confcache "$cache_file"$$ &&
18529 mv -f "$cache_file"$$ "$cache_file" ;; #(
18530 *)
18531 mv -f confcache "$cache_file" ;;
18532 esac
18533 fi
18534 fi
18535 else
18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18537 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18538 fi
18539 fi
18540 rm -f confcache
18541
18542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18543 # Let make expand exec_prefix.
18544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18545
18546 DEFS=-DHAVE_CONFIG_H
18547
18548 ac_libobjs=
18549 ac_ltlibobjs=
18550 U=
18551 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18552 # 1. Remove the extension, and $U if already installed.
18553 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18554 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18555 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18556 # will be set to the directory where LIBOBJS objects are built.
18557 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18558 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18559 done
18560 LIBOBJS=$ac_libobjs
18561
18562 LTLIBOBJS=$ac_ltlibobjs
18563
18564
18565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18566 printf %s "checking that generated files are newer than configure... " >&6; }
18567 if test -n "$am_sleep_pid"; then
18568 # Hide warnings about reused PIDs.
18569 wait $am_sleep_pid 2>/dev/null
18570 fi
18571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18572 printf "%s\n" "done" >&6; }
18573 case $enable_silent_rules in # (((
18574 yes) AM_DEFAULT_VERBOSITY=0;;
18575 no) AM_DEFAULT_VERBOSITY=1;;
18576 esac
18577 if test $am_cv_make_support_nested_variables = yes; then
18578 AM_V='$(V)'
18579 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18580 else
18581 AM_V=$AM_DEFAULT_VERBOSITY
18582 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18583 fi
18584
18585 if test -n "$EXEEXT"; then
18586 am__EXEEXT_TRUE=
18587 am__EXEEXT_FALSE='#'
18588 else
18589 am__EXEEXT_TRUE='#'
18590 am__EXEEXT_FALSE=
18591 fi
18592
18593 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18594 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18596 fi
18597 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18598 as_fn_error $? "conditional \"AMDEP\" was never defined.
18599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18600 fi
18601 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18602 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18604 fi
18605 # Check whether --enable-year2038 was given.
18606 if test ${enable_year2038+y}
18607 then :
18608 enableval=$enable_year2038;
18609 fi
18610
18611
18612 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
18613 as_fn_error $? "conditional \"WIN32\" was never defined.
18614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18615 fi
18616 if test -z "${WIN32_CALL_TRUE}" && test -z "${WIN32_CALL_FALSE}"; then
18617 as_fn_error $? "conditional \"WIN32_CALL\" was never defined.
18618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18619 fi
18620
18621 : "${CONFIG_STATUS=./config.status}"
18622 ac_write_fail=0
18623 ac_clean_files_save=$ac_clean_files
18624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18626 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18627 as_write_fail=0
18628 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18629 #! $SHELL
18630 # Generated by $as_me.
18631 # Run this file to recreate the current configuration.
18632 # Compiler output produced by configure, useful for debugging
18633 # configure, is in config.log if it exists.
18634
18635 debug=false
18636 ac_cs_recheck=false
18637 ac_cs_silent=false
18638
18639 SHELL=\${CONFIG_SHELL-$SHELL}
18640 export SHELL
18641 _ASEOF
18642 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18643 ## -------------------- ##
18644 ## M4sh Initialization. ##
18645 ## -------------------- ##
18646
18647 # Be more Bourne compatible
18648 DUALCASE=1; export DUALCASE # for MKS sh
18649 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18650 then :
18651 emulate sh
18652 NULLCMD=:
18653 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18654 # is contrary to our usage. Disable this feature.
18655 alias -g '${1+"$@"}'='"$@"'
18656 setopt NO_GLOB_SUBST
18657 else case e in #(
18658 e) case `(set -o) 2>/dev/null` in #(
18659 *posix*) :
18660 set -o posix ;; #(
18661 *) :
18662 ;;
18663 esac ;;
18664 esac
18665 fi
18666
18667
18668
18669 # Reset variables that may have inherited troublesome values from
18670 # the environment.
18671
18672 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18673 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18674 # side effect of setting IFS to empty, thus disabling word splitting.)
18675 # Quoting is to prevent editors from complaining about space-tab.
18676 as_nl='
18677 '
18678 export as_nl
18679 IFS=" "" $as_nl"
18680
18681 PS1='$ '
18682 PS2='> '
18683 PS4='+ '
18684
18685 # Ensure predictable behavior from utilities with locale-dependent output.
18686 LC_ALL=C
18687 export LC_ALL
18688 LANGUAGE=C
18689 export LANGUAGE
18690
18691 # We cannot yet rely on "unset" to work, but we need these variables
18692 # to be unset--not just set to an empty or harmless value--now, to
18693 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18694 # also avoids known problems related to "unset" and subshell syntax
18695 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18696 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18697 do eval test \${$as_var+y} \
18698 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18699 done
18700
18701 # Ensure that fds 0, 1, and 2 are open.
18702 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18703 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18704 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18705
18706 # The user is always right.
18707 if ${PATH_SEPARATOR+false} :; then
18708 PATH_SEPARATOR=:
18709 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18710 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18711 PATH_SEPARATOR=';'
18712 }
18713 fi
18714
18715
18716 # Find who we are. Look in the path if we contain no directory separator.
18717 as_myself=
18718 case $0 in #((
18719 *[\\/]* ) as_myself=$0 ;;
18720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18721 for as_dir in $PATH
18722 do
18723 IFS=$as_save_IFS
18724 case $as_dir in #(((
18725 '') as_dir=./ ;;
18726 */) ;;
18727 *) as_dir=$as_dir/ ;;
18728 esac
18729 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18730 done
18731 IFS=$as_save_IFS
18732
18733 ;;
18734 esac
18735 # We did not find ourselves, most probably we were run as 'sh COMMAND'
18736 # in which case we are not to be found in the path.
18737 if test "x$as_myself" = x; then
18738 as_myself=$0
18739 fi
18740 if test ! -f "$as_myself"; then
18741 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18742 exit 1
18743 fi
18744
18745
18746
18747 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18748 # ----------------------------------------
18749 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18750 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18751 # script with STATUS, using 1 if that was 0.
18752 as_fn_error ()
18753 {
18754 as_status=$1; test $as_status -eq 0 && as_status=1
18755 if test "$4"; then
18756 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18758 fi
18759 printf "%s\n" "$as_me: error: $2" >&2
18760 as_fn_exit $as_status
18761 } # as_fn_error
18762
18763
18764 # as_fn_set_status STATUS
18765 # -----------------------
18766 # Set $? to STATUS, without forking.
18767 as_fn_set_status ()
18768 {
18769 return $1
18770 } # as_fn_set_status
18771
18772 # as_fn_exit STATUS
18773 # -----------------
18774 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18775 as_fn_exit ()
18776 {
18777 set +e
18778 as_fn_set_status $1
18779 exit $1
18780 } # as_fn_exit
18781
18782 # as_fn_unset VAR
18783 # ---------------
18784 # Portably unset VAR.
18785 as_fn_unset ()
18786 {
18787 { eval $1=; unset $1;}
18788 }
18789 as_unset=as_fn_unset
18790
18791 # as_fn_append VAR VALUE
18792 # ----------------------
18793 # Append the text in VALUE to the end of the definition contained in VAR. Take
18794 # advantage of any shell optimizations that allow amortized linear growth over
18795 # repeated appends, instead of the typical quadratic growth present in naive
18796 # implementations.
18797 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18798 then :
18799 eval 'as_fn_append ()
18800 {
18801 eval $1+=\$2
18802 }'
18803 else case e in #(
18804 e) as_fn_append ()
18805 {
18806 eval $1=\$$1\$2
18807 } ;;
18808 esac
18809 fi # as_fn_append
18810
18811 # as_fn_arith ARG...
18812 # ------------------
18813 # Perform arithmetic evaluation on the ARGs, and store the result in the
18814 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18815 # must be portable across $(()) and expr.
18816 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18817 then :
18818 eval 'as_fn_arith ()
18819 {
18820 as_val=$(( $* ))
18821 }'
18822 else case e in #(
18823 e) as_fn_arith ()
18824 {
18825 as_val=`expr "$@" || test $? -eq 1`
18826 } ;;
18827 esac
18828 fi # as_fn_arith
18829
18830
18831 if expr a : '\(a\)' >/dev/null 2>&1 &&
18832 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18833 as_expr=expr
18834 else
18835 as_expr=false
18836 fi
18837
18838 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18839 as_basename=basename
18840 else
18841 as_basename=false
18842 fi
18843
18844 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18845 as_dirname=dirname
18846 else
18847 as_dirname=false
18848 fi
18849
18850 as_me=`$as_basename -- "$0" ||
18851 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18852 X"$0" : 'X\(//\)$' \| \
18853 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18854 printf "%s\n" X/"$0" |
18855 sed '/^.*\/\([^/][^/]*\)\/*$/{
18856 s//\1/
18857 q
18858 }
18859 /^X\/\(\/\/\)$/{
18860 s//\1/
18861 q
18862 }
18863 /^X\/\(\/\).*/{
18864 s//\1/
18865 q
18866 }
18867 s/.*/./; q'`
18868
18869 # Avoid depending upon Character Ranges.
18870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18873 as_cr_digits='0123456789'
18874 as_cr_alnum=$as_cr_Letters$as_cr_digits
18875
18876
18877 # Determine whether it's possible to make 'echo' print without a newline.
18878 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18879 # for compatibility with existing Makefiles.
18880 ECHO_C= ECHO_N= ECHO_T=
18881 case `echo -n x` in #(((((
18882 -n*)
18883 case `echo 'xy\c'` in
18884 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18885 xy) ECHO_C='\c';;
18886 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18887 ECHO_T=' ';;
18888 esac;;
18889 *)
18890 ECHO_N='-n';;
18891 esac
18892
18893 # For backward compatibility with old third-party macros, we provide
18894 # the shell variables $as_echo and $as_echo_n. New code should use
18895 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18896 as_echo='printf %s\n'
18897 as_echo_n='printf %s'
18898
18899 rm -f conf$$ conf$$.exe conf$$.file
18900 if test -d conf$$.dir; then
18901 rm -f conf$$.dir/conf$$.file
18902 else
18903 rm -f conf$$.dir
18904 mkdir conf$$.dir 2>/dev/null
18905 fi
18906 if (echo >conf$$.file) 2>/dev/null; then
18907 if ln -s conf$$.file conf$$ 2>/dev/null; then
18908 as_ln_s='ln -s'
18909 # ... but there are two gotchas:
18910 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
18911 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
18912 # In both cases, we have to default to 'cp -pR'.
18913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18914 as_ln_s='cp -pR'
18915 elif ln conf$$.file conf$$ 2>/dev/null; then
18916 as_ln_s=ln
18917 else
18918 as_ln_s='cp -pR'
18919 fi
18920 else
18921 as_ln_s='cp -pR'
18922 fi
18923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18924 rmdir conf$$.dir 2>/dev/null
18925
18926
18927 # as_fn_mkdir_p
18928 # -------------
18929 # Create "$as_dir" as a directory, including parents if necessary.
18930 as_fn_mkdir_p ()
18931 {
18932
18933 case $as_dir in #(
18934 -*) as_dir=./$as_dir;;
18935 esac
18936 test -d "$as_dir" || eval $as_mkdir_p || {
18937 as_dirs=
18938 while :; do
18939 case $as_dir in #(
18940 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18941 *) as_qdir=$as_dir;;
18942 esac
18943 as_dirs="'$as_qdir' $as_dirs"
18944 as_dir=`$as_dirname -- "$as_dir" ||
18945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18946 X"$as_dir" : 'X\(//\)[^/]' \| \
18947 X"$as_dir" : 'X\(//\)$' \| \
18948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18949 printf "%s\n" X"$as_dir" |
18950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18951 s//\1/
18952 q
18953 }
18954 /^X\(\/\/\)[^/].*/{
18955 s//\1/
18956 q
18957 }
18958 /^X\(\/\/\)$/{
18959 s//\1/
18960 q
18961 }
18962 /^X\(\/\).*/{
18963 s//\1/
18964 q
18965 }
18966 s/.*/./; q'`
18967 test -d "$as_dir" && break
18968 done
18969 test -z "$as_dirs" || eval "mkdir $as_dirs"
18970 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18971
18972
18973 } # as_fn_mkdir_p
18974 if mkdir -p . 2>/dev/null; then
18975 as_mkdir_p='mkdir -p "$as_dir"'
18976 else
18977 test -d ./-p && rmdir ./-p
18978 as_mkdir_p=false
18979 fi
18980
18981
18982 # as_fn_executable_p FILE
18983 # -----------------------
18984 # Test if FILE is an executable regular file.
18985 as_fn_executable_p ()
18986 {
18987 test -f "$1" && test -x "$1"
18988 } # as_fn_executable_p
18989 as_test_x='test -x'
18990 as_executable_p=as_fn_executable_p
18991
18992 # Sed expression to map a string onto a valid CPP name.
18993 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18994 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
18995
18996 # Sed expression to map a string onto a valid variable name.
18997 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18998 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
18999
19000
19001 exec 6>&1
19002 ## ----------------------------------- ##
19003 ## Main body of $CONFIG_STATUS script. ##
19004 ## ----------------------------------- ##
19005 _ASEOF
19006 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19007
19008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19009 # Save the log message, to keep $0 and so on meaningful, and to
19010 # report actual input values of CONFIG_FILES etc. instead of their
19011 # values after options handling.
19012 ac_log="
•19013 This file was extended by dvipdfm-x (TeX Live) $as_me 20260317, which was
19014 generated by GNU Autoconf 2.72. Invocation command line was
19015
19016 CONFIG_FILES = $CONFIG_FILES
19017 CONFIG_HEADERS = $CONFIG_HEADERS
19018 CONFIG_LINKS = $CONFIG_LINKS
19019 CONFIG_COMMANDS = $CONFIG_COMMANDS
19020 $ $0 $@
19021
19022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19023 "
19024
19025 _ACEOF
19026
19027 case $ac_config_files in *"
19028 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19029 esac
19030
19031 case $ac_config_headers in *"
19032 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19033 esac
19034
19035
19036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19037 # Files that config.status was made for.
19038 config_files="$ac_config_files"
19039 config_headers="$ac_config_headers"
19040 config_links="$ac_config_links"
19041 config_commands="$ac_config_commands"
19042
19043 _ACEOF
19044
19045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19046 ac_cs_usage="\
19047 '$as_me' instantiates files and other configuration actions
19048 from templates according to the current configuration. Unless the files
19049 and actions are specified as TAGs, all are instantiated by default.
19050
19051 Usage: $0 [OPTION]... [TAG]...
19052
19053 -h, --help print this help, then exit
19054 -V, --version print version number and configuration settings, then exit
19055 --config print configuration, then exit
19056 -q, --quiet, --silent
19057 do not print progress messages
19058 -d, --debug don't remove temporary files
19059 --recheck update $as_me by reconfiguring in the same conditions
19060 --file=FILE[:TEMPLATE]
19061 instantiate the configuration file FILE
19062 --header=FILE[:TEMPLATE]
19063 instantiate the configuration header FILE
19064
19065 Configuration files:
19066 $config_files
19067
19068 Configuration headers:
19069 $config_headers
19070
19071 Configuration links:
19072 $config_links
19073
19074 Configuration commands:
19075 $config_commands
19076
19077 Report bugs to <[email protected]>."
19078
19079 _ACEOF
19080 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19081 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19083 ac_cs_config='$ac_cs_config_escaped'
19084 ac_cs_version="\\
•19085 dvipdfm-x (TeX Live) config.status 20260317
19086 configured by $0, generated by GNU Autoconf 2.72,
19087 with options \\"\$ac_cs_config\\"
19088
19089 Copyright (C) 2023 Free Software Foundation, Inc.
19090 This config.status script is free software; the Free Software Foundation
19091 gives unlimited permission to copy, distribute and modify it."
19092
19093 ac_pwd='$ac_pwd'
19094 srcdir='$srcdir'
19095 INSTALL='$INSTALL'
19096 MKDIR_P='$MKDIR_P'
19097 AWK='$AWK'
19098 test -n "\$AWK" || AWK=awk
19099 _ACEOF
19100
19101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19102 # The default lists apply if the user does not specify any file.
19103 ac_need_defaults=:
19104 while test $# != 0
19105 do
19106 case $1 in
19107 --*=?*)
19108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19109 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19110 ac_shift=:
19111 ;;
19112 --*=)
19113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19114 ac_optarg=
19115 ac_shift=:
19116 ;;
19117 *)
19118 ac_option=$1
19119 ac_optarg=$2
19120 ac_shift=shift
19121 ;;
19122 esac
19123
19124 case $ac_option in
19125 # Handling of the options.
19126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19127 ac_cs_recheck=: ;;
19128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19129 printf "%s\n" "$ac_cs_version"; exit ;;
19130 --config | --confi | --conf | --con | --co | --c )
19131 printf "%s\n" "$ac_cs_config"; exit ;;
19132 --debug | --debu | --deb | --de | --d | -d )
19133 debug=: ;;
19134 --file | --fil | --fi | --f )
19135 $ac_shift
19136 case $ac_optarg in
19137 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19138 '') as_fn_error $? "missing file argument" ;;
19139 esac
19140 as_fn_append CONFIG_FILES " '$ac_optarg'"
19141 ac_need_defaults=false;;
19142 --header | --heade | --head | --hea )
19143 $ac_shift
19144 case $ac_optarg in
19145 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19146 esac
19147 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19148 ac_need_defaults=false;;
19149 --he | --h)
19150 # Conflict between --help and --header
19151 as_fn_error $? "ambiguous option: '$1'
19152 Try '$0 --help' for more information.";;
19153 --help | --hel | -h )
19154 printf "%s\n" "$ac_cs_usage"; exit ;;
19155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19157 ac_cs_silent=: ;;
19158
19159 # This is an error.
19160 -*) as_fn_error $? "unrecognized option: '$1'
19161 Try '$0 --help' for more information." ;;
19162
19163 *) as_fn_append ac_config_targets " $1"
19164 ac_need_defaults=false ;;
19165
19166 esac
19167 shift
19168 done
19169
19170 ac_configure_extra_args=
19171
19172 if $ac_cs_silent; then
19173 exec 6>/dev/null
19174 ac_configure_extra_args="$ac_configure_extra_args --silent"
19175 fi
19176
19177 _ACEOF
19178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19179 if \$ac_cs_recheck; then
19180 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19181 shift
19182 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19183 CONFIG_SHELL='$SHELL'
19184 export CONFIG_SHELL
19185 exec "\$@"
19186 fi
19187
19188 _ACEOF
19189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19190 exec 5>>config.log
19191 {
19192 echo
19193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19194 ## Running $as_me. ##
19195 _ASBOX
19196 printf "%s\n" "$ac_log"
19197 } >&5
19198
19199 _ACEOF
19200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19201 #
19202 # INIT-COMMANDS
19203 #
19204 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19205
19206
19207 # The HP-UX ksh and POSIX shell print the target directory to stdout
19208 # if CDPATH is set.
19209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19210
19211 sed_quote_subst='$sed_quote_subst'
19212 double_quote_subst='$double_quote_subst'
19213 delay_variable_subst='$delay_variable_subst'
19214 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19215 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19216 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19217 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19218 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19219 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19220 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19221 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19222 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19223 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19224 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19225 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19226 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19227 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19228 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19229 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19230 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19231 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19232 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19233 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19234 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19235 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19236 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19237 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19238 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19239 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19240 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19241 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19242 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19243 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19244 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19245 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19246 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19247 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19248 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19249 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19250 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19251 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
19252 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19253 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19254 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19255 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19256 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19257 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19258 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
19259 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19260 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19261 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19262 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19263 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19264 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19265 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19266 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19267 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19268 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19269 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19270 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19271 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19272 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19273 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19274 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19275 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"`'
19276 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19277 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19278 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19279 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19280 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19281 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19282 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19283 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19285 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19286 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19287 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19288 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19312 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19313 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19314 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19315 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19316 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19317 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19318 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19319 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19320 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19321 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19322 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19323 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19324 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19325 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19326 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19327 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19328 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19329 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19330 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19331 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19332 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19333 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19334 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19335 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19336 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19337 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19338 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19339 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19340 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19341 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19342 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19343 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19344 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19345 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19352
19353 LTCC='$LTCC'
19354 LTCFLAGS='$LTCFLAGS'
19355 compiler='$compiler_DEFAULT'
19356
19357 # A function that is used when there is no print builtin or printf.
19358 func_fallback_echo ()
19359 {
19360 eval 'cat <<_LTECHO_EOF
19361 \$1
19362 _LTECHO_EOF'
19363 }
19364
19365 # Quote evaled strings.
19366 for var in AS \
19367 DLLTOOL \
19368 OBJDUMP \
19369 SHELL \
19370 ECHO \
19371 PATH_SEPARATOR \
19372 SED \
19373 GREP \
19374 EGREP \
19375 FGREP \
19376 LD \
19377 NM \
19378 LN_S \
19379 lt_SP2NL \
19380 lt_NL2SP \
19381 reload_flag \
19382 FILECMD \
19383 deplibs_check_method \
19384 file_magic_cmd \
19385 file_magic_glob \
19386 want_nocaseglob \
19387 sharedlib_from_linklib_cmd \
19388 AR \
19389 archiver_list_spec \
19390 STRIP \
19391 RANLIB \
19392 CC \
19393 CFLAGS \
19394 compiler \
19395 lt_cv_sys_global_symbol_pipe \
19396 lt_cv_sys_global_symbol_to_cdecl \
19397 lt_cv_sys_global_symbol_to_import \
19398 lt_cv_sys_global_symbol_to_c_name_address \
19399 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19400 lt_cv_nm_interface \
19401 nm_file_list_spec \
19402 lt_cv_truncate_bin \
19403 lt_prog_compiler_no_builtin_flag \
19404 lt_prog_compiler_pic \
19405 lt_prog_compiler_wl \
19406 lt_prog_compiler_static \
19407 lt_cv_prog_compiler_c_o \
19408 need_locks \
19409 MANIFEST_TOOL \
19410 DSYMUTIL \
19411 NMEDIT \
19412 LIPO \
19413 OTOOL \
19414 OTOOL64 \
19415 shrext_cmds \
19416 export_dynamic_flag_spec \
19417 whole_archive_flag_spec \
19418 compiler_needs_object \
19419 with_gnu_ld \
19420 allow_undefined_flag \
19421 no_undefined_flag \
19422 hardcode_libdir_flag_spec \
19423 hardcode_libdir_separator \
19424 exclude_expsyms \
19425 include_expsyms \
19426 file_list_spec \
19427 variables_saved_for_relink \
19428 libname_spec \
19429 library_names_spec \
19430 soname_spec \
19431 install_override_mode \
19432 finish_eval \
19433 old_striplib \
19434 striplib; do
19435 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19436 *[\\\\\\\`\\"\\\$]*)
19437 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19438 ;;
19439 *)
19440 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19441 ;;
19442 esac
19443 done
19444
19445 # Double-quote double-evaled strings.
19446 for var in reload_cmds \
19447 old_postinstall_cmds \
19448 old_postuninstall_cmds \
19449 old_archive_cmds \
19450 extract_expsyms_cmds \
19451 old_archive_from_new_cmds \
19452 old_archive_from_expsyms_cmds \
19453 archive_cmds \
19454 archive_expsym_cmds \
19455 module_cmds \
19456 module_expsym_cmds \
19457 export_symbols_cmds \
19458 prelink_cmds \
19459 postlink_cmds \
19460 postinstall_cmds \
19461 postuninstall_cmds \
19462 finish_cmds \
19463 sys_lib_search_path_spec \
19464 configure_time_dlsearch_path \
19465 configure_time_lt_sys_library_path; do
19466 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19467 *[\\\\\\\`\\"\\\$]*)
19468 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19469 ;;
19470 *)
19471 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19472 ;;
19473 esac
19474 done
19475
19476 ac_aux_dir='$ac_aux_dir'
19477
19478 # See if we are running on zsh, and set the options that allow our
19479 # commands through without removal of \ escapes INIT.
19480 if test -n "\${ZSH_VERSION+set}"; then
19481 setopt NO_GLOB_SUBST
19482 fi
19483
19484
19485 PACKAGE='$PACKAGE'
19486 VERSION='$VERSION'
19487 RM='$RM'
19488 ofile='$ofile'
19489
19490 ac_aux_dir='$ac_aux_dir'
19491
19492
19493
19494 _ACEOF
19495
19496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19497
19498 # Handling of arguments.
19499 for ac_config_target in $ac_config_targets
19500 do
19501 case $ac_config_target in
19502 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19503 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19504 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19505 "callexe.c") CONFIG_LINKS="$CONFIG_LINKS callexe.c:../texlive/windows_wrapper/callexe.c" ;;
19506 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19507
19508 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
19509 esac
19510 done
19511
19512
19513 # If the user did not use the arguments to specify the items to instantiate,
19514 # then the envvar interface is used. Set only those that are not.
19515 # We use the long form for the default assignment because of an extremely
19516 # bizarre bug on SunOS 4.1.3.
19517 if $ac_need_defaults; then
19518 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19519 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19520 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
19521 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19522 fi
19523
19524 # Have a temporary directory for convenience. Make it in the build tree
19525 # simply because there is no reason against having it here, and in addition,
19526 # creating and moving files from /tmp can sometimes cause problems.
19527 # Hook for its removal unless debugging.
19528 # Note that there is a small window in which the directory will not be cleaned:
19529 # after its creation but before its name has been assigned to '$tmp'.
19530 $debug ||
19531 {
19532 tmp= ac_tmp=
19533 trap 'exit_status=$?
19534 : "${ac_tmp:=$tmp}"
19535 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19536 ' 0
19537 trap 'as_fn_exit 1' 1 2 13 15
19538 }
19539 # Create a (secure) tmp directory for tmp files.
19540
19541 {
19542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19543 test -d "$tmp"
19544 } ||
19545 {
19546 tmp=./conf$$-$RANDOM
19547 (umask 077 && mkdir "$tmp")
19548 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19549 ac_tmp=$tmp
19550
19551 # Set up the scripts for CONFIG_FILES section.
19552 # No need to generate them if there are no CONFIG_FILES.
19553 # This happens for instance with './config.status config.h'.
19554 if test -n "$CONFIG_FILES"; then
19555
19556
19557 ac_cr=`echo X | tr X '\015'`
19558 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19559 # But we know of no other shell where ac_cr would be empty at this
19560 # point, so we can use a bashism as a fallback.
19561 if test "x$ac_cr" = x; then
19562 eval ac_cr=\$\'\\r\'
19563 fi
19564 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19565 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19566 ac_cs_awk_cr='\\r'
19567 else
19568 ac_cs_awk_cr=$ac_cr
19569 fi
19570
19571 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19572 _ACEOF
19573
19574
19575 {
19576 echo "cat >conf$$subs.awk <<_ACEOF" &&
19577 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19578 echo "_ACEOF"
19579 } >conf$$subs.sh ||
19580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19581 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19582 ac_delim='%!_!# '
19583 for ac_last_try in false false false false false :; do
19584 . ./conf$$subs.sh ||
19585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19586
19587 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19588 if test $ac_delim_n = $ac_delim_num; then
19589 break
19590 elif $ac_last_try; then
19591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19592 else
19593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19594 fi
19595 done
19596 rm -f conf$$subs.sh
19597
19598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19599 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19600 _ACEOF
19601 sed -n '
19602 h
19603 s/^/S["/; s/!.*/"]=/
19604 p
19605 g
19606 s/^[^!]*!//
19607 :repl
19608 t repl
19609 s/'"$ac_delim"'$//
19610 t delim
19611 :nl
19612 h
19613 s/\(.\{148\}\)..*/\1/
19614 t more1
19615 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19616 p
19617 n
19618 b repl
19619 :more1
19620 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19621 p
19622 g
19623 s/.\{148\}//
19624 t nl
19625 :delim
19626 h
19627 s/\(.\{148\}\)..*/\1/
19628 t more2
19629 s/["\\]/\\&/g; s/^/"/; s/$/"/
19630 p
19631 b
19632 :more2
19633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19634 p
19635 g
19636 s/.\{148\}//
19637 t delim
19638 ' <conf$$subs.awk | sed '
19639 /^[^""]/{
19640 N
19641 s/\n//
19642 }
19643 ' >>$CONFIG_STATUS || ac_write_fail=1
19644 rm -f conf$$subs.awk
19645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19646 _ACAWK
19647 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19648 for (key in S) S_is_set[key] = 1
19649 FS = ""
19650
19651 }
19652 {
19653 line = $ 0
19654 nfields = split(line, field, "@")
19655 substed = 0
19656 len = length(field[1])
19657 for (i = 2; i < nfields; i++) {
19658 key = field[i]
19659 keylen = length(key)
19660 if (S_is_set[key]) {
19661 value = S[key]
19662 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19663 len += length(value) + length(field[++i])
19664 substed = 1
19665 } else
19666 len += 1 + keylen
19667 }
19668
19669 print line
19670 }
19671
19672 _ACAWK
19673 _ACEOF
19674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19675 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19676 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19677 else
19678 cat
19679 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19680 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19681 _ACEOF
19682
19683 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19684 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19685 # trailing colons and then remove the whole line if VPATH becomes empty
19686 # (actually we leave an empty line to preserve line numbers).
19687 if test "x$srcdir" = x.; then
19688 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19689 h
19690 s///
19691 s/^/:/
19692 s/[ ]*$/:/
19693 s/:\$(srcdir):/:/g
19694 s/:\${srcdir}:/:/g
19695 s/:@srcdir@:/:/g
19696 s/^:*//
19697 s/:*$//
19698 x
19699 s/\(=[ ]*\).*/\1/
19700 G
19701 s/\n//
19702 s/^[^=]*=[ ]*$//
19703 }'
19704 fi
19705
19706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19707 fi # test -n "$CONFIG_FILES"
19708
19709 # Set up the scripts for CONFIG_HEADERS section.
19710 # No need to generate them if there are no CONFIG_HEADERS.
19711 # This happens for instance with './config.status Makefile'.
19712 if test -n "$CONFIG_HEADERS"; then
19713 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19714 BEGIN {
19715 _ACEOF
19716
19717 # Transform confdefs.h into an awk script 'defines.awk', embedded as
19718 # here-document in config.status, that substitutes the proper values into
19719 # config.h.in to produce config.h.
19720
19721 # Create a delimiter string that does not exist in confdefs.h, to ease
19722 # handling of long lines.
19723 ac_delim='%!_!# '
19724 for ac_last_try in false false :; do
19725 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19726 if test -z "$ac_tt"; then
19727 break
19728 elif $ac_last_try; then
19729 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19730 else
19731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19732 fi
19733 done
19734
19735 # For the awk script, D is an array of macro values keyed by name,
19736 # likewise P contains macro parameters if any. Preserve backslash
19737 # newline sequences.
19738
19739 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19740 sed -n '
19741 s/.\{148\}/&'"$ac_delim"'/g
19742 t rset
19743 :rset
19744 s/^[ ]*#[ ]*define[ ][ ]*/ /
19745 t def
19746 d
19747 :def
19748 s/\\$//
19749 t bsnl
19750 s/["\\]/\\&/g
19751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19752 D["\1"]=" \3"/p
19753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19754 d
19755 :bsnl
19756 s/["\\]/\\&/g
19757 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19758 D["\1"]=" \3\\\\\\n"\\/p
19759 t cont
19760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19761 t cont
19762 d
19763 :cont
19764 n
19765 s/.\{148\}/&'"$ac_delim"'/g
19766 t clear
19767 :clear
19768 s/\\$//
19769 t bsnlc
19770 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19771 d
19772 :bsnlc
19773 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19774 b cont
19775 ' <confdefs.h | sed '
19776 s/'"$ac_delim"'/"\\\
19777 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19778
19779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19780 for (key in D) D_is_set[key] = 1
19781 FS = ""
19782 }
19783 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19784 line = \$ 0
19785 split(line, arg, " ")
19786 if (arg[1] == "#") {
19787 defundef = arg[2]
19788 mac1 = arg[3]
19789 } else {
19790 defundef = substr(arg[1], 2)
19791 mac1 = arg[2]
19792 }
19793 split(mac1, mac2, "(") #)
19794 macro = mac2[1]
19795 prefix = substr(line, 1, index(line, defundef) - 1)
19796 if (D_is_set[macro]) {
19797 # Preserve the white space surrounding the "#".
19798 print prefix "define", macro P[macro] D[macro]
19799 next
19800 } else {
19801 # Replace #undef with comments. This is necessary, for example,
19802 # in the case of _POSIX_SOURCE, which is predefined and required
19803 # on some systems where configure will not decide to define it.
19804 if (defundef == "undef") {
19805 print "/*", prefix defundef, macro, "*/"
19806 next
19807 }
19808 }
19809 }
19810 { print }
19811 _ACAWK
19812 _ACEOF
19813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19814 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19815 fi # test -n "$CONFIG_HEADERS"
19816
19817
19818 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19819 shift
19820 for ac_tag
19821 do
19822 case $ac_tag in
19823 :[FHLC]) ac_mode=$ac_tag; continue;;
19824 esac
19825 case $ac_mode$ac_tag in
19826 :[FHL]*:*);;
19827 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
19828 :[FH]-) ac_tag=-:-;;
19829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19830 esac
19831 ac_save_IFS=$IFS
19832 IFS=:
19833 set x $ac_tag
19834 IFS=$ac_save_IFS
19835 shift
19836 ac_file=$1
19837 shift
19838
19839 case $ac_mode in
19840 :L) ac_source=$1;;
19841 :[FH])
19842 ac_file_inputs=
19843 for ac_f
19844 do
19845 case $ac_f in
19846 -) ac_f="$ac_tmp/stdin";;
19847 *) # Look for the file first in the build tree, then in the source tree
19848 # (if the path is not absolute). The absolute path cannot be DOS-style,
19849 # because $ac_f cannot contain ':'.
19850 test -f "$ac_f" ||
19851 case $ac_f in
19852 [\\/$]*) false;;
19853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19854 esac ||
19855 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
19856 esac
19857 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19858 as_fn_append ac_file_inputs " '$ac_f'"
19859 done
19860
19861 # Let's still pretend it is 'configure' which instantiates (i.e., don't
19862 # use $as_me), people would be surprised to read:
19863 # /* config.h. Generated by config.status. */
19864 configure_input='Generated from '`
19865 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19866 `' by configure.'
19867 if test x"$ac_file" != x-; then
19868 configure_input="$ac_file. $configure_input"
19869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19870 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19871 fi
19872 # Neutralize special characters interpreted by sed in replacement strings.
19873 case $configure_input in #(
19874 *\&* | *\|* | *\\* )
19875 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19877 *) ac_sed_conf_input=$configure_input;;
19878 esac
19879
19880 case $ac_tag in
19881 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19883 esac
19884 ;;
19885 esac
19886
19887 ac_dir=`$as_dirname -- "$ac_file" ||
19888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19889 X"$ac_file" : 'X\(//\)[^/]' \| \
19890 X"$ac_file" : 'X\(//\)$' \| \
19891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19892 printf "%s\n" X"$ac_file" |
19893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19894 s//\1/
19895 q
19896 }
19897 /^X\(\/\/\)[^/].*/{
19898 s//\1/
19899 q
19900 }
19901 /^X\(\/\/\)$/{
19902 s//\1/
19903 q
19904 }
19905 /^X\(\/\).*/{
19906 s//\1/
19907 q
19908 }
19909 s/.*/./; q'`
19910 as_dir="$ac_dir"; as_fn_mkdir_p
19911 ac_builddir=.
19912
19913 case "$ac_dir" in
19914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19915 *)
19916 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19917 # A ".." for each directory in $ac_dir_suffix.
19918 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19919 case $ac_top_builddir_sub in
19920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19922 esac ;;
19923 esac
19924 ac_abs_top_builddir=$ac_pwd
19925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19926 # for backward compatibility:
19927 ac_top_builddir=$ac_top_build_prefix
19928
19929 case $srcdir in
19930 .) # We are building in place.
19931 ac_srcdir=.
19932 ac_top_srcdir=$ac_top_builddir_sub
19933 ac_abs_top_srcdir=$ac_pwd ;;
19934 [\\/]* | ?:[\\/]* ) # Absolute name.
19935 ac_srcdir=$srcdir$ac_dir_suffix;
19936 ac_top_srcdir=$srcdir
19937 ac_abs_top_srcdir=$srcdir ;;
19938 *) # Relative name.
19939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19940 ac_top_srcdir=$ac_top_build_prefix$srcdir
19941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19942 esac
19943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19944
19945
19946 case $ac_mode in
19947 :F)
19948 #
19949 # CONFIG_FILE
19950 #
19951
19952 case $INSTALL in
19953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19955 esac
19956 ac_MKDIR_P=$MKDIR_P
19957 case $MKDIR_P in
19958 [\\/$]* | ?:[\\/]* ) ;;
19959 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19960 esac
19961 _ACEOF
19962
19963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19964 # If the template does not know about datarootdir, expand it.
19965 # FIXME: This hack should be removed a few years after 2.60.
19966 ac_datarootdir_hack=; ac_datarootdir_seen=
19967 ac_sed_dataroot='
19968 /datarootdir/ {
19969 p
19970 q
19971 }
19972 /@datadir@/p
19973 /@docdir@/p
19974 /@infodir@/p
19975 /@localedir@/p
19976 /@mandir@/p'
19977 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19978 *datarootdir*) ac_datarootdir_seen=yes;;
19979 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19981 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19982 _ACEOF
19983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19984 ac_datarootdir_hack='
19985 s&@datadir@&$datadir&g
19986 s&@docdir@&$docdir&g
19987 s&@infodir@&$infodir&g
19988 s&@localedir@&$localedir&g
19989 s&@mandir@&$mandir&g
19990 s&\\\${datarootdir}&$datarootdir&g' ;;
19991 esac
19992 _ACEOF
19993
19994 # Neutralize VPATH when '$srcdir' = '.'.
19995 # Shell code in configure.ac might set extrasub.
19996 # FIXME: do we really want to maintain this feature?
19997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19998 ac_sed_extra="$ac_vpsub
19999 $extrasub
20000 _ACEOF
20001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20002 :t
20003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20004 s|@configure_input@|$ac_sed_conf_input|;t t
20005 s&@top_builddir@&$ac_top_builddir_sub&;t t
20006 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20007 s&@srcdir@&$ac_srcdir&;t t
20008 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20009 s&@top_srcdir@&$ac_top_srcdir&;t t
20010 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20011 s&@builddir@&$ac_builddir&;t t
20012 s&@abs_builddir@&$ac_abs_builddir&;t t
20013 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20014 s&@INSTALL@&$ac_INSTALL&;t t
20015 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20016 $ac_datarootdir_hack
20017 "
20018 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20019 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20020
20021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20022 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20024 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20026 which seems to be undefined. Please make sure it is defined" >&5
20027 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20028 which seems to be undefined. Please make sure it is defined" >&2;}
20029
20030 rm -f "$ac_tmp/stdin"
20031 case $ac_file in
20032 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20033 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20034 esac \
20035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20036 ;;
20037 :H)
20038 #
20039 # CONFIG_HEADER
20040 #
20041 if test x"$ac_file" != x-; then
20042 {
20043 printf "%s\n" "/* $configure_input */" >&1 \
20044 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20045 } >"$ac_tmp/config.h" \
20046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20047 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20049 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20050 else
20051 rm -f "$ac_file"
20052 mv "$ac_tmp/config.h" "$ac_file" \
20053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20054 fi
20055 else
20056 printf "%s\n" "/* $configure_input */" >&1 \
20057 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20058 || as_fn_error $? "could not create -" "$LINENO" 5
20059 fi
20060 # Compute "$ac_file"'s index in $config_headers.
20061 _am_arg="$ac_file"
20062 _am_stamp_count=1
20063 for _am_header in $config_headers :; do
20064 case $_am_header in
20065 $_am_arg | $_am_arg:* )
20066 break ;;
20067 * )
20068 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20069 esac
20070 done
20071 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20072 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20073 X"$_am_arg" : 'X\(//\)[^/]' \| \
20074 X"$_am_arg" : 'X\(//\)$' \| \
20075 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20076 printf "%s\n" X"$_am_arg" |
20077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20078 s//\1/
20079 q
20080 }
20081 /^X\(\/\/\)[^/].*/{
20082 s//\1/
20083 q
20084 }
20085 /^X\(\/\/\)$/{
20086 s//\1/
20087 q
20088 }
20089 /^X\(\/\).*/{
20090 s//\1/
20091 q
20092 }
20093 s/.*/./; q'`/stamp-h$_am_stamp_count
20094 ;;
20095 :L)
20096 #
20097 # CONFIG_LINK
20098 #
20099
20100 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20101 :
20102 else
20103 # Prefer the file from the source tree if names are identical.
20104 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20105 ac_source=$srcdir/$ac_source
20106 fi
20107
20108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20109 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
20110
20111 if test ! -r "$ac_source"; then
20112 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20113 fi
20114 rm -f "$ac_file"
20115
20116 # Try a relative symlink, then a hard link, then a copy.
20117 case $ac_source in
20118 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20119 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20120 esac
20121 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20122 ln "$ac_source" "$ac_file" 2>/dev/null ||
20123 cp -p "$ac_source" "$ac_file" ||
20124 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20125 fi
20126 ;;
20127 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20128 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20129 ;;
20130 esac
20131
20132
20133 case $ac_file$ac_mode in
20134 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20135 # Older Autoconf quotes --file arguments for eval, but not when files
20136 # are listed without --file. Let's play safe and only enable the eval
20137 # if we detect the quoting.
20138 # TODO: see whether this extra hack can be removed once we start
20139 # requiring Autoconf 2.70 or later.
20140 case $CONFIG_FILES in #(
20141 *\'*) :
20142 eval set x "$CONFIG_FILES" ;; #(
20143 *) :
20144 set x $CONFIG_FILES ;; #(
20145 *) :
20146 ;;
20147 esac
20148 shift
20149 # Used to flag and report bootstrapping failures.
20150 am_rc=0
20151 for am_mf
20152 do
20153 # Strip MF so we end up with the name of the file.
20154 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20155 # Check whether this is an Automake generated Makefile which includes
20156 # dependency-tracking related rules and includes.
20157 # Grep'ing the whole file directly is not great: AIX grep has a line
20158 # limit of 2048, but all sed's we know have understand at least 4000.
20159 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20160 || continue
20161 am_dirpart=`$as_dirname -- "$am_mf" ||
20162 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20163 X"$am_mf" : 'X\(//\)[^/]' \| \
20164 X"$am_mf" : 'X\(//\)$' \| \
20165 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20166 printf "%s\n" X"$am_mf" |
20167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20168 s//\1/
20169 q
20170 }
20171 /^X\(\/\/\)[^/].*/{
20172 s//\1/
20173 q
20174 }
20175 /^X\(\/\/\)$/{
20176 s//\1/
20177 q
20178 }
20179 /^X\(\/\).*/{
20180 s//\1/
20181 q
20182 }
20183 s/.*/./; q'`
20184 am_filepart=`$as_basename -- "$am_mf" ||
20185 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20186 X"$am_mf" : 'X\(//\)$' \| \
20187 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20188 printf "%s\n" X/"$am_mf" |
20189 sed '/^.*\/\([^/][^/]*\)\/*$/{
20190 s//\1/
20191 q
20192 }
20193 /^X\/\(\/\/\)$/{
20194 s//\1/
20195 q
20196 }
20197 /^X\/\(\/\).*/{
20198 s//\1/
20199 q
20200 }
20201 s/.*/./; q'`
20202 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20203 && sed -e '/# am--include-marker/d' "$am_filepart" \
20204 | $MAKE -f - am--depfiles" >&5
20205 (cd "$am_dirpart" \
20206 && sed -e '/# am--include-marker/d' "$am_filepart" \
20207 | $MAKE -f - am--depfiles) >&5 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } || am_rc=$?
20211 done
20212 if test $am_rc -ne 0; then
20213 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20214 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20215 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20216 for automatic dependency tracking. If GNU make was not used, consider
20217 re-running the configure script with MAKE=\"gmake\" (or whatever is
20218 necessary). You can also try re-running configure with the
20219 '--disable-dependency-tracking' option to at least be able to build
20220 the package (albeit without support for automatic dependency tracking).
20221 See 'config.log' for more details" "$LINENO" 5; }
20222 fi
20223 { am_dirpart=; unset am_dirpart;}
20224 { am_filepart=; unset am_filepart;}
20225 { am_mf=; unset am_mf;}
20226 { am_rc=; unset am_rc;}
20227 rm -f conftest-deps.mk
20228 }
20229 ;;
20230 "libtool":C)
20231
20232 # See if we are running on zsh, and set the options that allow our
20233 # commands through without removal of \ escapes.
20234 if test -n "${ZSH_VERSION+set}"; then
20235 setopt NO_GLOB_SUBST
20236 fi
20237
20238 cfgfile=${ofile}T
20239 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20240 $RM "$cfgfile"
20241
20242 cat <<_LT_EOF >> "$cfgfile"
20243 #! $SHELL
20244 # Generated automatically by $as_me ($PACKAGE) $VERSION
20245 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20246
20247 # Provide generalized library-building support services.
20248 # Written by Gordon Matzigkeit, 1996
20249
20250 # Copyright (C) 2024 Free Software Foundation, Inc.
20251 # This is free software; see the source for copying conditions. There is NO
20252 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20253
20254 # GNU Libtool is free software; you can redistribute it and/or modify
20255 # it under the terms of the GNU General Public License as published by
20256 # the Free Software Foundation; either version 2 of the License, or
20257 # (at your option) any later version.
20258 #
20259 # As a special exception to the GNU General Public License, if you
20260 # distribute this file as part of a program or library that is built
20261 # using GNU Libtool, you may include this file under the same
20262 # distribution terms that you use for the rest of that program.
20263 #
20264 # GNU Libtool is distributed in the hope that it will be useful, but
20265 # WITHOUT ANY WARRANTY; without even the implied warranty of
20266 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20267 # GNU General Public License for more details.
20268 #
20269 # You should have received a copy of the GNU General Public License
20270 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20271
20272
20273 # The names of the tagged configurations supported by this script.
20274 available_tags=''
20275
20276 # Configured defaults for sys_lib_dlsearch_path munging.
20277 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20278
20279 # ### BEGIN LIBTOOL CONFIG
20280
20281 # Which release of libtool.m4 was used?
20282 macro_version=$macro_version
20283 macro_revision=$macro_revision
20284
20285 # Assembler program.
20286 AS=$lt_AS
20287
20288 # DLL creation program.
20289 DLLTOOL=$lt_DLLTOOL
20290
20291 # Object dumper program.
20292 OBJDUMP=$lt_OBJDUMP
20293
20294 # Whether or not to build shared libraries.
20295 build_libtool_libs=$enable_shared
20296
20297 # Whether or not to build static libraries.
20298 build_old_libs=$enable_static
20299
20300 # What type of objects to build.
20301 pic_mode=$pic_mode
20302
20303 # Whether or not to optimize for fast installation.
20304 fast_install=$enable_fast_install
20305
20306 # Shared archive member basename,for filename based shared library versioning on AIX.
20307 shared_archive_member_spec=$shared_archive_member_spec
20308
20309 # Shell to use when invoking shell scripts.
20310 SHELL=$lt_SHELL
20311
20312 # An echo program that protects backslashes.
20313 ECHO=$lt_ECHO
20314
20315 # The PATH separator for the build system.
20316 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20317
20318 # The host system.
20319 host_alias=$host_alias
20320 host=$host
20321 host_os=$host_os
20322
20323 # The build system.
20324 build_alias=$build_alias
20325 build=$build
20326 build_os=$build_os
20327
20328 # A sed program that does not truncate output.
20329 SED=$lt_SED
20330
20331 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20332 Xsed="\$SED -e 1s/^X//"
20333
20334 # A grep program that handles long lines.
20335 GREP=$lt_GREP
20336
20337 # An ERE matcher.
20338 EGREP=$lt_EGREP
20339
20340 # A literal string matcher.
20341 FGREP=$lt_FGREP
20342
20343 # A BSD- or MS-compatible name lister.
20344 NM=$lt_NM
20345
20346 # Whether we need soft or hard links.
20347 LN_S=$lt_LN_S
20348
20349 # What is the maximum length of a command?
20350 max_cmd_len=$max_cmd_len
20351
20352 # Object file suffix (normally "o").
20353 objext=$ac_objext
20354
20355 # Executable file suffix (normally "").
20356 exeext=$exeext
20357
20358 # whether the shell understands "unset".
20359 lt_unset=$lt_unset
20360
20361 # turn spaces into newlines.
20362 SP2NL=$lt_lt_SP2NL
20363
20364 # turn newlines into spaces.
20365 NL2SP=$lt_lt_NL2SP
20366
20367 # convert \$build file names to \$host format.
20368 to_host_file_cmd=$lt_cv_to_host_file_cmd
20369
20370 # convert \$build files to toolchain format.
20371 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20372
20373 # A file(cmd) program that detects file types.
20374 FILECMD=$lt_FILECMD
20375
20376 # Method to check whether dependent libraries are shared objects.
20377 deplibs_check_method=$lt_deplibs_check_method
20378
20379 # Command to use when deplibs_check_method = "file_magic".
20380 file_magic_cmd=$lt_file_magic_cmd
20381
20382 # How to find potential files when deplibs_check_method = "file_magic".
20383 file_magic_glob=$lt_file_magic_glob
20384
20385 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20386 want_nocaseglob=$lt_want_nocaseglob
20387
20388 # Command to associate shared and link libraries.
20389 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20390
20391 # The archiver.
20392 AR=$lt_AR
20393
20394 # Flags to create an archive (by configure).
20395 lt_ar_flags=$lt_ar_flags
20396
20397 # Flags to create an archive.
20398 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20399
20400 # How to feed a file listing to the archiver.
20401 archiver_list_spec=$lt_archiver_list_spec
20402
20403 # A symbol stripping program.
20404 STRIP=$lt_STRIP
20405
20406 # Commands used to install an old-style archive.
20407 RANLIB=$lt_RANLIB
20408 old_postinstall_cmds=$lt_old_postinstall_cmds
20409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20410
20411 # Whether to use a lock for old archive extraction.
20412 lock_old_archive_extraction=$lock_old_archive_extraction
20413
20414 # A C compiler.
20415 LTCC=$lt_CC
20416
20417 # LTCC compiler flags.
20418 LTCFLAGS=$lt_CFLAGS
20419
20420 # Take the output of nm and produce a listing of raw symbols and C names.
20421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20422
20423 # Transform the output of nm in a proper C declaration.
20424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20425
20426 # Transform the output of nm into a list of symbols to manually relocate.
20427 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20428
20429 # Transform the output of nm in a C name address pair.
20430 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20431
20432 # Transform the output of nm in a C name address pair when lib prefix is needed.
20433 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20434
20435 # The name lister interface.
20436 nm_interface=$lt_lt_cv_nm_interface
20437
20438 # Specify filename containing input files for \$NM.
20439 nm_file_list_spec=$lt_nm_file_list_spec
20440
20441 # The root where to search for dependent libraries,and where our libraries should be installed.
20442 lt_sysroot=$lt_sysroot
20443
20444 # Command to truncate a binary pipe.
20445 lt_truncate_bin=$lt_lt_cv_truncate_bin
20446
20447 # The name of the directory that contains temporary libtool files.
20448 objdir=$objdir
20449
20450 # Used to examine libraries when file_magic_cmd begins with "file".
20451 MAGIC_CMD=$MAGIC_CMD
20452
20453 # Must we lock files when doing compilation?
20454 need_locks=$lt_need_locks
20455
20456 # Manifest tool.
20457 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20458
20459 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20460 DSYMUTIL=$lt_DSYMUTIL
20461
20462 # Tool to change global to local symbols on Mac OS X.
20463 NMEDIT=$lt_NMEDIT
20464
20465 # Tool to manipulate fat objects and archives on Mac OS X.
20466 LIPO=$lt_LIPO
20467
20468 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20469 OTOOL=$lt_OTOOL
20470
20471 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20472 OTOOL64=$lt_OTOOL64
20473
20474 # Old archive suffix (normally "a").
20475 libext=$libext
20476
20477 # Shared library suffix (normally ".so").
20478 shrext_cmds=$lt_shrext_cmds
20479
20480 # The commands to extract the exported symbol list from a shared archive.
20481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20482
20483 # Variables whose values should be saved in libtool wrapper scripts and
20484 # restored at link time.
20485 variables_saved_for_relink=$lt_variables_saved_for_relink
20486
20487 # Do we need the "lib" prefix for modules?
20488 need_lib_prefix=$need_lib_prefix
20489
20490 # Do we need a version for libraries?
20491 need_version=$need_version
20492
20493 # Library versioning type.
20494 version_type=$version_type
20495
20496 # Shared library runtime path variable.
20497 runpath_var=$runpath_var
20498
20499 # Shared library path variable.
20500 shlibpath_var=$shlibpath_var
20501
20502 # Is shlibpath searched before the hard-coded library search path?
20503 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20504
20505 # Format of library name prefix.
20506 libname_spec=$lt_libname_spec
20507
20508 # List of archive names. First name is the real one, the rest are links.
20509 # The last name is the one that the linker finds with -lNAME
20510 library_names_spec=$lt_library_names_spec
20511
20512 # The coded name of the library, if different from the real name.
20513 soname_spec=$lt_soname_spec
20514
20515 # Permission mode override for installation of shared libraries.
20516 install_override_mode=$lt_install_override_mode
20517
20518 # Command to use after installation of a shared archive.
20519 postinstall_cmds=$lt_postinstall_cmds
20520
20521 # Command to use after uninstallation of a shared archive.
20522 postuninstall_cmds=$lt_postuninstall_cmds
20523
20524 # Commands used to finish a libtool library installation in a directory.
20525 finish_cmds=$lt_finish_cmds
20526
20527 # As "finish_cmds", except a single script fragment to be evaled but
20528 # not shown.
20529 finish_eval=$lt_finish_eval
20530
20531 # Whether we should hardcode library paths into libraries.
20532 hardcode_into_libs=$hardcode_into_libs
20533
20534 # Compile-time system search path for libraries.
20535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20536
20537 # Detected run-time system search path for libraries.
20538 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20539
20540 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20541 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20542
20543 # Whether dlopen is supported.
20544 dlopen_support=$enable_dlopen
20545
20546 # Whether dlopen of programs is supported.
20547 dlopen_self=$enable_dlopen_self
20548
20549 # Whether dlopen of statically linked programs is supported.
20550 dlopen_self_static=$enable_dlopen_self_static
20551
20552 # Commands to strip libraries.
20553 old_striplib=$lt_old_striplib
20554 striplib=$lt_striplib
20555
20556
20557 # The linker used to build libraries.
20558 LD=$lt_LD
20559
20560 # How to create reloadable object files.
20561 reload_flag=$lt_reload_flag
20562 reload_cmds=$lt_reload_cmds
20563
20564 # Commands used to build an old-style archive.
20565 old_archive_cmds=$lt_old_archive_cmds
20566
20567 # A language specific compiler.
20568 CC=$lt_compiler
20569
20570 # Is the compiler the GNU compiler?
20571 with_gcc=$GCC
20572
20573 # Compiler flag to turn off builtin functions.
20574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20575
20576 # Additional compiler flags for building library objects.
20577 pic_flag=$lt_lt_prog_compiler_pic
20578
20579 # How to pass a linker flag through the compiler.
20580 wl=$lt_lt_prog_compiler_wl
20581
20582 # Compiler flag to prevent dynamic linking.
20583 link_static_flag=$lt_lt_prog_compiler_static
20584
20585 # Does compiler simultaneously support -c and -o options?
20586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20587
20588 # Whether or not to add -lc for building shared libraries.
20589 build_libtool_need_lc=$archive_cmds_need_lc
20590
20591 # Whether or not to disallow shared libs when runtime libs are static.
20592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20593
20594 # Compiler flag to allow reflexive dlopens.
20595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20596
20597 # Compiler flag to generate shared objects directly from archives.
20598 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20599
20600 # Whether the compiler copes with passing no objects directly.
20601 compiler_needs_object=$lt_compiler_needs_object
20602
20603 # Create an old-style archive from a shared archive.
20604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20605
20606 # Create a temporary old-style archive to link instead of a shared archive.
20607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20608
20609 # Commands used to build a shared archive.
20610 archive_cmds=$lt_archive_cmds
20611 archive_expsym_cmds=$lt_archive_expsym_cmds
20612
20613 # Commands used to build a loadable module if different from building
20614 # a shared archive.
20615 module_cmds=$lt_module_cmds
20616 module_expsym_cmds=$lt_module_expsym_cmds
20617
20618 # Whether we are building with GNU ld or not.
20619 with_gnu_ld=$lt_with_gnu_ld
20620
20621 # Flag that allows shared libraries with undefined symbols to be built.
20622 allow_undefined_flag=$lt_allow_undefined_flag
20623
20624 # Flag that enforces no undefined symbols.
20625 no_undefined_flag=$lt_no_undefined_flag
20626
20627 # Flag to hardcode \$libdir into a binary during linking.
20628 # This must work even if \$libdir does not exist
20629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20630
20631 # Whether we need a single "-rpath" flag with a separated argument.
20632 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20633
20634 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20635 # DIR into the resulting binary.
20636 hardcode_direct=$hardcode_direct
20637
20638 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20639 # DIR into the resulting binary and the resulting library dependency is
20640 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
20641 # library is relocated.
20642 hardcode_direct_absolute=$hardcode_direct_absolute
20643
20644 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20645 # into the resulting binary.
20646 hardcode_minus_L=$hardcode_minus_L
20647
20648 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20649 # into the resulting binary.
20650 hardcode_shlibpath_var=$hardcode_shlibpath_var
20651
20652 # Set to "yes" if building a shared library automatically hardcodes DIR
20653 # into the library and all subsequent libraries and executables linked
20654 # against it.
20655 hardcode_automatic=$hardcode_automatic
20656
20657 # Set to yes if linker adds runtime paths of dependent libraries
20658 # to runtime path list.
20659 inherit_rpath=$inherit_rpath
20660
20661 # Whether libtool must link a program against all its dependency libraries.
20662 link_all_deplibs=$link_all_deplibs
20663
20664 # Set to "yes" if exported symbols are required.
20665 always_export_symbols=$always_export_symbols
20666
20667 # The commands to list exported symbols.
20668 export_symbols_cmds=$lt_export_symbols_cmds
20669
20670 # Symbols that should not be listed in the preloaded symbols.
20671 exclude_expsyms=$lt_exclude_expsyms
20672
20673 # Symbols that must always be exported.
20674 include_expsyms=$lt_include_expsyms
20675
20676 # Commands necessary for linking programs (against libraries) with templates.
20677 prelink_cmds=$lt_prelink_cmds
20678
20679 # Commands necessary for finishing linking programs.
20680 postlink_cmds=$lt_postlink_cmds
20681
20682 # Specify filename containing input files.
20683 file_list_spec=$lt_file_list_spec
20684
20685 # How to hardcode a shared library path into an executable.
20686 hardcode_action=$hardcode_action
20687
20688 # ### END LIBTOOL CONFIG
20689
20690 _LT_EOF
20691
20692 cat <<'_LT_EOF' >> "$cfgfile"
20693
20694 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20695
20696 # func_munge_path_list VARIABLE PATH
20697 # -----------------------------------
20698 # VARIABLE is name of variable containing _space_ separated list of
20699 # directories to be munged by the contents of PATH, which is string
20700 # having a format:
20701 # "DIR[:DIR]:"
20702 # string "DIR[ DIR]" will be prepended to VARIABLE
20703 # ":DIR[:DIR]"
20704 # string "DIR[ DIR]" will be appended to VARIABLE
20705 # "DIRP[:DIRP]::[DIRA:]DIRA"
20706 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20707 # "DIRA[ DIRA]" will be appended to VARIABLE
20708 # "DIR[:DIR]"
20709 # VARIABLE will be replaced by "DIR[ DIR]"
20710 func_munge_path_list ()
20711 {
20712 case x$2 in
20713 x)
20714 ;;
20715 *:)
20716 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20717 ;;
20718 x:*)
20719 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20720 ;;
20721 *::*)
20722 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20723 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20724 ;;
20725 *)
20726 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20727 ;;
20728 esac
20729 }
20730
20731
20732 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20733 func_cc_basename ()
20734 {
20735 for cc_temp in $*""; do
20736 case $cc_temp in
20737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20739 \-*) ;;
20740 *) break;;
20741 esac
20742 done
20743 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20744 }
20745
20746
20747 # ### END FUNCTIONS SHARED WITH CONFIGURE
20748
20749 _LT_EOF
20750
20751 case $host_os in
20752 aix3*)
20753 cat <<\_LT_EOF >> "$cfgfile"
20754 # AIX sometimes has problems with the GCC collect2 program. For some
20755 # reason, if we set the COLLECT_NAMES environment variable, the problems
20756 # vanish in a puff of smoke.
20757 if test set != "${COLLECT_NAMES+set}"; then
20758 COLLECT_NAMES=
20759 export COLLECT_NAMES
20760 fi
20761 _LT_EOF
20762 ;;
20763 esac
20764
20765
20766
20767 ltmain=$ac_aux_dir/ltmain.sh
20768
20769
20770 # We use sed instead of cat because bash on DJGPP gets confused if
20771 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20772 # text mode, it properly converts lines to CR/LF. This bash problem
20773 # is reportedly fixed, but why not run on old versions too?
20774 $SED '$q' "$ltmain" >> "$cfgfile" \
20775 || (rm -f "$cfgfile"; exit 1)
20776
20777 mv -f "$cfgfile" "$ofile" ||
20778 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20779 chmod +x "$ofile"
20780
20781 ;;
20782
20783 esac
20784 done # for ac_tag
20785
20786
20787 as_fn_exit 0
20788 _ACEOF
20789 ac_clean_files=$ac_clean_files_save
20790
20791 test $ac_write_fail = 0 ||
20792 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20793
20794
20795 # configure is writing to config.log, and then calls config.status.
20796 # config.status does its own redirection, appending to config.log.
20797 # Unfortunately, on DOS this fails, as config.log is still kept open
20798 # by configure, so config.status won't be able to write to it; its
20799 # output is simply discarded. So we exec the FD to /dev/null,
20800 # effectively closing config.log, so it can be properly (re)opened and
20801 # appended to by config.status. When coming back to configure, we
20802 # need to make the FD available again.
20803 if test "$no_create" != yes; then
20804 ac_cs_success=:
20805 ac_config_status_args=
20806 test "$silent" = yes &&
20807 ac_config_status_args="$ac_config_status_args --quiet"
20808 exec 5>/dev/null
20809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20810 exec 5>>config.log
20811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20812 # would make configure fail if this is the last instruction.
20813 $ac_cs_success || as_fn_exit 1
20814 fi
20815 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20817 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20818 fi
20819
20820